Documentation ¶
Index ¶
- func BuildOauthTokenParams(clientID, clientSecret, audience string) url.Values
- func BuildOauthTokenURL(domain string) string
- func Execute()
- func GenMarkdownTree(cmd *cobra.Command, dir string) error
- func GenerateCommandPage(cmd *cobra.Command, w io.Writer) error
- func GenerateDocs() error
- func GenerateHomepage(cmd *cobra.Command, w io.Writer) error
- func GeneratePage(w io.Writer, name, body string, data interface{}) error
- func GenerateParentPage(cmd *cobra.Command, w io.Writer) error
- func RunLoginAsMachine(ctx context.Context, inputs LoginInputs, cli *cli, cmd *cobra.Command) error
- func WrappedAliases(cmd *cobra.Command) string
- func WrappedInheritedFlagUsages(cmd *cobra.Command) string
- func WrappedLocalFlagUsages(cmd *cobra.Command) string
- func WrappedNonRequestParamsFlagUsages(cmd *cobra.Command) string
- func WrappedRequestParamsFlagUsages(cmd *cobra.Command) string
- type Argument
- func (a *Argument) Ask(cmd *cobra.Command, value interface{}) error
- func (a Argument) GetHelp() string
- func (a Argument) GetIsRequired() bool
- func (a Argument) GetLabel() string
- func (a Argument) GetName() string
- func (a *Argument) Pick(cmd *cobra.Command, result *string, fn pickerOptionsFunc) error
- type Flag
- func (f *Flag) Ask(cmd *cobra.Command, value interface{}, defaultValue *string) error
- func (f *Flag) AskBool(cmd *cobra.Command, value *bool, defaultValue *bool) error
- func (f *Flag) AskBoolU(cmd *cobra.Command, value *bool, defaultValue *bool) error
- func (f *Flag) AskInt(cmd *cobra.Command, value *int, defaultValue *string) error
- func (f *Flag) AskIntU(cmd *cobra.Command, value *int, defaultValue *string) error
- func (f *Flag) AskMany(cmd *cobra.Command, value interface{}, defaultValue *string) error
- func (f *Flag) AskManyU(cmd *cobra.Command, value interface{}, defaultValue *string) error
- func (f *Flag) AskPassword(cmd *cobra.Command, value *string, defaultValue *string) error
- func (f *Flag) AskPasswordU(cmd *cobra.Command, value *string, defaultValue *string) error
- func (f *Flag) AskU(cmd *cobra.Command, value interface{}, defaultValue *string) error
- func (f Flag) GetHelp() string
- func (f Flag) GetIsRequired() bool
- func (f Flag) GetLabel() string
- func (f Flag) GetName() string
- func (f *Flag) IsSet(cmd *cobra.Command) bool
- func (f *Flag) OpenEditor(cmd *cobra.Command, value *string, defaultValue, filename string, ...) error
- func (f *Flag) OpenEditorU(cmd *cobra.Command, value *string, defaultValue string, filename string) error
- func (f *Flag) OpenEditorW(cmd *cobra.Command, value *string, defaultValue, filename string, ...) error
- func (f *Flag) Pick(cmd *cobra.Command, result *string, fn pickerOptionsFunc) error
- func (f *Flag) PickU(cmd *cobra.Command, result *string, fn pickerOptionsFunc) error
- func (f *Flag) RegisterBool(cmd *cobra.Command, value *bool, defaultValue bool)
- func (f *Flag) RegisterBoolU(cmd *cobra.Command, value *bool, defaultValue bool)
- func (f *Flag) RegisterInt(cmd *cobra.Command, value *int, defaultValue int)
- func (f *Flag) RegisterIntU(cmd *cobra.Command, value *int, defaultValue int)
- func (f *Flag) RegisterString(cmd *cobra.Command, value *string, defaultValue string)
- func (f *Flag) RegisterStringMap(cmd *cobra.Command, value *map[string]string, defaultValue map[string]string)
- func (f *Flag) RegisterStringMapU(cmd *cobra.Command, value *map[string]string, defaultValue map[string]string)
- func (f *Flag) RegisterStringSlice(cmd *cobra.Command, value *[]string, defaultValue []string)
- func (f *Flag) RegisterStringSliceU(cmd *cobra.Command, value *[]string, defaultValue []string)
- func (f *Flag) RegisterStringU(cmd *cobra.Command, value *string, defaultValue string)
- func (f *Flag) Select(cmd *cobra.Command, value interface{}, options []string, defaultValue *string) error
- func (f *Flag) SelectU(cmd *cobra.Command, value interface{}, options []string, defaultValue *string) error
- type LoginInputs
- type Tenant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOauthTokenParams ¶
func BuildOauthTokenURL ¶
func GenMarkdownTree ¶ added in v1.0.0
GenMarkdownTree is the same as GenMarkdownTree, but with linkHandler.
func GenerateCommandPage ¶ added in v1.0.0
GenerateCommandPage creates custom markdown for the individual command pages.
func GenerateDocs ¶ added in v1.0.0
func GenerateDocs() error
GenerateDocs will generate the documentation for all the commands under the ./docs folder.
func GenerateHomepage ¶ added in v1.0.0
GenerateHomepage creates custom markdown for the homepage.
func GeneratePage ¶ added in v1.0.0
func GenerateParentPage ¶ added in v1.0.0
GenerateParentPage creates custom markdown for the parent command pages.
func RunLoginAsMachine ¶ added in v1.0.0
RunLoginAsMachine facilitates the authentication process using client credentials (client ID, client secret).
func WrappedAliases ¶ added in v0.10.3
WrappedAliases returns a formatted string containing the command aliases if defined, otherwise an empty string.
func WrappedInheritedFlagUsages ¶
WrappedInheritedFlagUsages returns a string containing the usage information for all flags which were inherited from parent commands, wrapped to the terminal's width.
func WrappedLocalFlagUsages ¶
WrappedLocalFlagUsages returns a string containing the usage information for all flags specifically set in the current command, wrapped to the terminal's width.
func WrappedNonRequestParamsFlagUsages ¶
WrappedNonRequestParamsFlagUsages returns a string containing the usage information for all non-request parameters flags. The string is wrapped to the terminal's width.
func WrappedRequestParamsFlagUsages ¶
WrappedRequestParamsFlagUsages returns a string containing the usage information for all request parameters flags, i.e. flags used in operation commands to set values for request parameters. The string is wrapped to the terminal's width.
Types ¶
type Argument ¶ added in v0.3.0
func (Argument) GetIsRequired ¶ added in v0.3.0
type Flag ¶ added in v0.2.3
type Flag struct { Name string LongForm string ShortForm string Help string IsRequired bool AlwaysPrompt bool }
func (*Flag) AskPassword ¶ added in v0.7.0
func (*Flag) AskPasswordU ¶ added in v0.7.0
func (Flag) GetIsRequired ¶ added in v0.3.0
func (*Flag) OpenEditor ¶ added in v0.10.2
func (*Flag) OpenEditorU ¶ added in v0.10.2
func (*Flag) OpenEditorW ¶ added in v0.10.2
func (*Flag) RegisterBool ¶ added in v0.3.0
func (*Flag) RegisterBoolU ¶ added in v0.3.0
func (*Flag) RegisterInt ¶ added in v0.3.0
func (*Flag) RegisterIntU ¶ added in v0.3.0
func (*Flag) RegisterString ¶ added in v0.2.3
func (*Flag) RegisterStringMap ¶ added in v0.9.0
func (*Flag) RegisterStringMapU ¶ added in v0.9.0
func (*Flag) RegisterStringSlice ¶ added in v0.2.5
func (*Flag) RegisterStringSliceU ¶ added in v0.2.5
func (*Flag) RegisterStringU ¶ added in v0.2.3
type LoginInputs ¶ added in v1.0.0
type Tenant ¶ added in v0.11.10
type Tenant struct { Name string `json:"name"` Domain string `json:"domain"` AccessToken string `json:"access_token,omitempty"` Scopes []string `json:"scopes,omitempty"` ExpiresAt time.Time `json:"expires_at"` Apps map[string]app `json:"apps,omitempty"` DefaultAppID string `json:"default_app_id,omitempty"` ClientID string `json:"client_id"` }
Tenant is the cli's concept of an auth0 tenant. The fields are tailor fit specifically for interacting with the management API.
Source Files ¶
- actions.go
- actions_embed.go
- api.go
- apis.go
- apps.go
- arguments.go
- attack_protection.go
- attack_protection_breached_password_detection.go
- attack_protection_brute_force_protection.go
- attack_protection_suspicious_ip_throttling.go
- cli.go
- completion.go
- custom_domains.go
- doc-gen.go
- email.go
- email_templates.go
- flags.go
- input.go
- ips.go
- log_streams.go
- log_streams_datadog.go
- log_streams_event_bridge.go
- log_streams_event_grid.go
- log_streams_http.go
- log_streams_splunk.go
- log_streams_sumo.go
- login.go
- logout.go
- logs.go
- organizations.go
- picker_options.go
- prompts_custom_text.go
- quickstarts.go
- roles.go
- roles_permissions.go
- root.go
- rules.go
- rules_embed.go
- templates.go
- tenants.go
- test.go
- universal_login.go
- users.go
- users_blocks.go
- users_roles.go
- utils_shared.go