Documentation ¶
Index ¶
- Constants
- type Component
- type Container
- func (cont *Container) Args() []string
- func (cont *Container) ID() string
- func (cont *Container) ImageKey() string
- func (cont *Container) Name() string
- func (cont *Container) PortMappings() []types.PortMapping
- func (cont *Container) Resources() resources.Resources
- func (cont *Container) ShortID() string
- type NodeComponent
- type RemoteNode
Constants ¶
View Source
const ContainerShortIDSize = 12
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component interface { // Starts the component Start() // Stops the component Stop() // Verifies if the component is working IsWorking() bool }
Component 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
}
Container base structure for a container running in the system.
func NewContainer ¶
func (*Container) PortMappings ¶
func (cont *Container) PortMappings() []types.PortMapping
type NodeComponent ¶
type NodeComponent struct {
// contains filtered or unexported fields
}
NodeComponent is the 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
}
RemoteNode 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
Click to show internal directories.
Click to hide internal directories.