config

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() string

func ConfigPath

func ConfigPath() string

func CredentialsPath

func CredentialsPath() string

func Save

func Save(profile string, cfg *Config) error

func SetValue

func SetValue(profile, key, value string) error

func ValidateProfileName

func ValidateProfileName(profile string) error

func ValidateSubdomain

func ValidateSubdomain(subdomain string) error

Types

type Config

type Config struct {
	Subdomain     string `mapstructure:"subdomain"`
	OAuthClientID string `mapstructure:"oauth_client_id"`
	Profile       string `mapstructure:"-"`
}

func Load

func Load(profile string) (*Config, error)

Jump to

Keyboard shortcuts

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