snapshot

package
v0.0.0-...-1ea1a29 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

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(repoType, bucketName, cronSchedule string, enabled, useSSL bool, userName, password, image,
	elasticURL, clusterName, namespace, repoAccessKey, repoSecretKey, repoRegion string, kc kubernetes.Interface) *Scheduler

New creates an instance of Scheduler

func (*Scheduler) CreateCronJob

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

func (s *Scheduler) Init() error

Init creates the snapshot repository cronjob

func (*Scheduler) Stop

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