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, remoteAgentPath, downloadURL string, ...) error
- func InjectAgentAndExecute(ctx context.Context, exec inject.ExecFunc, remoteAgentPath, downloadURL string, ...) error
- func NewStreamReader(stream tunnel.Tunnel_ReadWorkspaceClient) io.Reader
- func NewStreamWriter(stream tunnel.Tunnel_ReadWorkspaceServer, log log.Logger) io.Writer
- func NewTunnelClient(reader io.Reader, writer io.WriteCloser, exitOnClose bool) (tunnel.TunnelClient, error)
- func NewTunnelLogger(ctx context.Context, client tunnel.TunnelClient, debug bool) log.Logger
- func PrepareAgentHomeFolder(agentFolder string) (string, error)
- func ReadAgentWorkspaceDevContainerResult(agentFolder, context, id string) (*config.Result, error)
- func ReadAgentWorkspaceInfo(agentFolder, context, id string, log log.Logger) (bool, *provider2.AgentWorkspaceInfo, error)
- func RunTunnelServer(ctx context.Context, reader io.Reader, writer io.WriteCloser, ...) (*config.Result, error)
- func Tunnel(ctx context.Context, driver driver.Driver, containerID string, token string, ...) error
- func WriteAgentWorkspaceDevContainerResult(agentFolder, context, id string, result *config.Result) error
- func WriteWorkspaceInfo(workspaceInfoEncoded string, log log.Logger) (bool, *provider2.AgentWorkspaceInfo, error)
- func WriteWorkspaceInfoAndDeleteOld(workspaceInfoEncoded string, ...) (bool, *provider2.AgentWorkspaceInfo, error)
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 NewStreamReader ¶
func NewStreamReader(stream tunnel.Tunnel_ReadWorkspaceClient) io.Reader
func NewStreamWriter ¶
func NewTunnelClient ¶
func NewTunnelClient(reader io.Reader, writer io.WriteCloser, exitOnClose bool) (tunnel.TunnelClient, error)
func NewTunnelLogger ¶
func PrepareAgentHomeFolder ¶
func ReadAgentWorkspaceInfo ¶
func RunTunnelServer ¶
func WriteWorkspaceInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.