conan

package
v1.21.11 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(ctx *context.Context)

Authenticate creates an authentication token for the user

func CheckCredentials

func CheckCredentials(ctx *context.Context)

CheckCredentials tests if the provided authentication token is valid

func DeletePackageV1

func DeletePackageV1(ctx *context.Context)

DeletePackageV1 deletes the requested package(s)

func DeletePackageV2

func DeletePackageV2(ctx *context.Context)

DeletePackageV2 deletes the requested package(s) respecting its revisions

func DeleteRecipeV1

func DeleteRecipeV1(ctx *context.Context)

DeleteRecipeV1 deletes the requested recipe(s)

func DeleteRecipeV2

func DeleteRecipeV2(ctx *context.Context)

DeleteRecipeV2 deletes the requested recipe(s) respecting its revisions

func DownloadPackageFile

func DownloadPackageFile(ctx *context.Context)

DownloadPackageFile serves the content of the requested package file

func DownloadRecipeFile

func DownloadRecipeFile(ctx *context.Context)

DownloadRecipeFile serves the content of the requested recipe file

func ExtractPathParameters

func ExtractPathParameters(ctx *context.Context)

ExtractPathParameters is a middleware to extract common parameters from path

func LatestPackageRevision

func LatestPackageRevision(ctx *context.Context)

LatestPackageRevision gets the latest package revision

func LatestRecipeRevision

func LatestRecipeRevision(ctx *context.Context)

LatestRecipeRevision gets the latest recipe revision

func ListPackageRevisionFiles

func ListPackageRevisionFiles(ctx *context.Context)

ListPackageRevisionFiles gets a list of all package revision files

func ListPackageRevisions

func ListPackageRevisions(ctx *context.Context)

ListPackageRevisions gets a list of all package revisions

func ListRecipeRevisionFiles

func ListRecipeRevisionFiles(ctx *context.Context)

ListRecipeRevisionFiles gets a list of all recipe revision files

func ListRecipeRevisions

func ListRecipeRevisions(ctx *context.Context)

ListRecipeRevisions gets a list of all recipe revisions

func PackageDownloadURLs

func PackageDownloadURLs(ctx *context.Context)

PackageDownloadURLs displays the package files with their download url

func PackageSnapshot

func PackageSnapshot(ctx *context.Context)

RecipeSnapshot displays the package files with their md5 hash

func PackageUploadURLs

func PackageUploadURLs(ctx *context.Context)

PackageUploadURLs displays the upload urls for the provided package files

func Ping

func Ping(ctx *context.Context)

Ping reports the server capabilities

func RecipeDownloadURLs

func RecipeDownloadURLs(ctx *context.Context)

RecipeDownloadURLs displays the recipe files with their download url

func RecipeSnapshot

func RecipeSnapshot(ctx *context.Context)

RecipeSnapshot displays the recipe files with their md5 hash

func RecipeUploadURLs

func RecipeUploadURLs(ctx *context.Context)

RecipeUploadURLs displays the upload urls for the provided recipe files

func SearchPackagesV1

func SearchPackagesV1(ctx *context.Context)

SearchPackagesV1 searches all packages of a recipe (Conan v1 endpoint)

func SearchPackagesV2

func SearchPackagesV2(ctx *context.Context)

SearchPackagesV2 searches all packages of a recipe (Conan v2 endpoint)

func SearchRecipes

func SearchRecipes(ctx *context.Context)

SearchRecipes searches all recipes matching the query

func UploadPackageFile

func UploadPackageFile(ctx *context.Context)

UploadPackageFile handles the upload of a package file

func UploadRecipeFile

func UploadRecipeFile(ctx *context.Context)

UploadRecipeFile handles the upload of a recipe file

Types

type Auth

type Auth struct{}

func (*Auth) Name

func (a *Auth) Name() string

func (*Auth) Verify

func (a *Auth) Verify(req *http.Request, w http.ResponseWriter, store auth.DataStore, sess auth.SessionStore) (*user_model.User, error)

Verify extracts the user from the Bearer token

type SearchResult

type SearchResult struct {
	Results []string `json:"results"`
}

SearchResult contains the found recipe names

Jump to

Keyboard shortcuts

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