app

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoTokenInRing = errors.New("secret not found in keyring")
	ErrAuth          = errors.New("authentication error")
	ErrNilConfig     = errors.New("no configuration defined")
)
View Source
var (
	ErrConfig = errors.New("configuration error")
)

Functions

func NewBomServiceClient added in v0.1.5

func NewBomServiceClient(ctx context.Context, cfg *model.ConfigOIDC, reauth bool) (*bomclient.Client, error)

func NewConditionsClient

func NewConditionsClient(ctx context.Context, cfg *model.ConfigOIDC, reauth bool) (*co.Client, error)

func NewFleetDBAPIClient added in v1.0.2

func NewFleetDBAPIClient(ctx context.Context, cfg *model.ConfigOIDC, reauth bool) (*fleetdbapi.Client, error)

Types

type App

type App struct {
	Config *model.Config
	// Force client to re-authenticate with Oauth services.
	Reauth bool
}

Config holds configuration data when running mctl App holds attributes for the mtl application

func New

func New(_ context.Context, cfgFile string, reauth bool) (app *App, err error)

Jump to

Keyboard shortcuts

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