v2vvmware

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const PhaseConnecting = "Connecting"
View Source
const PhaseConnectionFailed = "Failed"
View Source
const PhaseConnectionSuccessful = "ConnectionVerified"
View Source
const PhaseLoadingVmDetail = "LoadingVmDetail"
View Source
const PhaseLoadingVmDetailFailed = "LoadingVmDetailFailed"
View Source
const PhaseLoadingVmsList = "LoadingVmsList"
View Source
const PhaseLoadingVmsListFailed = "LoadingVmsList"

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new V2VVmware Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func GetVM

func GetVM(c *Client, vmName string) (*kubevirtv1alpha1.VmwareVmDetail, error)

func GetVMs

func GetVMs(c *Client) ([]string, string, error)

Types

type Client

type Client struct {
	Client *govmomi.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, credentials *LoginCredentials) (*Client, error)

func (*Client) GetVM

func (c *Client) GetVM(name string) (mo.VirtualMachine, string, error)

func (*Client) GetVMs

func (c *Client) GetVMs() ([]mo.VirtualMachine, string, error)

func (*Client) Logout

func (c *Client) Logout() error

type LoginCredentials

type LoginCredentials struct {
	// contains filtered or unexported fields
}

type ReconcileV2VVmware

type ReconcileV2VVmware struct {
	// contains filtered or unexported fields
}

ReconcileV2VVmware reconciles a V2VVmware object

func (*ReconcileV2VVmware) Reconcile

func (r *ReconcileV2VVmware) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a V2VVmware object and makes changes based on the state read and what is in the V2VVmware.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

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