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)
}
Interface represents the contract for the appcatalog data service. Using this instead of a regular 'struct' makes mocking the service in tests much simpler.
Click to show internal directories.
Click to hide internal directories.