agent

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEncodedWorkspaceDaemonConfig

func GetEncodedWorkspaceDaemonConfig(
	platformOptions devpod.PlatformOptions,
	workspaceConfig *provider2.Workspace,
	substitutionContext *config.SubstitutionContext,
	mergedConfig *config.MergedDevContainerConfig,
) (string, error)

func InstallDaemon

func InstallDaemon(agentDir string, interval string, log log.Logger) error

func RemoveDaemon

func RemoveDaemon() error

func RunProcessReaper

func RunProcessReaper(ctx context.Context)

RunProcessReaper reaps zombie child processes until ctx is cancelled. This is needed when running as PID 1 (e.g. in a container).

Types

type DaemonConfig

type DaemonConfig struct {
	Platform devpod.PlatformOptions `json:"platform"`
	Ssh      SshConfig              `json:"ssh"`
	Timeout  string                 `json:"timeout"`
}

func BuildWorkspaceDaemonConfig

func BuildWorkspaceDaemonConfig(
	platformOptions devpod.PlatformOptions,
	workspaceConfig *provider2.Workspace,
	substitutionContext *config.SubstitutionContext,
	mergedConfig *config.MergedDevContainerConfig,
) (*DaemonConfig, error)

type SshConfig

type SshConfig struct {
	Workdir string `json:"workdir,omitempty"`
	User    string `json:"user,omitempty"`
}

Jump to

Keyboard shortcuts

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