Documentation ¶
Index ¶
- func CloneRepository(ctx context.Context, local bool, workspaceDir string, ...) error
- func CreateRunner(workspaceInfo *provider2.AgentWorkspaceInfo, log log.Logger) (devcontainer.Runner, error)
- func DownloadLocalFolder(ctx context.Context, workspaceDir string, client tunnel.TunnelClient, ...) error
- func InitContentFolder(workspaceInfo *provider2.AgentWorkspaceInfo, log log.Logger) (bool, error)
- func InstallDocker(log log.Logger) error
- func NewBuildCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewDeleteCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewInstallDotfilesCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewLogsDaemonCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewSetupGPGCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewStatusCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewStopCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewUpCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewUpdateConfigCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewWorkspaceCmd(flags *flags.GlobalFlags) *cobra.Command
- func PrepareImage(workspaceDir, image string) error
- func RemoteCloneAndDownload(ctx context.Context, workspaceDir string, client tunnel.TunnelClient, ...) error
- type BuildCmd
- type DeleteCmd
- type InstallDotfilesCmd
- type LogsDaemonCmd
- type SetupGPGCmd
- type StatusCmd
- type StopCmd
- type UpCmd
- type UpdateConfigCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneRepository ¶
func CreateRunner ¶ added in v0.2.0
func CreateRunner(workspaceInfo *provider2.AgentWorkspaceInfo, log log.Logger) (devcontainer.Runner, error)
func DownloadLocalFolder ¶
func InitContentFolder ¶ added in v0.5.0
func InstallDocker ¶
func NewBuildCmd ¶
func NewBuildCmd(flags *flags.GlobalFlags) *cobra.Command
NewBuildCmd creates a new command
func NewDeleteCmd ¶
func NewDeleteCmd(flags *flags.GlobalFlags) *cobra.Command
NewDeleteCmd creates a new command
func NewInstallDotfilesCmd ¶ added in v0.3.4
func NewInstallDotfilesCmd(flags *flags.GlobalFlags) *cobra.Command
NewInstallDotfilesCmd creates a new command
func NewLogsDaemonCmd ¶ added in v0.0.3
func NewLogsDaemonCmd(flags *flags.GlobalFlags) *cobra.Command
NewLogsDaemonCmd creates a new command
func NewSetupGPGCmd ¶ added in v0.4.0
func NewSetupGPGCmd(flags *flags.GlobalFlags) *cobra.Command
NewSetupGPGCmd creates a new command
func NewStatusCmd ¶
func NewStatusCmd(flags *flags.GlobalFlags) *cobra.Command
NewStatusCmd creates a new command
func NewStopCmd ¶
func NewStopCmd(flags *flags.GlobalFlags) *cobra.Command
NewStopCmd creates a new command
func NewUpCmd ¶
func NewUpCmd(flags *flags.GlobalFlags) *cobra.Command
NewUpCmd creates a new command
func NewUpdateConfigCmd ¶
func NewUpdateConfigCmd(flags *flags.GlobalFlags) *cobra.Command
NewUpdateConfigCmd creates a new command
func NewWorkspaceCmd ¶
func NewWorkspaceCmd(flags *flags.GlobalFlags) *cobra.Command
NewWorkspaceCmd returns a new command
func PrepareImage ¶
func RemoteCloneAndDownload ¶ added in v0.3.0
Types ¶
type BuildCmd ¶
type BuildCmd struct { *flags.GlobalFlags WorkspaceInfo string }
BuildCmd holds the cmd flags
type DeleteCmd ¶
type DeleteCmd struct { *flags.GlobalFlags Container bool Daemon bool WorkspaceInfo string }
DeleteCmd holds the cmd flags
type InstallDotfilesCmd ¶ added in v0.3.4
type InstallDotfilesCmd struct { *flags.GlobalFlags Repository string InstallScript string }
InstallDotfilesCmd holds the installDotfiles cmd flags
type LogsDaemonCmd ¶ added in v0.0.3
type LogsDaemonCmd struct { *flags.GlobalFlags ID string }
LogsDaemonCmd holds the cmd flags
type SetupGPGCmd ¶ added in v0.4.0
type SetupGPGCmd struct { *flags.GlobalFlags PublicKey string OwnerTrust string SocketPath string }
SetupGPGCmd holds the setupGPG cmd flags
func (*SetupGPGCmd) Run ¶ added in v0.4.0
func (cmd *SetupGPGCmd) Run(ctx context.Context) error
will forward a local gpg-agent into the remote container this works by
- stopping remote gpg-agent and removing the sockets - exporting local public keys and owner trust - importing those into the container - ensuring the gpg-agent is stopped in the container - starting a reverse-tunnel of the local unix socket to remote - ensuring paths and permissions are correctly set in the remote
type StatusCmd ¶
type StatusCmd struct { *flags.GlobalFlags WorkspaceInfo string }
StatusCmd holds the cmd flags
type StopCmd ¶
type StopCmd struct { *flags.GlobalFlags WorkspaceInfo string }
StopCmd holds the cmd flags
type UpCmd ¶
type UpCmd struct { *flags.GlobalFlags WorkspaceInfo string }
UpCmd holds the up cmd flags
type UpdateConfigCmd ¶
type UpdateConfigCmd struct { *flags.GlobalFlags WorkspaceInfo string }
UpdateConfigCmd holds the cmd flags