controller

package
v0.0.0-...-bf99edf Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SnapshotProcess_Backup = "backup"
)
View Source
const (
	SnapshotProcess_Restore = "restore"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*amc.Controller
	// Api Extension Client
	ApiExtKubeClient apiextensionsclient.ApiextensionsV1beta1Interface
	// contains filtered or unexported fields
}

func (*Controller) Exists

func (c *Controller) Exists(om *metav1.ObjectMeta) (bool, error)

func (*Controller) GetDatabase

func (c *Controller) GetDatabase(snapshot *api.Snapshot) (runtime.Object, error)

func (*Controller) GetSnapshotter

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

func (*Controller) PauseDatabase

func (c *Controller) PauseDatabase(dormantDb *api.DormantDatabase) error

func (*Controller) ResumeDatabase

func (c *Controller) ResumeDatabase(dormantDb *api.DormantDatabase) error

func (*Controller) Run

func (c *Controller) Run()

Blocks caller. Intended to be called as a Go routine.

func (*Controller) RunAndHold

func (c *Controller) RunAndHold()

Blocks caller. Intended to be called as a Go routine.

func (*Controller) ValidateSnapshot

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

func (*Controller) WipeOutDatabase

func (c *Controller) WipeOutDatabase(dormantDb *api.DormantDatabase) error

func (*Controller) WipeOutSnapshot

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

type Options

type Options struct {
	// Operator namespace
	OperatorNamespace string
	// Exporter tag
	ExporterTag string
	// Governing service
	GoverningService string
	// Address to listen on for web interface and telemetry.
	Address string
	// Enable RBAC for database workloads
	EnableRbac bool
}

Jump to

Keyboard shortcuts

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