resolver

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInClusterResolver added in v0.17.0

func NewInClusterResolver(c *kudo.Client, ns string) packages.Resolver

NewInClusterResolver returns an initialized InClusterResolver for resolving already installed packages

func NewPackageResolver added in v0.18.0

func NewPackageResolver(repo *repo.Client, workingDir string) packages.Resolver

NewPackageResolver creates an operator package resolver for non-repository packages

Types

type InClusterResolver added in v0.17.0

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

InClusterResolver resolves packages that are already installed in the cluster on the client-side.

func (InClusterResolver) Resolve added in v0.17.0

func (r InClusterResolver) Resolve(name string, appVersion string, operatorVersion string) (*packages.PackageScope, error)

type LocalHelper added in v0.18.0

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

LocalHelper will find local operator packages: folders or tgz

func (*LocalHelper) LocalPackagePath added in v0.18.0

func (f *LocalHelper) LocalPackagePath(path string) (string, error)

func (*LocalHelper) ResolveDir added in v0.18.0

func (f *LocalHelper) ResolveDir(path string) (*packages.Resources, error)

func (*LocalHelper) ResolveTar added in v0.18.0

func (f *LocalHelper) ResolveTar(out afero.Fs, path string) (*packages.Resources, error)

type PackageResolver

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

PackageResolver is the source of resolver of operator packages.

func (*PackageResolver) Resolve

func (m *PackageResolver) Resolve(name string, appVersion string, operatorVersion string) (*packages.PackageScope, error)

Resolve provides a one stop to acquire any non-repo packages by trying to look for package files resolving the operator name to: - a local tgz file - a local directory - a url to a tgz - an operator name in the remote repository in that order. For local access there is a need to provide absolute or relative path as part of the name argument. `cassandra` without a path component will resolve to the remote repo. `./cassandra` will resolve to a folder which is expected to have the operator structure on the filesystem. `../folder/cassandra.tgz` will resolve to the cassandra package tarball on the filesystem.

type URLHelper added in v0.18.0

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

URLHelper will resolve a packages from a url

func NewURLHelper added in v0.18.0

func NewURLHelper() *URLHelper

NewURLHelper creates an instance of a URLHelper

func (*URLHelper) ResolveURL added in v0.18.0

func (f *URLHelper) ResolveURL(out afero.Fs, url string) (*packages.Resources, error)

ResolveURL returns a package for the provided url

Jump to

Keyboard shortcuts

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