config

package
v0.6.61 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path

func Path() string

Types

type Auth

type Auth struct {
	SessionCookie string    `toml:"session_cookie,omitempty"`
	AccessToken   string    `toml:"access_token,omitempty"`
	RefreshToken  string    `toml:"refresh_token,omitempty"`
	ExpiresAt     time.Time `toml:"expires_at,omitempty"`
	UserEmail     string    `toml:"user_email,omitempty"`
}

type Config

type Config struct {
	BaseURL         string `toml:"base_url"`
	ActiveCluster   string `toml:"active_cluster,omitempty"`
	ActiveClusterID string `toml:"active_cluster_id,omitempty"`
	Auth            Auth   `toml:"auth"`
}

func Load

func Load() (*Config, error)

func (*Config) ClearAuth

func (c *Config) ClearAuth()

func (*Config) IsAuthenticated

func (c *Config) IsAuthenticated() bool

func (*Config) Save

func (c *Config) Save() error

Jump to

Keyboard shortcuts

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