image

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigDirLabel = "operators.operatorframework.io.index.configs.v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

func BundleCache

func BundleCache(basePath string) Cache

func CatalogCache

func CatalogCache(basePath string) Cache

type ContainersImagePuller

type ContainersImagePuller struct {
	SourceCtxFunc func(context.Context) (*types.SystemContext, error)
}

func (*ContainersImagePuller) Pull

func (p *ContainersImagePuller) Pull(ctx context.Context, ownerID string, ref string, cache Cache) (fs.FS, reference.Canonical, time.Time, error)

type LayerData

type LayerData struct {
	Reader io.Reader
	Index  int
	Err    error
}

type MockCache

type MockCache struct {
	FetchFS      fs.FS
	FetchModTime time.Time
	FetchError   error

	StoreFS      fs.FS
	StoreModTime time.Time
	StoreError   error

	DeleteErr error

	GarbageCollectError error
}

func (MockCache) Delete

func (m MockCache) Delete(_ context.Context, _ string) error

func (MockCache) Fetch

func (MockCache) GarbageCollect

func (m MockCache) GarbageCollect(_ context.Context, _ string, _ reference.Canonical) error

type MockPuller

type MockPuller struct {
	ImageFS fs.FS
	Ref     reference.Canonical
	ModTime time.Time
	Error   error
}

MockPuller is a utility for mocking out a Puller interface

func (*MockPuller) Pull

type Puller

type Puller interface {
	Pull(context.Context, string, string, Cache) (fs.FS, reference.Canonical, time.Time, error)
}

Jump to

Keyboard shortcuts

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