util

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPods

func GetPods(ctx context.Context, namespace string, label string) ([]string, error)

GetPods returns a list of pods.

func KubeCtlCommand

func KubeCtlCommand(ctx context.Context, arg ...string) *exec.Cmd

KubeCtlCommand returns a kubectl command.

Types

type PodExec

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

PodExec represents a pod exec information.

func NewPodExec

func NewPodExec(namespace string, name string, container string) *PodExec

NewPodExec creates a new PodExec.

func (*PodExec) Command

func (p *PodExec) Command(ctx context.Context, arg ...string) *exec.Cmd

Command returns a pod exec command.

Jump to

Keyboard shortcuts

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