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
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
Click to show internal directories.
Click to hide internal directories.