experimentalclient

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

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)
}

func NewBackup

func NewBackup(c *http.Client, scheme, clusterName string) Backup

func NewBackupWithAddr

func NewBackupWithAddr(c *http.Client, scheme, addr string) Backup

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

func NewOperator(namespace string) (Operator, error)

Jump to

Keyboard shortcuts

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