Documentation
¶
Index ¶
- Constants
- Variables
- func IsBundleSourceChart(bundleFS fs.FS, metadata *chart.Metadata) (bool, error)
- func IsValidChart(chart *chart.Chart) error
- func LoadChartFSWithOptions(bundleFS fs.FS, filename string, options ...ChartOption) (*chart.Chart, error)
- type Cache
- type ChartOption
- type ContainersImagePuller
- type LayerData
- type LayerUnpacker
- 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 ¶
View Source
var LoadChartFS = loadChartFS
Functions ¶
func IsBundleSourceChart ¶ added in v1.5.1
func IsValidChart ¶ added in v1.5.1
func LoadChartFSWithOptions ¶ added in v1.5.1
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 ChartOption ¶ added in v1.5.1
func WithInstallNamespace ¶ added in v1.5.1
func WithInstallNamespace(namespace string) ChartOption
type ContainersImagePuller ¶
type ContainersImagePuller struct {
SourceCtxFunc func(context.Context) (*types.SystemContext, error)
}
type LayerUnpacker ¶ added in v1.5.1
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.