options

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MPL-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InheritFromEnvironment added in v0.9.0

func InheritFromEnvironment(
	assignments []string,
	names []string,
	prefix string,
) []string

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.

func ResolveAndSaveOptionsMachine

func ResolveAndSaveOptionsMachine(
	ctx context.Context,
	devConfig *config.Config,
	providerConfig *provider.ProviderConfig,
	originalMachine *provider.Machine,
	userOptions map[string]string,
	log log.Logger,
) (*provider.Machine, error)

func ResolveAndSaveOptionsWorkspace

func ResolveAndSaveOptionsWorkspace(
	ctx context.Context,
	devConfig *config.Config,
	providerConfig *provider.ProviderConfig,
	originalWorkspace *provider.Workspace,
	userOptions map[string]string,
	log log.Logger,
	options ...resolver.Option,
) (*provider.Workspace, error)

func ResolveOptions

func ResolveOptions(
	ctx context.Context,
	devConfig *config.Config,
	providerConfig *provider.ProviderConfig,
	userOptions map[string]string,
	skipRequired bool,
	skipSubOptions bool,
	singleMachine *bool,
	log log.Logger,
) (*config.Config, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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