plugin

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MatchVersionKubeConfigFlags *cmdutil.MatchVersionFlags

Functions

func NewCmdCp added in v0.2.0

func NewCmdCp(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdCp creates a new 'cp' command for the rexec plugin. It supports copying files and directories from containers to the local filesystem with auditing.

func Rexec

func Rexec()

Types

type CopyOptions added in v0.2.0

type CopyOptions struct {
	Container    string
	Namespace    string
	ClientConfig *restclient.Config
	Clientset    kubernetes.Interface
	IOStreams    genericiooptions.IOStreams

	// MaxArchiveBytes bounds the tar stream read from the pod and the total
	// extracted content. MaxEntries bounds the number of tar entries.
	// Zero values fall back to the defaults; the flags set explicit values.
	MaxArchiveBytes int64
	MaxEntries      int64
}

CopyOptions contains the options for the audited copy command.

func (*CopyOptions) Complete added in v0.2.0

func (o *CopyOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete sets up the options for the copy command by initializing Kubernetes clients and configuration.

func (*CopyOptions) RunWithArgs added in v0.2.0

func (o *CopyOptions) RunWithArgs(ctx context.Context, src, dest string) error

RunWithArgs parses the source and destination specifications and initiates the copy operation from the pod.

func (*CopyOptions) Validate added in v0.2.0

func (o *CopyOptions) Validate() error

Validate ensures that the required configuration for the copy command is present.

type RexecOptoins

type RexecOptoins struct {
	*cmdexec.ExecOptions
}

func NewRexecOptions

func NewRexecOptions(e *cmdexec.ExecOptions) *RexecOptoins

Jump to

Keyboard shortcuts

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