Documentation
¶
Index ¶
- func ValidArgsListCertificateRequests(factory **Factory) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func ValidArgsListCertificateSigningRequests(factory **Factory) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func ValidArgsListCertificates(factory **Factory) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func ValidArgsListSecrets(factory **Factory) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- type Factory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidArgsListCertificateRequests ¶
func ValidArgsListCertificateRequests(factory **Factory) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
ValidArgsListCertificateRequests returns a cobra ValidArgsFunction for listing CertificateRequests.
func ValidArgsListCertificateSigningRequests ¶
func ValidArgsListCertificateSigningRequests(factory **Factory) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
ValidArgsListCertificateSigningRequests returns a cobra ValidArgsFunction for listing CertificateSigningRequests.
func ValidArgsListCertificates ¶
func ValidArgsListCertificates(factory **Factory) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
ValidArgsListCertificates returns a cobra ValidArgsFunction for listing Certificates.
func ValidArgsListSecrets ¶
func ValidArgsListSecrets(factory **Factory) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
ValidArgsListSecrets returns a cobra ValidArgsFunction for listing Secrets.
Types ¶
type Factory ¶
type Factory struct {
// Namespace is the namespace that the user has requested with the
// "--namespace" / "-n" flag. Defaults to "default" if the flag was not
// provided.
Namespace string
// EnforceNamespace will be true if the user provided the namespace flag.
EnforceNamespace bool
// RESTConfig is a Kubernetes REST config that contains the user's
// authentication and access configuration.
RESTConfig *rest.Config
// CMClient is a Kubernetes clientset for interacting with cert-manager APIs.
CMClient cmclient.Interface
// KubeClient is a Kubernetes clientset for interacting with the base
// Kubernetes APIs.
KubeClient kubernetes.Interface
// RESTClientGetter is used to get RESTConfig, DiscoveryClients and
// RESTMapper implementations
RESTClientGetter genericclioptions.RESTClientGetter
// contains filtered or unexported fields
}
Factory provides a set of clients and configurations to authenticate and access a target Kubernetes cluster. Factory will ensure that its fields are populated and valid during command execution.
func New ¶
New returns a new Factory. The supplied command will have flags registered for interacting with the Kubernetes access options. Factory will be populated when the command is executed using the cobra PreRunE. If a PreRunE is already defined, it will be executed _after_ Factory has been populated, making it available.