catalog

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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.ProfileDescription

func New

func New() *Catalog

New creates a new, empty catalog.

func (*Catalog) Get

func (c *Catalog) Get(sourceName, profileName string) *profilesv1.ProfileDescription

Get returns the profile description `profileName`.

func (*Catalog) GetWithVersion added in v0.0.2

func (c *Catalog) GetWithVersion(sourceName, profileName, version string) *profilesv1.ProfileDescription

GetWithVersion returns the profile description `profileName` with the given version.

func (*Catalog) Remove

func (c *Catalog) Remove(sourceName string)

Remove removes the specified catalog.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL