fake

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBpfPrograms

type FakeBpfPrograms struct {
	Fake *FakeBpfmanV1alpha1
}

FakeBpfPrograms implements BpfProgramInterface

func (*FakeBpfPrograms) Create

func (c *FakeBpfPrograms) Create(ctx context.Context, bpfProgram *v1alpha1.BpfProgram, opts v1.CreateOptions) (result *v1alpha1.BpfProgram, err error)

Create takes the representation of a bpfProgram and creates it. Returns the server's representation of the bpfProgram, and an error, if there is any.

func (*FakeBpfPrograms) Delete

func (c *FakeBpfPrograms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the bpfProgram and deletes it. Returns an error if one occurs.

func (*FakeBpfPrograms) DeleteCollection

func (c *FakeBpfPrograms) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeBpfPrograms) Get

func (c *FakeBpfPrograms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BpfProgram, err error)

Get takes name of the bpfProgram, and returns the corresponding bpfProgram object, and an error if there is any.

func (*FakeBpfPrograms) List

func (c *FakeBpfPrograms) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BpfProgramList, err error)

List takes label and field selectors, and returns the list of BpfPrograms that match those selectors.

func (*FakeBpfPrograms) Patch

func (c *FakeBpfPrograms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BpfProgram, err error)

Patch applies the patch and returns the patched bpfProgram.

func (*FakeBpfPrograms) Update

func (c *FakeBpfPrograms) Update(ctx context.Context, bpfProgram *v1alpha1.BpfProgram, opts v1.UpdateOptions) (result *v1alpha1.BpfProgram, err error)

Update takes the representation of a bpfProgram and updates it. Returns the server's representation of the bpfProgram, and an error, if there is any.

func (*FakeBpfPrograms) UpdateStatus

func (c *FakeBpfPrograms) UpdateStatus(ctx context.Context, bpfProgram *v1alpha1.BpfProgram, opts v1.UpdateOptions) (*v1alpha1.BpfProgram, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeBpfPrograms) Watch

Watch returns a watch.Interface that watches the requested bpfPrograms.

type FakeBpfmanV1alpha1

type FakeBpfmanV1alpha1 struct {
	*testing.Fake
}

func (*FakeBpfmanV1alpha1) BpfPrograms

func (*FakeBpfmanV1alpha1) FentryPrograms

func (*FakeBpfmanV1alpha1) FexitPrograms

func (*FakeBpfmanV1alpha1) KprobePrograms

func (*FakeBpfmanV1alpha1) RESTClient

func (c *FakeBpfmanV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeBpfmanV1alpha1) TcPrograms

func (*FakeBpfmanV1alpha1) TracepointPrograms

func (c *FakeBpfmanV1alpha1) TracepointPrograms() v1alpha1.TracepointProgramInterface

func (*FakeBpfmanV1alpha1) UprobePrograms

func (*FakeBpfmanV1alpha1) XdpPrograms

type FakeFentryPrograms

type FakeFentryPrograms struct {
	Fake *FakeBpfmanV1alpha1
}

FakeFentryPrograms implements FentryProgramInterface

func (*FakeFentryPrograms) Create

func (c *FakeFentryPrograms) Create(ctx context.Context, fentryProgram *v1alpha1.FentryProgram, opts v1.CreateOptions) (result *v1alpha1.FentryProgram, err error)

Create takes the representation of a fentryProgram and creates it. Returns the server's representation of the fentryProgram, and an error, if there is any.

func (*FakeFentryPrograms) Delete

func (c *FakeFentryPrograms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the fentryProgram and deletes it. Returns an error if one occurs.

func (*FakeFentryPrograms) DeleteCollection

func (c *FakeFentryPrograms) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeFentryPrograms) Get

func (c *FakeFentryPrograms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FentryProgram, err error)

Get takes name of the fentryProgram, and returns the corresponding fentryProgram object, and an error if there is any.

func (*FakeFentryPrograms) List

func (c *FakeFentryPrograms) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FentryProgramList, err error)

List takes label and field selectors, and returns the list of FentryPrograms that match those selectors.

func (*FakeFentryPrograms) Patch

func (c *FakeFentryPrograms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.FentryProgram, err error)

Patch applies the patch and returns the patched fentryProgram.

func (*FakeFentryPrograms) Update

