MCPcopy
hub / github.com/kubernetes/client-go / Write

Function Write

tools/clientcmd/loader.go:452–454  ·  view source on GitHub ↗

Write serializes the config to yaml. Encapsulates serialization without assuming the destination is a file.

(config clientcmdapi.Config)

Source from the content-addressed store, hash-verified

450// Write serializes the config to yaml.
451// Encapsulates serialization without assuming the destination is a file.
452func Write(config clientcmdapi.Config) ([]byte, error) {
453 return runtime.Encode(clientcmdlatest.Codec, &config)
454}
455
456func (rules ClientConfigLoadingRules) ResolvePaths() bool {
457 return !rules.DoNotResolvePaths

Callers 1

WriteToFileFunction · 0.85

Calls 1

EncodeMethod · 0.45

Tested by

no test coverage detected