snapshot

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2017 License: BSD-3-Clause Imports: 8 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 Authentication added in v0.0.4

type Authentication struct {
	// contains filtered or unexported fields
}

Authentication stores credentials used to authenticate against snapshot endpoint

type Scheduler

type Scheduler struct {
	Kclient kubernetes.Interface
	// contains filtered or unexported fields
}

Scheduler stores info about how to snapshot the cluster

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)

CreateCronJob creates a cron job

func (*Scheduler) CreateSnapshot

func (s *Scheduler) CreateSnapshot()

CreateSnapshot creates snapshot cronjob

func (*Scheduler) CreateSnapshotRepository

func (s *Scheduler) CreateSnapshotRepository()

CreateSnapshotRepository creates the snapshot repository cronjob

func (*Scheduler) Init added in v0.0.5

func (s *Scheduler) Init()

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