Documentation
¶
Index ¶
- type Catalog
- type CatalogAPI
- type ProfilesCatalogService
- func (p *ProfilesCatalogService) Get(ctx context.Context, request *protos.GetRequest) (*protos.GetResponse, error)
- func (p *ProfilesCatalogService) GetWithVersion(ctx context.Context, request *protos.GetWithVersionRequest) (*protos.GetWithVersionResponse, error)
- func (p *ProfilesCatalogService) ProfilesGreaterThanVersion(ctx context.Context, request *protos.ProfilesGreaterThanVersionRequest) (*protos.ProfilesGreaterThanVersionResponse, error)
- func (p *ProfilesCatalogService) Search(ctx context.Context, request *protos.SearchRequest) (*protos.SearchResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog interface {
// Get will return a specific profile from the catalog
Get(sourceName, profileName string) *profilesv1.ProfileCatalogEntry
// GetWithVersion will return a specific profile from the catalog
GetWithVersion(logger logr.Logger, sourceName, profileName, version string) *profilesv1.ProfileCatalogEntry
// ProfilesGreaterThanVersion returns all profiles which are of a greater version for a given profile with a version.
ProfilesGreaterThanVersion(logger logr.Logger, sourceName, profileName, version string) []profilesv1.ProfileCatalogEntry
// Search will return a list of profiles which match query
Search(query string) []profilesv1.ProfileCatalogEntry
// SearchAll will return a list of all profiles
SearchAll() []profilesv1.ProfileCatalogEntry
}
Catalog is an interface for the Catalog
type CatalogAPI ¶ added in v0.0.11
type CatalogAPI interface {
protos.ProfilesServiceServer
}
CatalogAPI defines the GRPC profiles catalog service API.
type ProfilesCatalogService ¶ added in v0.0.11
type ProfilesCatalogService struct {
// contains filtered or unexported fields
}
ProfilesCatalogService is the profiles catalog service implementor.
func NewCatalogAPI ¶ added in v0.0.11
func NewCatalogAPI(profileCatalog Catalog, logger logr.Logger) *ProfilesCatalogService
NewCatalogAPI returns a profiles catalog api implementation.
func (*ProfilesCatalogService) Get ¶ added in v0.0.11
func (p *ProfilesCatalogService) Get(ctx context.Context, request *protos.GetRequest) (*protos.GetResponse, error)
Get will return a specific profile from the catalog
func (*ProfilesCatalogService) GetWithVersion ¶ added in v0.0.11
func (p *ProfilesCatalogService) GetWithVersion(ctx context.Context, request *protos.GetWithVersionRequest) (*protos.GetWithVersionResponse, error)
GetWithVersion will return a specific profile from the catalog
func (*ProfilesCatalogService) ProfilesGreaterThanVersion ¶ added in v0.0.11
func (p *ProfilesCatalogService) ProfilesGreaterThanVersion(ctx context.Context, request *protos.ProfilesGreaterThanVersionRequest) (*protos.ProfilesGreaterThanVersionResponse, error)
ProfilesGreaterThanVersion returns all profiles which are of a greater version for a given profile with a version.
Click to show internal directories.
Click to hide internal directories.