common

package
v0.0.0-...-10b4495 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerShortIDSize = 12

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	// Start starts the component.
	Start()
	// Stop stops the component.
	Stop()
	// IsWorking 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 NewContainer(name, imageKey string, args []string, portMaps []types.PortMapping,
	resources resources.Resources, id string) *Container

func (*Container) Args

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

func (*Container) ID

func (c *Container) ID() string

func (*Container) ImageKey

func (c *Container) ImageKey() string

func (*Container) Name

func (c *Container) Name() string

func (*Container) PortMappings

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

func (*Container) Resources

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

func (*Container) ShortID

func (c *Container) ShortID() string

type Node

type Node interface {
	GetSystemPartitionsState() *partitions.SystemResourcePartitions
	GUID() string
}

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 (n *NodeComponent) Started(simulation bool, startFunction func())

func (*NodeComponent) Stopped

func (n *NodeComponent) Stopped(stopFunction func())

func (*NodeComponent) Working

func (n *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 (r *RemoteNode) GUID() *guid.GUID

func (*RemoteNode) IP

func (r *RemoteNode) IP() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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