package image

import "github.com/docker/docker/api/server/router/image"

Index

Functions

func NewRouter

func NewRouter(backend Backend, searcher Searcher, referenceBackend reference.Store) router.Router

NewRouter initializes a new image router

Types

type Backend

type Backend interface {
	// contains filtered or unexported methods
}

Backend is all the methods that need to be implemented to provide image specific functionality.

type Searcher

type Searcher interface {
	Search(ctx context.Context, searchFilters filters.Args, term string, limit int, authConfig *registry.AuthConfig, headers map[string][]string) ([]registry.SearchResult, error)
}

Source Files

backend.go image.go image_routes.go

Version
v28.0.0-rc.2+incompatible
Published
Feb 17, 2025
Platform
js/wasm
Imports
29 packages
Last checked
1 minute ago

Tools for package owners.