openstack

package
v0.0.0-...-801ba76 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(cloudName string) (*gophercloud.ProviderClient, *clientconfig.ClientOpts, error)

Types

type Instance

type Instance struct {
	servers.Server
}

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 (svc *Service) InstanceDelete(instanceId string) error

func (*Service) InstanceForceDelete

func (svc *Service) InstanceForceDelete(instanceId string) error

func (*Service) InstanceGet

func (svc *Service) InstanceGet(instanceId string) (*Instance, error)

func (*Service) InstanceList

func (svc *Service) InstanceList() ([]*Instance, error)

func (*Service) UpdateToken

func (svc *Service) UpdateToken() error

UpdateToken to update token if need.

func (*Service) VolumeCreate

func (svc *Service) VolumeCreate(volumeCreateOpts volumes.CreateOpts) (*Volume, error)

func (*Service) VolumeDelete

func (svc *Service) VolumeDelete(volumeId string) error

func (*Service) VolumeGet

func (svc *Service) VolumeGet(volumeId string) (*Volume, error)

func (*Service) VolumeList

func (svc *Service) VolumeList() ([]*Volume, error)

type Volume

type Volume struct {
	volumes.Volume
}

Jump to

Keyboard shortcuts

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