...

Package middleware

import "github.com/docker/distribution/registry/storage/driver/middleware/cloudfront"
Overview
Index

Overview ▾

Package middleware - cloudfront wrapper for storage libs N.B. currently only works with S3, not arbitrary sites

Index ▾

Package files

middleware.go s3filter.go

type S3BucketKeyer

S3BucketKeyer is any type that is capable of returning the S3 bucket key which should be cached by AWS CloudFront.

type S3BucketKeyer interface {
    S3BucketKey(path string) string
}