Documentation ¶
Overview ¶
Package captain leads and manages the containers on a single machine
Index ¶
- type BeaconResponse
- type Captain
- func (c *Captain) ConnectStorage()
- func (c *Captain) Dial(dailurl string) error
- func (c *Captain) ExecuteConfig(config *dockercntrl.Config, write chan interface{})
- func (c *Captain) QueryBeacon(beaconURL string, selfSpin bool) (string, error)
- func (c *Captain) Run(beaconURL string, selfSpin bool)
- func (c *Captain) SelfSpin() (string, string)
- func (c *Captain) StartSpinner(spinner_name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconResponse ¶
type Captain ¶
type Captain struct {
// contains filtered or unexported fields
}
Captain holds state information and an exit mechanism.
func (*Captain) ConnectStorage ¶
func (c *Captain) ConnectStorage()
func (*Captain) ExecuteConfig ¶
func (c *Captain) ExecuteConfig(config *dockercntrl.Config, write chan interface{})
Executes a given config, waiting to print output. Should be changed to logging or a logging system. Kubeedge uses Mosquito for example.
func (*Captain) QueryBeacon ¶
func (*Captain) Run ¶
Connects to a given spinner and runs an infinite loop. This loop is because the dial runs a goroutine, which stops if the main thread closes.
func (*Captain) StartSpinner ¶
Click to show internal directories.
Click to hide internal directories.