Help us shape the future of Go! Take the 2026 Go Developer Survey

packages

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonRoutes

func CommonRoutes() *web.Router

CommonRoutes provide endpoints for most package managers (except containers - see below) These are mounted on `/api/packages` (not `/api/v1/packages`)

func ContainerRoutes

func ContainerRoutes() *web.Router

ContainerRoutes provides endpoints that implement the OCI API to serve containers These have to be mounted on `/v2/...` to comply with the OCI spec: https://github.com/opencontainers/distribution-spec/blob/main/spec.md

Types

type Auth

type Auth struct {
	AllowGhostUser bool
}

Auth is for conan and container

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

Jump to

Keyboard shortcuts

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