mocks

package
v0.0.0-...-de69368 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 (*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 (*FakeClient) Namespace

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 (*FakeClient) Watch

type FakeDynamicClient

type FakeDynamicClient struct {
	IsListError bool
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL