manifests

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifests

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

func NewManifests

func NewManifests(opts ...Option) (*Manifests, error)

func (*Manifests) Serve

func (c *Manifests) Serve(rw http.ResponseWriter, r *http.Request, info *PathInfo, t *token.Token)

type Option

type Option func(c *Manifests)

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

type PathInfo

type PathInfo struct {
	Host  string
	Image string

	Manifests         string
	IsDigestManifests bool
}

Jump to

Keyboard shortcuts

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