config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigDirName  = ".config/lambda"
	ConfigFileName = "config.json"
)

Variables

This section is empty.

Functions

func GetCloudInitDir

func GetCloudInitDir() (string, error)

func GetConfigDir

func GetConfigDir() (string, error)

func GetConfigPath

func GetConfigPath() (string, error)

func GetWorkspacesDir

func GetWorkspacesDir() (string, error)

func Save

func Save(cfg *Config) error

Types

type Config

type Config struct {
	APIKey string `json:"api_key"`
}

func Load

func Load() (*Config, error)

func (*Config) IsLoggedIn

func (c *Config) IsLoggedIn() bool

Jump to

Keyboard shortcuts

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