package
0.0.0-20210413105317-7de0bc6974cb
Repository: https://github.com/mbtproject/mbt.git
Documentation: pkg.go.dev
# Functions
CmdOptionsWithStdIO creates an instance of CmdOptions with its streams pointing to std io streams.
ExactMatchDependentsFilter is a helper to create an exact match FilterOptions.
ExactMatchFilter is a helper to create an exact match FilterOptions.
FuzzyDependentsFilter is a helper to create a fuzzy match FilterOptions.
FuzzyFilter is a helper to create a fuzzy match FilterOptions.
GitRepoRoot returns path to a git repo reachable from the specified directory.
NewDiscover creates an instance of standard discover implementation.
NewLibgitRepo creates a libgit2 repo instance.
NewManifestBuilder creates a new ManifestBuilder.
NewProcessManager creates an instance of ProcessManager.
NewReducer creates a new reducer.
NewStdLog creates a standared logger.
NewSystem creates a new instance of core mbt system.
NewWorkspaceManager creates a new workspace manager.
# Constants
CmdStageAfterBuild is the stage after executing the module build command.
CmdStageBeforeBuild is the stage before executing module build command.
CmdStageFailedBuild is when module command is failed.
CmdStageSkipBuild is when module building is skipped due to lack of matching building command.
ErrClassInternal is an internal error potentially due to a bug.
ErrClassNone Not specified.
ErrClassUser is a user error that can be corrected.
LogLevelDebug logs debug and above.
LogLevelNormal logs info and above.
# Variables
NoFilter is built-in filter that represents no filtering.
# Structs
BuildResult is summary for a single module build.
BuildSummary is a summary of a successful build.
Cmd represents the structure of a command appears in .mbt.yml.
CmdFailure contains the failures occurred while running a user defined command.
CmdOptions defines various options required by methods executing user defined commands.
DiffDelta is a single delta in a git diff.
FilterOptions describe how to filter the modules in a manifest.
KVP is a key value pair.
Manifest represents a collection modules in the repository.
Module represents a single module in the repository.
RunResult is the result of running a user defined command.
Spec represents the structure of .mbt.yml contents.
TemplateData is the data passed into template.
UserCmd represents the structure of a user defined command in .mbt.yml.
# Interfaces
Blob stored in git.
Commit in the repo.
Discover module metadata for various conditions.
Log used to write system events.
ManifestBuilder builds Manifest for various conditions.
ProcessManager manages the execution of build and user defined commands.
Reducer reduces a given modules set to impacted set from a diff delta.
Reference to a tree in the repository.
Repo defines the set of interactions with the git repository.
System is the interface used by users to invoke the core functionality of this package.
WorkspaceManager contains various functions to manipulate workspace.
# Type aliases
BlobWalkCallback used for discovering blobs in a commit tree.
CmdStage is an enum to indicate various stages of a command.
CmdStageCallback is the callback function used to notify various build stages.
Modules is an array of Module.