api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 7 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 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

Get will return a specific profile from the catalog

func (*ProfilesCatalogService) GetWithVersion added in v0.0.11

GetWithVersion will return a specific profile from the catalog

func (*ProfilesCatalogService) ProfilesGreaterThanVersion added in v0.0.11

ProfilesGreaterThanVersion returns all profiles which are of a greater version for a given profile with a version.

func (*ProfilesCatalogService) Search added in v0.0.11

Search will return a list of profiles which match query

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