Documentation
¶
Index ¶
- type StorageService
- func (sts *StorageService) GetAllDatastores(ctx context.Context, datacenterId string) ([]*types.Storage, error)
- func (sts *StorageService) GetImageFileInfoByName(ctx context.Context, imageName string) (*types.ImageFileInfo, error)
- func (sts *StorageService) GetImageFileList(ctx context.Context, storageId string) ([]types.ImageFileInfo, error)
- func (sts *StorageService) GetStorageInfoById(ctx context.Context, id string) (*types.Storage, error)
- func (sts *StorageService) GetStorageInfoByName(ctx context.Context, name string) (*types.Storage, error)
- func (sts *StorageService) GetStoragePageList(req *types.StoragePageReq) (*types.StoragePageResponse, error)
- func (sts *StorageService) GetStoragesList(ctx context.Context) ([]types.Storage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageService ¶
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 (*StorageService) GetStorageInfoByName ¶
func (*StorageService) GetStoragePageList ¶
func (sts *StorageService) GetStoragePageList(req *types.StoragePageReq) (*types.StoragePageResponse, error)
func (*StorageService) GetStoragesList ¶
Click to show internal directories.
Click to hide internal directories.