auth

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

func EnsureAuthenticated added in v0.1.6

func EnsureAuthenticated(ctx context.Context) bool

EnsureAuthenticated checks if valid authentication exists, and if not, triggers the login flow automatically. This is a non-interactive version intended for use in automated workflows. Returns true if authentication is valid or was successfully obtained.

func EnsureAuthenticatedE added in v0.1.6

func EnsureAuthenticatedE(ctx context.Context) error

EnsureAuthenticatedE checks if valid authentication exists, and if not, triggers the login flow automatically. Returns an error if authentication fails, suitable for use in Cobra PreRunE hooks.

func LoginAction

func LoginAction(ctx context.Context) error

func LogoutAction

func LogoutAction() error

func SetURLAction

func SetURLAction()

func WriteConfigFileSilent

func WriteConfigFileSilent()

Types

This section is empty.

Jump to

Keyboard shortcuts

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