Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurator ¶
type Configurator interface { Version() string Debug() bool Machine() machine.Machine Cluster() cluster.Cluster Validate(Mode) error String() (string, error) }
Configurator defines the configuration interface.
type DefaultRuntime ¶
type DefaultRuntime struct {
// contains filtered or unexported fields
}
DefaultRuntime implements the Runtime interface.
func (*DefaultRuntime) Config ¶
func (d *DefaultRuntime) Config() Configurator
Config implements the Runtime interface.
func (*DefaultRuntime) Platform ¶
func (d *DefaultRuntime) Platform() Platform
Platform implements the Runtime interface.
func (*DefaultRuntime) Sequence ¶
func (d *DefaultRuntime) Sequence() Sequence
Sequence implements the Runtime interface.
type Mode ¶
type Mode int
Mode is a runtime mode.
func ModeFromString ¶
ModeFromString returns a runtime mode that matches the given string.
type Platform ¶
type Platform interface { Name() string Configuration() ([]byte, error) Hostname() ([]byte, error) Mode() Mode ExternalIPs() ([]net.IP, error) }
Platform is an interface describing a platform.
type Runtime ¶
type Runtime interface { Platform() Platform Config() Configurator Sequence() Sequence }
Runtime defines the runtime parameters.
func NewRuntime ¶
func NewRuntime(p Platform, c Configurator, s Sequence) Runtime
NewRuntime initializes and returns the runtime interface.
Click to show internal directories.
Click to hide internal directories.