Documentation ¶
Index ¶
- Constants
- func AuthenticateDependencies(lcUser *api.LcUser, signerID string, deps []Dependency, batchSize int, ...) ([]error, error)
- func Display(a Artifact, columns ColumnID)
- func HashTypeName(hashType HashType) string
- func NotarizeDependencies(lcUser *api.LcUser, kinds []string, deps []*Dependency, batchSize int, ...) error
- func ToApiArtifact(kind, name, version, hash string, hashType HashType) *api.Artifact
- func TrustLevelName(level TrustLevel) string
- type Artifact
- type ColumnID
- type DepType
- type Dependency
- type GenericArtifact
- type HashType
- type LoadedArtifact
- type OutputOptions
- type TrustLevel
Constants ¶
View Source
const MaxGoroutines = 8 // used by other packages that query components from external sources
Variables ¶
This section is empty.
Functions ¶
func AuthenticateDependencies ¶
func AuthenticateDependencies( lcUser *api.LcUser, signerID string, deps []Dependency, batchSize int, progressCallback func([]Dependency), ) ([]error, error)
AuthenticateDependencies ...
func HashTypeName ¶
func NotarizeDependencies ¶
func NotarizeDependencies( lcUser *api.LcUser, kinds []string, deps []*Dependency, batchSize int, progressCallback func([]*Dependency), ) error
NotarizeDependencies ...
func ToApiArtifact ¶
ToApiArtifact ...
func TrustLevelName ¶
func TrustLevelName(level TrustLevel) string
Types ¶
type Artifact ¶
type Artifact interface { Path() string Type() string Dependencies() []Dependency ResolveDependencies(output OutputOptions) ([]Dependency, error) }
Artifact is a result of build process. It is a language- and/or environment-specific interface which finds dependencies
type Dependency ¶
type Dependency struct { Name string Version string Hash string Kind string HashType HashType TrustLevel TrustLevel // set by Notorize/Authenticate SignerID string // set by Notorize/Authenticate License string Timestamp time.Time Type DepType }
Dependency is a single building block, used for building the Artifact
type GenericArtifact ¶
type GenericArtifact struct {
Deps []Dependency
}
func (GenericArtifact) Dependencies ¶
func (a GenericArtifact) Dependencies() []Dependency
type LoadedArtifact ¶
type LoadedArtifact struct { GenericArtifact // contains filtered or unexported fields }
func LoadFromDb ¶
func (LoadedArtifact) Dependencies ¶
func (a LoadedArtifact) Dependencies() []Dependency
func (LoadedArtifact) Path ¶
func (a LoadedArtifact) Path() string
func (LoadedArtifact) ResolveDependencies ¶
func (a LoadedArtifact) ResolveDependencies(output OutputOptions) ([]Dependency, error)
func (LoadedArtifact) Type ¶
func (a LoadedArtifact) Type() string
type TrustLevel ¶
type TrustLevel uint
const ( Invalid TrustLevel = iota Untrusted Unsupported Unknown Trusted MinTrustLevel = Untrusted MaxTrustLevel = Trusted )
Click to show internal directories.
Click to hide internal directories.