Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Operator ¶
type Operator struct { Name string `json:"name"` Description string `json:"description,omitempty"` Version string `json:"version"` AppVersion string `json:"appVersion,omitempty"` KUDOVersion string `json:"kudoVersion,omitempty"` KubernetesVersion string `json:"kubernetesVersion,omitempty"` Maintainers []*v1alpha1.Maintainer `json:"maintainers,omitempty"` URL string `json:"url,omitempty"` Tasks map[string]v1alpha1.TaskSpec `json:"tasks"` Plans map[string]v1alpha1.Plan `json:"plans"` }
Operator is a representation of the KEP-9 Operator YAML
type Package ¶
type Package interface { // transformed server view GetCRDs() (*PackageCRDs, error) // working with local package files GetPkgFiles() (*PackageFiles, error) }
Package is an abstraction of the collection of files that makes up a package. It is anything we can retrieve the PackageCRDs from.
func NewFromBytes ¶
NewFromBytes creates a package from a byte Buffer
type PackageCRDs ¶
type PackageCRDs struct { Operator *v1alpha1.Operator OperatorVersion *v1alpha1.OperatorVersion Instance *v1alpha1.Instance }
PackageCRDs is collection of CRDs that are used when installing operator during installation, package format is converted to this structure
type PackageFiles ¶
type PackageFiles struct { Templates map[string]string Operator *Operator Params []v1alpha1.Parameter }
PackageFiles represents the raw operator package format the way it is found in the tgz packages
type PackageFilesDigest ¶
type PackageFilesDigest struct { PkgFiles *PackageFiles Digest string }
PackageFilesDigest is a tuple of data used to return the package files AND the digest of a tarball
func GetFilesDigest ¶
func GetFilesDigest(fs afero.Fs, paths []string) []*PackageFilesDigest
GetFilesDigest maps []string of paths to the [] Operators
Click to show internal directories.
Click to hide internal directories.