container

package
v1.27.0-dev Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 35 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIUnauthorizedError added in v1.26.0

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