Documentation ¶
Index ¶
- func Build(dockerClient *client.Client, stream proto.Agent_BuildAndStartDevEnvServer, ...) error
- func EnsureDockerContainerRemoved(dockerClient *client.Client) error
- func EnsureDockerContainerRunning(dockerClient *client.Client) error
- func RunWorkspaceHooks(dockerClient *client.Client, stream proto.Agent_BuildAndStartDevEnvServer, ...) error
- func SaveWorkspaceConfigAsFile(workspaceConfigFilePath string, workspaceConfig *WorkspaceConfig) error
- type GRPCBuildAndStartDevEnvStreamWriter
- type PreparedWorkspaceMetadata
- type VSCodeWorkspaceConfig
- type VSCodeWorkspaceConfigExtensions
- type VSCodeWorkspaceConfigFolder
- type WorkspaceConfig
- type WorkspaceConfigRepository
- type WorkspaceConfigRepositoryHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build( dockerClient *client.Client, stream proto.Agent_BuildAndStartDevEnvServer, userConfigRepoOwner string, userConfigRepoName string, repoOwner string, repoName string, preparedWorkspaceMetadata *PreparedWorkspaceMetadata, ) error
func RunWorkspaceHooks ¶
func RunWorkspaceHooks( dockerClient *client.Client, stream proto.Agent_BuildAndStartDevEnvServer, workspaceConfig *WorkspaceConfig, ) error
func SaveWorkspaceConfigAsFile ¶
func SaveWorkspaceConfigAsFile( workspaceConfigFilePath string, workspaceConfig *WorkspaceConfig, ) error
Types ¶
type GRPCBuildAndStartDevEnvStreamWriter ¶
type GRPCBuildAndStartDevEnvStreamWriter struct {
Stream proto.Agent_BuildAndStartDevEnvServer
}
func NewGRPCBuildAndStartDevEnvStreamWriter ¶
func NewGRPCBuildAndStartDevEnvStreamWriter( stream proto.Agent_BuildAndStartDevEnvServer, ) GRPCBuildAndStartDevEnvStreamWriter
type PreparedWorkspaceMetadata ¶
type PreparedWorkspaceMetadata struct { TmpUserConfigRepoDirPath string TmpDevEnvRepoDirPath string TmpDevEnvRepoConfigDirPath string TmpDevEnvRepoDockerfilePath string DevEnvRepoHasDockerfile bool }
func PrepareWorkspace ¶
func PrepareWorkspace( userConfigRepoOwner string, userConfigRepoName string, devEnvRepoOwner string, devEnvRepoName string, workspaceConfig *WorkspaceConfig, ) (*PreparedWorkspaceMetadata, error)
type VSCodeWorkspaceConfig ¶
type VSCodeWorkspaceConfig struct { Folders []VSCodeWorkspaceConfigFolder `json:"folders"` Settings map[string]interface{} `json:"settings"` Extensions VSCodeWorkspaceConfigExtensions `json:"extensions"` }
VSCodeWorkspaceConfig matches .code-workspace schema. See: https://code.visualstudio.com/docs/editor/multi-root-workspaces#_workspace-file-schema
func LoadVSCodeWorkspaceConfig ¶
func LoadVSCodeWorkspaceConfig( vscodeWorkspaceConfigFilePath string, ) (*VSCodeWorkspaceConfig, error)
type VSCodeWorkspaceConfigExtensions ¶
type VSCodeWorkspaceConfigExtensions struct {
Recommendations []string `json:"recommendations"`
}
type VSCodeWorkspaceConfigFolder ¶
type VSCodeWorkspaceConfigFolder struct {
Path string `json:"path"`
}
type WorkspaceConfig ¶
type WorkspaceConfig struct {
Repositories []WorkspaceConfigRepository `json:"repositories"`
}
func LoadWorkspaceConfig ¶
func LoadWorkspaceConfig( workspaceConfigFilePath string, ) (*WorkspaceConfig, error)
func NewWorkspaceConfig ¶
func NewWorkspaceConfig() *WorkspaceConfig
Click to show internal directories.
Click to hide internal directories.