contextconfig

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inputs

type Inputs struct {
	FlagValue           string
	LegacyEnvValue      string
	PreferredEnvValue   string
	ContextConfigValue  string
	BehaviorDefault     string
	SessionDefaultValue string
	UserDefaultValue    string
}

type Kind

type Kind string
const (
	ContextPipeline   Kind = "pipeline"
	ContextServer     Kind = "server"
	ContextRepository Kind = "repository"
	ContextGlobal     Kind = "global"
)

type LoadResult

type LoadResult struct {
	LoadedPaths []string
}

func LoadLayeredConfig

func LoadLayeredConfig(v *viper.Viper, runtime Runtime, explicitConfigPath string) (LoadResult, error)

type Output

type Output struct {
	Value  string
	Source string
}

func ResolveValue

func ResolveValue(input Inputs) Output

type Runtime

type Runtime struct {
	Kind             Kind
	Explicit         bool
	WorkingDir       string
	UserConfigPath   string
	ActiveConfigPath string
	RepositoryRoot   string
	NonInteractive   bool
}

func DetectRuntime

func DetectRuntime(explicitContext string, workingDir string) Runtime

Jump to

Keyboard shortcuts

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