Help us shape the future of Go! Take the 2026 Go Developer Survey

options

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InheritFromEnvironment

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

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 Devsy 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,
) (*provider.Machine, error)

func ResolveAndSaveOptionsWorkspace

func ResolveAndSaveOptionsWorkspace(
	ctx context.Context,
	devConfig *config.Config,
	providerConfig *provider.ProviderConfig,
	originalWorkspace *provider.Workspace,
	userOptions map[string]string,
	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,
) (*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