...

Package v1alpha1

import "kubevirt.io/api/migrations/v1alpha1"
Overview
Index

Overview ▾

Index ▾

Variables
func Kind(kind string) schema.GroupKind
func RegisterDefaults(scheme *runtime.Scheme) error
func Resource(resource string) schema.GroupResource
type LabelSelector
    func (in LabelSelector) DeepCopy() LabelSelector
    func (in LabelSelector) DeepCopyInto(out *LabelSelector)
type MigrationPolicy
    func (in *MigrationPolicy) DeepCopy() *MigrationPolicy
    func (in *MigrationPolicy) DeepCopyInto(out *MigrationPolicy)
    func (in *MigrationPolicy) DeepCopyObject() runtime.Object
    func (m *MigrationPolicy) GetMigrationConfByPolicy(clusterMigrationConfigurations *k6tv1.MigrationConfiguration) (changed bool, err error)
    func (MigrationPolicy) SwaggerDoc() map[string]string
type MigrationPolicyList
    func (in *MigrationPolicyList) DeepCopy() *MigrationPolicyList
    func (in *MigrationPolicyList) DeepCopyInto(out *MigrationPolicyList)
    func (in *MigrationPolicyList) DeepCopyObject() runtime.Object
    func (MigrationPolicyList) SwaggerDoc() map[string]string
type MigrationPolicySpec
    func (in *MigrationPolicySpec) DeepCopy() *MigrationPolicySpec
    func (in *MigrationPolicySpec) DeepCopyInto(out *MigrationPolicySpec)
    func (MigrationPolicySpec) SwaggerDoc() map[string]string
type MigrationPolicyStatus
    func (in *MigrationPolicyStatus) DeepCopy() *MigrationPolicyStatus
    func (in *MigrationPolicyStatus) DeepCopyInto(out *MigrationPolicyStatus)
    func (MigrationPolicyStatus) SwaggerDoc() map[string]string
type Selectors
    func (in *Selectors) DeepCopy() *Selectors
    func (in *Selectors) DeepCopyInto(out *Selectors)
    func (Selectors) SwaggerDoc() map[string]string

Package files

deepcopy_generated.go doc.go register.go types.go types_swagger_generated.go zz_generated.defaults.go

Variables

var (
    // SchemeGroupVersion is group version used to register these objects
    SchemeGroupVersion = schema.GroupVersion{Group: migrations.GroupName, Version: migrations.Version}

    // Group Version
    GroupVersion = schema.GroupVersion{Group: migrations.GroupName, Version: migrations.Version}

    // GroupVersionKind
    MigrationPolicyKind     = schema.GroupVersionKind{Group: migrations.GroupName, Version: migrations.Version, Kind: "MigrationPolicy"}
    MigrationPolicyListKind = schema.GroupVersionKind{Group: migrations.GroupName, Version: migrations.Version, Kind: "MigrationPolicyList"}
)
var (
    // SchemeBuilder initializes a scheme builder
    SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
    // AddToScheme is a global function that registers this API group & version to a scheme
    AddToScheme = SchemeBuilder.AddToScheme
)

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type LabelSelector

type LabelSelector map[string]string

func (LabelSelector) DeepCopy

func (in LabelSelector) DeepCopy() LabelSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector.

func (LabelSelector) DeepCopyInto

func (in LabelSelector) DeepCopyInto(out *LabelSelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MigrationPolicy

MigrationPolicy holds migration policy (i.e. configurations) to apply to a VM or group of VMs

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +genclient +genclient:nonNamespaced

type MigrationPolicy struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty"`
    Spec              MigrationPolicySpec `json:"spec" valid:"required"`
    // +nullable
    Status MigrationPolicyStatus `json:"status,omitempty"`
}

func (*MigrationPolicy) DeepCopy

func (in *MigrationPolicy) DeepCopy() *MigrationPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicy.

func (*MigrationPolicy) DeepCopyInto

func (in *MigrationPolicy) DeepCopyInto(out *MigrationPolicy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MigrationPolicy) DeepCopyObject

func (in *MigrationPolicy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*MigrationPolicy) GetMigrationConfByPolicy

func (m *MigrationPolicy) GetMigrationConfByPolicy(clusterMigrationConfigurations *k6tv1.MigrationConfiguration) (changed bool, err error)

GetMigrationConfByPolicy returns a new migration configuration. The new configuration attributes will be overridden by the migration policy if the specified attributes were defined for this policy. Otherwise they wouldn't change. The boolean returned value indicates if any changes were made to the configurations.

func (MigrationPolicy) SwaggerDoc

func (MigrationPolicy) SwaggerDoc() map[string]string

type MigrationPolicyList

MigrationPolicyList is a list of MigrationPolicy

+k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type MigrationPolicyList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty"`
    // +listType=atomic
    Items []MigrationPolicy `json:"items"`
}

func (*MigrationPolicyList) DeepCopy

func (in *MigrationPolicyList) DeepCopy() *MigrationPolicyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicyList.

func (*MigrationPolicyList) DeepCopyInto

func (in *MigrationPolicyList) DeepCopyInto(out *MigrationPolicyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MigrationPolicyList) DeepCopyObject

func (in *MigrationPolicyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (MigrationPolicyList) SwaggerDoc

func (MigrationPolicyList) SwaggerDoc() map[string]string

type MigrationPolicySpec

type MigrationPolicySpec struct {
    Selectors *Selectors `json:"selectors"`

    //+optional
    AllowAutoConverge *bool `json:"allowAutoConverge,omitempty"`
    //+optional
    BandwidthPerMigration *resource.Quantity `json:"bandwidthPerMigration,omitempty"`
    //+optional
    CompletionTimeoutPerGiB *int64 `json:"completionTimeoutPerGiB,omitempty"`
    //+optional
    AllowPostCopy *bool `json:"allowPostCopy,omitempty"`
}

func (*MigrationPolicySpec) DeepCopy

func (in *MigrationPolicySpec) DeepCopy() *MigrationPolicySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicySpec.

func (*MigrationPolicySpec) DeepCopyInto

func (in *MigrationPolicySpec) DeepCopyInto(out *MigrationPolicySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (MigrationPolicySpec) SwaggerDoc

func (MigrationPolicySpec) SwaggerDoc() map[string]string

type MigrationPolicyStatus

type MigrationPolicyStatus struct {
}

func (*MigrationPolicyStatus) DeepCopy

func (in *MigrationPolicyStatus) DeepCopy() *MigrationPolicyStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicyStatus.

func (*MigrationPolicyStatus) DeepCopyInto

func (in *MigrationPolicyStatus) DeepCopyInto(out *MigrationPolicyStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (MigrationPolicyStatus) SwaggerDoc

func (MigrationPolicyStatus) SwaggerDoc() map[string]string

type Selectors

type Selectors struct {
    //+optional
    NamespaceSelector LabelSelector `json:"namespaceSelector,omitempty"`
    //+optional
    VirtualMachineInstanceSelector LabelSelector `json:"virtualMachineInstanceSelector,omitempty"`
}

func (*Selectors) DeepCopy

func (in *Selectors) DeepCopy() *Selectors

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selectors.

func (*Selectors) DeepCopyInto

func (in *Selectors) DeepCopyInto(out *Selectors)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (Selectors) SwaggerDoc

func (Selectors) SwaggerDoc() map[string]string