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
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)
Click to show internal directories.
Click to hide internal directories.