Documentation ¶
Index ¶
- func GetKubernetesHost(configFilePath string) string
- func KubeConfigDefaultPath() string
- func NewClusterRepository() resource.ClusterRepository
- func NewDeploymentRepository(kubernetes kubernetes.Interface) resource.DeploymentRepository
- func NewJobRepository(kubernetes kubernetes.Interface) resource.JobRepository
- func NewNamespaceRepository(kubernetes kubernetes.Interface) resource.NamespaceRepository
- func NewPodRepository(kubernetes kubernetes.Interface) resource.PodRepository
- func NewServiceRepository(kubernetes kubernetes.Interface, host string) resource.ServiceRepository
- func NewStatefulsetRepository(kubernetes kubernetes.Interface) resource.StatefulsetRepository
- type Client
- func (c *Client) Cluster() resource.ClusterRepository
- func (c *Client) Deployments() resource.DeploymentRepository
- func (c *Client) Jobs() resource.JobRepository
- func (c *Client) Namespaces() resource.NamespaceRepository
- func (c *Client) Pods() resource.PodRepository
- func (c *Client) Services() resource.ServiceRepository
- func (c *Client) Statefulsets() resource.StatefulsetRepository
- type ClusterRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKubernetesHost ¶ added in v0.2.1
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 (*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)