Documentation ¶
Index ¶
- func NewCmdCopySecret(streams genericiooptions.IOStreams, client *kubernetes.Clientset) *cobra.Command
- type CopySecretOptions
- func (o *CopySecretOptions) AddSingleSecret(ctx context.Context, ns string, name string) error
- func (o *CopySecretOptions) AllSecretsFrom(ctx context.Context, ns string) error
- func (o *CopySecretOptions) PutSecret(ctx context.Context, dest string, secret *apiv1.Secret) error
- func (o *CopySecretOptions) Run(cmd *cobra.Command)
- func (o *CopySecretOptions) SourceSecrets(cmd *cobra.Command) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdCopySecret ¶
func NewCmdCopySecret(streams genericiooptions.IOStreams, client *kubernetes.Clientset) *cobra.Command
Types ¶
type CopySecretOptions ¶
type CopySecretOptions struct { genericiooptions.IOStreams // contains filtered or unexported fields }
func NewCopySecretOptions ¶
func NewCopySecretOptions(streams genericiooptions.IOStreams, client *kubernetes.Clientset) *CopySecretOptions
func (*CopySecretOptions) AddSingleSecret ¶
AddSingleSecret adds the named secret from the provided namespace to the list of secrets
func (*CopySecretOptions) AllSecretsFrom ¶
func (o *CopySecretOptions) AllSecretsFrom(ctx context.Context, ns string) error
AllSecretsFrom gets all secret objects from the provided namespace and loads them to the list of secrets
func (*CopySecretOptions) PutSecret ¶
PutSecret will create the provided secret in the destination ns
func (*CopySecretOptions) Run ¶
func (o *CopySecretOptions) Run(cmd *cobra.Command)
func (*CopySecretOptions) SourceSecrets ¶
func (o *CopySecretOptions) SourceSecrets(cmd *cobra.Command) error
SourceSecrets prepares all obtainable secrets from the origin ns
Click to show internal directories.
Click to hide internal directories.