kube

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyLocalFileToPod

func CopyLocalFileToPod(ctx context.Context, config *restclient.Config, namespace string, podName string, container string, localFile string, rename string, remotePath string) error

func ExecutePodCmd

func ExecutePodCmd(ctx context.Context, config *restclient.Config, namespace string, podName string, container string, command string, stdin io.Reader) ([]byte, []byte, error)

Types

type PodPortForwarder

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

func NewPodPortForwarder

func NewPodPortForwarder(restConfig *rest.Config, namespace string, podName string, localPort, remotePort int32) *PodPortForwarder

func (*PodPortForwarder) PodName

func (p *PodPortForwarder) PodName() string

func (*PodPortForwarder) Start

func (p *PodPortForwarder) Start() error

func (*PodPortForwarder) Stop

func (p *PodPortForwarder) Stop()

Jump to

Keyboard shortcuts

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