openstack

package
v0.0.0-...-e0e16d9 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

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) Authenticate

func (c *Client) Authenticate() (err error)

Authenticate.

func (*Client) Connect

func (c *Client) Connect() (err error)

Connect

func (*Client) Create

func (c *Client) Create(object interface{}, opts interface{}) (err error)

Create objects

func (*Client) Delete

func (c *Client) Delete(object interface{}) (err error)

Delete a resource.

func (*Client) DownloadImage

func (c *Client) DownloadImage(imageID string) (data io.ReadCloser, err error)

func (*Client) Get

func (c *Client) Get(object interface{}, ID string) (err error)

Get a resource.

func (*Client) GetClientProject

func (c *Client) GetClientProject(project *Project) (err error)

func (*Client) GetClientRegion

func (c *Client) GetClientRegion(region *Region) (err error)

func (*Client) GetUserProjects

func (c *Client) GetUserProjects(userProjects *[]Project) (err error)

func (*Client) IsForbidden

func (r *Client) IsForbidden(err error) bool

func (*Client) IsNotFound

func (r *Client) IsNotFound(err error) bool

func (*Client) List

func (c *Client) List(object interface{}, opts interface{}) (err error)

List Servers.

func (*Client) LoadOptionsFromSecret

func (c *Client) LoadOptionsFromSecret(secret *core.Secret)

func (*Client) UnsetImageMetadata

func (c *Client) UnsetImageMetadata(volumeID, key string) (err error)

func (*Client) Update

func (c *Client) Update(object interface{}, opts interface{}) (err error)

Update

func (*Client) UploadImage

func (c *Client) UploadImage(name, volumeID string) (image *Image, err error)

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

func (c *Client) VMRemoveSnapshotImage(imageID string) (err error)

func (*Client) VMStart

func (c *Client) VMStart(vmID string) (err error)

Power on the source VM.

func (*Client) VMStatus

func (c *Client) VMStatus(vmID string) (vmStatus string, err error)

Return the source VM's power state.

func (*Client) VMStop

func (c *Client) VMStop(vmID string) (err error)

Power off the source VM.

type DeleteOpts

type DeleteOpts struct{}

type Fault

type Fault struct {
	servers.Fault
}

type Flavor

type Flavor struct {
	flavors.Flavor
	ExtraSpecs map[string]string
}

type FlavorCreateOpts

type FlavorCreateOpts struct {
	flavors.CreateOpts
}

type FlavorListOpts

type FlavorListOpts struct {
	flavors.ListOpts
}

type FlavorUpdateOpts

type FlavorUpdateOpts struct {
	flavors.UpdateOpts
}

type GetOpts

type GetOpts struct {
	ID string
}

type HostRoute

type HostRoute struct {
	subnets.HostRoute
}

type Image

type Image struct {
	images.Image
}

type ImageCreateOpts

type ImageCreateOpts struct {
	images.CreateOpts
}

type ImageListOpts

type ImageListOpts struct {
	images.ListOpts
}

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 Network

type Network struct {
	networks.Network
}

type NetworkCreateOpts

type NetworkCreateOpts struct {
	networks.CreateOpts
}

type NetworkListOpts

type NetworkListOpts struct {
	networks.ListOpts
}

type NetworkUpdateOpts

type NetworkUpdateOpts struct {
	networks.UpdateOpts
}

type Project

type Project struct {
	projects.Project
}

type ProjectCreateOpts

type ProjectCreateOpts struct {
	projects.CreateOpts
}

type ProjectListOpts

type ProjectListOpts struct {
	projects.ListOpts
}

type ProjectUpdateOpts

type ProjectUpdateOpts struct {
	projects.UpdateOpts
}

type Region

type Region struct {
	regions.Region
}

type RegionCreateOpts

type RegionCreateOpts struct {
	regions.CreateOpts
}

type RegionListOpts

type RegionListOpts struct {
	regions.ListOpts
}

type RegionUpdateOpts

type RegionUpdateOpts struct {
	regions.UpdateOpts
}

type ReplaceImageMetadata

type ReplaceImageMetadata struct {
	Metadata map[string]string
}

func (*ReplaceImageMetadata) ToImagePatchMap

func (r *ReplaceImageMetadata) ToImagePatchMap() map[string]interface{}

type Snapshot

type Snapshot struct {
	snapshots.Snapshot
}

type SnapshotCreateOpts

type SnapshotCreateOpts struct {
	snapshots.CreateOpts
}

type SnapshotListOpts

type SnapshotListOpts struct {
	snapshots.ListOpts
}

type SnapshotUpdateOpts

type SnapshotUpdateOpts struct {
	snapshots.UpdateOpts
}

type Subnet

type Subnet struct {
	subnets.Subnet
}

type SubnetCreateOpts

type SubnetCreateOpts struct {
	subnets.CreateOpts
}

type SubnetListOpts

type SubnetListOpts struct {
	subnets.ListOpts
}

type SubnetUpdateOpts

type SubnetUpdateOpts struct {
	subnets.UpdateOpts
}

type UpdateImageProperty

type UpdateImageProperty struct {
	images.UpdateImageProperty
}

type VM

type VM struct {
	servers.Server
}

type VMCreateImageOpts

type VMCreateImageOpts struct {
	servers.CreateImageOpts
}

type VMCreateOpts

type VMCreateOpts struct {
	servers.CreateOpts
}

type VMListOpts

type VMListOpts struct {
	servers.ListOpts
}

type VMUpdateOpts

type VMUpdateOpts struct {
	servers.UpdateOpts
}

type Volume

type Volume struct {
	volumes.Volume
}

type VolumeCreateOpts

type VolumeCreateOpts struct {
	volumes.CreateOpts
}

type VolumeListOpts

type VolumeListOpts struct {
	volumes.ListOpts
}

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
}

Jump to

Keyboard shortcuts

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