Documentation
¶
Index ¶
- type Kubectl
- func (k *Kubectl) Apply(yamlfile string, modifier ...func(string) string) error
- func (k *Kubectl) Cp(local, remote, pod, container string) error
- func (k *Kubectl) Create(yamlfile string) error
- func (k *Kubectl) CreateLocalRolesAndSleep(yamlfile string) error
- func (k *Kubectl) CreateNS() error
- func (k *Kubectl) CreateSleep(yamlfile string) error
- func (k *Kubectl) DeleteNS() error
- func (k *Kubectl) Exec(pod, container, cmd string, args ...string) error
- func (k *Kubectl) ExecAsync(pod, container, cmd string, args ...string) error
- func (k *Kubectl) Logs(name string) ([]byte, error)
- func (k *Kubectl) Pods() (*v1.PodList, error)
- func (k *Kubectl) PortForward(name string) (*os.Process, string, error)
- func (k *Kubectl) Prepare(args ...string) *exec.Cmd
- func (k *Kubectl) Proxy() error
- func (k *Kubectl) StopProxy()
- func (k *Kubectl) WaitPods(ctx context.Context) error
- type Squash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubectl ¶
type Kubectl struct {
Context, Namespace string
// contains filtered or unexported fields
}
func NewKubectl ¶
func (*Kubectl) CreateLocalRolesAndSleep ¶ added in v0.3.0
func (*Kubectl) CreateSleep ¶ added in v0.3.0
func (*Kubectl) PortForward ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.