commands

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIContext

type CLIContext struct {
	Debug            bool
	DisableLocalTime bool
	Cognito          cognito.Service
	Writer           io.Writer
}

CLIContext cli context used for common options

type ExportCmd

type ExportCmd struct {
	UserPoolID string            `help:"User pool id." kong:"required"`
	BackOff    int               `help:"Delay in ms used to backoff during paging of records" default:"500"`
	Filter     map[string]string `help:"Filter users based on a set of patterns, supports  '*' and '?' wildcards in either string."`
}

ExportCmd find and export users in pool sub command

func (*ExportCmd) Run

func (f *ExportCmd) Run(cli *CLIContext) error

Run run the list operation

type FindCmd

type FindCmd struct {
	UserPoolID string            `help:"User pool id." kong:"required"`
	CSV        bool              `help:"Enable csv output."`
	Attributes []string          `help:"Attributes to retrieve and output." default:"Username,email"`
	BackOff    int               `help:"Delay in ms used to backoff during paging of records" default:"500"`
	Filter     map[string]string `help:"Filter users based on a set of patterns, supports  '*' and '?' wildcards in either string."`
}

FindCmd find users in pool sub command

func (*FindCmd) Run

func (f *FindCmd) Run(cli *CLIContext) error

Run run the list operation

type ListAttributesCmd

type ListAttributesCmd struct {
	UserPoolID string `help:"User pool id." kong:"required"`
}

ListAttributesCmd list pools attributes sub command

func (*ListAttributesCmd) Run

func (f *ListAttributesCmd) Run(cli *CLIContext) error

Run run the list operation

type LogoutCmd

type LogoutCmd struct {
	UserPoolID string            `help:"User pool id." kong:"required"`
	BackOff    int               `help:"Delay in ms used to backoff during paging of records" default:"500"`
	Filter     map[string]string `help:"Filter users based on a set of patterns, supports  '*' and '?' wildcards in either string."`
}

LogoutCmd find users in pool sub command

func (*LogoutCmd) Run

func (f *LogoutCmd) Run(cli *CLIContext) error

Run run the list operation

type LsCmd

type LsCmd struct {
	CSV bool `help:"Enable csv output."`
}

LsCmd list pools sub command

func (*LsCmd) Run

func (l *LsCmd) Run(cli *CLIContext) error

Run run the list operation

Jump to

Keyboard shortcuts

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