func (c *FakeFentryPrograms) Update(ctx context.Context, fentryProgram *v1alpha1.FentryProgram, opts v1.UpdateOptions) (result *v1alpha1.FentryProgram, err error)

Update takes the representation of a fentryProgram and updates it. Returns the server's representation of the fentryProgram, and an error, if there is any.

func (*FakeFentryPrograms) UpdateStatus

func (c *FakeFentryPrograms) UpdateStatus(ctx context.Context, fentryProgram *v1alpha1.FentryProgram, opts v1.UpdateOptions) (*v1alpha1.FentryProgram, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeFentryPrograms) Watch

Watch returns a watch.Interface that watches the requested fentryPrograms.

type FakeFexitPrograms

type FakeFexitPrograms struct {
	Fake *FakeBpfmanV1alpha1
}

FakeFexitPrograms implements FexitProgramInterface

func (*FakeFexitPrograms) Create

func (c *FakeFexitPrograms) Create(ctx context.Context, fexitProgram *v1alpha1.FexitProgram, opts v1.CreateOptions) (result *v1alpha1.FexitProgram, err error)

Create takes the representation of a fexitProgram and creates it. Returns the server's representation of the fexitProgram, and an error, if there is any.

func (*FakeFexitPrograms) Delete

func (c *FakeFexitPrograms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the fexitProgram and deletes it. Returns an error if one occurs.

func (*FakeFexitPrograms) DeleteCollection

func (c *FakeFexitPrograms) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeFexitPrograms) Get

func (c *FakeFexitPrograms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FexitProgram, err error)

Get takes name of the fexitProgram, and returns the corresponding fexitProgram object, and an error if there is any.

func (*FakeFexitPrograms) List

func (c *FakeFexitPrograms) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FexitProgramList, err error)

List takes label and field selectors, and returns the list of FexitPrograms that match those selectors.

func (*FakeFexitPrograms) Patch

func (c *FakeFexitPrograms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.FexitProgram, err error)

Patch applies the patch and returns the patched fexitProgram.

func (*FakeFexitPrograms) Update

func (c *FakeFexitPrograms) Update(ctx context.Context, fexitProgram *v1alpha1.FexitProgram, opts v1.UpdateOptions) (result *v1alpha1.FexitProgram, err error)

Update takes the representation of a fexitProgram and updates it. Returns the server's representation of the fexitProgram, and an error, if there is any.

func (*FakeFexitPrograms) UpdateStatus

func (c *FakeFexitPrograms) UpdateStatus(ctx context.Context, fexitProgram *v1alpha1.FexitProgram, opts v1.UpdateOptions) (*v1alpha1.FexitProgram, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeFexitPrograms) Watch

Watch returns a watch.Interface that watches the requested fexitPrograms.

type FakeKprobePrograms

type FakeKprobePrograms struct {
	Fake *FakeBpfmanV1alpha1
}

FakeKprobePrograms implements KprobeProgramInterface

func (*FakeKprobePrograms) Create

func (c *FakeKprobePrograms) Create(ctx context.Context, kprobeProgram *v1alpha1.KprobeProgram, opts v1.CreateOptions) (result *v1alpha1.KprobeProgram, err error)

Create takes the representation of a kprobeProgram and creates it. Returns the server's representation of the kprobeProgram, and an error, if there is any.

func (*FakeKprobePrograms) Delete

func (c *FakeKprobePrograms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the kprobeProgram and deletes it. Returns an error if one occurs.

func (*FakeKprobePrograms) DeleteCollection

func (c *FakeKprobePrograms) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeKprobePrograms) Get

func (c *FakeKprobePrograms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.KprobeProgram, err error)

Get takes name of the kprobeProgram, and returns the corresponding kprobeProgram object, and an error if there is any.

func (*FakeKprobePrograms) List

func (c *FakeKprobePrograms) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.KprobeProgramList, err error)

List takes label and field selectors, and returns the list of KprobePrograms that match those selectors.

func (*FakeKprobePrograms) Patch

func (c *FakeKprobePrograms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KprobeProgram, err error)

Patch applies the patch and returns the patched kprobeProgram.

func (*FakeKprobePrograms) Update

func (c *FakeKprobePrograms) Update(ctx context.Context, kprobeProgram *v1alpha1.KprobeProgram, opts v1.UpdateOptions) (result *v1alpha1.KprobeProgram, err error)

