openstack

package
v0.0.0-...-891df37 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorInstance

func NewErrorInstance(msg string) openstack.InstanceClient

NewErrorInstance returns ErrorInstance which always returns error

func NewInstance

func NewInstance(projectID string, metaData map[string]string, secGroup []map[string]interface{}) openstack.InstanceClient

NewInstance returns fake InstanceClient which returns data including given projectID

Types

type ErrorInstance

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

func (*ErrorInstance) Get

func (f *ErrorInstance) Get(_ string) (*servers.Server, error)

type Instance

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

func (*Instance) Get

func (f *Instance) Get(uuid string) (*servers.Server, error)

Jump to

Keyboard shortcuts

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