Documentation ¶
Index ¶
- func NewFakeMapper(scheme *runtime.Scheme) meta.RESTMapper
- func NewScheme() *runtime.Scheme
- type FakeEventRecorder
- type FakeIndexClient
- func (fc *FakeIndexClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (fc *FakeIndexClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (fc *FakeIndexClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (fc *FakeIndexClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (fc *FakeIndexClient) IndexField(ctx context.Context, obj client.Object, field string, ...) error
- func (fc *FakeIndexClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (fc *FakeIndexClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (fc *FakeIndexClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeMapper ¶
func NewFakeMapper(scheme *runtime.Scheme) meta.RESTMapper
NewFakeMapper creates a new fake mapper
Types ¶
type FakeEventRecorder ¶
type FakeEventRecorder struct { }
func (*FakeEventRecorder) AnnotatedEventf ¶
type FakeIndexClient ¶
func NewFakeClient ¶
func NewFakeClient(scheme *runtime.Scheme, objs ...runtime.Object) *FakeIndexClient
NewFakeClient creates a new fake client for the standard schema
func (*FakeIndexClient) Create ¶
func (fc *FakeIndexClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
func (*FakeIndexClient) Delete ¶
func (fc *FakeIndexClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
func (*FakeIndexClient) DeleteAllOf ¶
func (fc *FakeIndexClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
func (*FakeIndexClient) IndexField ¶
func (fc *FakeIndexClient) IndexField(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc) error
func (*FakeIndexClient) List ¶
func (fc *FakeIndexClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (*FakeIndexClient) Patch ¶
func (fc *FakeIndexClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (*FakeIndexClient) Update ¶
func (fc *FakeIndexClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.