Update takes the representation of a kprobeProgram and updates it. Returns the server's representation of the kprobeProgram, and an error, if there is any.

func (*FakeKprobePrograms) UpdateStatus

func (c *FakeKprobePrograms) UpdateStatus(ctx context.Context, kprobeProgram *v1alpha1.KprobeProgram, opts v1.UpdateOptions) (*v1alpha1.KprobeProgram, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeKprobePrograms) Watch

Watch returns a watch.Interface that watches the requested kprobePrograms.

type FakeTcPrograms

type FakeTcPrograms struct {
	Fake *FakeBpfmanV1alpha1
}

FakeTcPrograms implements TcProgramInterface

func (*FakeTcPrograms) Create

func (c *FakeTcPrograms) Create(ctx context.Context, tcProgram *v1alpha1.TcProgram, opts v1.CreateOptions) (result *v1alpha1.TcProgram, err error)

Create takes the representation of a tcProgram and creates it. Returns the server's representation of the tcProgram, and an error, if there is any.

func (*FakeTcPrograms) Delete

func (c *FakeTcPrograms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the tcProgram and deletes it. Returns an error if one occurs.

func (*FakeTcPrograms) DeleteCollection

func (c *FakeTcPrograms) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTcPrograms) Get

func (c *FakeTcPrograms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TcProgram, err error)

Get takes name of the tcProgram, and returns the corresponding tcProgram object, and an error if there is any.

func (*FakeTcPrograms) List

func (c *FakeTcPrograms) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TcProgramList, err error)

List takes label and field selectors, and returns the list of TcPrograms that match those selectors.

func (*FakeTcPrograms) Patch

func (c *FakeTcPrograms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.TcProgram, err error)

Patch applies the patch and returns the patched tcProgram.

func (*FakeTcPrograms) Update

func (c *FakeTcPrograms) Update(ctx context.Context, tcProgram *v1alpha1.TcProgram, opts v1.UpdateOptions) (result *v1alpha1.TcProgram, err error)

Update takes the representation of a tcProgram and updates it. Returns the server's representation of the tcProgram, and an error, if there is any.

func (*FakeTcPrograms) UpdateStatus

func (c *FakeTcPrograms) UpdateStatus(ctx context.Context, tcProgram *v1alpha1.TcProgram, opts v1.UpdateOptions) (*v1alpha1.TcProgram, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeTcPrograms) Watch

Watch returns a watch.Interface that watches the requested tcPrograms.

type FakeTracepointPrograms

type FakeTracepointPrograms struct {
	Fake *FakeBpfmanV1alpha1
}

FakeTracepointPrograms implements TracepointProgramInterface

func (*FakeTracepointPrograms) Create

func (c *FakeTracepointPrograms) Create(ctx context.Context, tracepointProgram *v1alpha1.TracepointProgram, opts v1.CreateOptions) (result *v1alpha1.TracepointProgram, err error)

Create takes the representation of a tracepointProgram and creates it. Returns the server's representation of the tracepointProgram, and an error, if there is any.

func (*FakeTracepointPrograms) Delete

func (c *FakeTracepointPrograms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the tracepointProgram and deletes it. Returns an error if one occurs.

func (*FakeTracepointPrograms) DeleteCollection

func (c *FakeTracepointPrograms) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTracepointPrograms) Get

func (c *FakeTracepointPrograms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TracepointProgram, err error)

Get takes name of the tracepointProgram, and returns the corresponding tracepointProgram object, and an error if there is any.

func (*FakeTracepointPrograms) List

List takes label and field selectors, and returns the list of TracepointPrograms that match those selectors.

func (*FakeTracepointPrograms) Patch

func (c *FakeTracepointPrograms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.TracepointProgram, err error)

Patch applies the patch and returns the patched tracepointProgram.

func (*FakeTracepointPrograms) Update

func (c *FakeTracepointPrograms) Update(ctx context.Context, tracepointProgram *v1alpha1.TracepointProgram, opts v1.UpdateOptions) (result *v1alpha1.TracepointProgram, err error)

Update takes the representation of a tracepointProgram and updates it. Returns the server's representation of the tracepointProgram, and an error, if there is any.

func (*FakeTracepointPrograms) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeTracepointPrograms) Watch

