crproxy

package
v0.13.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*SyncManager)

func WithCache

func WithCache(cache *cache.Cache) Option

func WithClient

func WithClient(client *clientset.Clientset) Option

func WithDeep

func WithDeep(deep bool) Option

func WithDomainAlias

func WithDomainAlias(domainAlias map[string]string) Option

func WithLogger

func WithLogger(logger *slog.Logger) Option

type Progress

type Progress struct {
	Digest   string                     `json:"digest,omitempty"`
	Size     int64                      `json:"size,omitempty"`
	Status   string                     `json:"status,omitempty"`
	Platform *manifestlist.PlatformSpec `json:"platform,omitempty"`
	Name     string                     `json:"name,omitempty"`
}

type SyncManager

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

func NewSyncManager

func NewSyncManager(opts ...Option) (*SyncManager, error)

func (*SyncManager) Image

func (c *SyncManager) Image(ctx context.Context, image string, filter func(pf manifestlist.PlatformSpec) bool, cb func(sp Progress) error) error

Jump to

Keyboard shortcuts

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