openstack

package
v0.0.0-...-a08325d Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorVolumeNotFound = errors.New("volume not found")

Functions

func GetCurrentInstanceUUID

func GetCurrentInstanceUUID() (string, error)

func VolumeName

func VolumeName(vm *object.VirtualMachine, disk *types.VirtualDisk) string

func VolumeNameOld

func VolumeNameOld(vm *object.VirtualMachine, disk *types.VirtualDisk) string

ensuring backward compatibility TODO: remove

Types

type ClientSet

type ClientSet struct {
	BlockStorage *gophercloud.ServiceClient
	Compute      *gophercloud.ServiceClient
	Networking   *gophercloud.ServiceClient
}

func NewClientSet

func NewClientSet(ctx context.Context) (*ClientSet, error)

func (*ClientSet) CreateResourcesForVirtualMachine

func (c *ClientSet) CreateResourcesForVirtualMachine(ctx context.Context, vm *object.VirtualMachine, flavor string, networks []servers.Network) error

func (*ClientSet) EnsurePortsForVirtualMachine

func (c *ClientSet) EnsurePortsForVirtualMachine(ctx context.Context, vm *object.VirtualMachine, networkMappings *cmd.NetworkMappingFlag) ([]servers.Network, error)

func (*ClientSet) GetVolumeForDisk

func (c *ClientSet) GetVolumeForDisk(ctx context.Context, vm *object.VirtualMachine, disk *types.VirtualDisk) (*volumes.Volume, error)

func (*ClientSet) GetVolumeListForDiskOld

func (c *ClientSet) GetVolumeListForDiskOld(ctx context.Context, vm *object.VirtualMachine, disk *types.VirtualDisk) ([]volumes.Volume, error)

Deprecated, ensuring backward compatibility TODO: remove

type OpenStackMetadata

type OpenStackMetadata struct {
	UUID string `json:"uuid"`
}

type PortCreateOpts

type PortCreateOpts struct {
	SecurityGroups *[]string
}

Jump to

Keyboard shortcuts

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