Documentation
¶
Overview ¶
Package install defines options, and logic used to pull an artifact from a remote repository and install it in the local system.
Index ¶
Constants ¶
View Source
const ( // FlagAllowedTypes is the name of the flag to specify allowed artifact types. FlagAllowedTypes = "allowed-types" // FlagPlatform is the name of the flag to override the platform. FlagPlatform = "platform" // FlagResolveDeps is the name of the flag to enable artifact dependencies resolution. FlagResolveDeps = "resolve-deps" // FlagNoVerify is the name of the flag to disable signature verification. FlagNoVerify = "no-verify" )
Variables ¶
View Source
var ( // ErrCannotSatisfyDependencies is the error returned when we cannot correctly resolve dependencies. ErrCannotSatisfyDependencies = errors.New("cannot satisfy dependencies") )
Functions ¶
Types ¶
type ArtifactInfo ¶ added in v0.12.0
type ArtifactInfo struct {
// contains filtered or unexported fields
}
ArtifactInfo contains metadata about a resolved artifact.
type ArtifactMapType ¶ added in v0.12.0
type ArtifactMapType map[string]*ArtifactInfo
ArtifactMapType maps artifact names to their metadata.
func ResolveDeps ¶
func ResolveDeps(configResolver artifactConfigResolver, resolver refResolver, inRefs ...string) (artifacts ArtifactMapType, err error)
ResolveDeps resolves dependencies to a list of references.
Click to show internal directories.
Click to hide internal directories.