controller

package
v0.0.0-...-455d1a7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// Kubernetes client
	Client kubernetes.Interface
	// Api Extension Client
	ApiExtKubeClient crd_cs.ApiextensionsV1beta1Interface
	// ThirdPartyExtension client
	ExtClient cs.KubedbV1alpha1Interface
}

func (*Controller) CreateGoverningService

func (c *Controller) CreateGoverningService(name, namespace string) error

func (*Controller) DeletePersistentVolumeClaims

func (c *Controller) DeletePersistentVolumeClaims(namespace string, selector labels.Selector) error

func (*Controller) DeleteSnapshotData

func (c *Controller) DeleteSnapshotData(snapshot *api.Snapshot) error

func (*Controller) DeleteSnapshots

func (c *Controller) DeleteSnapshots(namespace string, selector labels.Selector) error

func (*Controller) SetJobOwnerReference

func (c *Controller) SetJobOwnerReference(snapshot *api.Snapshot, job *batch.Job) error

type Deleter

type Deleter interface {
	Exists(*metav1.ObjectMeta) (bool, error)
	PauseDatabase(*api.DormantDatabase) error
	WipeOutDatabase(*api.DormantDatabase) error
	ResumeDatabase(*api.DormantDatabase) error
}

type Snapshotter

type Snapshotter interface {
	ValidateSnapshot(*api.Snapshot) error
	GetDatabase(metav1.ObjectMeta) (runtime.Object, error)
	GetSnapshotter(*api.Snapshot) (*batch.Job, error)
	WipeOutSnapshot(*api.Snapshot) error
	SetDatabaseStatus(metav1.ObjectMeta, api.DatabasePhase, string) error
	UpsertDatabaseAnnotation(metav1.ObjectMeta, map[string]string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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