daemon

package
v1.0.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: GPL-2.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BW2Entity string `yaml:"bw2Entity"`
	BW2Agent  string `yaml:"bw2Agent"`
	Path      string `yaml:"path"`
	CPUShares uint64 `yaml:"cpuShares"`
	Memory    uint64 `yaml:"memory"`
	Backend   string `yaml:"backend"`
}

type Heartbeat

type Heartbeat struct {
	Version         string
	Time            int64
	TotalMemory     uint64
	TotalCPU        uint64
	AvailableMemory uint64
	AvailableCPU    uint64
	Services        []string
}

type ServiceHeartbeat

type ServiceHeartbeat struct {
	Time          int64
	Memory        uint64
	CPUShares     uint64
	UsedMemory    float64
	UsedCPUShares float64
}

type SpawnpointDaemon

type SpawnpointDaemon struct {
	// contains filtered or unexported fields
}

func New

func New(config *Config, logger *logging.Logger) (*SpawnpointDaemon, error)

func (*SpawnpointDaemon) Decommission

func (daemon *SpawnpointDaemon) Decommission() error

func (*SpawnpointDaemon) StartLoop

func (daemon *SpawnpointDaemon) StartLoop(ctx context.Context)

Jump to

Keyboard shortcuts

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