Documentation
¶
Index ¶
- type Catalog
- func (c *Catalog) Get(sourceName, profileName string) *profilesv1.ProfileCatalogEntry
- func (c *Catalog) GetWithVersion(logger logr.Logger, sourceName, profileName, profileVersion string) *profilesv1.ProfileCatalogEntry
- func (c *Catalog) ProfilesGreaterThanVersion(logger logr.Logger, sourceName, profileName, profileVersion string) []profilesv1.ProfileCatalogEntry
- func (c *Catalog) Remove(sourceName string)
- func (c *Catalog) Search(name string) []profilesv1.ProfileCatalogEntry
- func (c *Catalog) Update(sourceName string, profiles ...profilesv1.ProfileCatalogEntry)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
Catalog provides an in-memory cache of profiles from the cluster which can be queried easily. type Catalog map[string][]profilesv1.ProfileCatalogEntry
func (*Catalog) Get ¶
func (c *Catalog) Get(sourceName, profileName string) *profilesv1.ProfileCatalogEntry
Get returns the profile description `profileName`.
func (*Catalog) GetWithVersion ¶ added in v0.0.2
func (c *Catalog) GetWithVersion(logger logr.Logger, sourceName, profileName, profileVersion string) *profilesv1.ProfileCatalogEntry
GetWithVersion returns the profile description `profileName` with the given version.
func (*Catalog) ProfilesGreaterThanVersion ¶ added in v0.0.4
func (c *Catalog) ProfilesGreaterThanVersion(logger logr.Logger, sourceName, profileName, profileVersion string) []profilesv1.ProfileCatalogEntry
ProfilesGreaterThanVersion returns all profiles which are of a greater version for a given profile with a version. If set to "latest" all versions are returned. Versions are ordered in descending order
func (*Catalog) Search ¶
func (c *Catalog) Search(name string) []profilesv1.ProfileCatalogEntry
Search returns profile descriptions that contain `name` in their names.
func (*Catalog) Update ¶
func (c *Catalog) Update(sourceName string, profiles ...profilesv1.ProfileCatalogEntry)
Update updates the catalog by replacing existing profiles with new profiles