Documentation ¶
Index ¶
- func NewProvider(cloudName string) (*gophercloud.ProviderClient, *clientconfig.ClientOpts, error)
- type Instance
- type Service
- func (svc *Service) InstanceCreate(serverCreateOpts servers.CreateOpts) (*Instance, error)
- func (svc *Service) InstanceDelete(instanceId string) error
- func (svc *Service) InstanceForceDelete(instanceId string) error
- func (svc *Service) InstanceGet(instanceId string) (*Instance, error)
- func (svc *Service) InstanceList() ([]*Instance, error)
- func (svc *Service) UpdateToken() error
- func (svc *Service) VolumeCreate(volumeCreateOpts volumes.CreateOpts) (*Volume, error)
- func (svc *Service) VolumeDelete(volumeId string) error
- func (svc *Service) VolumeGet(volumeId string) (*Volume, error)
- func (svc *Service) VolumeList() ([]*Volume, error)
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(cloudName string) (*gophercloud.ProviderClient, *clientconfig.ClientOpts, error)
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(client *gophercloud.ProviderClient, clientOpts *clientconfig.ClientOpts) (*Service, error)
func (*Service) InstanceCreate ¶
func (svc *Service) InstanceCreate(serverCreateOpts servers.CreateOpts) (*Instance, error)
func (*Service) InstanceDelete ¶
func (*Service) InstanceForceDelete ¶
func (*Service) InstanceList ¶
func (*Service) UpdateToken ¶
UpdateToken to update token if need.
func (*Service) VolumeCreate ¶
func (svc *Service) VolumeCreate(volumeCreateOpts volumes.CreateOpts) (*Volume, error)
func (*Service) VolumeDelete ¶
func (*Service) VolumeList ¶
Click to show internal directories.
Click to hide internal directories.