openstack

package
v0.0.0-...-2acabb3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyIdentityEndpoint            = errors.New("empty identity endpoint")
	ErrEmptyApplicationCredentialID     = errors.New("empty application credentialID")
	ErrEmptyApplicationCredentialSecret = errors.New("empty application credential secret")
)

Functions

func Initializer

func Initializer() func(cfg interface{}) (cloud.Cloud, error)

Types

type Cloud

type Cloud struct {
	// contains filtered or unexported fields
}

func (*Cloud) DescribeInstance

func (c *Cloud) DescribeInstance(instanceID string) (domain.Instance, error)

func (*Cloud) DescribeInstances

func (c *Cloud) DescribeInstances() ([]domain.Instance, error)

func (*Cloud) ParseBootVolumeId

func (c *Cloud) ParseBootVolumeId(raw string) (string, error)

func (*Cloud) ParseRawInstanceIP

func (c *Cloud) ParseRawInstanceIP(raw string) (string, error)

ParseRawInstanceIP 解析raw中服务器ip

func (*Cloud) RestartInstance

func (c *Cloud) RestartInstance(instanceId string) error

func (*Cloud) RestoreInstance

func (c *Cloud) RestoreInstance(software *models.Software, instance *models.Instance, session *models.Session, hardware *models.Hardware) (string, error)

func (*Cloud) RunInstance

func (c *Cloud) RunInstance(software *models.Software, instance *models.Instance, session *models.Session, hardware *models.Hardware) (string, error)

func (*Cloud) StartInstance

func (c *Cloud) StartInstance(instanceId string) error

func (*Cloud) StopInstance

func (c *Cloud) StopInstance(instanceId string) error

func (*Cloud) TerminateInstance

func (c *Cloud) TerminateInstance(instanceID string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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