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

Method GetDefaultFilename

tools/clientcmd/config.go:40–40  ·  view source on GitHub ↗

GetDefaultFilename returns the name of the file you should write into (create if necessary), if you're trying to create a new stanza as opposed to updating an existing one.

()

Source from the content-addressed store, hash-verified

38 GetStartingConfig() (*clientcmdapi.Config, error)
39 // GetDefaultFilename returns the name of the file you should write into (create if necessary), if you're trying to create a new stanza as opposed to updating an existing one.
40 GetDefaultFilename() string
41 // IsExplicitFile indicates whether or not this command is interested in exactly one file. This implementation only ever does that via a flag, but implementations that handle local, global, and flags may have more
42 IsExplicitFile() bool
43 // GetExplicitFile returns the particular file this command is operating against. This implementation only ever has one, but implementations that handle local, global, and flags may have more

Callers 2

ModifyConfigFunction · 0.65
writeCurrentContextFunction · 0.65

Implementers 3

ClientConfigGettertools/clientcmd/loader.go
ClientConfigLoadingRulestools/clientcmd/loader.go
PathOptionstools/clientcmd/config.go

Calls

no outgoing calls

Tested by

no test coverage detected