Documentation
¶
Index ¶
- func Authenticate(ctx *context.Context)
- func AuthenticateNotImplemented(ctx *context.Context)
- func DeleteBlob(ctx *context.Context)
- func DeleteBlobsUpload(ctx *context.Context)
- func DeleteManifest(ctx *context.Context)
- func DetermineSupport(ctx *context.Context)
- func GetBlob(ctx *context.Context)
- func GetBlobsUpload(ctx *context.Context)
- func GetManifest(ctx *context.Context)
- func GetRepositoryList(ctx *context.Context)
- func GetTagsList(ctx *context.Context)
- func HeadBlob(ctx *context.Context)
- func HeadManifest(ctx *context.Context)
- func PatchBlobsUpload(ctx *context.Context)
- func PostBlobsUploads(ctx *context.Context)
- func PutBlobsUpload(ctx *context.Context)
- func PutManifest(ctx *context.Context)
- func ReqContainerAccess(ctx *context.Context)
- func VerifyImageName(ctx *context.Context)
- type Auth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Authenticate creates a token for the current user If the current user is anonymous, the ghost user is used unless RequireSignInView is enabled.
func AuthenticateNotImplemented ¶
https://distribution.github.io/distribution/spec/auth/oauth/
func DeleteBlob ¶
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#deleting-blobs
func DeleteBlobsUpload ¶
https://docs.docker.com/registry/spec/api/#delete-blob-upload
func DeleteManifest ¶
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#deleting-tags https://github.com/opencontainers/distribution-spec/blob/main/spec.md#deleting-manifests
func DetermineSupport ¶
DetermineSupport is used to test if the registry supports OCI https://github.com/opencontainers/distribution-spec/blob/main/spec.md#determining-support
func GetBlobsUpload ¶
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pushing-a-blob-in-chunks
func GetManifest ¶
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pulling-manifests
func GetRepositoryList ¶
https://docs.docker.com/registry/spec/api/#listing-repositories
func GetTagsList ¶
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#content-discovery
func HeadBlob ¶
func HeadManifest ¶
func PatchBlobsUpload ¶
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#single-post https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pushing-a-blob-in-chunks
func PostBlobsUploads ¶
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#mounting-a-blob-from-another-repository https://github.com/opencontainers/distribution-spec/blob/main/spec.md#single-post https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pushing-a-blob-in-chunks
func PutBlobsUpload ¶
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pushing-a-blob-in-chunks
func PutManifest ¶
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pushing-manifests
func ReqContainerAccess ¶
ReqContainerAccess is a middleware which checks the current user valid (real user or ghost if anonymous access is enabled)
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 If it's an anonymous session, a ghost user is returned
Source Files
¶
- auth.go
- blob.go
- container.go
- errors.go
- manifest.go