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

image

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var LoadChartFS = loadChartFS

Functions

func IsBundleSourceChart

func IsBundleSourceChart(bundleFS fs.FS, metadata *chart.Metadata) (bool, error)

func IsValidChart

func IsValidChart(chart *chart.Chart) error

func LoadChartFSWithOptions

func LoadChartFSWithOptions(bundleFS fs.FS, filename string, options ...ChartOption) (*chart.Chart, error)

Types

type Cache

func BundleCache

func BundleCache(basePath string) Cache

func CatalogCache

func CatalogCache(basePath string) Cache

type ChartOption

type ChartOption func(*chart.Chart)

func WithInstallNamespace

func WithInstallNamespace(namespace string) ChartOption

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 {
	MediaType string
	Reader    io.Reader
	Index     int
	Err       error
}

type LayerUnpacker

type LayerUnpacker interface {
	Unpack(_ context.Context, path string, layer LayerData, opts ...archive.ApplyOpt) 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