snapshot

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: BSD-3-Clause Imports: 9 Imported by: 8

Documentation

Index

Constants

View Source
const (
	CRON_ACTION_REPOSITORY = "create-repository"
	CRON_ACTION_SNAPSHOT   = "snapshot"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

type Scheduler struct {
	Kclient kubernetes.Interface
	CRD     enterprisesv1.Scheduler
}

func New

func New(bucketName, cronSchedule string, enabled bool, userName, password, svcURL, clusterName, namespace string, kc kubernetes.Interface) *Scheduler

New creates an instance of Scheduler

func (*Scheduler) CreateCronJob added in v0.0.5

func (s *Scheduler) CreateCronJob(namespace, clusterName, action, cronSchedule string) error

CreateCronJob creates a cron job

func (*Scheduler) CreateSnapshot

func (s *Scheduler) CreateSnapshot() error

CreateSnapshot creates snapshot cronjob

func (*Scheduler) CreateSnapshotRepository

func (s *Scheduler) CreateSnapshotRepository() error

CreateSnapshotRepository creates the snapshot repository cronjob

func (*Scheduler) Init added in v0.0.5

func (s *Scheduler) Init() error

Init creates the snapshot repository cronjob

func (*Scheduler) Stop added in v0.0.4

func (s *Scheduler) Stop()

Stop cleans up Cron

Jump to

Keyboard shortcuts

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