auth

package
v1.2.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 13 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"`
}

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