conan

package
v1.20.0-dev Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRecipeReferenceNotExist  = util.NewNotExistErrorf("recipe reference does not exist")
	ErrPackageReferenceNotExist = util.NewNotExistErrorf("package reference does not exist")
)

Functions

func GetPackageInfo

func GetPackageInfo(ctx context.Context, ownerID int64, ref *conan_module.PackageReference) (string, error)

GetPackageInfo gets the Conaninfo for a package

func RecipeExists

func RecipeExists(ctx context.Context, ownerID int64, ref *conan_module.RecipeReference) (bool, error)

RecipeExists checks if a recipe exists

func SearchRecipes

func SearchRecipes(ctx context.Context, opts *RecipeSearchOptions) ([]string, error)

SearchRecipes gets all recipes matching the search options

Types

type PropertyValue

type PropertyValue struct {
	Value       string
	CreatedUnix timeutil.TimeStamp
}

func GetLastPackageRevision

func GetLastPackageRevision(ctx context.Context, ownerID int64, ref *conan_module.PackageReference) (*PropertyValue, error)

GetLastPackageRevision gets the latest package revision

func GetLastRecipeRevision

func GetLastRecipeRevision(ctx context.Context, ownerID int64, ref *conan_module.RecipeReference) (*PropertyValue, error)

GetLastRecipeRevision gets the latest recipe revision

func GetPackageReferences

func GetPackageReferences(ctx context.Context, ownerID int64, ref *conan_module.RecipeReference) ([]*PropertyValue, error)

GetPackageReferences gets all package references of a recipe

func GetPackageRevisions

func GetPackageRevisions(ctx context.Context, ownerID int64, ref *conan_module.PackageReference) ([]*PropertyValue, error)

GetPackageRevisions gets all revision of a package

func GetRecipeRevisions

func GetRecipeRevisions(ctx context.Context, ownerID int64, ref *conan_module.RecipeReference) ([]*PropertyValue, error)

GetRecipeRevisions gets all revisions of a recipe

type RecipeSearchOptions

type RecipeSearchOptions struct {
	OwnerID int64
	Name    string
	Version string
	User    string
	Channel string
}

Jump to

Keyboard shortcuts

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