kube

package
v0.0.0-...-16b7309 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrConfigNotFound is thrown if there is not a confgiuration file for Kubernetes.
	ErrConfigNotFound = errors.New("config not found")
)

Functions

This section is empty.

Types

type Client

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

Client implements an API client for a Kubernetes cluster.

func NewClient

func NewClient(cluster bool, kubeconfig string) (*Client, error)

NewClient returns a new API client for a Kubernetes cluster. If the cluster parameter is true the client is configured inside the cluster. If the cluster parameter is false the client is configures outside the cluster.

func (*Client) GetClusterVersion

func (c *Client) GetClusterVersion() (string, error)

GetClusterVersion returns the Kubernetes API version.

func (*Client) GetImages

func (c *Client) GetImages() ([]string, error)

GetImages returns all images of all containers in the Kubernetes cluster.

Jump to

Keyboard shortcuts

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