Help us shape the future of Go! Take the 2026 Go Developer Survey

openstack

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetInstance(string) (*Instance, error)
}

Client is an interface representing the ability to retreve the information of a OpenStack instance.

type DefaultClient

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

DefaultClient is a default imlementation of the Client interface.

func NewClient

func NewClient() (*DefaultClient, error)

NewClient returns a DefaultClient. When creating DefaultClient, OpenStack's authentication information is requested.

func (*DefaultClient) GetInstance

func (c *DefaultClient) GetInstance(instanceID string) (*Instance, error)

GetInstance returns the instance information with specified instance ID.

type Instance

type Instance struct {
	ID        string
	Name      string
	ProjectID string
	UserID    string
	Addresses []string
	Metadata  map[string]string
	Status    string
	Created   time.Time
	Updated   time.Time
}

Instance represents the information of an openstack instance.

Jump to

Keyboard shortcuts

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