Documentation ¶
Index ¶
- Constants
- Variables
- 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 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 HasWorkspaceBusyFile(folder string) bool
- func InjectAgent(ctx context.Context, exec inject.ExecFunc, local bool, ...) error
- func InjectAgentAndExecute(ctx context.Context, exec inject.ExecFunc, local bool, ...) error
- 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 Exec
Constants ¶
View Source
const ContainerActivityFile = "/tmp/devpod.activity"
View Source
const ContainerDevPodHelperLocation = "/usr/local/bin/devpod"
View Source
const DefaultInactivityTimeout = time.Minute * 20
View Source
const EnvDevPodAgentURL = "DEVPOD_AGENT_URL"
View Source
const RemoteDevPodHelperLocation = "/tmp/devpod"
View Source
const WorkspaceBusyFile = "workspace.lock"
Variables ¶
View Source
var ErrFindAgentHomeFolder = fmt.Errorf("couldn't find devpod home directory")
Functions ¶
func CreateAgentWorkspaceDir ¶
func CreateWorkspaceBusyFile ¶ added in v0.3.0
func CreateWorkspaceBusyFile(folder string)
func DecodeContainerWorkspaceInfo ¶ added in v0.4.0
func DecodeContainerWorkspaceInfo(workspaceInfoRaw string) (*provider2.ContainerWorkspaceInfo, string, error)
func DecodeWorkspaceInfo ¶
func DecodeWorkspaceInfo(workspaceInfoRaw string) (*provider2.AgentWorkspaceInfo, string, error)
func DefaultAgentDownloadURL ¶
func DefaultAgentDownloadURL() string
func DeleteWorkspaceBusyFile ¶ added in v0.3.0
func DeleteWorkspaceBusyFile(folder string)
func FindAgentHomeFolder ¶
func GetAgentBinariesDir ¶
func GetAgentBinariesDirFromWorkspaceDir ¶ added in v0.4.0
func GetAgentDaemonLogFolder ¶
func GetAgentWorkspaceDir ¶
func HasWorkspaceBusyFile ¶ added in v0.3.0
func InjectAgent ¶
func InjectAgentAndExecute ¶
func ParseAgentWorkspaceInfo ¶ added in v0.4.0
func ParseAgentWorkspaceInfo(workspaceConfigFile string) (*provider2.AgentWorkspaceInfo, error)
func PrepareAgentHomeFolder ¶
func ReadAgentWorkspaceInfo ¶
func WorkspaceInfo ¶ added in v0.4.0
func WriteWorkspaceInfo ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.