Documentation
¶
Index ¶
- func ApplyHomePolicy(homePaths aghconfig.HomePaths, providerName string, ...) ([]string, error)
- func ApplyPiAgentDirPolicy(homePaths aghconfig.HomePaths, providerName string, ...) ([]string, error)
- func EnsurePrivateDir(path string) error
- func EnsurePrivateDirUnder(root string, path string) error
- func ResolveHomeEnv(homePaths aghconfig.HomePaths, providerName string, ...) ([]string, error)
- func ResolvePiAgentDirEnv(homePaths aghconfig.HomePaths, providerName string, ...) ([]string, error)
- func SafeProviderHomeSegment(value string) bool
- func SetEnvValue(env []string, key string, value string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyHomePolicy ¶
func ApplyHomePolicy( homePaths aghconfig.HomePaths, providerName string, homePolicy aghconfig.ProviderHomePolicy, env []string, ) ([]string, error)
ApplyHomePolicy updates provider launch environment according to the provider home policy. Operator home intentionally leaves the incoming env untouched.
func ApplyPiAgentDirPolicy ¶
func ApplyPiAgentDirPolicy( homePaths aghconfig.HomePaths, providerName string, homePolicy aghconfig.ProviderHomePolicy, env []string, ) ([]string, error)
ApplyPiAgentDirPolicy points native Pi auth at the same isolated home used by both session launch and provider auth commands.
func EnsurePrivateDir ¶
EnsurePrivateDir creates or tightens an AGH-owned provider state directory.
func EnsurePrivateDirUnder ¶
EnsurePrivateDirUnder creates or tightens an AGH-owned provider state directory while proving the resolved path remains below root.
func ResolveHomeEnv ¶
func ResolveHomeEnv( homePaths aghconfig.HomePaths, providerName string, homePolicy aghconfig.ProviderHomePolicy, env []string, ) ([]string, error)
ResolveHomeEnv returns the provider home environment for display or diagnostics without creating provider-owned directories.
func ResolvePiAgentDirEnv ¶
func ResolvePiAgentDirEnv( homePaths aghconfig.HomePaths, providerName string, homePolicy aghconfig.ProviderHomePolicy, env []string, ) ([]string, error)
ResolvePiAgentDirEnv returns the Pi native-auth environment for display or diagnostics without creating provider-owned directories.
func SafeProviderHomeSegment ¶
SafeProviderHomeSegment reports whether a provider name can be used as one path segment below $AGH_HOME/providers.
Types ¶
This section is empty.