Documentation
¶
Overview ¶
Package auth implements the LazyCat account token contract used by lzc-cli 2.0.9 without interactive prompts.
Index ¶
Constants ¶
View Source
const ( DefaultAccountURL = "https://account.lazycat.cloud" DefaultTokenEnv = "LZC_CLI_TOKEN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain []TokenProvider
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options ClientOptions) *Client
type ClientOptions ¶
type ClientOptions struct {
BaseURL string
HTTPClient *http.Client
Store TokenStore
}
type Credentials ¶
type EnvironmentToken ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore(token string) *MemoryStore
type StaticToken ¶
type StaticToken string
type StoreProvider ¶
type StoreProvider struct{ Store TokenStore }
Click to show internal directories.
Click to hide internal directories.