Documentation
¶
Index ¶
- Constants
- type Cache
- type ContainersImagePuller
- type FakeCache
- func (m FakeCache) Delete(_ context.Context, _ string) error
- func (m FakeCache) Fetch(_ context.Context, _ string, _ reference.Canonical) (fs.FS, time.Time, error)
- func (m FakeCache) GarbageCollect(_ context.Context, _ string, _ reference.Canonical) error
- func (m FakeCache) Store(_ context.Context, _ string, _ reference.Named, _ reference.Canonical, ...) (fs.FS, time.Time, error)
- type FakePuller
- type LayerData
- type Puller
Constants ¶
View Source
const ConfigDirLabel = "operators.operatorframework.io.index.configs.v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Fetch(context.Context, string, reference.Canonical) (fs.FS, time.Time, error)
Store(context.Context, string, reference.Named, reference.Canonical, ocispecv1.Image, iter.Seq[LayerData]) (fs.FS, time.Time, error)
Delete(context.Context, string) error
GarbageCollect(context.Context, string, reference.Canonical) error
}
func BundleCache ¶
func CatalogCache ¶
type ContainersImagePuller ¶
type ContainersImagePuller struct {
SourceCtxFunc func(context.Context) (*types.SystemContext, 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) GarbageCollect ¶ added in v1.11.0
type FakePuller ¶ added in v1.11.0
FakePuller is a test fake that returns preconfigured values for the Puller interface
Click to show internal directories.
Click to hide internal directories.