files

package
v1.6.20 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyOptions

type CopyOptions struct {
	// contains filtered or unexported fields
}

CopyOptions is options for copying files from a source to a destination

func Copy

func Copy(client kubernetes.Client) *CopyOptions

Copy returns a new copier

func (*CopyOptions) Do

func (c *CopyOptions) Do() error

Do executes the copy to the pod

func (*CopyOptions) From

func (c *CopyOptions) From(src string) *CopyOptions

From sets the copy source

func (*CopyOptions) On

func (c *CopyOptions) On(pod string, container ...string) *CopyOptions

On sets the copy destination pod

func (*CopyOptions) To

func (c *CopyOptions) To(dest string) *CopyOptions

To sets the copy destination path

type EchoOptions

type EchoOptions struct {
	// contains filtered or unexported fields
}

EchoOptions is options for echoing output to a file

func Echo

func Echo(client kubernetes.Client) *EchoOptions

Echo returns a new echo client

func (*EchoOptions) Bytes

func (o *EchoOptions) Bytes(bytes []byte) *EchoOptions

Bytes sets the bytes to echo

func (*EchoOptions) Do

func (o *EchoOptions) Do() error

Do executes the copy to the pod

func (*EchoOptions) On

func (o *EchoOptions) On(pod string, container ...string) *EchoOptions

On configures the copy destination pod

func (*EchoOptions) String

func (o *EchoOptions) String(s string) *EchoOptions

Contents sets the contents to echo

func (*EchoOptions) To

func (o *EchoOptions) To(filename string) *EchoOptions

To configures the file to which to echo

Jump to

Keyboard shortcuts

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