crt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRT

type CRT struct {
	ContainerIf crtclient.ContainerIf
}

CRT is an abstraction for Container Runtimes.

func (*CRT) AttachEndpoint

func (c *CRT) AttachEndpoint(
	contEpContext *crtclient.ContainerEPContext) error

AttachEndpoint attaches an endpoint to a container.

func (*CRT) Deinit

func (c *CRT) Deinit()

Deinit deinitializes the container interface.

func (*CRT) DetachEndpoint

func (c *CRT) DetachEndpoint(contEpContext *crtclient.ContainerEPContext) error

DetachEndpoint detaches an endpoint from a container.

func (*CRT) GetContainerID

func (c *CRT) GetContainerID(contName string) string

GetContainerID obtains the container identifier for the given name.

func (*CRT) GetContainerName

func (c *CRT) GetContainerName(contID string) (string, error)

GetContainerName obtains the container name from the identifier.

func (*CRT) Init

func (c *CRT) Init(configStr string) error

Init initializes the container runtime given a JSON configuration that conforms to the Config set type.

type Config

type Config struct {
	CRT struct {
		Type string
	}
}

Config is the configuration for the container runtype. The type is polymorphic to allow for multiple runtimes to be supported.

Jump to

Keyboard shortcuts

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