Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IStartCommand ¶
type IStartCommand interface {
Start(c *cli.Context) error
}
IStartCommand is the interface to implement for the start command.
type IStatusCommand ¶
type IStatusCommand interface {
GetStatusCommand(c models.Config, d *client.Client, a admin.IClient) *StatusCommand
}
IStatusCommand is the interface to implement for the stop command.
type IStopCommand ¶
type IStopCommand interface {
Stop(c *cli.Context) error
}
IStopCommand is the interface to implement for the stop command.
type StartCommand ¶
type StartCommand struct {
// contains filtered or unexported fields
}
StartCommand is the struct for this implementation of IStartCommand.
func GetStartCommand ¶
func GetStartCommand( c models.Config, d *client.Client, a admin.IClient, l util.ILookup, p util.IConfigParser, ) *StartCommand
GetStartCommand returns a pointer to a new instance of this implementation of IStartCommand.
func (*StartCommand) Start ¶
func (s *StartCommand) Start(c *cli.Context) error
Start is the command that starts the Swarm nodes.
type StatusCommand ¶
type StatusCommand struct {
// contains filtered or unexported fields
}
StatusCommand is the struct for this implementation of IStatusCommand.
func GetStatusCommand ¶
GetStatusCommand returns a pointer to a new instance of this implementation of IStatusCommand.
func (*StatusCommand) Status ¶
func (s *StatusCommand) Status(c *cli.Context) error
Status shows the nodeInfo in JSON format of currently running nodes.
type StopCommand ¶
type StopCommand struct {
// contains filtered or unexported fields
}
StopCommand is the struct for this implementation of IStopCommand.
func GetStopCommand ¶
func GetStopCommand(c models.Config, d *client.Client) *StopCommand
GetStopCommand returns a pointer to a new instance of this implementation of IStopCommand.
func (*StopCommand) Stop ¶
func (s *StopCommand) Stop(c *cli.Context) error
Stop is the command that stops the Swarm nodes.