k8s

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubectl

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

func New

func New(kubeconfig string) Kubectl

func (*Kubectl) ApplyFromPath

func (k *Kubectl) ApplyFromPath(path string)

func (*Kubectl) BinaryName

func (k *Kubectl) BinaryName() string

func (*Kubectl) BinaryPath

func (k *Kubectl) BinaryPath() string

func (*Kubectl) Command

func (k *Kubectl) Command() string

func (*Kubectl) CurrentVersion

func (k *Kubectl) CurrentVersion() string

func (*Kubectl) DeleteFromPath

func (k *Kubectl) DeleteFromPath(path string)

func (*Kubectl) DesiredVersion

func (k *Kubectl) DesiredVersion() string

func (*Kubectl) ForwardPort

func (k *Kubectl) ForwardPort(forwarder *PortForwarder)

func (*Kubectl) ReleaseURL

func (k *Kubectl) ReleaseURL() *url.URL

Installable

func (*Kubectl) SetBinaryPath

func (k *Kubectl) SetBinaryPath(path string)

func (*Kubectl) WaitForDaemonSetReady

func (k *Kubectl) WaitForDaemonSetReady(pod Pod, timeout time.Duration)

func (*Kubectl) WaitForStatefulSetReady

func (k *Kubectl) WaitForStatefulSetReady(pod Pod, timeout time.Duration)

type Label

type Label struct {
	Name  string
	Value string
}

func (*Label) Selector

func (l *Label) Selector() string

type Pod

type Pod struct {
	Namespace string
	Kind      string
	Name      string
	Label     Label
}

type PortForwarder

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

func NewPortForwarder

func NewPortForwarder(pod Pod, targetPort int32) *PortForwarder

func (*PortForwarder) ContainerPort

func (pf *PortForwarder) ContainerPort() int32

func (*PortForwarder) IsForwarding

func (pf *PortForwarder) IsForwarding() bool

func (*PortForwarder) Kind

func (pf *PortForwarder) Kind() string

func (*PortForwarder) LocalPort

func (pf *PortForwarder) LocalPort() int32

func (*PortForwarder) Name

func (pf *PortForwarder) Name() string

func (*PortForwarder) Namespace

func (pf *PortForwarder) Namespace() string

func (*PortForwarder) Stop

func (pf *PortForwarder) Stop()

func (*PortForwarder) String

func (pf *PortForwarder) String() string

func (*PortForwarder) URL

func (pf *PortForwarder) URL() *url.URL

Jump to

Keyboard shortcuts

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