Documentation
¶
Index ¶
- Constants
- Variables
- func CreateAgentWorkspaceDir(agentFolder, context, workspaceID string) (string, error)
- func DecodeWorkspaceInfo(workspaceInfoRaw string) (*provider2.AgentWorkspaceInfo, string, error)
- func DefaultAgentDownloadURL() string
- func FindAgentHomeFolder(agentFolder string) (string, error)
- func GetAgentBinariesDir(agentFolder, context, workspaceID string) (string, error)
- func GetAgentDaemonLogFolder(agentFolder string) (string, error)
- func GetAgentWorkspaceContentDir(workspaceDir string) string
- func GetAgentWorkspaceDir(agentFolder, context, workspaceID string) (string, error)
- func InjectAgent(ctx context.Context, exec inject.ExecFunc, local bool, ...) error
- func InjectAgentAndExecute(ctx context.Context, exec inject.ExecFunc, local bool, ...) 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 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 RemoteDevPodHelperLocation = "/tmp/devpod"
View Source
const WorkspaceDevContainerResult = "result.json"
Variables ¶
View Source
var ErrFindAgentHomeFolder = fmt.Errorf("couldn't find devpod home directory")
Functions ¶
func CreateAgentWorkspaceDir ¶
func DecodeWorkspaceInfo ¶
func DecodeWorkspaceInfo(workspaceInfoRaw string) (*provider2.AgentWorkspaceInfo, string, error)
func DefaultAgentDownloadURL ¶
func DefaultAgentDownloadURL() string
func FindAgentHomeFolder ¶
func GetAgentBinariesDir ¶
func GetAgentDaemonLogFolder ¶
func GetAgentWorkspaceDir ¶
func InjectAgent ¶
func InjectAgentAndExecute ¶
func PrepareAgentHomeFolder ¶
func ReadAgentWorkspaceInfo ¶
func WriteWorkspaceInfo ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.