Documentation ¶
Overview ¶
Package search contains functionality to search references and packages in Artifactory.
Index ¶
- func ParseRevisions(serviceManager artifactory.ArtifactoryServicesManager, indexPath string) ([]types.RtRevisionsData, error)
- func ReadPackageProperties(serviceManager artifactory.ArtifactoryServicesManager, repository string, ...) ([]servicesUtils.Property, error)
- func ReadReferenceProperties(serviceManager artifactory.ArtifactoryServicesManager, repository string, ...) ([]servicesUtils.Property, error)
- func RunSearch(servicesManager artifactory.ArtifactoryServicesManager, ...) (*content.ContentReader, error)
- func Search(length int, f func(index int) bool) int
- func SearchPackages(serviceManager artifactory.ArtifactoryServicesManager, repository string, ...) ([]types.Package, error)
- func SearchReferences(serviceManager artifactory.ArtifactoryServicesManager, repository string, ...) ([]types.Reference, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRevisions ¶
func ParseRevisions(serviceManager artifactory.ArtifactoryServicesManager, indexPath string) ([]types.RtRevisionsData, error)
ParseRevisions parses and 'index.json' file stored in Artifactory and returns a sorted list of revisions.
func ReadPackageProperties ¶
func ReadPackageProperties(serviceManager artifactory.ArtifactoryServicesManager, repository string, pkg types.Package) ([]servicesUtils.Property, error)
ReadPackageProperties returns the properties for a given Conan package `pkg` in the given `repository`.
func ReadReferenceProperties ¶
func ReadReferenceProperties(serviceManager artifactory.ArtifactoryServicesManager, repository string, ref types.Reference) ([]servicesUtils.Property, error)
ReadReferenceProperties returns the properties for a given Conan reference `ref` in the given `repository`.
func RunSearch ¶
func RunSearch(servicesManager artifactory.ArtifactoryServicesManager, searchParams services.SearchParams) (*content.ContentReader, error)
RunSearch return the content according to the given `searchParams`.
func Search ¶
Search function invokes the given function with the natural numbers from zero to the input `length`. Useful to search into an array.
func SearchPackages ¶
func SearchPackages(serviceManager artifactory.ArtifactoryServicesManager, repository string, referenceName string, onlyLatestRecipe bool, onlyLatestPackage bool) ([]types.Package, error)
SearchPackages returns a list of packages matching the `referenceName` in the given `repository`. Use the argument `onlyLatestRecipe` to retrieve only packages that belong to the latest revision for each reference, and argument `onlyLatestPackage` to retrieve only the latest revision for each package.
func SearchReferences ¶
func SearchReferences(serviceManager artifactory.ArtifactoryServicesManager, repository string, referenceName string, onlyLatest bool) ([]types.Reference, error)
SearchReferences returns a list of references matching the `referenceName` in the given `repository`. Use the argument `onlyLatest` to retrieve only the latest revision for each reference.
Types ¶
This section is empty.