Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog map[string][]profilesv1.ProfileDescription
Catalog provides an in-memory cache of profiles from the cluster which can be queried easily.
func (Catalog) Get ¶
func (c Catalog) Get(sourceName, profileName string) *profilesv1.ProfileDescription
Get returns the profile description `profileName`.
func (Catalog) Search ¶
func (c Catalog) Search(name string) []profilesv1.ProfileDescription
Search returns profile descriptions that contain `name` in their names.
func (Catalog) Update ¶
func (c Catalog) Update(sourceName string, profiles ...profilesv1.ProfileDescription)
Update updates the catalog by replacing existing profiles with new profiles
Click to show internal directories.
Click to hide internal directories.