Documentation
¶
Index ¶
- Constants
- type Cache
- type ContainersImagePuller
- type LayerData
- type MockCache
- func (m MockCache) Delete(_ context.Context, _ string) error
- func (m MockCache) Fetch(_ context.Context, _ string, _ reference.Canonical) (fs.FS, time.Time, error)
- func (m MockCache) GarbageCollect(_ context.Context, _ string, _ reference.Canonical) error
- func (m MockCache) Store(_ context.Context, _ string, _ reference.Named, _ reference.Canonical, ...) (fs.FS, time.Time, error)
- type MockPuller
- 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 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) GarbageCollect ¶
type MockPuller ¶
MockPuller is a utility for mocking out a Puller interface
Click to show internal directories.
Click to hide internal directories.