auth

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountIDFromToken added in v1.1.0

func GetAccountIDFromToken(token string) (string, error)

GetAccountIDFromToken gets the account ID from the token Token format: pat.AccountID.Random.Random

func GetRootCmd

func GetRootCmd() *cobra.Command

GetRootCmd returns the auth command

Types

type AuthConfig

type AuthConfig struct {
	BaseURL     string `json:"base_url"`
	Token       string `json:"token"`
	AccountID   string `json:"account_id"`
	OrgID       string `json:"org_id,omitempty"`
	ProjectID   string `json:"project_id,omitempty"`
	RegistryURL string `json:"registry_url,omitempty"`
}

AuthConfig represents authentication configuration for saving to disk

Jump to

Keyboard shortcuts

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