common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: GPL-3.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	// Starts the component
	Start(simulation bool)
	// Stops the component
	Stop()
	// contains filtered or unexported methods
}

Provides a common interface for all the internal independent components of a node. Providing the common interface of a component.

type Container

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

Base structure for a container running in the system.

func NewContainer

func NewContainer(imageKey string, args []string, portMaps []types.PortMapping,
	resources resources.Resources, id string) *Container

func (*Container) Args

func (cont *Container) Args() []string

func (*Container) ID

func (cont *Container) ID() string

func (*Container) ImageKey

func (cont *Container) ImageKey() string

func (*Container) PortMappings

func (cont *Container) PortMappings() []types.PortMapping

func (*Container) Resources

func (cont *Container) Resources() resources.Resources

func (*Container) ShortID

func (cont *Container) ShortID() string

type NodeComponent

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

Base object for all system's internal components.

func (*NodeComponent) Started

func (comp *NodeComponent) Started(simulation bool, startFunction func())

func (*NodeComponent) Stopped

func (comp *NodeComponent) Stopped(stopFunction func())

func (*NodeComponent) Working

func (comp *NodeComponent) Working() bool

type RemoteNode

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

Represents a remote CARAVELA node.

func NewRemoteNode

func NewRemoteNode(ipAddress string, guid guid.GUID) *RemoteNode

func (*RemoteNode) GUID

func (rm *RemoteNode) GUID() *guid.GUID

func (*RemoteNode) IP

func (rm *RemoteNode) IP() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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