Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup interface { // Request requests a backup. Request returns nil, once a backup is made successfully. // Or it returns an error. Request(ctx context.Context) error // Exist checks if there is a backup available for the specific version of etcd cluster. Exist(ctx context.Context, v string) (bool, error) // ServiceStatus returns the backup service status. ServiceStatus(ctx context.Context) (*backupapi.ServiceStatus, error) }
type Operator ¶
type Operator interface { // Create creates an etcd cluster. Create(ctx context.Context, name string, spec spec.ClusterSpec) error // Delete deletes the etcd cluster. Delete(ctx context.Context, name string) error // Update updates the etcd cluster with the given spec. Update(ctx context.Context, name string, spec spec.ClusterSpec) error // Get gets the etcd cluster information. Get(ctx context.Context, name string) (*spec.Cluster, error) // List lists all etcd clusters. List(ctx context.Context) (*spec.ClusterList, error) }
NOTE: This is experimental client. We will likely change it in the future Operator operates etcd clusters atop Kubernetes.
func NewOperator ¶
Click to show internal directories.
Click to hide internal directories.