storage

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: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageService

type StorageService struct {
	common.RestAPI
}

func NewStorageService

func NewStorageService(c *client.Client) *StorageService

NewStorageService returns the session's storage service.

func (*StorageService) GetAllDatastores

func (sts *StorageService) GetAllDatastores(ctx context.Context, datacenterId string) ([]*types.Storage, error)

FIXME TODO.WANGYONGCHAO

func (*StorageService) GetImageFileInfoByName added in v1.0.9

func (sts *StorageService) GetImageFileInfoByName(ctx context.Context, imageName string) (*types.ImageFileInfo, error)

func (*StorageService) GetImageFileList added in v1.0.9

func (sts *StorageService) GetImageFileList(ctx context.Context, storageId string) ([]types.ImageFileInfo, error)

func (*StorageService) GetStorageInfoById

func (sts *StorageService) GetStorageInfoById(ctx context.Context, id string) (*types.Storage, error)

func (*StorageService) GetStorageInfoByName

func (sts *StorageService) GetStorageInfoByName(ctx context.Context, name string) (*types.Storage, error)

func (*StorageService) GetStoragePageList

func (sts *StorageService) GetStoragePageList(req *types.StoragePageReq) (*types.StoragePageResponse, error)

func (*StorageService) GetStoragesList

func (sts *StorageService) GetStoragesList(ctx context.Context) ([]types.Storage, error)

Jump to

Keyboard shortcuts

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