config

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextProduction  = "production"
	ContextPlatform    = "platform"
	ContextPlayground  = "playground"
	ContextDevelopment = "development"
	ContextPlatform2   = "platform2"
)

Variables

View Source
var (
	RadixConfigDir          = path.Join(getUserHomeDir(), radixConfigDir)
	RadixConfigFileFullName = path.Join(RadixConfigDir, radixConfigFileName)
	ValidContexts           = []string{ContextProduction, ContextPlatform, ContextPlatform2, ContextPlayground, ContextDevelopment}
)

Functions

func IsValidContext

func IsValidContext(context string) bool

func Save added in v1.0.7

func Save(radixConfig *RadixConfig) error

Save Saves RadixConfig

Types

type CustomConfig

type CustomConfig struct {
	// Context is the environment context: platform (default), playground, development, platform2
	Context string `json:"Context"`
}

CustomConfig is the custom environment config

type RadixConfig

type RadixConfig struct {
	// CustomConfig is the custom environment config
	CustomConfig *CustomConfig `json:"customConfig"`

	// MSAL is the internal cache structure used by the MSAL module. The content is base64 encoded
	MSAL string `json:"msal,omitempty"`
}

func GetDefaultRadixConfig added in v1.0.7

func GetDefaultRadixConfig() *RadixConfig

func GetRadixConfig added in v1.8.0

func GetRadixConfig() (*RadixConfig, error)

Jump to

Keyboard shortcuts

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