backupjob

package
v0.0.0-...-884d9dc Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupJob

type BackupJob struct {
	XMLName            xml.Name            `xml:"BACKUPJOB"`
	ID                 int                 `xml:"ID,omitempty"`
	UID                int                 `xml:"UID,omitempty"`
	GID                int                 `xml:"GID,omitempty"`
	UName              string              `xml:"UNAME,omitempty"`
	GName              string              `xml:"GNAME,omitempty"`
	Name               string              `xml:"NAME"`
	LockInfos          *shared.Lock        `xml:"LOCK,omitempty"`
	Permissions        *shared.Permissions `xml:"PERMISSIONS,omitempty"`
	Priority           int                 `xml:"PRIORITY,omitempty"`
	LastBackupTime     int                 `xml:"LAST_BACKUP_TIME,omitempty"`
	LastBackupDuration int                 `xml:"LAST_BACKUP_DURATION,omitempty"`
	UpdatedVMs         shared.EntitiesID   `xml:"UPDATED_VMS,omitempty"`
	OutdatedVMs        shared.EntitiesID   `xml:"OUTDATED_VMS,omitempty"`
	BackingUpVMs       shared.EntitiesID   `xml:"BACKING_UP_VMS,omitempty"`
	ErrorVMs           shared.EntitiesID   `xml:"ERROR_VMS,omitempty"`
	Template           Template            `xml:"TEMPLATE"`
}

BackupJob represents an OpenNebula Backup Job

type Pool

type Pool struct {
	XMLName    xml.Name    `xml:"BACKUPJOB_POOL"`
	BackupJobs []BackupJob `xml:"BACKUPJOB"`
}

Pool represents an OpenNebula Backup Job pool

type SchedAction

type SchedAction struct {
	dyn.Vector
}

func (*SchedAction) Add

func (t *SchedAction) Add(key keys.SchedAction, value interface{})

Add adds a SchedAction key, value pair

func (*SchedAction) Get

func (t *SchedAction) Get(key keys.SchedAction) (string, error)

Get retrieve a SchedAction key

type Template

type Template struct {
	dyn.Template
}

Template is the dynamic part of the Backup Job entity

func NewTemplate

func NewTemplate() *Template

NewTemplate returns an image template

func (*Template) Add

func (t *Template) Add(key keys.Template, value interface{})

Add adds an Backup Job template key, value pair

func (*Template) Get

func (t *Template) Get(key keys.Template) (string, error)

Get return the string value of a template Backup Job key

func (*Template) GetI

func (n *Template) GetI(key keys.Template) (int, error)

GetI returns the integer value for an Backup Job template key

func (*Template) GetSchedActions

func (t *Template) GetSchedActions() []SchedAction

GetSchedActions allow to get Scheduled Actions from Template

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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