cpi

package
v0.0.0-...-9639e24 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remarshal

func Remarshal(source interface{}, target interface{}) error

Types

type Context

type Context struct {
	DirectorUUID string `json:"director_uuid"`
}

type DiskCID

type DiskCID string

type DiskNotAttachedError

type DiskNotAttachedError struct{}

func (DiskNotAttachedError) Error

func (e DiskNotAttachedError) Error() string

func (DiskNotAttachedError) Type

func (e DiskNotAttachedError) Type() string

type Environment

type Environment map[string]interface{}

type Metadata

type Metadata map[string]string

type Network

type Network struct {
	Type string `json:"type"`

	IP      string   `json:"ip"`
	Netmask string   `json:"netmask"`
	Gateway string   `json:"gateway"`
	DNS     []string `json:"dns"`
	Default []string `json:"default"`

	CloudProperties map[string]interface{} `json:"cloud_properties"`
}

type Networks

type Networks map[string]Network

type NotImplementedError

type NotImplementedError struct{}

func (NotImplementedError) Error

func (e NotImplementedError) Error() string

func (NotImplementedError) Type

func (e NotImplementedError) Type() string

type NotSupportedError

type NotSupportedError struct{}

func (NotSupportedError) Error

func (e NotSupportedError) Error() string

func (NotSupportedError) Type

func (e NotSupportedError) Type() string

type Request

type Request struct {
	Method  string        `json:"method"`
	Args    []interface{} `json:"arguments"`
	Context Context       `json:"context"`
}

type Response

type Response struct {
	Result interface{}    `json:"result"`
	Error  *ResponseError `json:"error"`
	Log    string         `json:"log"`
}

func Dispatch

func Dispatch(req *Request, actionFunc interface{}) (*Response, error)

type ResponseError

type ResponseError struct {
	Type     string `json:"type"`
	Message  string `json:"message"`
	CanRetry bool   `json:"ok_to_retry"`
}

type SnapshotCID

type SnapshotCID string

type StemcellCID

type StemcellCID string

type VMCID

type VMCID string

Jump to

Keyboard shortcuts

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