convert

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContainerObject

func NewContainerObject(obj interface{}, c content.Client, store content.Store) content.Object

func NewEnvironmentObject

func NewEnvironmentObject(obj interface{}, c content.Client, store content.Store) content.Object

func NewHostObject

func NewHostObject(obj interface{}, c content.Client, store content.Store) content.Object

func NewNetworkObject

func NewNetworkObject(obj interface{}, c content.Client, store content.Store) content.Object

func NewSelfObject

func NewSelfObject(version, ip string, store content.Store) content.Object

func NewServiceObject

func NewServiceObject(obj interface{}, c content.Client, store content.Store) content.Object

func NewStackObject

func NewStackObject(obj interface{}, c content.Client, store content.Store) content.Object

Types

type ContainerWrapper

type ContainerWrapper struct {
	Client    content.Client
	Container *client.InstanceInfo
	Store     content.Store
}

type EnvironmentWrapper

type EnvironmentWrapper struct {
	Client      content.Client
	Environment *client.EnvironmentInfo
	Store       content.Store
}

type HostWrapper

type HostWrapper struct {
	Client content.Client
	Host   *client.HostInfo
}

type NetworkWrapper

type NetworkWrapper struct {
	Client  content.Client
	Network *client.NetworkInfo
}

type Self

type Self struct {
	Client content.Client
	Store  content.Store
}

type ServiceWrapper

type ServiceWrapper struct {
	Client       content.Client
	Service      *client.ServiceInfo
	Store        content.Store
	IncludeToken bool
}

type Stack

type Stack struct {
	Client content.Client
	Stack  *client.StackInfo
	Store  content.Store
}

type WrappedObject

type WrappedObject struct {
	Wrapped wrapped
}

func (*WrappedObject) Get

func (w *WrappedObject) Get(key string) (interface{}, bool)

func (*WrappedObject) Map

func (w *WrappedObject) Map() (map[string]interface{}, error)

func (*WrappedObject) MarshalJSON

func (w *WrappedObject) MarshalJSON() ([]byte, error)

func (*WrappedObject) Name

func (w *WrappedObject) Name() string

Jump to

Keyboard shortcuts

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