node

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalConfig

type GlobalConfig struct {
	// libMachine client
	LibMachineClient *libmachine.Client

	// g5k driver config (needed or Docker Machine will not work afterwards)
	G5kUsername string
	G5kPassword string
	G5kImage    string
	G5kWalltime string
	SSHKeyPair  *ssh.KeyPair

	// Swarm configuration
	SwarmStandaloneGlobalConfig *swarm.SwarmStandaloneGlobalConfig
	SwarmModeGlobalConfig       *swarm.SwarmModeGlobalConfig
	SwarmMasterNode             map[string]bool

	// Weave networking
	WeaveNetworkingEnabled bool
}

GlobalConfig contain global nodes configuration

func (*GlobalConfig) GenerateSSHKeyPair

func (gc *GlobalConfig) GenerateSSHKeyPair() error

GenerateSSHKeyPair generate a new global SSH key pair

type Node

type Node struct {
	*GlobalConfig

	NodeName    string // Grid'5000 node hostname
	MachineName string // Docker Machine name

	// g5k driver
	G5kSite  string
	G5kJobID int

	// Docker Engine
	EngineOpt   []string
	EngineLabel []string
}

Node contain node specific informations

func (*Node) ProvisionNode

func (n *Node) ProvisionNode() error

ProvisionNode will install Docker and configure Swarm (if enabled) on the node

Jump to

Keyboard shortcuts

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