cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 1

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 DeleteAppAppsCommand

type DeleteAppAppsCommand struct {
	AppID       string
	PrettyPrint bool
}

DeleteAppAppsCommand is the command line data structure for the deleteApp action of apps

func (*DeleteAppAppsCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*DeleteAppAppsCommand) Run

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

Run makes the HTTP request corresponding to the DeleteAppAppsCommand 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 GetAppsCommand

type GetAppsCommand struct {
	// App ID
	AppID       string
	PrettyPrint bool
}

GetAppsCommand is the command line data structure for the get action of apps

func (*GetAppsCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetAppsCommand) Run

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

Run makes the HTTP request corresponding to the GetAppsCommand command.

type GetMyAppsAppsCommand

type GetMyAppsAppsCommand struct {
	PrettyPrint bool
}

GetMyAppsAppsCommand is the command line data structure for the getMyApps action of apps

func (*GetMyAppsAppsCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetMyAppsAppsCommand) Run

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

Run makes the HTTP request corresponding to the GetMyAppsAppsCommand command.

type GetUserAppsAppsCommand

type GetUserAppsAppsCommand struct {
	// User ID
	UserID      string
	PrettyPrint bool
}

GetUserAppsAppsCommand is the command line data structure for the getUserApps action of apps

func (*GetUserAppsAppsCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetUserAppsAppsCommand) Run

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

Run makes the HTTP request corresponding to the GetUserAppsAppsCommand command.

type RegenerateClientSecretAppsCommand

type RegenerateClientSecretAppsCommand struct {
	AppID       string
	PrettyPrint bool
}

RegenerateClientSecretAppsCommand is the command line data structure for the regenerateClientSecret action of apps

func (*RegenerateClientSecretAppsCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*RegenerateClientSecretAppsCommand) Run

Run makes the HTTP request corresponding to the RegenerateClientSecretAppsCommand command.

type RegisterAppAppsCommand

type RegisterAppAppsCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

RegisterAppAppsCommand is the command line data structure for the registerApp action of apps

func (*RegisterAppAppsCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*RegisterAppAppsCommand) Run

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

Run makes the HTTP request corresponding to the RegisterAppAppsCommand command.

type UpdateAppAppsCommand

type UpdateAppAppsCommand struct {
	Payload     string
	ContentType string
	AppID       string
	PrettyPrint bool
}

UpdateAppAppsCommand is the command line data structure for the updateApp action of apps

func (*UpdateAppAppsCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UpdateAppAppsCommand) Run

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

Run makes the HTTP request corresponding to the UpdateAppAppsCommand command.

type VerifyAppAppsCommand

type VerifyAppAppsCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

VerifyAppAppsCommand is the command line data structure for the verifyApp action of apps

func (*VerifyAppAppsCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*VerifyAppAppsCommand) Run

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

Run makes the HTTP request corresponding to the VerifyAppAppsCommand command.

Jump to

Keyboard shortcuts

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