Documentation
¶
Index ¶
- Constants
- type FindOption
- func WithHTTPClient(httpClient *http.Client) FindOption
- func WithListRemoteTags(fn func(context.Context, name.Repository) ([]string, error)) FindOption
- func WithPlatform(platform string) FindOption
- func WithResolveTagCreatedAt(...) FindOption
- func WithTagCreatedAtCache(lru *expirable.LRU[string, time.Time]) FindOption
- func WithTagNamesCache(lru *expirable.LRU[string, []string]) FindOption
- type Finder
- type Image
- type Tag
Constants ¶
View Source
const ( RegistryDockerHub = "docker.io" RegistryGHCR = "ghcr.io" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FindOption ¶
type FindOption func(*finder)
func WithHTTPClient ¶
func WithHTTPClient(httpClient *http.Client) FindOption
func WithListRemoteTags ¶
func WithListRemoteTags(fn func(context.Context, name.Repository) ([]string, error)) FindOption
func WithPlatform ¶
func WithPlatform(platform string) FindOption
func WithResolveTagCreatedAt ¶
func WithTagCreatedAtCache ¶
WithTagCreatedAtCache sets the LRU cache for tag created at times.
func WithTagNamesCache ¶
func WithTagNamesCache(lru *expirable.LRU[string, []string]) FindOption
WithTagNamesCache sets the LRU cache for tag names.
Click to show internal directories.
Click to hide internal directories.