Documentation ¶
Index ¶
- func NewSimpleTranslationStrategy(translator SimpleTranslator, strategy strategy.CompleteStrategy) strategy.CompleteStrategy
- type SimpleTranslator
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSimpleTranslationStrategy ¶
func NewSimpleTranslationStrategy(translator SimpleTranslator, strategy strategy.CompleteStrategy) strategy.CompleteStrategy
Types ¶
type SimpleTranslator ¶
type Strategy ¶
type Strategy struct {
// contains filtered or unexported fields
}
func NewTranslationStrategy ¶
func NewTranslationStrategy(translator Translator, strategy strategy.CompleteStrategy) *Strategy
func (*Strategy) List ¶
func (t *Strategy) List(ctx context.Context, namespace string, opts storage.ListOptions) (types.ObjectList, error)
func (*Strategy) NewList ¶
func (t *Strategy) NewList() types.ObjectList
func (*Strategy) UpdateStatus ¶
type Translator ¶
type Translator interface { FromPublicName(ctx context.Context, namespace, name string) (string, string, error) ListOpts(ctx context.Context, namespace string, opts storage.ListOptions) (string, storage.ListOptions, error) ToPublic(ctx context.Context, obj ...runtime.Object) ([]types.Object, error) FromPublic(ctx context.Context, obj runtime.Object) (types.Object, error) NewPublic() types.Object NewPublicList() types.ObjectList }
func NewSimpleTranslator ¶
func NewSimpleTranslator(translator SimpleTranslator, pubType mtypes.Object, scheme *runtime.Scheme) Translator
Click to show internal directories.
Click to hide internal directories.