dependency

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package dependency allows for the creation of Dependencies and Dependency Groups, and provides functions to install these Groups.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallOptionalDeps

func InstallOptionalDeps(groups []*Group, logger flog.Logger) error

InstallOptionalDeps installs the supplied dependency groups.

Since the groups are all optional, InstallOptionalDeps continues to install the remaining groups even if a group fails to be installed. It returns a non-nil error if any of the groups fails to be installed.

Types

type Dependency

type Dependency interface {
	RequiresRoot() bool
	Installed() bool
	Install() error
}

Dependency is a dependency of the Finch binary. It can be a binary, a package, or a file, etc.

type Group

type Group struct {
	// contains filtered or unexported fields
}

Group contains logically related dependencies.

func NewGroup

func NewGroup(deps []Dependency, desc string, errMsg string) *Group

NewGroup views deps as ordered dependencies, and the returned Group will only install them in the order specified here.

Directories

Path Synopsis
Package credhelper for integrating credential helpers into Finch
Package credhelper for integrating credential helpers into Finch
Package vmnet handles installation and configuration of dependencies needed for Lima's managed networking and port-forwarding to work, with minimal user interaction.
Package vmnet handles installation and configuration of dependencies needed for Lima's managed networking and port-forwarding to work, with minimal user interaction.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL