Documentation ¶
Index ¶
- func GetAPIKey() string
- func GetCurrentContextName() string
- func GetFS() afero.Fs
- func IsEnvironmentVariable(valueString string) bool
- func LoadCLIConfig()
- func MakeContext(name string, url string) error
- func RenameContext(old string, new string)
- func ResolveValue(valueString string) string
- func SetCurrentContext(name string) error
- func SetFileSystem(filesystem afero.Fs)
- func WriteCLIConfig() error
- type AppMapConfig
- type AppMapPackage
- type Config
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentContextName ¶
func GetCurrentContextName() string
func IsEnvironmentVariable ¶
func LoadCLIConfig ¶
func LoadCLIConfig()
func MakeContext ¶
func RenameContext ¶
func ResolveValue ¶
func SetCurrentContext ¶
func SetFileSystem ¶
func WriteCLIConfig ¶
func WriteCLIConfig() error
Types ¶
type AppMapConfig ¶
type AppMapConfig struct { Application string `yaml:"name"` Packages []AppMapPackage `yaml:"packages"` }
func LoadAppmapConfig ¶
func LoadAppmapConfig(overridePath string, fallbackPath string) (*AppMapConfig, error)
type AppMapPackage ¶
type Config ¶
type Config struct { CurrentContext string `yaml:"current_context"` Contexts map[string]*Context `yaml:"contexts"` // contains filtered or unexported fields }
func GetCLIConfig ¶
func GetCLIConfig() *Config
Click to show internal directories.
Click to hide internal directories.