Documentation ¶
Index ¶
- func Authenticate(ctx *context.Context)
- func CheckCredentials(ctx *context.Context)
- func DeletePackageV1(ctx *context.Context)
- func DeletePackageV2(ctx *context.Context)
- func DeleteRecipeV1(ctx *context.Context)
- func DeleteRecipeV2(ctx *context.Context)
- func DownloadPackageFile(ctx *context.Context)
- func DownloadRecipeFile(ctx *context.Context)
- func ExtractPathParameters(ctx *context.Context)
- func LatestPackageRevision(ctx *context.Context)
- func LatestRecipeRevision(ctx *context.Context)
- func ListPackageRevisionFiles(ctx *context.Context)
- func ListPackageRevisions(ctx *context.Context)
- func ListRecipeRevisionFiles(ctx *context.Context)
- func ListRecipeRevisions(ctx *context.Context)
- func PackageDownloadURLs(ctx *context.Context)
- func PackageSnapshot(ctx *context.Context)
- func PackageUploadURLs(ctx *context.Context)
- func Ping(ctx *context.Context)
- func RecipeDownloadURLs(ctx *context.Context)
- func RecipeSnapshot(ctx *context.Context)
- func RecipeUploadURLs(ctx *context.Context)
- func SearchPackagesV1(ctx *context.Context)
- func SearchPackagesV2(ctx *context.Context)
- func SearchRecipes(ctx *context.Context)
- func UploadPackageFile(ctx *context.Context)
- func UploadRecipeFile(ctx *context.Context)
- type Auth
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Authenticate creates an authentication token for the user
func CheckCredentials ¶
CheckCredentials tests if the provided authentication token is valid
func DeletePackageV1 ¶
DeletePackageV1 deletes the requested package(s)
func DeletePackageV2 ¶
DeletePackageV2 deletes the requested package(s) respecting its revisions
func DeleteRecipeV1 ¶
DeleteRecipeV1 deletes the requested recipe(s)
func DeleteRecipeV2 ¶
DeleteRecipeV2 deletes the requested recipe(s) respecting its revisions
func DownloadPackageFile ¶
DownloadPackageFile serves the content of the requested package file
func DownloadRecipeFile ¶
DownloadRecipeFile serves the content of the requested recipe file
func ExtractPathParameters ¶
ExtractPathParameters is a middleware to extract common parameters from path
func LatestPackageRevision ¶
LatestPackageRevision gets the latest package revision
func LatestRecipeRevision ¶
LatestRecipeRevision gets the latest recipe revision
func ListPackageRevisionFiles ¶
ListPackageRevisionFiles gets a list of all package revision files
func ListPackageRevisions ¶
ListPackageRevisions gets a list of all package revisions
func ListRecipeRevisionFiles ¶
ListRecipeRevisionFiles gets a list of all recipe revision files
func ListRecipeRevisions ¶
ListRecipeRevisions gets a list of all recipe revisions
func PackageDownloadURLs ¶
PackageDownloadURLs displays the package files with their download url
func PackageSnapshot ¶
RecipeSnapshot displays the package files with their md5 hash
func PackageUploadURLs ¶
PackageUploadURLs displays the upload urls for the provided package files
func RecipeDownloadURLs ¶
RecipeDownloadURLs displays the recipe files with their download url
func RecipeSnapshot ¶
RecipeSnapshot displays the recipe files with their md5 hash
func RecipeUploadURLs ¶
RecipeUploadURLs displays the upload urls for the provided recipe files
func SearchPackagesV1 ¶
SearchPackagesV1 searches all packages of a recipe (Conan v1 endpoint)
func SearchPackagesV2 ¶
SearchPackagesV2 searches all packages of a recipe (Conan v2 endpoint)
func SearchRecipes ¶
SearchRecipes searches all recipes matching the query
func UploadPackageFile ¶
UploadPackageFile handles the upload of a package file
func UploadRecipeFile ¶
UploadRecipeFile handles the upload of a recipe file
Types ¶
type Auth ¶
type Auth struct{}
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