datacenter

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatacenterService

type DatacenterService struct {
	common.RestAPI
}

func NewDatacenterService

func NewDatacenterService(c *client.Client) *DatacenterService

NewDatacenterService returns the session's datacenter service.

func (*DatacenterService) GetAllDatacenters

func (d *DatacenterService) GetAllDatacenters(ctx context.Context) ([]*types.Datacenter, error)

func (*DatacenterService) GetDatacenter

func (d *DatacenterService) GetDatacenter(ctx context.Context, datacenterid string) (*types.Datacenter, error)

func (*DatacenterService) GetDatacenterByName added in v1.0.3

func (d *DatacenterService) GetDatacenterByName(ctx context.Context, datacenterName string) (*types.Datacenter, error)

func (*DatacenterService) GetDatacenterVMList

func (d *DatacenterService) GetDatacenterVMList(ctx context.Context, datacenterid string) ([]*types.VirtualMachine, error)

Jump to

Keyboard shortcuts

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