blobs

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobInfo

type BlobInfo struct {
	Host  string
	Image string

	Blobs string
}

type Blobs

type Blobs struct {
	// contains filtered or unexported fields
}

func NewBlobs

func NewBlobs(opts ...Option) (*Blobs, error)

func (*Blobs) Serve

func (b *Blobs) Serve(rw http.ResponseWriter, r *http.Request, info *BlobInfo, t *token.Token)

func (*Blobs) ServeHTTP

func (b *Blobs) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type Option

type Option func(c *Blobs) error

func WithAuthenticator

func WithAuthenticator(authenticator *token.Authenticator) Option

func WithCIDNClient

func WithCIDNClient(cidnClient *cidn.CIDN) Option

func WithCache

func WithCache(cache *cache.Cache) Option

func WithClient

func WithClient(client *http.Client) Option

func WithLogger

func WithLogger(logger *slog.Logger) Option

func WithNoRedirect

func WithNoRedirect(noRedirect bool) Option

Jump to

Keyboard shortcuts

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