Documentation ¶
Index ¶
- func IsFetch(err error) bool
- func IsInvalidConfig(err error) bool
- func IsInvalidType(err error) bool
- func IsNoMatch(err error) bool
- func IsNoResources(err error) bool
- func IsNotFound(err error) bool
- type App
- type Collection
- type Config
- type GetOptions
- type Interface
- type PatchOptions
- type Resource
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type App ¶
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 ¶
type Collection struct {
Items []App
}
Collection wraps a list of apps.
func (*Collection) Object ¶
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) Patch(context.Context, PatchOptions) 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.
type PatchOptions ¶
PatchOptions are the parameters that the Patch method takes.
Click to show internal directories.
Click to hide internal directories.