Documentation ¶
Index ¶
- func AssertAreEqual[C any](t *testing.T, actual interface{}, expected interface{})
- func Create[R resource.Managed, P any, O any, C any](ctx context.Context, logger logging.Logger, srv clients.Service[R, P, O, C], ...) (managed.ExternalCreation, error)
- func Delete[R resource.Managed, P any, O any, C any](ctx context.Context, logger logging.Logger, srv clients.Service[R, P, O, C], ...) error
- func MapToCompare[C any](obj interface{}) (*C, error)
- func Observe[R resource.Managed, P any, O any, C any](ctx context.Context, logger logging.Logger, srv clients.Service[R, P, O, C], ...) (managed.ExternalObservation, error)
- func Setup[R resource.Managed](groupVersionKind schema.GroupVersionKind, newInstance R, mgr ctrl.Manager, ...) error
- func SkipIfIsShort(t *testing.T)
- func TestCreateAndAssert[R resource.Managed, P any, O any, C any](t *testing.T, srv clients.Service[R, P, O, C], param *P) *O
- func TestDelete[R resource.Managed, P any, O any, C any](t *testing.T, srv clients.Service[R, P, O, C], param *P)
- func TestUpdate[R resource.Managed, P any, O any, C any](t *testing.T, srv clients.Service[R, P, O, C], param *P)
- func TestUpdateAndAssert[R resource.Managed, P any, O any, C any](t *testing.T, srv clients.Service[R, P, O, C], param *P)
- func Update[R resource.Managed, P any, O any, C any](ctx context.Context, logger logging.Logger, srv clients.Service[R, P, O, C], ...) (managed.ExternalUpdate, error)
- type Connector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAreEqual ¶
func MapToCompare ¶
func Setup ¶
func Setup[R resource.Managed](groupVersionKind schema.GroupVersionKind, newInstance R, mgr ctrl.Manager, o controller.Options, newExternalClientFn func(conn *Connector[R], creds []byte) (managed.ExternalClient, error)) error
Setup adds a controller that reconciles managed resources.
func SkipIfIsShort ¶
func TestCreateAndAssert ¶
func TestDelete ¶
func TestUpdate ¶
func TestUpdateAndAssert ¶
Types ¶
type Connector ¶
type Connector[R resource.Managed] struct { Kube client.Client Usage resource.Tracker Logger logging.Logger NewExternalClientFn func(conn *Connector[R], creds []byte) (managed.ExternalClient, error) }
A connector is expected to produce an ExternalClient when its Connect method is called.
Click to show internal directories.
Click to hide internal directories.