Versions in this module Expand all Collapse all v5 v5.1.0 Sep 5, 2022 v5.0.0 Mar 25, 2022 Changes in this version + func IsInvalidConfig(err error) bool + func IsWrongTypeError(err error) bool + type Config struct + AllowedAnnotations []string + G8sClient client.Client + Logger micrologger.Logger + Name string + StateGetter StateGetter + type Resource struct + func New(config Config) (*Resource, error) + func (r *Resource) ApplyCreateChange(ctx context.Context, obj, createChange interface{}) error + func (r *Resource) ApplyDeleteChange(ctx context.Context, obj, deleteChange interface{}) error + func (r *Resource) ApplyUpdateChange(ctx context.Context, obj, updateChange interface{}) error + func (r *Resource) GetCurrentState(ctx context.Context, obj interface{}) (interface{}, error) + func (r *Resource) GetDesiredState(ctx context.Context, obj interface{}) (interface{}, error) + func (r *Resource) Name() string + func (r *Resource) NewDeletePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*crud.Patch, error) + func (r *Resource) NewUpdatePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*crud.Patch, error) + type StateGetter interface + GetCurrentState func(ctx context.Context, obj interface{}) ([]*v1alpha1.App, error) + GetDesiredState func(ctx context.Context, obj interface{}) ([]*v1alpha1.App, error) Other modules containing this package github.com/giantswarm/resource github.com/giantswarm/resource/v2 github.com/giantswarm/resource/v3 github.com/giantswarm/resource/v4 github.com/giantswarm/resource/v6