package
0.0.0-20250303191223-d8329aeac5c7
Repository: https://github.com/mongodb/amboy.git
Documentation: pkg.go.dev

# Functions

GetCheckFactory returns a globally registered check factory by name.
GetManagerFactory returns a globally registered manager factory by name.
IsValidState checks states and ensures that a state is valid.
MakeLocalFile constructs an empty local file instance.
NewAlways creates a DependencyManager object that always returns the "Ready" indicating that all dependency requirements are met and that the target is required.
NewCheckManager creates a new check manager that will call the registered Check function matching that name.
NewCreatesFile constructs a dependency manager object to support jobs that are ready to run if a specific file doesn't exist.
NewJobEdges returns an initialized JobEdges object.
NewLocalFile creates a dependency object that checks if dependencies on the local file system are created.
NewMock constructs a new mocked dependency object.
RegisterCheck stores a CheckFactory in the global check registry.
RegisterManager stores a dependency Manager factory in the global Manager registry.

# Constants

Blocked job are waiting for their dependencies to be resolved.
Passed indicates that there is no work to be done for this dependency.
Ready indicates that a job is safe to execute from the perspective of the Dependency Manager.
Unresolved states are for cyclic dependencies or cases where jobs depend on resources that cannot be built.

# Structs

JobEdges provides a common subset of a non-trivial Manager implementation.
LocalFile describes a dependency between a job and local files.
MockDependency implements the dependency.Manager interface, but provides the capability to mock out the behavior of the State() method.
TypeInfo describes the type information that every dependency implementation should provide in its Type() implementation.

# Interfaces

Manager objects provide a way for Jobs and queues to communicate about dependencies between multiple Jobs.

# Type aliases

CheckFactory is a function that takes no arguments and returns a dependency callback for use in callback-style dependencies.
CheckFunc describes a function type that can be registered and used with the CheckManager.
ManagerFactory is a function that takes no arguments and returns a dependency.Manager interface.
State provides a consistent set of values for DependencyManager implementations to use to report their state, and provide Queues and Jobs with a common set of terms to describe the state of a job's dependencies.