kube

package
v2.0.0-alpha.2....-016e503 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2016 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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