api

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2015 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType string
const (
	Added   EventType = "ADDED"
	Deleted EventType = "DELETED"
)

type MinionEvent

type MinionEvent struct {
	Type   EventType
	Minion string
}

type Subnet

type Subnet struct {
	Minion string
	Sub    string
}

type SubnetEvent

type SubnetEvent struct {
	Type   EventType
	Minion string
	Sub    Subnet
}

type SubnetRegistry

type SubnetRegistry interface {
	InitSubnets() error
	GetSubnets() (*[]Subnet, error)
	GetSubnet(minion string) (*Subnet, error)
	DeleteSubnet(minion string) error
	CreateSubnet(sn string, sub *Subnet) error
	WatchSubnets(receiver chan *SubnetEvent, stop chan bool) error

	InitMinions() error
	GetMinions() (*[]string, error)
	CreateMinion(minion string, data string) error
	WatchMinions(receiver chan *MinionEvent, stop chan bool) error

	WriteNetworkConfig(network string, subnetLength uint) error
	GetContainerNetwork() (string, error)
	GetSubnetLength() (uint64, error)
	CheckEtcdIsAlive(seconds uint64) bool
}

Jump to

Keyboard shortcuts

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