Documentation
¶
Index ¶
- Constants
- type Controller
- func (c *Controller) Exists(om *metav1.ObjectMeta) (bool, error)
- func (c *Controller) GetDatabase(snapshot *api.Snapshot) (runtime.Object, error)
- func (c *Controller) GetSnapshotter(snapshot *api.Snapshot) (*batch.Job, error)
- func (c *Controller) PauseDatabase(dormantDb *api.DormantDatabase) error
- func (c *Controller) ResumeDatabase(dormantDb *api.DormantDatabase) error
- func (c *Controller) Run()
- func (c *Controller) RunAndHold()
- func (c *Controller) ValidateSnapshot(snapshot *api.Snapshot) error
- func (c *Controller) WipeOutDatabase(dormantDb *api.DormantDatabase) error
- func (c *Controller) WipeOutSnapshot(snapshot *api.Snapshot) error
- type Options
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 New ¶
func New( client kubernetes.Interface, apiExtKubeClient apiextensionsclient.ApiextensionsV1beta1Interface, extClient cs.KubedbV1alpha1Interface, promClient pcm.MonitoringV1Interface, cronController amc.CronControllerInterface, opt Options, ) *Controller
func (*Controller) Exists ¶
func (c *Controller) Exists(om *metav1.ObjectMeta) (bool, error)
func (*Controller) GetDatabase ¶
func (*Controller) GetSnapshotter ¶
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
Click to show internal directories.
Click to hide internal directories.