config

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonYAMLInvalid             = appconfig.ReasonYAMLInvalid
	ReasonSizeInvalid             = appconfig.ReasonSizeInvalid
	ReasonProviderTimeoutInvalid  = appconfig.ReasonProviderTimeoutInvalid
	ReasonProviderIdentityInvalid = appconfig.ReasonProviderIdentityInvalid
	ReasonRoleMappingInvalid      = appconfig.ReasonRoleMappingInvalid
	ReasonCredentialKeyDetected   = appconfig.ReasonCredentialKeyDetected
	ReasonCredentialValueDetected = appconfig.ReasonCredentialValueDetected
)
View Source
const (
	ConfigVersion             = appconfig.ConfigVersion
	DefaultKimiModel          = appconfig.DefaultKimiModel
	DefaultAGYPermissionMode  = appconfig.DefaultAGYPermissionMode
	SafeAGYPermissionMode     = appconfig.SafeAGYPermissionMode
	HeadlessAGYPermissionMode = appconfig.HeadlessAGYPermissionMode
	DefaultProviderTimeout    = appconfig.DefaultProviderTimeout
	MinimumProviderTimeout    = appconfig.MinimumProviderTimeout
	MaximumProviderTimeout    = appconfig.MaximumProviderTimeout
	ConfigRelativePath        = appconfig.ConfigRelativePath
	LocalConfigRelativePath   = appconfig.LocalConfigRelativePath
	MaximumConfigBytes        = appconfig.MaximumConfigBytes
	ProjectKindNonUI          = appconfig.ProjectKindNonUI
	ProjectKindUI             = appconfig.ProjectKindUI
)

Variables

This section is empty.

Functions

func DefaultKimiDataHome

func DefaultKimiDataHome(nativeHome string) string

func EncodeCanonical

func EncodeCanonical(config Config) ([]byte, error)

EncodeCanonical emits the one stable operator-local representation.

func EncodeSplit added in v0.1.13

func EncodeSplit(config Config) ([]byte, []byte, error)

func ParseProviderTimeout added in v0.1.2

func ParseProviderTimeout(value string) (time.Duration, error)

func ProjectProviderIDs added in v0.1.13

func ProjectProviderIDs(projectData []byte) ([]string, error)

func ProviderTimeoutText added in v0.1.2

func ProviderTimeoutText(timeout time.Duration) string

Types

type AGYProviderConfig

type AGYProviderConfig = appconfig.AGYProviderConfig

type AdmissionError

type AdmissionError = appconfig.AdmissionError

func AsAdmissionError

func AsAdmissionError(err error) (*AdmissionError, bool)

type ArtistInputsConfig

type ArtistInputsConfig = appconfig.ArtistInputsConfig

type CIConfig

type CIConfig = appconfig.CIConfig

type CodexCredentialHomeConfig added in v0.1.14

type CodexCredentialHomeConfig = appconfig.CodexCredentialHomeConfig

type CodexProviderConfig added in v0.1.14

type CodexProviderConfig = appconfig.CodexProviderConfig

type Config

type Config = appconfig.Config

func Decode

func Decode(data []byte) (Config, error)

Decode admits an effective merged configuration. Defaults are expanded in the returned typed value while EncodeCanonical omits defaulted optional fields.

func DecodeSplit added in v0.1.13

func DecodeSplit(projectData, localData []byte) (Config, error)

func MergeProjectConfig added in v0.1.13

func MergeProjectConfig(projectData []byte, localCandidate Config) (Config, error)

type EvidenceConfig

type EvidenceConfig = appconfig.EvidenceConfig

type ExecutionConfig

type ExecutionConfig = appconfig.ExecutionConfig

type ExtractionConfig added in v0.1.16

type ExtractionConfig = appconfig.ExtractionConfig

type KimiProviderConfig

type KimiProviderConfig = appconfig.KimiProviderConfig

type LocalConfigObservation

type LocalConfigObservation struct{}

func (LocalConfigObservation) ConfigIdentity

