Documentation ¶
Overview ¶
Package cluster provides functions for dealing with Kubernetes clusters.
Index ¶
- Constants
- type Cluster
- func (c *Cluster) Client() kubernetes.Interface
- func (c *Cluster) CreateDaemonset(ctx context.Context, ds *appsv1.DaemonSet) (*appsv1.DaemonSet, error)
- func (c *Cluster) DeleteDaemonset(ctx context.Context, ds *appsv1.DaemonSet) error
- func (c *Cluster) WaitForDaemonset(ctx context.Context, ds *appsv1.DaemonSet) error
Constants ¶
View Source
const (
// NamespaceDefault is the name of the default Kubernetes namespace.
NamespaceDefault = "default"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster presents Kubernetes API method over a Kubernetes cluster.
func (*Cluster) Client ¶
func (c *Cluster) Client() kubernetes.Interface
Client returns the underlying Kubernetes client.
func (*Cluster) CreateDaemonset ¶
func (c *Cluster) CreateDaemonset(ctx context.Context, ds *appsv1.DaemonSet) (*appsv1.DaemonSet, error)
CreateDaemonset creates a daemonset with default options.
func (*Cluster) DeleteDaemonset ¶
DeleteDaemonset deletes a daemonset from this cluster.
Click to show internal directories.
Click to hide internal directories.