kubernetes

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubernetesHost added in v0.2.1

func GetKubernetesHost(configFilePath string) string

GetKubernetesHost return the kubernetes cluster domain name used in the ~/.kube/config file The returned host takes the form : mydomainname.com Notice : this is just the host, without any schema or port.

func KubeConfigDefaultPath added in v0.4.0

func KubeConfigDefaultPath() string

KubeConfigDefaultPath return the kubernetes default config path

func NewClusterRepository added in v0.4.3

func NewClusterRepository() resource.ClusterRepository

func NewNamespaceRepository added in v0.2.1

func NewNamespaceRepository(kubernetes kubernetes.Interface) resource.NamespaceRepository

NewNamespaceRepository returns a new NamespaceRepository. The parameter is a go-client Kubernetes client

func NewPodRepository added in v0.2.1

func NewPodRepository(kubernetes kubernetes.Interface) resource.PodRepository

NewPodRepository returns a new PodRepository. The parameter is a go-client kubernetes client.

func NewServiceRepository added in v0.2.1

func NewServiceRepository(kubernetes kubernetes.Interface, host string) resource.ServiceRepository

NewServiceRepository retuns a new ServiceRespository It takes as parameter a go-client kubernetes client and the kubernetes cluster host (domain name or ip).

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(configFilePath string) (*Client, error)

NewClient return a new kubernetes client

func (*Client) Cluster added in v0.4.3

func (c *Client) Cluster() resource.ClusterRepository

func (*Client) Namespaces added in v0.3.0

func (c *Client) Namespaces() resource.NamespaceRepository

func (*Client) Pods added in v0.3.0

func (c *Client) Pods() resource.PodRepository

func (*Client) Services added in v0.3.0

func (c *Client) Services() resource.ServiceRepository

type ClusterRepository added in v0.4.3

type ClusterRepository struct{}

func (ClusterRepository) GetVersion added in v0.4.3

func (r ClusterRepository) GetVersion() (*resource.Version, error)

Jump to

Keyboard shortcuts

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