kubernetes

package
v0.0.0-...-d883a27 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientConfig

func NewClientConfig(config *ClientConfig) (*rest.Config, error)

NewClientConfig returns a configuration object that can be used to configure a client in order to contact an API server with.

func NewClientWithConfig

func NewClientWithConfig(config *ClientConfig) (*client.Clientset, error)

NewClientWithConfig will create a new client able to talk to a Kubernetes API server.

Types

type ClientConfig

type ClientConfig struct {
	CertificateAuthority string
	ClientCertificate    string
	ClientKey            string
	Cluster              string
	Context              string
	Insecure             bool
	Kubeconfig           string
	Password             string
	Server               string
	Token                string
	User                 string
	Username             string
}

ClientConfig holds configuration options for API server clients.

Jump to

Keyboard shortcuts

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