migrate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion                   = "v1alpha1"
	LocalVolumeMigrateKind       = "LocalVolumeMigrate"
	LocalVolumeMigrateAPIVersion = "hwameistor.io" + "/" + APIVersion
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {

	// Namespace is the namespace in which migration is created
	NameSpace string

	// NodeName is the node in which migration is created
	NodeName string
	// contains filtered or unexported fields
}

Controller

func NewController

func NewController(mgr crmanager.Manager) Controller

NewController

func (Controller) ConstructLocalVolumeMigrate

func (ctr Controller) ConstructLocalVolumeMigrate(vol lsapisv1alpha1.LocalVolume) (*lsapisv1alpha1.LocalVolumeMigrate, error)

ConstructLocalVolumeMigrate

func (Controller) CreateLocalVolumeMigrate

func (ctr Controller) CreateLocalVolumeMigrate(lvm lsapisv1alpha1.LocalVolumeMigrate) error

CreateLocalVolumeMigrate

func (Controller) GetLocalVolumeMigrate

func (ctr Controller) GetLocalVolumeMigrate(key client.ObjectKey) (lsapisv1alpha1.LocalVolumeMigrate, error)

GetLocalVolumeMigrate

func (Controller) GetLocalVolumeMigrateStatus

func (ctr Controller) GetLocalVolumeMigrateStatus(key client.ObjectKey) (lsapisv1alpha1.LocalVolumeMigrateStatus, error)

GetLocalVolumeMigrateStatus

func (Controller) GetLocalVolumeMigrateStatusByLocalVolume

func (ctr Controller) GetLocalVolumeMigrateStatusByLocalVolume(vol lsapisv1alpha1.LocalVolume) (lsapisv1alpha1.LocalVolumeMigrateStatus, error)

func (Controller) IsAlreadyExist

func (ctr Controller) IsAlreadyExist(lvm lsapisv1alpha1.LocalVolumeMigrate) bool

IsAlreadyExist

func (Controller) UpdateLocalVolumeMigrate

func (ctr Controller) UpdateLocalVolumeMigrate(lvm lsapisv1alpha1.LocalVolumeMigrate) error

UpdateLocalVolumeMigrate

Jump to

Keyboard shortcuts

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