Documentation ¶
Index ¶
- Variables
- func GetPackageCRDs(name string, version string, repository repo.Repository) (*packages.PackageCRDs, error)
- func GetParameterMap(raw []string) (map[string]string, error)
- func Run(args []string, options *Options, fs afero.Fs, settings *env.Settings) error
- func VersionExists(versions []string, currentVersion string) bool
- type Options
- type RepositoryOptions
Constants ¶
This section is empty.
Variables ¶
var DefaultOptions = &Options{}
DefaultOptions initializes the install command options to its defaults
Functions ¶
func GetPackageCRDs ¶ added in v0.5.0
func GetPackageCRDs(name string, version string, repository repo.Repository) (*packages.PackageCRDs, error)
GetPackageCRDs tries 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. Should there exist a local folder e.g. `cassandra` it will take precedence over the remote repository package with the same name.
func GetParameterMap ¶ added in v0.5.0
GetParameterMap takes a slice of parameter strings, parses parameters into a map of keys and values
func VersionExists ¶ added in v0.5.0
VersionExists looks for string version inside collection of versions
Types ¶
type Options ¶ added in v0.3.0
type Options struct { RepositoryOptions InstanceName string Parameters map[string]string PackageVersion string SkipInstance bool }
Options defines configuration options for the install command
type RepositoryOptions ¶ added in v0.7.0
type RepositoryOptions struct {
RepoName string
}
RepositoryOptions defines the options necessary for any cmd working with repository