Documentation ¶
Index ¶
- type FakeClient
- func (f *FakeClient) Create(_ context.Context, _ client.Object, _ ...client.CreateOption) error
- func (f *FakeClient) Delete(_ context.Context, _ client.Object, _ ...client.DeleteOption) error
- func (f *FakeClient) DeleteAllOf(_ context.Context, _ client.Object, _ ...client.DeleteAllOfOption) error
- func (f *FakeClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error
- func (f *FakeClient) List(_ context.Context, _ client.ObjectList, _ ...client.ListOption) error
- func (f *FakeClient) Patch(_ context.Context, _ client.Object, _ client.Patch, _ ...client.PatchOption) error
- func (f *FakeClient) RESTMapper() meta.RESTMapper
- func (f *FakeClient) Scheme() *runtime.Scheme
- func (f *FakeClient) Status() client.StatusWriter
- func (f *FakeClient) Update(_ context.Context, _ client.Object, _ ...client.UpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { Clientset *fake.Clientset GetFunc func(ctx context.Context, key client.ObjectKey, obj client.Object) error }
func NewFakeClient ¶
func NewFakeClient() *FakeClient
func (*FakeClient) Create ¶
func (f *FakeClient) Create(_ context.Context, _ client.Object, _ ...client.CreateOption) error
func (*FakeClient) Delete ¶
func (f *FakeClient) Delete(_ context.Context, _ client.Object, _ ...client.DeleteOption) error
func (*FakeClient) DeleteAllOf ¶
func (f *FakeClient) DeleteAllOf(_ context.Context, _ client.Object, _ ...client.DeleteAllOfOption) error
func (*FakeClient) List ¶
func (f *FakeClient) List(_ context.Context, _ client.ObjectList, _ ...client.ListOption) error
func (*FakeClient) Patch ¶
func (f *FakeClient) Patch(_ context.Context, _ client.Object, _ client.Patch, _ ...client.PatchOption) error
func (*FakeClient) RESTMapper ¶
func (f *FakeClient) RESTMapper() meta.RESTMapper
func (*FakeClient) Scheme ¶
func (f *FakeClient) Scheme() *runtime.Scheme
func (*FakeClient) Status ¶
func (f *FakeClient) Status() client.StatusWriter
func (*FakeClient) Update ¶
func (f *FakeClient) Update(_ context.Context, _ client.Object, _ ...client.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.