package
0.21.4
Repository: https://github.com/tigera/kubernetes-openapi.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BindAuthInfoFlags is a convenience method to bind the specified flags to their associated variables.
BindClusterFlags is a convenience method to bind the specified flags to their associated variables.
BindFlags is a convenience method to bind the specified flags to their associated variables.
BindOverrideFlags is a convenience method to bind the specified flags to their associated variables.
ConfirmUsable looks a particular context and determines if that particular part of the config is useable.
IsConfigurationInvalid returns true if the provided error indicates the configuration is invalid.
IsContextNotFound returns a boolean indicating whether the error is known to report that a context was not found.
Load takes a byte slice and deserializes the contents into Config object.
LoadFromFile takes a filename and deserializes the contents into Config object.
NewDefaultAuthLoader returns a default implementation of an AuthLoader that only reads from a config file.
NewDefaultClientConfig creates a DirectClientConfig using the config.CurrentContext as the context name.
NewDefaultClientConfigLoadingRules returns a ClientConfigLoadingRules object with default fields filled in.
NewInteractiveClientConfig creates a DirectClientConfig using the passed context name and a reader in case auth information is not provided via files or flags.
NewInteractiveDeferredLoadingClientConfig creates a ConfigClientClientConfig using the passed context name and the fallback auth reader.
NewNonInteractiveClientConfig creates a DirectClientConfig using the passed context name and does not have a fallback reader for auth information.
NewNonInteractiveDeferredLoadingClientConfig creates a ConfigClientClientConfig using the passed context name.
NewPromptingAuthLoader is an AuthLoader that parses an AuthInfo object from a file path.
RecommendedAuthOverrideFlags is a convenience method to return recommended flag names prefixed with a string of your choosing.
RecommendedClusterOverrideFlags is a convenience method to return recommended flag names prefixed with a string of your choosing.
RecommendedConfigOverrideFlags is a convenience method to return recommended flag names prefixed with a string of your choosing.
RecommendedContextOverrideFlags is a convenience method to return recommended flag names prefixed with a string of your choosing.
ResolveLocalPaths resolves all relative paths in the config object with respect to the parent directory of the filename this cannot be done directly inside of LoadFromFile because doing so there would make it impossible to load a file without modification of its contents.
Validate checks for errors in the Config.
Write serializes the config to yaml.
WriteToFile serializes the config to yaml and writes it out to a file.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
DefaultCluster is the cluster config used when no other config is specified TODO: eventually apiserver should start on 443 and be secure by default.
EnvVarCluster allows overriding the DefaultCluster using an envvar for the server name.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AuthOverrideFlags holds the flag names to be used for binding command line flags for AuthInfo objects.
ClientConfigLoadingRules is an ExplicitPath and string slice of specific locations that are used for merging together a Config Callers can put the chain together however they want, but we'd recommend: EnvVarPathFiles if set (a list of files if set) OR the HomeDirectoryPath ExplicitPath is special, because if a user specifically requests a certain file be used and error is reported if thie file is not present.
ClusterOverride holds the flag names to be used for binding command line flags for Cluster objects.
ConfigOverrideFlags holds the flag names to be used for binding command line flags.
ConfigOverrides holds values that should override whatever information is pulled from the actual Config object.
ContextOverrideFlags holds the flag names to be used for binding command line flags for Cluster objects.
DeferredLoadingClientConfig is a ClientConfig interface that is backed by a set of loading rules It is used in cases where the loading rules may change after you've instantiated them and you want to be sure that the most recent rules are used.
DirectClientConfig is a ClientConfig interface that is backed by a clientcmdapi.Config, options overrides, and an optional fallbackReader for auth information.
FlagInfo contains information about how to register a flag.
No description provided by the author

# Interfaces

AuthLoaders are used to build clientauth.Info objects.
ClientConfig is used to make it easy to get an api server client.