Documentation
¶
Overview ¶
Package deps provides dependency checking and management for sources.
Index ¶
- func AutoInstall(ctx context.Context, dep sources.Dependency) error
- func Check(ctx context.Context, dep sources.Dependency) sources.DependencyStatus
- func CheckAll(ctx context.Context, src dependencySource) map[string]sources.DependencyStatus
- func GetMissingDeps(deps []sources.Dependency, statuses map[string]sources.DependencyStatus) []sources.Dependency
- func HasMissingDeps(statuses map[string]sources.DependencyStatus) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoInstall ¶
func AutoInstall(ctx context.Context, dep sources.Dependency) error
AutoInstall attempts to install a dependency using its trusted source declaration, then verifies that the command is available.
func Check ¶
func Check(ctx context.Context, dep sources.Dependency) sources.DependencyStatus
Check verifies if a dependency is available on the system. It tries all CheckCommands in order and returns the first one that succeeds.
func CheckAll ¶
func CheckAll(ctx context.Context, src dependencySource) map[string]sources.DependencyStatus
CheckAll checks all dependencies for a source. Returns a map of dependency name to status.
func GetMissingDeps ¶
func GetMissingDeps(deps []sources.Dependency, statuses map[string]sources.DependencyStatus) []sources.Dependency
GetMissingDeps returns a list of dependencies that are missing.
func HasMissingDeps ¶
func HasMissingDeps(statuses map[string]sources.DependencyStatus) bool
HasMissingDeps returns true if any dependencies are missing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.