cmd

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetProfileNames added in v0.2.2

func GetProfileNames() []string

func GetVersionText

func GetVersionText() string

GetVersionText constructs actl's version text

Types

type AuthCodeCredentials added in v0.1.2

type AuthCodeCredentials struct {
	BaseCredentials `mapstructure:",squash"`
	ClientSecret    string `mapstructure:"client_secret"`
}

func (AuthCodeCredentials) Login added in v0.1.2

type BaseCredentials added in v0.1.0

type BaseCredentials struct {
	LoginType string `mapstructure:"login_type"`
	Issuer    string `mapstructure:"issuer"`
	ClientId  string `mapstructure:"client_id"`
}

BaseCredentials is the super-struct of all credential structs

type ClientCredentials added in v0.1.2

type ClientCredentials struct {
	BaseCredentials `mapstructure:",squash"`
	ClientSecret    string `mapstructure:"client_secret"`
}

func (ClientCredentials) Login added in v0.1.2

func (c ClientCredentials) Login() *internal.TokenSet

type Credentials added in v0.1.0

type Credentials interface {
	Login() *internal.TokenSet
}

Credentials is an interface with login method

func GetProfile added in v0.1.0

func GetProfile(profileID string) Credentials

GetProfile loads profiles from config

type PasswordCredentials added in v0.1.2

type PasswordCredentials struct {
	BaseCredentials `mapstructure:",squash"`
	Username        string `mapstructure:"username"`
	Password        string `mapstructure:"password"`
}

func (PasswordCredentials) Login added in v0.1.2

type RefreshCredentials added in v0.1.2

type RefreshCredentials struct {
	BaseCredentials `mapstructure:",squash"`
	RefreshToken    string `mapstructure:"refresh_token"`
}

func (RefreshCredentials) Login added in v0.1.2

Jump to

Keyboard shortcuts

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