servers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(tenantId string, tokenId string, id string) error

func Get

func Get(tenantId string, tokenId string, servers *[]Server) error

func Post

func Post(tenantId string, tokenId string, name string, image_id string, flavor_id string, sshKey string) error

func Show

func Show(tenantId string, tokenId string, name string, server *Server) error

Types

type Address

type Address struct {
	Version int
	Addr    string
	Type    string `json:"OS-EXT-IPS:type"`
	MacAddr string `json:"OS-EXT-IPS-MAC:mac_addr"`
}

type Server

type Server struct {
	Id        string
	Name      string
	Status    string
	KeyName   string `json:"key_name"`
	Created   string
	Updated   string
	Addresses map[string][]Address
	Image     struct {
		Id string
	}
	Flavor struct {
		Id string
	}
	Metadata struct {
		Instance_name_tag string
	}
}

type VmList

type VmList struct {
	Servers []Server
}

Jump to

Keyboard shortcuts

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