kube

package
v2.0.0-alpha.2+incompa... Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: Apache-2.0 Imports: 14 Imported by: 1,328

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*cmdutil.Factory
}

Client represents a client capable of communicating with the Kubernetes API.

func New

func New(config clientcmd.ClientConfig) *Client

New create a new Client

func (*Client) Create

func (c *Client) Create(namespace string, reader io.Reader) error

Create creates kubernetes resources from an io.reader

Namespace will set the namespace

func (*Client) Delete

func (c *Client) Delete(namespace string, reader io.Reader) error

Delete deletes kubernetes resources from an io.reader

Namespace will set the namespace

func (*Client) ForwardPort

func (c *Client) ForwardPort(namespace, podName string, remote int) (*Tunnel, error)

ForwardPort opens a tunnel to a kubernetes pod

type ResourceActorFunc

type ResourceActorFunc func(*resource.Info) error

ResourceActorFunc performs an action on a signle resource.

type Tunnel

type Tunnel struct {
	Local  int
	Remote int
	// contains filtered or unexported fields
}

Tunnel describes a ssh-like tunnel to a kubernetes pod

func (*Tunnel) Close

func (t *Tunnel) Close()

Close disconnects a tunnel connection

Jump to

Keyboard shortcuts

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