cli

package
v0.0.0-...-abdcf8d Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 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 AddSamplesCommand

type AddSamplesCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

AddSamplesCommand is the command line data structure for the add action of samples

func (*AddSamplesCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*AddSamplesCommand) Run

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

Run makes the HTTP request corresponding to the AddSamplesCommand command.

type DeleteSamplesCommand

type DeleteSamplesCommand struct {
	// sample id
	ID          int
	PrettyPrint bool
}

DeleteSamplesCommand is the command line data structure for the delete action of samples

func (*DeleteSamplesCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*DeleteSamplesCommand) Run

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

Run makes the HTTP request corresponding to the DeleteSamplesCommand command.

type DownloadCommand

type DownloadCommand struct {
	// OutFile is the path to the download output file.
	OutFile string
}

DownloadCommand is the command line data structure for the download command.

func (*DownloadCommand) Run

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

Run downloads files with given paths.

type ListSamplesCommand

type ListSamplesCommand struct {
	// user id
	UserID      int
	PrettyPrint bool
}

ListSamplesCommand is the command line data structure for the list action of samples

func (*ListSamplesCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListSamplesCommand) Run

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

Run makes the HTTP request corresponding to the ListSamplesCommand command.

type ShowSamplesCommand

type ShowSamplesCommand struct {
	// sample data id
	ID int
	// user id
	UserID      int
	PrettyPrint bool
}

ShowSamplesCommand is the command line data structure for the show action of samples

func (*ShowSamplesCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowSamplesCommand) Run

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

Run makes the HTTP request corresponding to the ShowSamplesCommand command.

type UpdateSamplesCommand

type UpdateSamplesCommand struct {
	Payload     string
	ContentType string
	// sample id
	ID          int
	PrettyPrint bool
}

UpdateSamplesCommand is the command line data structure for the update action of samples

func (*UpdateSamplesCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UpdateSamplesCommand) Run

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

Run makes the HTTP request corresponding to the UpdateSamplesCommand command.

Jump to

Keyboard shortcuts

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