cmd

package
v0.0.0-...-dec663e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func (o *CopySecretOptions) AddSingleSecret(ctx context.Context, ns string, name string) error

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

func (o *CopySecretOptions) PutSecret(ctx context.Context, dest string, secret *apiv1.Secret) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL