MCPcopy Create free account
hub / github.com/containers/image / clientcmdNewConfig

Function clientcmdNewConfig

openshift/openshift-copies.go:1079–1085  ·  view source on GitHub ↗

clientcmdNewConfig is a modified copy of k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api.NewConfig. NewConfig is a convenience function that returns a new Config object with non-nil maps

()

Source from the content-addressed store, hash-verified

1077// clientcmdNewConfig is a modified copy of k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api.NewConfig.
1078// NewConfig is a convenience function that returns a new Config object with non-nil maps
1079func clientcmdNewConfig() *clientcmdConfig {
1080 return &clientcmdConfig{
1081 Clusters: make(map[string]*clientcmdCluster),
1082 AuthInfos: make(map[string]*clientcmdAuthInfo),
1083 Contexts: make(map[string]*clientcmdContext),
1084 }
1085}
1086
1087// yamlBinaryAsBase64String is a []byte that can be stored in yaml as a !!str, not a !!binary
1088type yamlBinaryAsBase64String []byte

Callers 2

LoadMethod · 0.85
loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…