Documentation ¶
Index ¶
- Constants
- func GetContainerCreateConfig(workspace *models.Workspace, toolboxApiHostPort *uint16) *container.Config
- type CreateDevcontainerOptions
- type CreateWorkspaceOptions
- type DevcontainerPaths
- type DockerClient
- func (d *DockerClient) CreateFromDevcontainer(opts CreateDevcontainerOptions) (string, RemoteUser, error)
- func (d *DockerClient) CreateTarget(target *models.Target, targetDir string, logWriter io.Writer, ...) error
- func (d *DockerClient) CreateWorkspace(opts *CreateWorkspaceOptions) error
- func (d *DockerClient) DeleteImage(imageName string, force bool, logWriter io.Writer) error
- func (d *DockerClient) DestroyTarget(target *models.Target, targetDir string, sshClient *ssh.Client) error
- func (d *DockerClient) DestroyWorkspace(workspace *models.Workspace, workspaceDir string, sshClient *ssh.Client) error
- func (d *DockerClient) ExecSync(containerID string, config container.ExecOptions, outputWriter io.Writer) (*ExecResult, error)
- func (d *DockerClient) GetContainerLogs(containerName string, logWriter io.Writer) error
- func (d *DockerClient) GetTargetProviderMetadata(t *models.Target) (string, error)
- func (d *DockerClient) GetWorkspaceContainerName(workspace *models.Workspace) string
- func (d *DockerClient) GetWorkspaceProviderMetadata(w *models.Workspace) (string, error)
- func (d *DockerClient) GetWorkspaceVolumeName(workspace *models.Workspace) string
- func (d *DockerClient) PullImage(imageName string, cr *models.ContainerRegistry, logWriter io.Writer) error
- func (d *DockerClient) PushImage(imageName string, cr *models.ContainerRegistry, logWriter io.Writer) error
- func (d *DockerClient) RemoveContainer(containerName string) error
- func (d *DockerClient) StartWorkspace(opts *CreateWorkspaceOptions, daytonaDownloadUrl string) error
- func (d *DockerClient) StopWorkspace(w *models.Workspace, logWriter io.Writer) error
- type DockerClientConfig
- type DockerCredHelper
- type ExecResult
- type FeatureItem
- type IDockerClient
- type IDockerCredHelper
- type RemoteUser
Constants ¶
View Source
const UPDATE_UID_GID_SCRIPT = `` /* 1140-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateDevcontainerOptions ¶ added in v0.26.0
type CreateDevcontainerOptions struct { WorkspaceDir string // Name of the project inside the devcontainer WorkspaceFolderName string BuildConfig *models.BuildConfig LogWriter io.Writer SshClient *ssh.Client ContainerRegistries common.ContainerRegistries Prebuild bool EnvVars map[string]string IdLabels map[string]string BuilderImage string }
type CreateWorkspaceOptions ¶ added in v0.52.0
type DevcontainerPaths ¶ added in v0.22.0
type DockerClient ¶
type DockerClient struct {
// contains filtered or unexported fields
}
func (*DockerClient) CreateFromDevcontainer ¶ added in v0.26.0
func (d *DockerClient) CreateFromDevcontainer(opts CreateDevcontainerOptions) (string, RemoteUser, error)
func (*DockerClient) CreateTarget ¶ added in v0.52.0
func (*DockerClient) CreateWorkspace ¶
func (d *DockerClient) CreateWorkspace(opts *CreateWorkspaceOptions) error
func (*DockerClient) DeleteImage ¶ added in v0.26.0
func (*DockerClient) DestroyTarget ¶ added in v0.52.0
func (*DockerClient) DestroyWorkspace ¶
func (*DockerClient) ExecSync ¶
func (d *DockerClient) ExecSync(containerID string, config container.ExecOptions, outputWriter io.Writer) (*ExecResult, error)
func (*DockerClient) GetContainerLogs ¶
func (d *DockerClient) GetContainerLogs(containerName string, logWriter io.Writer) error
func (*DockerClient) GetTargetProviderMetadata ¶ added in v0.52.0
func (d *DockerClient) GetTargetProviderMetadata(t *models.Target) (string, error)
func (*DockerClient) GetWorkspaceContainerName ¶ added in v0.52.0
func (d *DockerClient) GetWorkspaceContainerName(workspace *models.Workspace) string
func (*DockerClient) GetWorkspaceProviderMetadata ¶ added in v0.52.0
func (d *DockerClient) GetWorkspaceProviderMetadata(w *models.Workspace) (string, error)
func (*DockerClient) GetWorkspaceVolumeName ¶ added in v0.52.0
func (d *DockerClient) GetWorkspaceVolumeName(workspace *models.Workspace) string
func (*DockerClient) PullImage ¶ added in v0.17.0
func (d *DockerClient) PullImage(imageName string, cr *models.ContainerRegistry, logWriter io.Writer) error
func (*DockerClient) PushImage ¶ added in v0.17.0
func (d *DockerClient) PushImage(imageName string, cr *models.ContainerRegistry, logWriter io.Writer) error
func (*DockerClient) RemoveContainer ¶ added in v0.26.0
func (d *DockerClient) RemoveContainer(containerName string) error
func (*DockerClient) StartWorkspace ¶ added in v0.52.0
func (d *DockerClient) StartWorkspace(opts *CreateWorkspaceOptions, daytonaDownloadUrl string) error
func (*DockerClient) StopWorkspace ¶ added in v0.52.0
type DockerClientConfig ¶
type DockerCredHelper ¶ added in v0.52.0
func (*DockerCredHelper) SetDockerConfig ¶ added in v0.52.0
func (d *DockerCredHelper) SetDockerConfig() error
type ExecResult ¶
type FeatureItem ¶ added in v0.32.0
type IDockerClient ¶
type IDockerClient interface { CreateWorkspace(opts *CreateWorkspaceOptions) error CreateTarget(target *models.Target, targetDir string, logWriter io.Writer, sshClient *ssh.Client) error DestroyWorkspace(workspace *models.Workspace, workspaceDir string, sshClient *ssh.Client) error DestroyTarget(target *models.Target, targetDir string, sshClient *ssh.Client) error StartWorkspace(opts *CreateWorkspaceOptions, daytonaDownloadUrl string) error StopWorkspace(workspace *models.Workspace, logWriter io.Writer) error GetWorkspaceProviderMetadata(workspace *models.Workspace) (string, error) GetTargetProviderMetadata(t *models.Target) (string, error) GetWorkspaceContainerName(workspace *models.Workspace) string GetWorkspaceVolumeName(workspace *models.Workspace) string ExecSync(containerID string, config container.ExecOptions, outputWriter io.Writer) (*ExecResult, error) GetContainerLogs(containerName string, logWriter io.Writer) error PullImage(imageName string, cr *models.ContainerRegistry, logWriter io.Writer) error PushImage(imageName string, cr *models.ContainerRegistry, logWriter io.Writer) error DeleteImage(imageName string, force bool, logWriter io.Writer) error CreateFromDevcontainer(opts CreateDevcontainerOptions) (string, RemoteUser, error) RemoveContainer(containerName string) error }
func NewDockerClient ¶
func NewDockerClient(config DockerClientConfig) IDockerClient
type IDockerCredHelper ¶ added in v0.52.0
type IDockerCredHelper interface {
SetDockerConfig() error
}
type RemoteUser ¶ added in v0.21.0
type RemoteUser string
Click to show internal directories.
Click to hide internal directories.