Documentation ¶
Overview ¶
repository is a concrete implementations of virtualmachine/virtualmachine.VMRepository interface
Index ¶
- type VMRepository
- func (v *VMRepository) IsVMExist(ctx context.Context, name, dc string) (bool, error)
- func (v *VMRepository) VMDeploy(ctx context.Context, params virtualmachine.VMDeployRequest) (virtualmachine.VMDeployResponse, error)
- func (v *VMRepository) VMInfo(uuid string) (virtualmachine.VMInfoResponse, error)
- func (v *VMRepository) VMList(params virtualmachine.VMListRequest) ([]virtualmachine.VMListResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VMRepository ¶
type VMRepository struct {
// contains filtered or unexported fields
}
func NewVMRepository ¶
func NewVMRepository(url string, insecure bool) (*VMRepository, error)
func (*VMRepository) VMDeploy ¶
func (v *VMRepository) VMDeploy(ctx context.Context, params virtualmachine.VMDeployRequest) (virtualmachine.VMDeployResponse, error)
VMDeploy deploys an OVA file to VMWare
func (*VMRepository) VMInfo ¶
func (v *VMRepository) VMInfo(uuid string) (virtualmachine.VMInfoResponse, error)
func (*VMRepository) VMList ¶
func (v *VMRepository) VMList(params virtualmachine.VMListRequest) ([]virtualmachine.VMListResponse, error)
Click to show internal directories.
Click to hide internal directories.