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 FakeService
- 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.
func IsInvalidType ¶ added in v1.45.0
IsInvalidType asserts invalidTypeError.
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 FakeService ¶ added in v1.45.0
type FakeService struct {
// contains filtered or unexported fields
}
func NewFakeService ¶ added in v1.45.0
func NewFakeService(storage []runtime.Object) *FakeService
func (*FakeService) Get ¶ added in v1.45.0
func (fs *FakeService) Get(ctx context.Context, options GetOptions) (Resource, error)
func (*FakeService) Patch ¶ added in v1.45.0
func (fs *FakeService) Patch(ctx context.Context, options PatchOptions) error
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 ¶ added in v1.45.0
PatchOptions are the parameters that the Patch method takes.
Click to show internal directories.
Click to hide internal directories.