func (LocalConfigObservation) ConfigIdentity() (uint64, uint64, uint32, uint32, uint64, int64)

func (LocalConfigObservation) Present

func (LocalConfigObservation) Present() bool

func (LocalConfigObservation) PrivateDirectoryIdentity

func (LocalConfigObservation) PrivateDirectoryIdentity() (uint64, uint64)

func (LocalConfigObservation) Proof

func (LocalConfigObservation) RootIdentity

func (LocalConfigObservation) RootIdentity() (uint64, uint64, uint32, uint32)

func (LocalConfigObservation) SHA256

func (LocalConfigObservation) SHA256() string

type LocalConfigSource

type LocalConfigSource struct{}

func NewLocalConfigSource

func NewLocalConfigSource(ports.AnchoredRoot, bool) (*LocalConfigSource, error)

func (*LocalConfigSource) DirectoryIdentity

func (*LocalConfigSource) DirectoryIdentity() (ports.ConfigDirectoryIdentity, error)

func (*LocalConfigSource) Observation

func (*LocalConfigSource) Present

func (*LocalConfigSource) Present() bool

func (*LocalConfigSource) Proof

func (*LocalConfigSource) Read

func (*LocalConfigSource) Revalidate

func (*LocalConfigSource) Revalidate() error

type NativeUserConfig

type NativeUserConfig = appconfig.NativeUserConfig

type ProjectConfig

type ProjectConfig = appconfig.ProjectConfig

type ProvidersConfig

type ProvidersConfig = appconfig.ProvidersConfig

type ReasonCode

type ReasonCode = appconfig.ReasonCode

type RepairConfig

type RepairConfig = appconfig.RepairConfig

type ResourcesConfig

type ResourcesConfig = appconfig.ResourcesConfig

type ReviewConfig

type ReviewConfig = appconfig.ReviewConfig

type RoleConfig

type RoleConfig = appconfig.RoleConfig

type RoleDefault added in v0.1.4

type RoleDefault = appconfig.RoleDefault

type RoleDefaults added in v0.1.4

type RoleDefaults = appconfig.RoleDefaults

type RolesConfig

type RolesConfig = appconfig.RolesConfig

func CanonicalRolesConfig

func CanonicalRolesConfig(defaults RoleDefaults, families []string) (RolesConfig, error)

func CanonicalRolesConfigForSelection

func CanonicalRolesConfigForSelection(defaults RoleDefaults, families, roles []string) (RolesConfig, error)

func CanonicalRolesConfigForUI

func CanonicalRolesConfigForUI(defaults RoleDefaults, families []string) (RolesConfig, error)

type SourceFactory

type SourceFactory struct{}

func (SourceFactory) OpenConfigSource

func (SourceFactory) OpenConfigSource(root ports.AnchoredRoot, allowAbsent bool) (ports.ConfigSource, error)

type ValidationConfig

type ValidationConfig = appconfig.ValidationConfig

type YAMLCodec

type YAMLCodec struct{}

YAMLCodec implements the application-owned configuration codec port.

func (YAMLCodec) Decode

func (YAMLCodec) Decode(data []byte) (Config, error)

func (YAMLCodec) DecodeSplit added in v0.1.13

func (YAMLCodec) DecodeSplit(project, local []byte) (Config, error)

func (YAMLCodec) EncodeCanonical

func (YAMLCodec) EncodeCanonical(config Config) ([]byte, error)

func (YAMLCodec) EncodeSplit added in v0.1.13

func (YAMLCodec) EncodeSplit(config Config) ([]byte, []byte, error)

func (YAMLCodec) MergeProjectConfig added in v0.1.13

func (YAMLCodec) MergeProjectConfig(project []byte, local Config) (Config, error)

func (YAMLCodec) ProjectProviderIDs added in v0.1.13

func (YAMLCodec) ProjectProviderIDs(project []byte) ([]string, error)

type ZCodeProviderConfig

type ZCodeProviderConfig = appconfig.ZCodeProviderConfig

Jump to

Keyboard shortcuts

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