Documentation
¶
Index ¶
- func CleanupAll(ctx context.Context) error
- func IsCommitHash(s string) bool
- func New(v *validator.Validate, opts ...workspaceOption) (*workspace, error)
- func WithGitSource(src *plantypes.GitSource) workspaceOption
- func WithLogger(l *zap.Logger) workspaceOption
- func WithTmpRoot(root string) workspaceOption
- func WithWorkspaceID(workspaceID string) workspaceOption
- type CloneErr
- type PathExistsErr
- type Source
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupAll ¶
func IsCommitHash ¶
IsCommitHash checks if a string matches the pattern of a git commit hash (5-40 hexadecimal characters).
func WithGitSource ¶
WithGitSource sets a git source
func WithLogger ¶
func WithTmpRoot ¶
func WithTmpRoot(root string) workspaceOption
WithTmpRoot sets a root temp directory for the workspace
func WithWorkspaceID ¶
func WithWorkspaceID(workspaceID string) workspaceOption
WithWorkspaceID sets an ID on the workspace
Types ¶
type PathExistsErr ¶
type PathExistsErr struct {
Path string
}
func (PathExistsErr) Error ¶
func (p PathExistsErr) Error() string
Click to show internal directories.
Click to hide internal directories.