scheduleservice

package
v3.5.5-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSchedule

func CreateSchedule(request *msgs.CreateScheduleRequest, ns string) msgs.CreateScheduleResponse

CreateSchedule

func CreateScheduleHandler

func CreateScheduleHandler(w http.ResponseWriter, r *http.Request)

CreateScheduleHandler ...

func DeleteSchedule

func DeleteSchedule(request *msgs.DeleteScheduleRequest, ns string) msgs.DeleteScheduleResponse

DeleteSchedule ...

func DeleteScheduleHandler

func DeleteScheduleHandler(w http.ResponseWriter, r *http.Request)

func ShowSchedule

func ShowSchedule(request *msgs.ShowScheduleRequest, ns string) msgs.ShowScheduleResponse

ShowSchedule ...

func ShowScheduleHandler

func ShowScheduleHandler(w http.ResponseWriter, r *http.Request)

Types

type Options

type Options struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

type PGBackRest

type PGBackRest struct {
	Deployment string    `json:"deployment,omitempty"`
	Label      string    `json:"label,omitempty"`
	Container  string    `json:"container,omitempty"`
	Type       string    `json:"type,omitempty"`
	Options    []Options `json:"options,omitempty"`
}

type PGBaseBackup

type PGBaseBackup struct {
	BackupHost      string `json:"backupHost,omitempty"`
	BackupPass      string `json:"backupPass,omitempty"`
	BackupPort      string `json:"backupPort,omitempty"`
	BackupUser      string `json:"backupUser,omitempty"`
	BackupVolume    string `json:"backupVolume,omitempty"`
	ImagePrefix     string `json:"imagePrefix,omitempty"`
	ImageTag        string `json:"imageTag,omitempty"`
	Secret          string `json:"secret,omitempty"`
	SecurityContext `json:"securityContext,omitempty"`
}

type PgScheduleSpec

type PgScheduleSpec struct {
	Version      string `json:"version"`
	Name         string `json:"name"`
	Cluster      string `json:"cluster"`
	Created      string `json:"created"`
	Schedule     string `json:"schedule"`
	Namespace    string `json:"namespace"`
	Type         string `json:"type"`
	PGBackRest   `json:"pgbackrest,omitempty"`
	PGBaseBackup `json:"pgbasebackup,omitempty"`
	Policy       `json:"policy,omitempty"`
}

type Policy

type Policy struct {
	Name        string `json:"name,omitempty"`
	Database    string `json:"database,omitempty"`
	Secret      string `json:"secret,omitempty"`
	ImagePrefix string `json:"imagePrefix,omitempty"`
	ImageTag    string `json:"imageTag,omitempty"`
}

type SecurityContext

type SecurityContext struct {
	FSGroup            string `json:"fsgroup,omitempty"`
	SupplementalGroups string `json:"supplementalGroups,omitempty"`
}

Jump to

Keyboard shortcuts

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