k8sClient

package
v0.0.0-...-51273b1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*http.Client
	Host             string
	Username         string
	Token            string
	CurrentNamespace string
}

func NewClientOrDie

func NewClientOrDie() *Client

func (*Client) Get

func (c *Client) Get(url string) (resp *http.Response, err error)

func (*Client) LaunchPod

func (c *Client) LaunchPod(namespace string, pod *v1.Pod) (*http.Response, error)

func (*Client) Pod

func (c *Client) Pod(namespace string, podName string) (*v1.Pod, error)

func (*Client) PodList

func (c *Client) PodList(namespace string) (*v1.PodList, error)

func (*Client) Post

func (c *Client) Post(url string, body []byte) (resp *http.Response, err error)

Jump to

Keyboard shortcuts

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