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

container

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIUnauthorizedError

func APIUnauthorizedError(ctx *context.Context)

func Authenticate

func Authenticate(ctx *context.Context)

Authenticate creates a token for the current user If the current user is anonymous, the ghost user is used unless RequireSignInView is enabled.

func DetermineSupport

func DetermineSupport(ctx *context.Context)

DetermineSupport is used to test if the registry supports OCI https://github.com/opencontainers/distribution-spec/blob/main/spec.md#determining-support

func ReqContainerAccess

func ReqContainerAccess(ctx *context.Context)

ReqContainerAccess is a middleware which checks the current user valid (real user or ghost if anonymous access is enabled)

func VerifyImageName

func VerifyImageName(ctx *context.Context)

VerifyImageName is a middleware which checks if the image name is allowed

Types

This section is empty.

Jump to

Keyboard shortcuts

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