config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvVarPrefix       = "WORKOS"
	EnvVarHeadlessMode = "headless"
	FilePrefix         = ".workos"
	FileExtension      = "json"
	FileName           = FilePrefix + "." + FileExtension
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ActiveEnvironment string                 `mapstructure:"active_environment" json:"active_environment"`
	Environments      map[string]Environment `mapstructure:"environments"       json:"environments"`
}

func LoadConfig

func LoadConfig() *Config

func (Config) Write

func (c Config) Write() error

type Environment

type Environment struct {
	Endpoint string `mapstructure:"endpoint" json:"endpoint"`
	Name     string `mapstructure:"name"     json:"name"`
	Type     string `mapstructure:"type"     json:"type"`
	ApiKey   string `mapstructure:"api_key"    json:"api_key"`
}

Jump to

Keyboard shortcuts

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