Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type App ¶ added in v1.28.0
type App struct {
CR *applicationv1alpha1.App
}
App abstracts away the custom resource so it can be returned as a runtime object or a typed custom resource.
type Collection ¶ added in v1.28.0
type Collection struct {
Items []App
}
Collection wraps a list of apps.
func (*Collection) Object ¶ added in v1.28.0
func (cc *Collection) Object() runtime.Object
type Config ¶
Config represent the input parameters that New takes to produce a valid app getter Service.
type GetOptions ¶
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 app 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.