cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupClientContext

func SetupClientContext(ctx context.Context, cfg *Config) (context.Context, error)

func StatConfig

func StatConfig(required bool) bool

func WithConfig

func WithConfig(ctx context.Context, cfg *Config) context.Context

Types

type Config

type Config struct {
	Endpoint  string   `yaml:"endpoint,omitempty"`
	IssuerURL string   `yaml:"issuerURL,omitempty"`
	ClientID  string   `yaml:"clientID,omitempty"`
	Scopes    []string `yaml:"scopes,omitempty"`
}

func ConfigFromContext

func ConfigFromContext(ctx context.Context) (*Config, bool)

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) Save

func (c *Config) Save() error

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner() *Runner

func (*Runner) Run

func (r *Runner) Run()

Jump to

Keyboard shortcuts

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