search

package
v0.0.0-...-0cacca0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package search contains functionality to search references and packages in Artifactory.

Index

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(length int, f func(index int) bool) int

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.

Jump to

Keyboard shortcuts

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