manager

package
v0.0.0-...-0cd719c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	AddRepository(ctx context.Context, repositoryImageUrl string) error
	ListRepositories(ctx context.Context) ([]store.CachedRepository, error)
	ListGVKs(ctx context.Context) (map[string][]store.CachedBundle, error)
	ListBundlesForGVK(ctx context.Context, group string, version string, kind string) ([]store.CachedBundle, error)
	SearchBundles(ctx context.Context, searchTerm string) ([]store.CachedBundle, error)
	SearchPackages(ctx context.Context, searchTerm string) ([]store.CachedPackage, error)
	RemoveRepository(ctx context.Context, repoName string) error
	ListBundles(ctx context.Context) ([]store.CachedBundle, error)
	ListPackages(ctx context.Context) ([]store.CachedPackage, error)
	Install(ctx context.Context, packageName string) error
	Resolve(ctx context.Context, packageName string) ([]resolution.Installable, error)
	GetBundlesForPackage(ctx context.Context, packageName string, options ...store.PackageSearchOption) ([]store.CachedBundle, error)
	Close() error
}

Manager manages OLM software repositories

func NewManager

func NewManager(configPath string, logger *logrus.Logger) (Manager, error)

type PackageInstaller

type PackageInstaller struct {
	// contains filtered or unexported fields
}

func NewPackageInstaller

func NewPackageInstaller(resolver *resolution.OLMSolver, logger *logrus.Logger) (*PackageInstaller, error)

func (*PackageInstaller) Install

func (p *PackageInstaller) Install(ctx context.Context, requiredPackages ...*resolution.RequiredPackage) error

func (*PackageInstaller) Resolve

func (p *PackageInstaller) Resolve(ctx context.Context, requiredPackages ...*resolution.RequiredPackage) ([]resolution.Installable, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL