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 ¶
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 ¶
GetClusterVersion returns the Kubernetes API version.
Click to show internal directories.
Click to hide internal directories.