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