appconfig

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGlobalPath

func DefaultGlobalPath() string

func DefaultRepoPath

func DefaultRepoPath(repoRoot string) string

func FindRepoRoot

func FindRepoRoot(start string) string

Types

type BuildConfig

type BuildConfig struct {
	Profile       string `yaml:"profile,omitempty"`
	CacheDir      string `yaml:"cacheDir,omitempty"`
	AttestDir     string `yaml:"attestDir,omitempty"`
	Policy        string `yaml:"policy,omitempty"`
	PolicyMode    string `yaml:"policyMode,omitempty"`
	SecretsMode   string `yaml:"secretsMode,omitempty"`
	SecretsConfig string `yaml:"secretsConfig,omitempty"`
	Hermetic      *bool  `yaml:"hermetic,omitempty"`
	Sandbox       *bool  `yaml:"sandbox,omitempty"`
	SandboxConfig string `yaml:"sandboxConfig,omitempty"`
	Push          *bool  `yaml:"push,omitempty"`
	Load          *bool  `yaml:"load,omitempty"`
	RemoteBuild   string `yaml:"remoteBuild,omitempty"`
}

type Config

type Config struct {
	Build   BuildConfig   `yaml:"build,omitempty"`
	Secrets SecretsConfig `yaml:"secrets,omitempty"`
}

func Load

func Load(ctx context.Context, globalPath, repoPath string) (Config, error)

type SecretProvider

type SecretProvider struct {
	Type                string `yaml:"type,omitempty"`
	Path                string `yaml:"path,omitempty"`
	Address             string `yaml:"address,omitempty"`
	Token               string `yaml:"token,omitempty"`
	Namespace           string `yaml:"namespace,omitempty"`
	Mount               string `yaml:"mount,omitempty"`
	KVVersion           int    `yaml:"kvVersion,omitempty"`
	Key                 string `yaml:"key,omitempty"`
	AuthMethod          string `yaml:"authMethod,omitempty"`
	AuthMount           string `yaml:"authMount,omitempty"`
	RoleID              string `yaml:"roleId,omitempty"`
	SecretID            string `yaml:"secretId,omitempty"`
	KubernetesRole      string `yaml:"kubernetesRole,omitempty"`
	KubernetesToken     string `yaml:"kubernetesToken,omitempty"`
	KubernetesTokenPath string `yaml:"kubernetesTokenPath,omitempty"`
	AWSRole             string `yaml:"awsRole,omitempty"`
	AWSRegion           string `yaml:"awsRegion,omitempty"`
	AWSHeaderValue      string `yaml:"awsHeaderValue,omitempty"`
}

SecretProvider defines a single secret provider.

type SecretsConfig

type SecretsConfig struct {
	DefaultProvider string                    `yaml:"defaultProvider,omitempty"`
	Providers       map[string]SecretProvider `yaml:"providers,omitempty"`
}

SecretsConfig defines named secret providers for deploy-time resolution.

Jump to

Keyboard shortcuts

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