cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientConfigNotFound = errors.New(heredoc.Doc(`
		Dex client config not found.
		Run "dex config init" to initialize a new client config or
		Run "dex help environment" for more information.
	`))
	ErrClientConfigHostNotFound = errors.New(heredoc.Doc(`
		Dex client config "host" not found.
		Pass dex server host with "--host" flag or 
		set host in dex config.
		Run "dex config <subcommand>" or
		"dex help environment" for more information.
	`))
	ErrClientNotAuthorized = errors.New(heredoc.Doc(`
		Dex auth error. Dex requires an auth header.
		
		Run "dex help auth" for more information.
	`))
)

Functions

func New added in v0.1.1

func New() *cobra.Command

New root command.

Types

type AuthConfig added in v0.1.1

type AuthConfig struct {
	OAuth        OAuthConfig `mapstructure:"oauth" yaml:"oauth"`
	Expiry       int64       `mapstructure:"expiry" yaml:"expiry"`
	AccessToken  string      `mapstructure:"access_token" yaml:"access_token"`
	RefreshToken string      `mapstructure:"refresh_token" yaml:"refresh_token"`
}

type CDK added in v0.1.1

type CDK struct {
	Config *cmdx.Config
	Auth   *cmdx.Config
}

type ClientConfig added in v0.1.1

type ClientConfig struct {
	Host string `yaml:"host" cmdx:"host"`
}

type OAuthConfig added in v0.1.1

type OAuthConfig struct {
	Audience     string        `mapstructure:"audience" yaml:"audience"`
	Endpoint     OAuthEndpoint `mapstructure:"endpoint" yaml:"endpoint"`
	ClientID     string        `mapstructure:"client_id" yaml:"client_id"`
	ClientSecret string        `mapstructure:"client_secret" yaml:"client_secret"`
}

type OAuthEndpoint added in v0.1.1

type OAuthEndpoint struct {
	AuthURL  string `mapstructure:"auth_url" yaml:"auth_url"`
	TokenURL string `mapstructure:"token_url" yaml:"token_url"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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