Documentation ¶
Index ¶
- type Error
- type HookRef
- type Map
- type MigrationStatus
- func (r *MigrationStatus) ActiveSnapshot() *Snapshot
- func (in *MigrationStatus) DeepCopy() *MigrationStatus
- func (in *MigrationStatus) DeepCopyInto(out *MigrationStatus)
- func (r *MigrationStatus) FindVM(ref ref.Ref) (v *VMStatus, found bool)
- func (r *MigrationStatus) NewSnapshot(snapshot Snapshot)
- func (r *MigrationStatus) SnapshotWithMigration(uid types.UID) (found bool, snapshot *Snapshot)
- type Precopy
- type Snapshot
- type SnapshotMap
- type SnapshotRef
- type SnapshotRefPair
- type Step
- type Task
- type Timed
- type VM
- type VMStatus
- type Warm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error.
func (*Error) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Error.
func (*Error) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HookRef ¶
type HookRef struct { // Pipeline step. Step string `json:"step"` // Hook reference. Hook core.ObjectReference `json:"hook" ref:"Hook"` }
Plan hook.
func (*HookRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HookRef.
func (*HookRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Map ¶
type Map struct { // Network. Network core.ObjectReference `json:"network" ref:"NetworkMap"` // Storage. Storage core.ObjectReference `json:"storage" ref:"StorageMap"` }
Maps.
func (*Map) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Map.
func (*Map) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationStatus ¶
type MigrationStatus struct { Timed `json:",inline,omitempty"` // History History []Snapshot `json:"history,omitempty"` // VM status VMs []*VMStatus `json:"vms,omitempty"` }
Migration status.
func (*MigrationStatus) ActiveSnapshot ¶
func (r *MigrationStatus) ActiveSnapshot() *Snapshot
The active snapshot. This is the last snapshot in the history.
func (*MigrationStatus) DeepCopy ¶
func (in *MigrationStatus) DeepCopy() *MigrationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationStatus.
func (*MigrationStatus) DeepCopyInto ¶
func (in *MigrationStatus) DeepCopyInto(out *MigrationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MigrationStatus) FindVM ¶
func (r *MigrationStatus) FindVM(ref ref.Ref) (v *VMStatus, found bool)
Find a VM status.
func (*MigrationStatus) NewSnapshot ¶
func (r *MigrationStatus) NewSnapshot(snapshot Snapshot)
Add new snapshot.
func (*MigrationStatus) SnapshotWithMigration ¶
func (r *MigrationStatus) SnapshotWithMigration(uid types.UID) (found bool, snapshot *Snapshot)
Find snapshot for migration by UID.
type Precopy ¶
type Precopy struct { Start *meta.Time `json:"start,omitempty"` End *meta.Time `json:"end,omitempty"` Snapshot string `json:"snapshot,omitempty"` }
Precopy durations
func (*Precopy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Precopy.
func (*Precopy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Snapshot ¶
type Snapshot struct { // Conditions. libcnd.Conditions `json:",inline"` // Provider Provider SnapshotRefPair `json:"provider"` // Plan Plan SnapshotRef `json:"plan"` // Map. Map SnapshotMap `json:"map"` // Migration Migration SnapshotRef `json:"migration"` }
Snapshot
func (*Snapshot) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Snapshot.
func (*Snapshot) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotMap ¶
type SnapshotMap struct { Network SnapshotRef `json:"network"` Storage SnapshotRef `json:"storage"` }
Mapping.
func (*SnapshotMap) DeepCopy ¶
func (in *SnapshotMap) DeepCopy() *SnapshotMap
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotMap.
func (*SnapshotMap) DeepCopyInto ¶
func (in *SnapshotMap) DeepCopyInto(out *SnapshotMap)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotRef ¶
type SnapshotRef struct { Namespace string `json:"namespace"` Name string `json:"name"` UID types.UID `json:"uid"` Generation int64 `json:"generation"` }
Snapshot object reference.
func (*SnapshotRef) DeepCopy ¶
func (in *SnapshotRef) DeepCopy() *SnapshotRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotRef.
func (*SnapshotRef) DeepCopyInto ¶
func (in *SnapshotRef) DeepCopyInto(out *SnapshotRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnapshotRef) Match ¶
func (r *SnapshotRef) Match(object meta.Object) bool
Match the object and ref by UID/Generation.
func (*SnapshotRef) With ¶
func (r *SnapshotRef) With(object meta.Object)
Populate the ref using the specified (meta) object.
type SnapshotRefPair ¶
type SnapshotRefPair struct { Source SnapshotRef `json:"source"` Destination SnapshotRef `json:"destination"` }
Source and destination pair.
func (*SnapshotRefPair) DeepCopy ¶
func (in *SnapshotRefPair) DeepCopy() *SnapshotRefPair
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotRefPair.
func (*SnapshotRefPair) DeepCopyInto ¶
func (in *SnapshotRefPair) DeepCopyInto(out *SnapshotRefPair)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Step ¶
Pipeline step.
func (*Step) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Step.
func (*Step) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Task ¶
type Task struct { Timed `json:",inline"` // Name. Name string `json:"name"` // Name Description string `json:"description,omitempty"` // Phase Phase string `json:"phase,omitempty"` // Reason Reason string `json:"reason,omitempty"` // Progress. Progress libitr.Progress `json:"progress"` // Annotations. Annotations map[string]string `json:"annotations,omitempty"` // Error. Error *Error `json:"error,omitempty"` }
Migration task.
func (*Task) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task.
func (*Task) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Timed ¶
type Timed struct { // Started timestamp. Started *meta.Time `json:"started,omitempty"` // Completed timestamp. Completed *meta.Time `json:"completed,omitempty"` }
Resources that record started and completed timestamps.
func (*Timed) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Timed.
func (*Timed) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VM ¶
type VM struct { ref.Ref `json:",inline"` // Enable hooks. Hooks []HookRef `json:"hooks,omitempty"` }
A VM listed on the plan.
func (*VM) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VM.
func (*VM) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VMStatus ¶
type VMStatus struct { Timed `json:",inline"` VM `json:",inline"` // Migration pipeline. Pipeline []*Step `json:"pipeline"` // Phase Phase string `json:"phase"` // Errors Error *Error `json:"error,omitempty"` // Warm migration status Warm *Warm `json:"warm,omitempty"` // Source VM power state before migration. RestorePowerState string `json:"restorePowerState,omitempty"` // Conditions. libcnd.Conditions `json:",inline"` }
VM Status
func (*VMStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMStatus.
func (*VMStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Warm ¶
type Warm struct { Successes int `json:"successes"` Failures int `json:"failures"` ConsecutiveFailures int `json:"consecutiveFailures"` NextPrecopyAt *meta.Time `json:"nextPrecopyAt,omitempty"` Precopies []Precopy `json:"precopies,omitempty"` }
Warm Migration status
func (*Warm) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Warm.
func (*Warm) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.