Documentation ¶
Index ¶
- Variables
- func NewUnit(component string, templatePaths []string, decorate bool) (uf *unit.UnitFile, err error)
- type FleetClient
- func (c *FleetClient) Create(targets []string, wg *sync.WaitGroup, out, ew io.Writer)
- func (c *FleetClient) Destroy(targets []string, wg *sync.WaitGroup, out, ew io.Writer)
- func (c *FleetClient) Dock(target string, cmd []string) error
- func (c *FleetClient) Journal(target string) (err error)
- func (c *FleetClient) ListMachines() (err error)
- func (c *FleetClient) ListUnitFiles() (err error)
- func (c *FleetClient) ListUnits() (err error)
- func (c *FleetClient) RollingRestart(component string, wg *sync.WaitGroup, out, ew io.Writer)
- func (c *FleetClient) SSH(name string) error
- func (c *FleetClient) SSHExec(name, cmd string) error
- func (c *FleetClient) Scale(component string, requested int, wg *sync.WaitGroup, out, ew io.Writer)
- func (c *FleetClient) Start(targets []string, wg *sync.WaitGroup, out, ew io.Writer)
- func (c *FleetClient) Status(target string) (err error)
- func (c *FleetClient) Stop(targets []string, wg *sync.WaitGroup, out, ew io.Writer)
- func (c *FleetClient) Units(target string) (units []string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Flags = struct { Debug bool Version bool Endpoint string EtcdKeyPrefix string EtcdKeyFile string EtcdCertFile string EtcdCAFile string UseAPI bool KnownHostsFile string StrictHostKeyChecking bool Tunnel string RequestTimeout float64 SSHTimeout float64 }{}
Flags used for Fleet API connectivity
Functions ¶
Types ¶
type FleetClient ¶
FleetClient used to wrap Fleet API calls
func NewClient ¶
func NewClient(cb config.Backend) (*FleetClient, error)
NewClient returns a client used to communicate with Fleet using the Registry API
func (*FleetClient) Dock ¶ added in v1.10.0
func (c *FleetClient) Dock(target string, cmd []string) error
Dock connects to the appropriate host and runs 'docker exec -it'.
func (*FleetClient) Journal ¶
func (c *FleetClient) Journal(target string) (err error)
Journal prints the systemd journal of target unit(s)
func (*FleetClient) ListMachines ¶ added in v1.12.0
func (c *FleetClient) ListMachines() (err error)
ListMachines prints all nodes to Stdout
func (*FleetClient) ListUnitFiles ¶
func (c *FleetClient) ListUnitFiles() (err error)
ListUnitFiles prints all Deis-related unit files to Stdout
func (*FleetClient) ListUnits ¶
func (c *FleetClient) ListUnits() (err error)
ListUnits prints all Deis-related units to Stdout
func (*FleetClient) RollingRestart ¶ added in v1.9.0
RollingRestart for instance units
func (*FleetClient) SSH ¶ added in v1.8.0
func (c *FleetClient) SSH(name string) error
SSH opens an interactive shell to a machine in the cluster
func (*FleetClient) SSHExec ¶ added in v1.9.0
func (c *FleetClient) SSHExec(name, cmd string) error
func (*FleetClient) Scale ¶
func (c *FleetClient) Scale( component string, requested int, wg *sync.WaitGroup, out, ew io.Writer)
Scale creates or destroys units to match the desired number
func (*FleetClient) Status ¶
func (c *FleetClient) Status(target string) (err error)
Status prints the systemd status of target unit(s)
Click to show internal directories.
Click to hide internal directories.