cli

package
v1.3.3 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 CreateUserCommand

type CreateUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateUserCommand is the command line data structure for the create action of user

func (*CreateUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateUserCommand) Run

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

Run makes the HTTP request corresponding to the CreateUserCommand 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 FindByEmailUserCommand

type FindByEmailUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

FindByEmailUserCommand is the command line data structure for the findByEmail action of user

func (*FindByEmailUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*FindByEmailUserCommand) Run

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

Run makes the HTTP request corresponding to the FindByEmailUserCommand command.

type FindUserCommand

type FindUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

FindUserCommand is the command line data structure for the find action of user

func (*FindUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*FindUserCommand) Run

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

Run makes the HTTP request corresponding to the FindUserCommand command.

type FindUsersUserCommand

type FindUsersUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

FindUsersUserCommand is the command line data structure for the findUsers action of user

func (*FindUsersUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*FindUsersUserCommand) Run

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

Run makes the HTTP request corresponding to the FindUsersUserCommand command.

type ForgotPasswordUpdateUserCommand

type ForgotPasswordUpdateUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

ForgotPasswordUpdateUserCommand is the command line data structure for the forgotPasswordUpdate action of user

func (*ForgotPasswordUpdateUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ForgotPasswordUpdateUserCommand) Run

Run makes the HTTP request corresponding to the ForgotPasswordUpdateUserCommand command.

type ForgotPasswordUserCommand

type ForgotPasswordUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

ForgotPasswordUserCommand is the command line data structure for the forgotPassword action of user

func (*ForgotPasswordUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ForgotPasswordUserCommand) Run

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

Run makes the HTTP request corresponding to the ForgotPasswordUserCommand command.

type GetAllUserCommand

type GetAllUserCommand struct {
	// Limit users per page
	Limit int
	// Number of users to skip
	Offset int
	// Order by
	Order       string
	Sorting     string
	PrettyPrint bool
}

GetAllUserCommand is the command line data structure for the getAll action of user

func (*GetAllUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetAllUserCommand) Run

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

Run makes the HTTP request corresponding to the GetAllUserCommand command.

type GetMeUserCommand

type GetMeUserCommand struct {
	PrettyPrint bool
}

GetMeUserCommand is the command line data structure for the getMe action of user

func (*GetMeUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetMeUserCommand) Run

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

Run makes the HTTP request corresponding to the GetMeUserCommand command.

type GetUserCommand

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

GetUserCommand is the command line data structure for the get action of user

func (*GetUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetUserCommand) Run

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

Run makes the HTTP request corresponding to the GetUserCommand command.

type ResetVerificationTokenUserCommand

type ResetVerificationTokenUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

ResetVerificationTokenUserCommand is the command line data structure for the resetVerificationToken action of user

func (*ResetVerificationTokenUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ResetVerificationTokenUserCommand) Run

Run makes the HTTP request corresponding to the ResetVerificationTokenUserCommand command.

type UpdateUserCommand

type UpdateUserCommand struct {
	Payload     string
	ContentType string
	// User ID
	UserID      string
	PrettyPrint bool
}

UpdateUserCommand is the command line data structure for the update action of user

func (*UpdateUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UpdateUserCommand) Run

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

Run makes the HTTP request corresponding to the UpdateUserCommand command.

type VerifyUserCommand

type VerifyUserCommand struct {
	// Token
	Token       string
	PrettyPrint bool
}

VerifyUserCommand is the command line data structure for the verify action of user

func (*VerifyUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*VerifyUserCommand) Run

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

Run makes the HTTP request corresponding to the VerifyUserCommand command.

Jump to

Keyboard shortcuts

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