package
0.17.0
Repository: https://github.com/src-d/sourced-ce.git
Documentation: pkg.go.dev

# Functions

InitLocal initializes the workdir for local path and returns the Workdir instance.
InitOrgs initializes the workdir for organizations and returns the Workdir instance.
NewHandler creates a handler that manages workdirs in the path returned by the `workdirsPath` function.

# Constants

Local refers to a workdir that has been initialized for local repos.
None refers to a failure in identifying the type of the workdir.
Orgs refers to a workdir that has been initialized for organizations.

# Variables

ErrInitFailed is an error returned on workdir initialization for custom cases.
ErrMalformed is the returned error when the workdir is wrong.
OptionalFiles list of optional files that could be deleted when pruning.
RequiredFiles list of required files in a directory to treat it as a working directory.

# Structs

Handler provides a way to interact with all the workdirs by exposing the following operations: - read/set/unset active workdir, - remove/validate a workdir, - list workdirs.
Workdir represents a workdir associated with a local or an orgs initialization.

# Type aliases

Type defines the type of the workdir.