Documentation ¶
Index ¶
- Constants
- func BuildFlynn(bc BootConfig, rootFS, commit string, merge bool, out io.Writer) (string, error)
- type BootConfig
- type BootResult
- type Bridge
- type Cluster
- func (c *Cluster) AddHost() (*Instance, error)
- func (c *Cluster) AddVanillaHost(rootFS string) (*Instance, error)
- func (c *Cluster) Boot(typ ClusterType, count int, buildLog *buildlog.Log, killOnFailure bool) (res *BootResult, err error)
- func (c *Cluster) BridgeIP() string
- func (c *Cluster) BuildFlynn(rootFS, commit string, merge bool, runTests bool) (string, error)
- func (c *Cluster) CLIConfig() (*config.Config, error)
- func (c *Cluster) ControllerDomain() string
- func (c *Cluster) DumpLogs(buildLog *buildlog.Log)
- func (c *Cluster) GitDomain() string
- func (c *Cluster) RemoveHost(id string) error
- func (c *Cluster) Run(command string, s *Streams) error
- func (c *Cluster) RunWithEnv(command string, s *Streams, env map[string]string) error
- func (c *Cluster) Shutdown()
- func (c *Cluster) Size() int
- type ClusterType
- type Instance
- func (i *Instance) Drive(name string) *VMDrive
- func (i *Instance) Kill() error
- func (i *Instance) Run(command string, s *Streams) error
- func (i *Instance) RunWithEnv(command string, s *Streams, env map[string]string) error
- func (i *Instance) RunWithTimeout(command string, s *Streams, timeout time.Duration) error
- func (i *Instance) Shutdown() error
- func (i *Instance) Start() error
- func (i *Instance) Wait(timeout time.Duration) error
- type Streams
- type Tap
- type TapManager
- type VMConfig
- type VMDrive
- type VMManager
Constants ¶
View Source
const ( IFNAMSIZ = 16 IFF_TAP = 0x0002 IFF_NO_PI = 0x1000 TUNSETIFF = 0x400454ca TUNSETPERSIST = 0x400454cb TUNSETOWNER = 0x400454cc TUNSETGROUP = 0x400454ce )
Variables ¶
This section is empty.
Functions ¶
func BuildFlynn ¶
Types ¶
type BootConfig ¶
type BootResult ¶
type Cluster ¶
type Cluster struct { ID string `json:"id"` Instances instances `json:"instances"` ClusterDomain string `json:"cluster_domain"` ControllerPin string `json:"controller_pin"` ControllerKey string `json:"controller_key"` RouterIP string `json:"router_ip"` // contains filtered or unexported fields }
func (*Cluster) Boot ¶
func (c *Cluster) Boot(typ ClusterType, count int, buildLog *buildlog.Log, killOnFailure bool) (res *BootResult, err error)
func (*Cluster) BuildFlynn ¶
func (*Cluster) ControllerDomain ¶
func (*Cluster) RemoveHost ¶
RemoveHost stops flynn-host on the instance but leaves it running so the logs are still available if we need to dump them later.
func (*Cluster) RunWithEnv ¶
type ClusterType ¶
type ClusterType uint8
const ( ClusterTypeDefault ClusterType = iota ClusterTypeRelease ClusterTypeNone )
type Instance ¶
type Instance struct { ID string `json:"id"` IP string `json:"ip"` *VMConfig // contains filtered or unexported fields }
func (*Instance) RunWithEnv ¶
func (*Instance) RunWithTimeout ¶
type TapManager ¶
type TapManager struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.