Watch returns a watch.Interface that watches the requested tracepointPrograms.

type FakeUprobePrograms

type FakeUprobePrograms struct {
	Fake *FakeBpfmanV1alpha1
}

FakeUprobePrograms implements UprobeProgramInterface

func (*FakeUprobePrograms) Create

func (c *FakeUprobePrograms) Create(ctx context.Context, uprobeProgram *v1alpha1.UprobeProgram, opts v1.CreateOptions) (result *v1alpha1.UprobeProgram, err error)

Create takes the representation of a uprobeProgram and creates it. Returns the server's representation of the uprobeProgram, and an error, if there is any.

func (*FakeUprobePrograms) Delete

func (c *FakeUprobePrograms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the uprobeProgram and deletes it. Returns an error if one occurs.

func (*FakeUprobePrograms) DeleteCollection

func (c *FakeUprobePrograms) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeUprobePrograms) Get

func (c *FakeUprobePrograms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.UprobeProgram, err error)

Get takes name of the uprobeProgram, and returns the corresponding uprobeProgram object, and an error if there is any.

func (*FakeUprobePrograms) List

func (c *FakeUprobePrograms) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.UprobeProgramList, err error)

List takes label and field selectors, and returns the list of UprobePrograms that match those selectors.

func (*FakeUprobePrograms) Patch

func (c *FakeUprobePrograms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.UprobeProgram, err error)

Patch applies the patch and returns the patched uprobeProgram.

func (*FakeUprobePrograms) Update

func (c *FakeUprobePrograms) Update(ctx context.Context, uprobeProgram *v1alpha1.UprobeProgram, opts v1.UpdateOptions) (result *v1alpha1.UprobeProgram, err error)

Update takes the representation of a uprobeProgram and updates it. Returns the server's representation of the uprobeProgram, and an error, if there is any.

func (*FakeUprobePrograms) UpdateStatus

func (c *FakeUprobePrograms) UpdateStatus(ctx context.Context, uprobeProgram *v1alpha1.UprobeProgram, opts v1.UpdateOptions) (*v1alpha1.UprobeProgram, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeUprobePrograms) Watch

Watch returns a watch.Interface that watches the requested uprobePrograms.

type FakeXdpPrograms

type FakeXdpPrograms struct {
	Fake *FakeBpfmanV1alpha1
}

FakeXdpPrograms implements XdpProgramInterface

func (*FakeXdpPrograms) Create

func (c *FakeXdpPrograms) Create(ctx context.Context, xdpProgram *v1alpha1.XdpProgram, opts v1.CreateOptions) (result *v1alpha1.XdpProgram, err error)

Create takes the representation of a xdpProgram and creates it. Returns the server's representation of the xdpProgram, and an error, if there is any.

func (*FakeXdpPrograms) Delete

func (c *FakeXdpPrograms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the xdpProgram and deletes it. Returns an error if one occurs.

func (*FakeXdpPrograms) DeleteCollection

func (c *FakeXdpPrograms) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeXdpPrograms) Get

func (c *FakeXdpPrograms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.XdpProgram, err error)

Get takes name of the xdpProgram, and returns the corresponding xdpProgram object, and an error if there is any.

func (*FakeXdpPrograms) List

func (c *FakeXdpPrograms) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.XdpProgramList, err error)

List takes label and field selectors, and returns the list of XdpPrograms that match those selectors.

func (*FakeXdpPrograms) Patch

func (c *FakeXdpPrograms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.XdpProgram, err error)

Patch applies the patch and returns the patched xdpProgram.

func (*FakeXdpPrograms) Update

func (c *FakeXdpPrograms) Update(ctx context.Context, xdpProgram *v1alpha1.XdpProgram, opts v1.UpdateOptions) (result *v1alpha1.XdpProgram, err error)

Update takes the representation of a xdpProgram and updates it. Returns the server's representation of the xdpProgram, and an error, if there is any.

func (*FakeXdpPrograms) UpdateStatus

func (c *FakeXdpPrograms) UpdateStatus(ctx context.Context, xdpProgram *v1alpha1.XdpProgram, opts v1.UpdateOptions) (*v1alpha1.XdpProgram, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeXdpPrograms) Watch

Watch returns a watch.Interface that watches the requested xdpPrograms.

Jump to

Keyboard shortcuts

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