Versions in this module Expand all Collapse all v6 v6.1.0 Dec 17, 2021 v6.0.0 Nov 13, 2021 Changes in this version + func IsInvalidConfig(err error) bool + func IsWrongTypeError(err error) bool + type Config struct + K8sClient kubernetes.Interface + 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{}) ([]*corev1.Secret, error) + GetDesiredState func(ctx context.Context, obj interface{}) ([]*corev1.Secret, error) Other modules containing this package github.com/giantswarm/operatorkit/v2 github.com/giantswarm/operatorkit/v4 github.com/giantswarm/operatorkit/v5 github.com/giantswarm/operatorkit/v7 github.com/giantswarm/operatorkit/v8