Documentation
¶
Index ¶
- type Node
- func (node *Node) AddTrader(guidBytes []byte)
- func (node *Node) AdvertiseOffersNeighbor(fromTrader, toNeighborTrader, traderOffering *types.Node)
- func (node *Node) AvailableResourcesSim() types.Resources
- func (node *Node) Configuration() *configuration.Configuration
- func (node *Node) CreateOffer(fromNode *types.Node, toNode *types.Node, offer *types.Offer)
- func (node *Node) GetOffers(fromNode, toTrader *types.Node, relay bool) []types.AvailableOffer
- func (node *Node) LaunchContainers(fromBuyer *types.Node, offer *types.Offer, ...) (*types.ContainerStatus, error)
- func (node *Node) ListContainers() []types.ContainerStatus
- func (node *Node) MaximumResourcesSim() types.Resources
- func (node *Node) RefreshOffer(fromTrader *types.Node, offer *types.Offer) bool
- func (node *Node) RefreshOffersSim()
- func (node *Node) RemoveOffer(fromSupp *types.Node, toTrader *types.Node, offer *types.Offer)
- func (node *Node) SpreadOffersSim()
- func (node *Node) Start(join bool, joinIP string) error
- func (node *Node) Stop()
- func (node *Node) StopContainers(containersIDs []string) error
- func (node *Node) StopLocalContainer(containerID string) error
- func (node *Node) SubmitContainers(containerImageKey string, portMappings []types.PortMapping, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is the top level entry structure, facade, for all the functionality of a CARAVELA's node.
func NewNode ¶
func NewNode(config *configuration.Configuration, overlay external.Overlay, caravelaCli external.Caravela, dockerClient external.DockerClient, apiServer api.Server) *Node
NewNode creates a Node object that contains all the functionality of a CARAVELA's node.
func (*Node) AdvertiseOffersNeighbor ¶
func (*Node) AvailableResourcesSim ¶
func (*Node) Configuration ¶
func (node *Node) Configuration() *configuration.Configuration
Configuration returns the system's configuration of this CARAVELA's node.
func (*Node) CreateOffer ¶
func (*Node) LaunchContainers ¶
func (node *Node) LaunchContainers(fromBuyer *types.Node, offer *types.Offer, containerConfig *types.ContainerConfig) (*types.ContainerStatus, error)
func (*Node) ListContainers ¶
func (node *Node) ListContainers() []types.ContainerStatus
func (*Node) MaximumResourcesSim ¶
func (*Node) RefreshOffer ¶
func (*Node) RefreshOffersSim ¶
func (node *Node) RefreshOffersSim()
func (*Node) RemoveOffer ¶
func (*Node) SpreadOffersSim ¶
func (node *Node) SpreadOffersSim()
func (*Node) StopContainers ¶
func (*Node) StopLocalContainer ¶
func (*Node) SubmitContainers ¶
Click to show internal directories.
Click to hide internal directories.