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: 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 AuthorizeOauth2ProviderCommand

type AuthorizeOauth2ProviderCommand struct {
	// The client identifier
	ClientID string
	// Redirection endpoint
	RedirectURI string
	// Value MUST be set to "code"
	ResponseType string
	// The scope of the access request
	Scope string
	// An opaque value used by the client to maintain state between the request and callback
	State       string
	PrettyPrint bool
}

AuthorizeOauth2ProviderCommand is the command line data structure for the authorize action of oauth2_provider

func (*AuthorizeOauth2ProviderCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*AuthorizeOauth2ProviderCommand) Run

Run makes the HTTP request corresponding to the AuthorizeOauth2ProviderCommand command.

type ConfirmAuthorizationAuthuiCommand

type ConfirmAuthorizationAuthuiCommand struct {
	// Is the authorization confirmed.
	Confirmed   string
	PrettyPrint bool
}

ConfirmAuthorizationAuthuiCommand is the command line data structure for the confirmAuthorization action of authUI

func (*ConfirmAuthorizationAuthuiCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ConfirmAuthorizationAuthuiCommand) Run

Run makes the HTTP request corresponding to the ConfirmAuthorizationAuthuiCommand 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 GetTokenOauth2ProviderCommand

type GetTokenOauth2ProviderCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

GetTokenOauth2ProviderCommand is the command line data structure for the get_token action of oauth2_provider

func (*GetTokenOauth2ProviderCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetTokenOauth2ProviderCommand) Run

Run makes the HTTP request corresponding to the GetTokenOauth2ProviderCommand command.

type PromptAuthorizationAuthuiCommand

type PromptAuthorizationAuthuiCommand struct {
	PrettyPrint bool
}

PromptAuthorizationAuthuiCommand is the command line data structure for the promptAuthorization action of authUI

func (*PromptAuthorizationAuthuiCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*PromptAuthorizationAuthuiCommand) Run

Run makes the HTTP request corresponding to the PromptAuthorizationAuthuiCommand command.

type ShowLoginLoginCommand

type ShowLoginLoginCommand struct {
	PrettyPrint bool
}

ShowLoginLoginCommand is the command line data structure for the showLogin action of login

func (*ShowLoginLoginCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowLoginLoginCommand) Run

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

Run makes the HTTP request corresponding to the ShowLoginLoginCommand command.

Jump to

Keyboard shortcuts

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