Documentation ¶
Index ¶
- Variables
- type FakeClient
- func (f *FakeClient) Apply(ctx context.Context, name string, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (f *FakeClient) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (f *FakeClient) Create(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (f *FakeClient) Delete(ctx context.Context, name string, options metav1.DeleteOptions, ...) error
- func (f *FakeClient) DeleteCollection(ctx context.Context, options metav1.DeleteOptions, ...) error
- func (f *FakeClient) Get(ctx context.Context, name string, options metav1.GetOptions, ...) (*unstructured.Unstructured, error)
- func (f *FakeClient) List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
- func (f *FakeClient) Namespace(string) dynamic.ResourceInterface
- func (f *FakeClient) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*unstructured.Unstructured, error)
- func (f *FakeClient) Update(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (f *FakeClient) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (f *FakeClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeDynamicClient
- type FakeRecorder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApisixRouteObj *unstructured.Unstructured SetHeaderApisixRouteObj *unstructured.Unstructured DuplicateSetHeaderApisixRouteObj *unstructured.Unstructured ErrorApisixRouteObj *unstructured.Unstructured )
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { IsGetError bool IsGetErrorManifest bool UpdateError bool IsListError bool IsGetNotFoundError bool IsGetManagedRouteError bool IsDuplicateSetHeaderRouteError bool IsDeleteError bool IsCreateError bool DeleteName string UpdatedObj *unstructured.Unstructured CreatedObj *unstructured.Unstructured }
func (*FakeClient) Apply ¶
func (f *FakeClient) Apply(ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions, subresources ...string) (*unstructured.Unstructured, error)
func (*FakeClient) ApplyStatus ¶
func (f *FakeClient) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions) (*unstructured.Unstructured, error)
func (*FakeClient) Create ¶
func (f *FakeClient) Create(ctx context.Context, obj *unstructured.Unstructured, options metav1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
func (*FakeClient) Delete ¶
func (f *FakeClient) Delete(ctx context.Context, name string, options metav1.DeleteOptions, subresources ...string) error
func (*FakeClient) DeleteCollection ¶
func (f *FakeClient) DeleteCollection(ctx context.Context, options metav1.DeleteOptions, listOptions metav1.ListOptions) error
func (*FakeClient) Get ¶
func (f *FakeClient) Get(ctx context.Context, name string, options metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
func (*FakeClient) List ¶
func (f *FakeClient) List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
func (*FakeClient) Namespace ¶
func (f *FakeClient) Namespace(string) dynamic.ResourceInterface
func (*FakeClient) Patch ¶
func (f *FakeClient) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, options metav1.PatchOptions, subresources ...string) (*unstructured.Unstructured, error)
func (*FakeClient) Update ¶
func (f *FakeClient) Update(ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
func (*FakeClient) UpdateStatus ¶
func (f *FakeClient) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions) (*unstructured.Unstructured, error)
func (*FakeClient) Watch ¶
func (f *FakeClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
type FakeDynamicClient ¶
type FakeDynamicClient struct {
IsListError bool
}
func (*FakeDynamicClient) Resource ¶
func (f *FakeDynamicClient) Resource(schema.GroupVersionResource) dynamic.NamespaceableResourceInterface
type FakeRecorder ¶
type FakeRecorder struct{}
func (*FakeRecorder) Eventf ¶
func (f *FakeRecorder) Eventf(object runtime.Object, opts argoRecord.EventOptions, messageFmt string, args ...any)
func (*FakeRecorder) K8sRecorder ¶
func (f *FakeRecorder) K8sRecorder() record.EventRecorder
func (*FakeRecorder) Warnf ¶
func (f *FakeRecorder) Warnf(object runtime.Object, opts argoRecord.EventOptions, messageFmt string, args ...any)
Click to show internal directories.
Click to hide internal directories.