Documentation
¶
Index ¶
- Constants
- type AllocationPool
- type AttachedVolume
- type Client
- func (c *Client) Authenticate() (err error)
- func (c *Client) Connect() (err error)
- func (c *Client) Create(object interface{}, opts interface{}) (err error)
- func (c *Client) Delete(object interface{}) (err error)
- func (c *Client) DownloadImage(imageID string) (data io.ReadCloser, err error)
- func (c *Client) Get(object interface{}, ID string) (err error)
- func (c *Client) GetClientProject(project *Project) (err error)
- func (c *Client) GetClientRegion(region *Region) (err error)
- func (c *Client) GetUserProjects(userProjects *[]Project) (err error)
- func (r *Client) IsForbidden(err error) bool
- func (r *Client) IsNotFound(err error) bool
- func (c *Client) List(object interface{}, opts interface{}) (err error)
- func (c *Client) LoadOptionsFromSecret(secret *core.Secret)
- func (c *Client) UnsetImageMetadata(volumeID, key string) (err error)
- func (c *Client) Update(object interface{}, opts interface{}) (err error)
- func (c *Client) UploadImage(name, volumeID string) (image *Image, err error)
- func (c *Client) VMCreateSnapshotImage(vmID string, opts VMCreateImageOpts) (image *Image, err error)
- func (c *Client) VMGetSnapshotImages(opts *ImageListOpts) (images []Image, err error)
- func (c *Client) VMRemoveSnapshotImage(imageID string) (err error)
- func (c *Client) VMStart(vmID string) (err error)
- func (c *Client) VMStatus(vmID string) (vmStatus string, err error)
- func (c *Client) VMStop(vmID string) (err error)
- type DeleteOpts
- type Fault
- type Flavor
- type FlavorCreateOpts
- type FlavorListOpts
- type FlavorUpdateOpts
- type GetOpts
- type HostRoute
- type Image
- type ImageCreateOpts
- type ImageListOpts
- type ImageUpdateOpts
- type Network
- type NetworkCreateOpts
- type NetworkListOpts
- type NetworkUpdateOpts
- type Project
- type ProjectCreateOpts
- type ProjectListOpts
- type ProjectUpdateOpts
- type Region
- type RegionCreateOpts
- type RegionListOpts
- type RegionUpdateOpts
- type ReplaceImageMetadata
- type Snapshot
- type SnapshotCreateOpts
- type SnapshotListOpts
- type SnapshotUpdateOpts
- type Subnet
- type SubnetCreateOpts
- type SubnetListOpts
- type SubnetUpdateOpts
- type UpdateImageProperty
- type VM
- type VMCreateImageOpts
- type VMCreateOpts
- type VMListOpts
- type VMUpdateOpts
- type Volume
- type VolumeCreateOpts
- type VolumeListOpts
- type VolumeType
- type VolumeTypeCreateOpts
- type VolumeTypeListOpts
- type VolumeTypeUpdateOpts
- type VolumeUpdateOpts
Constants ¶
View Source
const ( RegionName = "regionName" AuthType = "authType" Username = "username" UserID = "userID" Password = "password" ApplicationCredentialID = "applicationCredentialID" ApplicationCredentialName = "applicationCredentialName" ApplicationCredentialSecret = "applicationCredentialSecret" Token = "token" SystemScope = "systemScope" ProjectName = "projectName" ProjectID = "projectID" UserDomainName = "userDomainName" UserDomainID = "userDomainID" ProjectDomainName = "projectDomainName" ProjectDomainID = "projectDomainID" DomainName = "domainName" DomainID = "domainID" DefaultDomain = "defaultDomain" InsecureSkipVerify = "insecureSkipVerify" CACert = "cacert" EndpointAvailability = "availability" )
View Source
const ( FilterGTE = images.FilterGTE FilterGT = images.FilterGT ImageStatusQueued = images.ImageStatusQueued ImageStatusSaving = images.ImageStatusSaving ImageStatusActive = images.ImageStatusActive ImageStatusKilled = images.ImageStatusKilled ImageStatusDeleted = images.ImageStatusDeleted ImageStatusPendingDelete = images.ImageStatusPendingDelete ImageStatusDeactivated = images.ImageStatusDeactivated ImageStatusUploading = "uploading" ImageStatusImporting = images.ImageStatusImporting )
View Source
const ( SnapshotStatusCreating = "creating" SnapshotStatusAvailable = "available" SnapshotStatusBackingUp = "backing-up" SnapshotStatusDeleting = "deleting" SnapshotStatusError = "error" SnapshotStatusDeleted = "deleted" SnapshotStatusUnmanaging = "unmanaging" SnapshotStatusRestoring = "restoring" SnapshotStatusErrorDeleting = "error_deleting" )
View Source
const ( VolumeStatusCreating = "creating" VolumeStatusAvailable = "available" VolumeStatusReserved = "reserved" VolumeStatusAttacing = "attaching" VolumeStatusDetaching = "detaching" VolumeStatusInUse = "in-use" VolumeStatusMaintenance = "maintenance" VolumeStatusDeleting = "deleting" VolumeStatusAwaitingTransfer = "awaiting-transfer" VolumeStatusError = "error" VolumeStatusErrorDeleting = "error_deleting" VolumeStatusBackingUp = "backing-up" VolumeStatusRestoringBackup = "restoring-backup" VolumeStatusErrorBackingUp = "error_backing-up" VolumeStatusErrorRestoring = "error_restoring" VolumeStatusErrorExtending = "error_extending" VolumeStatusDownloading = "downloading" VolumeStatusUploading = "uploading" VolumeStatusRetyping = "retyping" VolumeStatusExtending = "extending" )
View Source
const ( VmStatusActive = "ACTIVE" VmStatusBuild = "BUILD" VmStatusDeleted = "DELETED" VmStatusError = "ERROR" VmStatusHardReboot = "HARD_REBOOT" VmStatusMigrating = "MIGRATING" VmStatusPassword = "PASSWORD" VmStatusPaused = "PAUSED" VmStatusReboot = "REBOOT" VmStatusRebuild = "REBUILD" VmStatusRescue = "RESCUE" VmStatusResize = "RESIZE" VmStatusRevertResize = "REVERT_RESIZE" VmStatusShelved = "SHELVED" VmStatusShelvedOffloaded = "SHELVED_OFFLOADED" VmStatusShutoff = "SHUTOFF" VmStatusSoftDeleted = "SOFT_DELETED" VmStatusSuspended = "SUSPENDED" VmStatusUnknown = "UNKNOWN" VmStatusVerifyResize = "VERIFY_RESIZE" )
VM Status
View Source
const ( NetworkStatusNull = "null" NetworkStatusActive = "ACTIVE" NetworkStatusDown = "DOWN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocationPool ¶
type AllocationPool struct {
subnets.AllocationPool
}
type AttachedVolume ¶
type AttachedVolume struct {
servers.AttachedVolume
}
type Client ¶
type Client struct {
URL string
Options map[string]string
Log logging.LevelLogger
// contains filtered or unexported fields
}
Client struct
func (*Client) DownloadImage ¶
func (c *Client) DownloadImage(imageID string) (data io.ReadCloser, err error)
func (*Client) GetClientProject ¶
func (*Client) GetClientRegion ¶
func (*Client) GetUserProjects ¶
func (*Client) IsForbidden ¶
func (*Client) IsNotFound ¶
func (*Client) LoadOptionsFromSecret ¶
func (*Client) UnsetImageMetadata ¶
func (*Client) UploadImage ¶
func (*Client) VMCreateSnapshotImage ¶
func (c *Client) VMCreateSnapshotImage(vmID string, opts VMCreateImageOpts) (image *Image, err error)
func (*Client) VMGetSnapshotImages ¶
func (c *Client) VMGetSnapshotImages(opts *ImageListOpts) (images []Image, err error)
func (*Client) VMRemoveSnapshotImage ¶
type DeleteOpts ¶
type DeleteOpts struct{}
type FlavorCreateOpts ¶
type FlavorCreateOpts struct {
flavors.CreateOpts
}
type FlavorListOpts ¶
type FlavorUpdateOpts ¶
type FlavorUpdateOpts struct {
flavors.UpdateOpts
}
type ImageCreateOpts ¶
type ImageCreateOpts struct {
images.CreateOpts
}
type ImageListOpts ¶
func (*ImageListOpts) SetUpdateAtQueryFilterGT ¶
func (r *ImageListOpts) SetUpdateAtQueryFilterGT(lastSync time.Time)
func (*ImageListOpts) SetUpdateAtQueryFilterGTE ¶
func (r *ImageListOpts) SetUpdateAtQueryFilterGTE(lastSync time.Time)
type ImageUpdateOpts ¶
type ImageUpdateOpts struct {
images.UpdateOpts
}
func (*ImageUpdateOpts) AddImageProperty ¶
func (r *ImageUpdateOpts) AddImageProperty(name, value string)
type NetworkCreateOpts ¶
type NetworkCreateOpts struct {
networks.CreateOpts
}
type NetworkListOpts ¶
type NetworkUpdateOpts ¶
type NetworkUpdateOpts struct {
networks.UpdateOpts
}
type ProjectCreateOpts ¶
type ProjectCreateOpts struct {
projects.CreateOpts
}
type ProjectListOpts ¶
type ProjectUpdateOpts ¶
type ProjectUpdateOpts struct {
projects.UpdateOpts
}
type RegionCreateOpts ¶
type RegionCreateOpts struct {
regions.CreateOpts
}
type RegionListOpts ¶
type RegionUpdateOpts ¶
type RegionUpdateOpts struct {
regions.UpdateOpts
}
type ReplaceImageMetadata ¶
func (*ReplaceImageMetadata) ToImagePatchMap ¶
func (r *ReplaceImageMetadata) ToImagePatchMap() map[string]interface{}
type SnapshotCreateOpts ¶
type SnapshotCreateOpts struct {
snapshots.CreateOpts
}
type SnapshotListOpts ¶
type SnapshotUpdateOpts ¶
type SnapshotUpdateOpts struct {
snapshots.UpdateOpts
}
type SubnetCreateOpts ¶
type SubnetCreateOpts struct {
subnets.CreateOpts
}
type SubnetListOpts ¶
type SubnetUpdateOpts ¶
type SubnetUpdateOpts struct {
subnets.UpdateOpts
}
type UpdateImageProperty ¶
type UpdateImageProperty struct {
images.UpdateImageProperty
}
type VMCreateImageOpts ¶
type VMCreateImageOpts struct {
servers.CreateImageOpts
}
type VMCreateOpts ¶
type VMCreateOpts struct {
servers.CreateOpts
}
type VMListOpts ¶
type VMUpdateOpts ¶
type VMUpdateOpts struct {
servers.UpdateOpts
}
type VolumeCreateOpts ¶
type VolumeCreateOpts struct {
volumes.CreateOpts
}
type VolumeListOpts ¶
type VolumeType ¶
type VolumeType struct {
volumetypes.VolumeType
}
type VolumeTypeCreateOpts ¶
type VolumeTypeCreateOpts struct {
volumetypes.CreateOpts
}
type VolumeTypeListOpts ¶
type VolumeTypeListOpts struct {
volumetypes.ListOpts
}
type VolumeTypeUpdateOpts ¶
type VolumeTypeUpdateOpts struct {
volumetypes.UpdateOpts
}
type VolumeUpdateOpts ¶
type VolumeUpdateOpts struct {
volumes.UpdateOpts
}
Click to show internal directories.
Click to hide internal directories.