Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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. Note, that unlike other resolvers, the resulting 'packages.Package' struct does not contain package 'packages.Files' (we don't have the original files).
type LocalResolver ¶
type LocalResolver struct {
// contains filtered or unexported fields
}
LocalResolver will find local operator packages: folders or tgz
func NewLocal ¶
func NewLocal() *LocalResolver
NewLocal creates a resolver for local operator package
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) (p *packages.Package, err 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 Resolver ¶
type Resolver interface {
Resolve(name string, appVersion string, operatorVersion string) (*packages.Package, error)
}
Resolver will try to resolve a given package name to either local tarball, folder, remote url or an operator in the remote repository.
type URLResolver ¶
type URLResolver struct {
// contains filtered or unexported fields
}
URLResolver will resolve a packages from a url