cmd

package
v0.0.0-...-16f4166 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDeployment

func ClearDeployment(ctx context.Context, clientset kubernetes.Interface, namespace, deploymentName string) error

gocoverkube clear

func ClearPod

func ClearPod(ctx context.Context, clientset kubernetes.Interface, namespace, podName string) error

gocoverkube clear

func Collect

func Collect(ctx context.Context, clientset kubernetes.Interface, config *rest.Config, namespace, deploymentName, outDst string) error

gocoverkube collect

func CollectPod

func CollectPod(ctx context.Context, clientset kubernetes.Interface, config *rest.Config, namespace, podName, outDst string) error

func InitDeployment

func InitDeployment(ctx context.Context, clientset kubernetes.Interface, namespace, deploymentName string) error

func InitPod

func InitPod(ctx context.Context, clientset kubernetes.Interface, namespace, podName string) error

gocoverkube init

func InitStorage

func InitStorage(ctx context.Context, clientset kubernetes.Interface, namespace string) error

func ServerVersion

func ServerVersion(clientset kubernetes.Interface) (*version.Info, error)

Types

type PodExec

type PodExec struct {
	RestConfig *rest.Config
	Clientset  kubernetes.Interface
}

func NewPodExec

func NewPodExec(config *rest.Config, clientset kubernetes.Interface) *PodExec

func (*PodExec) PodCopyFile

func (p *PodExec) PodCopyFile(src string, dst string, namespace string) error

Jump to

Keyboard shortcuts

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