Versions in this module Expand all Collapse all v0 v0.29.1 Mar 29, 2024 Changes in this version + func NewSimpleTranslationStrategy(translator SimpleTranslator, strategy strategy.CompleteStrategy) strategy.CompleteStrategy + type SimpleTranslator interface + FromPublic func(obj mtypes.Object) mtypes.Object + ToPublic func(obj mtypes.Object) mtypes.Object + type Strategy struct + func NewTranslationStrategy(translator Translator, strategy strategy.CompleteStrategy) *Strategy + func (t *Strategy) Create(ctx context.Context, object types.Object) (types.Object, error) + func (t *Strategy) Delete(ctx context.Context, obj types.Object) (types.Object, error) + func (t *Strategy) Destroy() + func (t *Strategy) Get(ctx context.Context, namespace, name string) (types.Object, error) + func (t *Strategy) List(ctx context.Context, namespace string, opts storage.ListOptions) (types.ObjectList, error) + func (t *Strategy) New() types.Object + func (t *Strategy) NewList() types.ObjectList + func (t *Strategy) Scheme() *runtime.Scheme + func (t *Strategy) Update(ctx context.Context, obj types.Object) (types.Object, error) + func (t *Strategy) UpdateStatus(ctx context.Context, obj types.Object) (types.Object, error) + func (t *Strategy) Watch(ctx context.Context, namespace string, opts storage.ListOptions) (<-chan watch.Event, error) + type Translator interface + FromPublic func(ctx context.Context, obj runtime.Object) (types.Object, error) + FromPublicName func(ctx context.Context, namespace, name string) (string, string, error) + ListOpts func(ctx context.Context, namespace string, opts storage.ListOptions) (string, storage.ListOptions, error) + NewPublic func() types.Object + NewPublicList func() types.ObjectList + ToPublic func(ctx context.Context, obj ...runtime.Object) ([]types.Object, error) + func NewSimpleTranslator(translator SimpleTranslator, pubType mtypes.Object, scheme *runtime.Scheme) Translator