Versions in this module Expand all Collapse all v0 v0.1.1 Apr 19, 2026 v0.1.0 Apr 19, 2026 Changes in this version + const ContainerActivityFile + const ContainerDataDir + const ContainerDevsyHelperLocation + const DefaultImageConfigPath + const DefaultInactivityTimeout + const DockerlessContextEnvVar + const DockerlessCredentialsPath + const DockerlessEnvVar + const RemoteDevsyHelperLocation + const WorkspaceBusyFile + var ErrArchMismatch = errors.New("architecture mismatch") + var ErrBinaryNotFound = errors.New("agent binary not found") + var ErrFindAgentHomeFolder = fmt.Errorf("couldn't find devsy home directory") + var ErrInjectTimeout = errors.New("injection timeout") + func Bool(b bool) *bool + func CloneRepositoryForWorkspace(ctx context.Context, source *provider2.WorkspaceSource, ...) error + func CreateAgentWorkspaceDir(agentFolder, context, workspaceID string) (string, error) + func CreateWorkspaceBusyFile(folder string) + func DecodeContainerWorkspaceInfo(workspaceInfoRaw string) (*provider2.ContainerWorkspaceInfo, string, error) + func DecodeWorkspaceInfo(workspaceInfoRaw string) (*provider2.AgentWorkspaceInfo, string, error) + func DefaultAgentDownloadURL() string + func DeleteWorkspaceBusyFile(folder string) + func DockerlessBuild(opts DockerlessBuildOptions) error + func FindAgentHomeFolder(agentFolder string) (string, error) + func GetAgentBinariesDir(agentFolder, context, workspaceID string) (string, error) + func GetAgentBinariesDirFromWorkspaceDir(workspaceDir string) (string, error) + func GetAgentDaemonLogFolder(agentFolder string) (string, error) + func GetAgentWorkspaceContentDir(workspaceDir string) string + func GetAgentWorkspaceDir(agentFolder, context, workspaceID string) (string, error) + func GetDockerlessBuildContext() string + func HasWorkspaceBusyFile(folder string) bool + func ImageConfigExists(path string) bool + func InjectAgent(opts *InjectOptions) error + func IsDockerlessEnabled() bool + func ParseAgentWorkspaceInfo(workspaceConfigFile string) (*provider2.AgentWorkspaceInfo, error) + func PrepareAgentHomeFolder(agentFolder string) (string, error) + func ReadAgentWorkspaceInfo(agentFolder, context, id string, log log.Logger) (bool, *provider2.AgentWorkspaceInfo, error) + func Tunnel(ctx context.Context, exec Exec, user string, stdin io.Reader, stdout io.Writer, ...) error + func WorkspaceInfo(workspaceInfoEncoded string, log log.Logger) (bool, *provider2.AgentWorkspaceInfo, error) + func WriteWorkspaceInfo(workspaceInfoEncoded string, log log.Logger) (bool, *provider2.AgentWorkspaceInfo, error) + func WriteWorkspaceInfoAndDeleteOld(workspaceInfoEncoded string, ...) (bool, *provider2.AgentWorkspaceInfo, error) + type BinaryCache struct + BaseDir string + func (c *BinaryCache) Get(arch string) (io.ReadCloser, error) + func (c *BinaryCache) Set(arch string, data io.Reader) error + type BinaryManager struct + func NewBinaryManager(logger log.Logger, downloadURL string) *BinaryManager + func (m *BinaryManager) AcquireBinary(ctx context.Context, arch string) (io.ReadCloser, error) + type BinarySource interface + GetBinary func(ctx context.Context, arch string) (io.ReadCloser, error) + SourceName func() string + type ConfigureCredentialsFunc func(context.Context) (string, error) + type DockerlessBuildOptions struct + ConfigureCredentialsFunc ConfigureCredentialsFunc + Context context.Context + Debug bool + DockerlessOptions *provider2.ProviderDockerlessOptions + ImageConfigOutput string + Log log.Logger + SetupInfo *config.Result + type Exec func(ctx context.Context, user string, command string, stdin io.Reader, ...) error + type FileCacheSource struct + Cache *BinaryCache + func (s *FileCacheSource) GetBinary(ctx context.Context, arch string) (io.ReadCloser, error) + func (s *FileCacheSource) SourceName() string + type HTTPDownloadSource struct + BaseURL string + Cache *BinaryCache + func (s *HTTPDownloadSource) GetBinary(ctx context.Context, arch string) (io.ReadCloser, error) + func (s *HTTPDownloadSource) SourceName() string + type InjectError struct + Cause error + Stage InjectStage + func (e *InjectError) Error() string + func (e *InjectError) Unwrap() error + type InjectOptions struct + Command string + Ctx context.Context + DownloadURL string + Exec inject.ExecFunc + IsLocal bool + LocalVersion string + Log log.Logger + PreferDownloadFromRemoteUrl *bool + RemoteAgentPath string + RemoteVersion string + SkipVersionCheck bool + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + Timeout time.Duration + func (o *InjectOptions) ApplyDefaults() + func (o *InjectOptions) Validate() error + type InjectSource struct + func (s *InjectSource) GetBinary(ctx context.Context, arch string) (io.ReadCloser, error) + func (s *InjectSource) SourceName() string + type InjectStage string + const InjectStageCommandExecution + const InjectStageInject + const InjectStageVersionCheck