cli

package
v0.0.0-...-f72604a Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cobra.Command, c *client.Client)

RegisterCommands registers the resource action CLI commands.

Types

type CreateTaskCommand

type CreateTaskCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateTaskCommand is the command line data structure for the create action of task

func (*CreateTaskCommand) RegisterFlags

func (cmd *CreateTaskCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*CreateTaskCommand) Run

func (cmd *CreateTaskCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateTaskCommand command.

type DeleteTaskCommand

type DeleteTaskCommand struct {
	ID          string
	PrettyPrint bool
}

DeleteTaskCommand is the command line data structure for the delete action of task

func (*DeleteTaskCommand) RegisterFlags

func (cmd *DeleteTaskCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*DeleteTaskCommand) Run

func (cmd *DeleteTaskCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteTaskCommand command.

type InspectTaskCommand

type InspectTaskCommand struct {
	// Task's UUID
	ID          string
	PrettyPrint bool
}

InspectTaskCommand is the command line data structure for the inspect action of task

func (*InspectTaskCommand) RegisterFlags

func (cmd *InspectTaskCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*InspectTaskCommand) Run

func (cmd *InspectTaskCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the InspectTaskCommand command.

type ListDatabindCommand

type ListDatabindCommand struct {
	PrettyPrint bool
}

ListDatabindCommand is the command line data structure for the list action of databind

func (*ListDatabindCommand) RegisterFlags

func (cmd *ListDatabindCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ListDatabindCommand) Run

func (cmd *ListDatabindCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListDatabindCommand command.

type PingMonitoringCommand

type PingMonitoringCommand struct {
	PrettyPrint bool
}

PingMonitoringCommand is the command line data structure for the ping action of monitoring

func (*PingMonitoringCommand) RegisterFlags

func (cmd *PingMonitoringCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*PingMonitoringCommand) Run

func (cmd *PingMonitoringCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the PingMonitoringCommand command.

type StatusSwarmCommand

type StatusSwarmCommand struct {
	PrettyPrint bool
}

StatusSwarmCommand is the command line data structure for the status action of swarm

func (*StatusSwarmCommand) RegisterFlags

func (cmd *StatusSwarmCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*StatusSwarmCommand) Run

func (cmd *StatusSwarmCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the StatusSwarmCommand command.

type UploadDatabindCommand

type UploadDatabindCommand struct {
	PrettyPrint bool
}

UploadDatabindCommand is the command line data structure for the upload action of databind

func (*UploadDatabindCommand) RegisterFlags

func (cmd *UploadDatabindCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*UploadDatabindCommand) Run

func (cmd *UploadDatabindCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UploadDatabindCommand command.

Jump to

Keyboard shortcuts

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