Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Catalog ¶
type Catalog struct { CR *applicationv1alpha1.Catalog Entries *applicationv1alpha1.AppCatalogEntryList }
Catalog abstracts away the custom resource so it can be returned as a runtime object or a typed custom resource.
type Collection ¶
type Collection struct {
Items []Catalog
}
Collection wraps a list of catalogs.
func (*Collection) Object ¶
func (cc *Collection) Object() runtime.Object
type Config ¶
Config represent the input parameters that New takes to produce a valid catalog getter Service.
type GetOptions ¶
type GetOptions struct { AllNamespaces bool LabelSelector labels.Selector Name string Namespace string }
GetOptions are the parameters that the Get method takes.
type Interface ¶
type Interface interface { Get(context.Context, GetOptions) (Resource, error) GetEntries(context.Context, string) (*applicationv1alpha1.AppCatalogEntryList, error) }
Interface represents the contract for the appcatalog data service. Using this instead of a regular 'struct' makes mocking the service in tests much simpler.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the object we'll hang the catalog getter methods on.
func (*Service) GetEntries ¶
func (s *Service) GetEntries(ctx context.Context, selector string) (*applicationv1alpha1.AppCatalogEntryList, error)
GetEntries fetches a list of catalog entry CRs.
Click to show internal directories.
Click to hide internal directories.