kubernetes

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 21 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 NewDeploymentRepository added in v0.8.0

func NewDeploymentRepository(kubernetes kubernetes.Interface) resource.DeploymentRepository

func NewJobRepository added in v0.5.3

func NewJobRepository(kubernetes kubernetes.Interface) resource.JobRepository

NewJobRepository returns a new JobRepository. The parameter is a go-client kubernetes client.

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 returns a new ServiceRepository It takes as parameter a go-client kubernetes client and the kubernetes cluster host (domain name or ip).

func NewStatefulsetRepository added in v0.8.0

func NewStatefulsetRepository(kubernetes kubernetes.Interface) resource.StatefulsetRepository

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) Deployments added in v0.8.0

func (c *Client) Deployments() resource.DeploymentRepository

func (*Client) Jobs added in v0.5.3

func (c *Client) Jobs() resource.JobRepository

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

func (*Client) Statefulsets added in v0.8.0

func (c *Client) Statefulsets() resource.StatefulsetRepository

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