Help us shape the future of Go! Take the 2026 Go Developer Survey

image

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 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 FakeCache added in v1.11.0

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

	StoreFS      fs.FS
	StoreModTime time.Time
	StoreError   error

	DeleteErr error

	GarbageCollectError error
}

func (FakeCache) Delete added in v1.11.0

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

func (FakeCache) Fetch added in v1.11.0

func (FakeCache) GarbageCollect added in v1.11.0

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

func (FakeCache) Store added in v1.11.0

type FakePuller added in v1.11.0

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

FakePuller is a test fake that returns preconfigured values for the Puller interface

func (*FakePuller) Pull added in v1.11.0

type LayerData

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

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