Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=stork.libopenstorage.org
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ClusterPair
- type ClusterPairList
- type ClusterPairSpec
- type ClusterPairStatus
- type ClusterPairStatusType
- type Migration
- type MigrationList
- type MigrationSpec
- type MigrationStageType
- type MigrationStatus
- type MigrationStatusType
- type ResourceInfo
- type Rule
- type RuleAction
- type RuleActionType
- type RuleItem
- type RuleList
- type VolumeInfo
Constants ¶
const ( // RuleActionCommand is a command action RuleActionCommand RuleActionType = "command" // ClusterPairResourceName is name for "clusterpair" resource ClusterPairResourceName = "clusterpair" // ClusterPairResourcePlural is plural for "clusterpair" resource ClusterPairResourcePlural = "clusterpairs" // MigrationResourceName is name for "migration" resource MigrationResourceName = "migration" // MigrationResourcePlural is plural for "migration" resource MigrationResourcePlural = "migrations" )
Variables ¶
var ( // SchemeBuilder is the scheme builder for the types SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: stork.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterPair ¶ added in v1.4.0
type ClusterPair struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec ClusterPairSpec `json:"spec"` Status ClusterPairStatus `json:"status,omitempty"` }
ClusterPair represents pairing with other clusters
func (*ClusterPair) DeepCopy ¶ added in v1.4.0
func (in *ClusterPair) DeepCopy() *ClusterPair
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPair.
func (*ClusterPair) DeepCopyInto ¶ added in v1.4.0
func (in *ClusterPair) DeepCopyInto(out *ClusterPair)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPair) DeepCopyObject ¶ added in v1.4.0
func (in *ClusterPair) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterPairList ¶ added in v1.4.0
type ClusterPairList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []ClusterPair `json:"items"` }
ClusterPairList is a list of cluster pairs
func (*ClusterPairList) DeepCopy ¶ added in v1.4.0
func (in *ClusterPairList) DeepCopy() *ClusterPairList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPairList.
func (*ClusterPairList) DeepCopyInto ¶ added in v1.4.0
func (in *ClusterPairList) DeepCopyInto(out *ClusterPairList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPairList) DeepCopyObject ¶ added in v1.4.0
func (in *ClusterPairList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterPairSpec ¶ added in v1.4.0
type ClusterPairSpec struct { Config api.Config `json:"config"` Options map[string]string `json:"options"` }
ClusterPairSpec is the spec to create the cluster pair
func (*ClusterPairSpec) DeepCopy ¶ added in v1.4.0
func (in *ClusterPairSpec) DeepCopy() *ClusterPairSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPairSpec.
func (*ClusterPairSpec) DeepCopyInto ¶ added in v1.4.0
func (in *ClusterPairSpec) DeepCopyInto(out *ClusterPairSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPairStatus ¶ added in v1.4.0
type ClusterPairStatus struct { // Status of the pairing with the scheduler // +optional SchedulerStatus ClusterPairStatusType `json:"schedulerStatus"` // Status of pairing with the storage driver // +optional StorageStatus ClusterPairStatusType `json:"storageStatus"` // ID of the remote storage which is paired // +optional RemoteStorageID string `json:"remoteStorageId"` }
ClusterPairStatus is the status of the cluster pair
func (*ClusterPairStatus) DeepCopy ¶ added in v1.4.0
func (in *ClusterPairStatus) DeepCopy() *ClusterPairStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPairStatus.
func (*ClusterPairStatus) DeepCopyInto ¶ added in v1.4.0
func (in *ClusterPairStatus) DeepCopyInto(out *ClusterPairStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPairStatusType ¶ added in v1.4.0
type ClusterPairStatusType string
ClusterPairStatusType is the status of the pair
const ( // ClusterPairStatusInitial is the initial state when pairing is created ClusterPairStatusInitial ClusterPairStatusType = "" // ClusterPairStatusPending for when pairing is still pending ClusterPairStatusPending ClusterPairStatusType = "Pending" // ClusterPairStatusReady for when pair is ready ClusterPairStatusReady ClusterPairStatusType = "Ready" // ClusterPairStatusError for when pairing is in error state ClusterPairStatusError ClusterPairStatusType = "Error" // ClusterPairStatusDegraded for when pairing is degraded ClusterPairStatusDegraded ClusterPairStatusType = "Degraded" // ClusterPairStatusDeleting for when pairing is being deleted ClusterPairStatusDeleting ClusterPairStatusType = "Deleting" )
type Migration ¶ added in v1.4.0
type Migration struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec MigrationSpec `json:"spec"` Status MigrationStatus `json:"status"` }
Migration represents migration status
func (*Migration) DeepCopy ¶ added in v1.4.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Migration.
func (*Migration) DeepCopyInto ¶ added in v1.4.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Migration) DeepCopyObject ¶ added in v1.4.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MigrationList ¶ added in v1.4.0
type MigrationList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []Migration `json:"items"` }
MigrationList is a list of Migrations
func (*MigrationList) DeepCopy ¶ added in v1.4.0
func (in *MigrationList) DeepCopy() *MigrationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationList.
func (*MigrationList) DeepCopyInto ¶ added in v1.4.0
func (in *MigrationList) DeepCopyInto(out *MigrationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MigrationList) DeepCopyObject ¶ added in v1.4.0
func (in *MigrationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MigrationSpec ¶ added in v1.4.0
type MigrationSpec struct { ClusterPair string `json:"clusterPair"` Namespaces []string `json:"namespaces"` IncludeResources bool `json:"includeResources"` StartApplications bool `json:"startApplications"` Selectors map[string]string `json:"selectors"` }
MigrationSpec is the spec used to migrate apps between clusterpairs
func (*MigrationSpec) DeepCopy ¶ added in v1.4.0
func (in *MigrationSpec) DeepCopy() *MigrationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationSpec.
func (*MigrationSpec) DeepCopyInto ¶ added in v1.4.0
func (in *MigrationSpec) DeepCopyInto(out *MigrationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationStageType ¶ added in v1.4.0
type MigrationStageType string
MigrationStageType is the stage of the migration
const ( // MigrationStageInitial for when migration is created MigrationStageInitial MigrationStageType = "" // MigrationStageVolumes for when volumes are being migrated MigrationStageVolumes MigrationStageType = "Volumes" // MigrationStageApplications for when applications are being migrated MigrationStageApplications MigrationStageType = "Applications" // MigrationStageFinal is the final stage for migration MigrationStageFinal MigrationStageType = "Final" )
type MigrationStatus ¶ added in v1.4.0
type MigrationStatus struct { Stage MigrationStageType `json:"stage"` Status MigrationStatusType `json:"status"` Resources []*ResourceInfo `json:"resources"` Volumes []*VolumeInfo `json:"volumes"` }
MigrationStatus is the status of a migration operation
func (*MigrationStatus) DeepCopy ¶ added in v1.4.0
func (in *MigrationStatus) DeepCopy() *MigrationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationStatus.
func (*MigrationStatus) DeepCopyInto ¶ added in v1.4.0
func (in *MigrationStatus) DeepCopyInto(out *MigrationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationStatusType ¶ added in v1.4.0
type MigrationStatusType string
MigrationStatusType is the status of the migration
const ( // MigrationStatusInitial is the initial state when migration is created MigrationStatusInitial MigrationStatusType = "" // MigrationStatusPending for when migration is still pending MigrationStatusPending MigrationStatusType = "Pending" // MigrationStatusCaptured for when migration specs have been captured MigrationStatusCaptured MigrationStatusType = "Captured" // MigrationStatusInProgress for when migration is in progress MigrationStatusInProgress MigrationStatusType = "InProgress" // MigrationStatusFailed for when migration has failed MigrationStatusFailed MigrationStatusType = "Failed" // MigrationStatusPartialSuccess for when migration was partially successful MigrationStatusPartialSuccess MigrationStatusType = "PartialSuccess" // MigrationStatusSuccessful for when migration has completed successfully MigrationStatusSuccessful MigrationStatusType = "Successful" )
type ResourceInfo ¶
type ResourceInfo struct { Name string `json:"name"` Namespace string `json:"namespace"` meta.GroupVersionKind `json:",inline"` Status MigrationStatusType `json:"status"` Reason string `json:"reason"` }
ResourceInfo is the info for the migration of a resource
func (*ResourceInfo) DeepCopy ¶
func (in *ResourceInfo) DeepCopy() *ResourceInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceInfo.
func (*ResourceInfo) DeepCopyInto ¶
func (in *ResourceInfo) DeepCopyInto(out *ResourceInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Rule ¶
type Rule struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec []RuleItem `json:"spec"` }
Rule denotes an object to declare a rule that performs actions on pods
func (*Rule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rule) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RuleAction ¶
type RuleAction struct { // Type is a type of the stork rule action Type RuleActionType `json:"type"` // Background indicates that the action needs to be performed in the background // +optional Background bool `json:"background,omitempty"` // RunInSinglePod indicates that the action needs to be performed in a single pod // from the list of pods that match the selector // +optional RunInSinglePod bool `json:"runInSinglePod,omitempty"` // Value is the actual action value for e.g the command to run Value string `json:"value"` }
RuleAction represents an action in a stork rule item
func (*RuleAction) DeepCopy ¶
func (in *RuleAction) DeepCopy() *RuleAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleAction.
func (*RuleAction) DeepCopyInto ¶
func (in *RuleAction) DeepCopyInto(out *RuleAction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleActionType ¶
type RuleActionType string
RuleActionType is a type for actions that are supported in a stork rule
type RuleItem ¶
type RuleItem struct { // PodSelector is a map of key value pairs that are used to select the pods using their labels PodSelector map[string]string `json:"podSelector"` // Actions are actions to be performed on the pods selected using the selector Actions []RuleAction `json:"actions"` }
RuleItem represents one items in a stork rule spec
func (*RuleItem) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleItem.
func (*RuleItem) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleList ¶
type RuleList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []Rule `json:"items"` }
RuleList is a list of stork rules
func (*RuleList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList.
func (*RuleList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuleList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeInfo ¶
type VolumeInfo struct { PersistentVolumeClaim string `json:"persistentVolumeClaim"` Namespace string `json:"namespace"` Volume string `json:"volume"` Status MigrationStatusType `json:"status"` Reason string `json:"reason"` }
VolumeInfo is the info for the migration of a volume
func (*VolumeInfo) DeepCopy ¶
func (in *VolumeInfo) DeepCopy() *VolumeInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeInfo.
func (*VolumeInfo) DeepCopyInto ¶
func (in *VolumeInfo) DeepCopyInto(out *VolumeInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.