api

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound   = errors.New("not found")
	ErrBadRequest = errors.New("bad request")
)

Functions

This section is empty.

Types

type CompoundProxy added in v0.21.0

type CompoundProxy struct {
	Proxies []LogoProxy
}
func (p CompoundProxy) ServeLogo(w http.ResponseWriter, r *http.Request, reference oci.Reference) error

type LogoFSProxy added in v0.21.0

type LogoFSProxy struct {
	FS fs.FS
}
func (p *LogoFSProxy) ServeLogo(w http.ResponseWriter, r *http.Request, reference oci.Reference) error

type LogoHTTPProxy added in v0.21.0

type LogoHTTPProxy struct {
	Client *httputil.Client
	GetURL func(context.Context, string) (string, error)
}
func (p *LogoHTTPProxy) ServeLogo(w http.ResponseWriter, r *http.Request, reference oci.Reference) error

type LogoProxy added in v0.21.0

type LogoProxy interface {
}

type Server

type Server struct {
	WebAddress string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(api *store.Store, hub *events.Hub[worker.Event], processQueue *worker.Queue[oci.Reference], logoProxy LogoProxy) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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