host

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostService

type HostService struct {
	common.RestAPI
}

func NewHostService

func NewHostService(c *client.Client) *HostService

NewDatacenterService returns the session's host service.

func (*HostService) GetAvailHostListByStorageID

func (h *HostService) GetAvailHostListByStorageID(ctx context.Context, storageID string) ([]types.Host, error)

func (*HostService) GetHost

func (h *HostService) GetHost(ctx context.Context, hostUUID string) (*types.Host, error)

func (*HostService) GetHostAccessibleDatastoreList

func (h *HostService) GetHostAccessibleDatastoreList(ctx context.Context, hostid string) ([]types.Storage, error)

func (*HostService) GetHostAvailStorages

func (h *HostService) GetHostAvailStorages(ctx context.Context, hostUUID string) ([]*types.Storage, error)

func (*HostService) GetHostHealthInfo added in v1.0.0

func (h *HostService) GetHostHealthInfo(ctx context.Context, hostUUID string) (*types.HostHealthInfo, error)

func (*HostService) GetHostList

func (h *HostService) GetHostList(ctx context.Context) ([]types.Host, error)

func (*HostService) GetHostListByClusterID

func (h *HostService) GetHostListByClusterID(ctx context.Context, clusterID string) ([]*types.Host, error)

func (*HostService) GetHostListByClusterName

func (h *HostService) GetHostListByClusterName(ctx context.Context, clusterName string) ([]*types.Host, error)

func (*HostService) GetHostListByDC

func (h *HostService) GetHostListByDC(ctx context.Context, datacenterPath string) ([]*types.Host, error)

func (*HostService) GetHostListByNetworkID

func (h *HostService) GetHostListByNetworkID(ctx context.Context, networkID string) ([]types.Host, error)

func (*HostService) GetHostListByNetworkName

func (h *HostService) GetHostListByNetworkName(ctx context.Context, networkName string) ([]types.Host, error)

func (*HostService) GetHostListByStorageID

func (h *HostService) GetHostListByStorageID(ctx context.Context, storageID string) ([]types.Host, error)

func (*HostService) GetHostListBySwitchID

func (h *HostService) GetHostListBySwitchID(ctx context.Context, switchID string) ([]types.Host, error)

Jump to

Keyboard shortcuts

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