client

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	NewOvirtClient(dataMap map[string]string) (VMClient, error)
	NewVmwareClient(dataMap map[string]string) (VMClient, error)
}

Factory creates new clients

type SourceClientFactory added in v0.2.0

type SourceClientFactory struct{}

SourceClientFactory provides default client factory implementation

func NewSourceClientFactory added in v0.2.0

func NewSourceClientFactory() *SourceClientFactory

NewSourceClientFactory creates new factory

func (*SourceClientFactory) NewOvirtClient added in v0.2.0

func (f *SourceClientFactory) NewOvirtClient(dataMap map[string]string) (VMClient, error)

NewOvirtClient creates new Ovirt clients

func (*SourceClientFactory) NewVmwareClient added in v0.2.0

func (f *SourceClientFactory) NewVmwareClient(dataMap map[string]string) (VMClient, error)

NewVmwareClient creates new VMWare clients

type VMClient

type VMClient interface {
	TestConnection() error
	GetVM(id *string, name *string, cluster *string, clusterID *string) (interface{}, error)
	StopVM(id string) error
	StartVM(id string) error
	Close() error
}

VMClient provides interface how source virtual machines should be fetched

Jump to

Keyboard shortcuts

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