Documentation
¶
Index ¶
- func InheritFromEnvironment(assignments []string, names []string, prefix string) []string
- func InheritOptionsFromEnvironment[Map ~map[string]V, V any](assignments []string, options Map, prefix string) []string
- func ResolveAgentConfig(devConfig *config.Config, providerConfig *provider.ProviderConfig, ...) provider.ProviderAgentConfig
- func ResolveAndSaveOptionsMachine(ctx context.Context, devConfig *config.Config, ...) (*provider.Machine, error)
- func ResolveAndSaveOptionsWorkspace(ctx context.Context, devConfig *config.Config, ...) (*provider.Workspace, error)
- func ResolveOptions(ctx context.Context, devConfig *config.Config, ...) (*config.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InheritFromEnvironment ¶ added in v0.9.0
Takes a list of assignments in KEY=VALUE format, a list of option names to check, and an environment variable prefix, and returns a new list with additional assignments from environment variables for any names not already assigned.
func InheritOptionsFromEnvironment ¶ added in v0.9.0
func InheritOptionsFromEnvironment[Map ~map[string]V, V any]( assignments []string, options Map, prefix string, ) []string
Takes a list of assignments in KEY=VALUE format, a map of option to propagate, and an environment variable prefix, and returns a new list with additional assignments from environment variables for any options not already assigned.
func ResolveAgentConfig ¶
func ResolveAgentConfig( devConfig *config.Config, providerConfig *provider.ProviderConfig, workspace *provider.Workspace, machine *provider.Machine, ) provider.ProviderAgentConfig
ResolveAgentConfig resolves and returns the complete agent configuration for a provider. It merges configuration from the provider, workspace, machine, and devConfig, resolving all dynamic values and setting appropriate defaults for agent paths, Docker settings, Kubernetes settings, and credentials.
Parameters:
- devConfig: The DevPod configuration containing global settings
- providerConfig: The provider's configuration
- workspace: The workspace configuration (can be nil for machine-only operations)
- machine: The machine configuration (can be nil for workspace-only operations)
Returns a fully resolved ProviderAgentConfig ready for use by the agent.
Types ¶
This section is empty.