Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInClusterResolver ¶ added in v0.17.0
NewInClusterResolver returns an initialized InClusterResolver for resolving already installed 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
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