Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
Index represents the list of libraries available for download
func (*Index) FindIndexedLibrary ¶
FindIndexedLibrary search an indexed library that matches the provided installed library or nil if not found
func (*Index) FindLibraryUpdate ¶
FindLibraryUpdate check if an installed library may be updated using one of the indexed libraries. This function returns the Release to install to update the library if found, otherwise nil is returned.
func (*Index) FindRelease ¶
FindRelease search a library Release in the index. Returns nil if the release is not found
type Library ¶
type Library struct { Name string Releases map[string]*Release Latest *Release `json:"-"` Index *Index `json:"-"` }
Library is a library available for download
type Reference ¶
type Reference struct { Name string // The name of the parsed item. Version *semver.Version // The Version of the parsed item. }
Reference uniquely identify a Library in the library index
type Release ¶
type Release struct { Author string Version *semver.Version Maintainer string Sentence string Paragraph string Website string Category string Architectures []string Types []string Resource *resources.DownloadResource Library *Library `json:"-"` }
Release is a release of a library available for download
Click to show internal directories.
Click to hide internal directories.