kube

package
v0.0.0-...-f3b21c9 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(context string) clientcmd.ClientConfig

GetConfig returns a kubernetes client config for a given context.

Types

type Client

type Client struct {
	cmdutil.Factory
	// SchemaCacheDir is the path for loading cached schema.
	SchemaCacheDir string
}

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) CheckNamespace

func (c *Client) CheckNamespace(namespace string)

func (*Client) CreateCSR

func (c *Client) CreateCSR(req *certificates.CertificateSigningRequest)

func (*Client) CreateSecret

func (c *Client) CreateSecret(req *secrets.SecretObj)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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