fake

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 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 FakeArmorProfileModels

type FakeArmorProfileModels struct {
	Fake *FakeCrdV1beta1
	// contains filtered or unexported fields
}

FakeArmorProfileModels implements ArmorProfileModelInterface

func (*FakeArmorProfileModels) Create

func (c *FakeArmorProfileModels) Create(ctx context.Context, armorProfileModel *v1beta1.ArmorProfileModel, opts v1.CreateOptions) (result *v1beta1.ArmorProfileModel, err error)

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

func (*FakeArmorProfileModels) Delete

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

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

func (*FakeArmorProfileModels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeArmorProfileModels) Get

func (c *FakeArmorProfileModels) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ArmorProfileModel, err error)

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

func (*FakeArmorProfileModels) List

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

func (*FakeArmorProfileModels) Patch

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

Patch applies the patch and returns the patched armorProfileModel.

func (*FakeArmorProfileModels) Update

func (c *FakeArmorProfileModels) Update(ctx context.Context, armorProfileModel *v1beta1.ArmorProfileModel, opts v1.UpdateOptions) (result *v1beta1.ArmorProfileModel, err error)

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

func (*FakeArmorProfileModels) UpdateStatus

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

func (*FakeArmorProfileModels) Watch

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

type FakeArmorProfiles

type FakeArmorProfiles struct {
	Fake *FakeCrdV1beta1
	// contains filtered or unexported fields
}

FakeArmorProfiles implements ArmorProfileInterface

func (*FakeArmorProfiles) Create

func (c *FakeArmorProfiles) Create(ctx context.Context, armorProfile *v1beta1.ArmorProfile, opts v1.CreateOptions) (result *v1beta1.ArmorProfile, err error)

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

func (*FakeArmorProfiles) Delete

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

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

func (*FakeArmorProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeArmorProfiles) Get

func (c *FakeArmorProfiles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ArmorProfile, err error)

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

func (*FakeArmorProfiles) List

func (c *FakeArmorProfiles) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ArmorProfileList, err error)

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

func (*FakeArmorProfiles) Patch

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

Patch applies the patch and returns the patched armorProfile.

func (*FakeArmorProfiles) Update

func (c *FakeArmorProfiles) Update(ctx context.Context, armorProfile *v1beta1.ArmorProfile, opts v1.UpdateOptions) (result *v1beta1.ArmorProfile, err error)

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

func (*FakeArmorProfiles) UpdateStatus

func (c *FakeArmorProfiles) UpdateStatus(ctx context.Context, armorProfile *v1beta1.ArmorProfile, opts v1.UpdateOptions) (*v1beta1.ArmorProfile, error)

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

func (*FakeArmorProfiles) Watch

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

type FakeCrdV1beta1

type FakeCrdV1beta1 struct {
	*testing.Fake
}

func (*FakeCrdV1beta1) ArmorProfileModels

func (c *FakeCrdV1beta1) ArmorProfileModels(namespace string) v1beta1.ArmorProfileModelInterface

func (*FakeCrdV1beta1) ArmorProfiles

func (c *FakeCrdV1beta1) ArmorProfiles(namespace string) v1beta1.ArmorProfileInterface

func (*FakeCrdV1beta1) RESTClient

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

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

func (*FakeCrdV1beta1) VarmorClusterPolicies added in v0.5.4

func (c *FakeCrdV1beta1) VarmorClusterPolicies() v1beta1.VarmorClusterPolicyInterface

func (*FakeCrdV1beta1) VarmorPolicies

func (c *FakeCrdV1beta1) VarmorPolicies(namespace string) v1beta1.VarmorPolicyInterface

type FakeVarmorClusterPolicies added in v0.5.4

type FakeVarmorClusterPolicies struct {
	Fake *FakeCrdV1beta1
}

FakeVarmorClusterPolicies implements VarmorClusterPolicyInterface

func (*FakeVarmorClusterPolicies) Create added in v0.5.4

func (c *FakeVarmorClusterPolicies) Create(ctx context.Context, varmorClusterPolicy *v1beta1.VarmorClusterPolicy, opts v1.CreateOptions) (result *v1beta1.VarmorClusterPolicy, err error)

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

func (*FakeVarmorClusterPolicies) Delete added in v0.5.4

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

func (*FakeVarmorClusterPolicies) DeleteCollection added in v0.5.4

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

DeleteCollection deletes a collection of objects.

func (*FakeVarmorClusterPolicies) Get added in v0.5.4

func (c *FakeVarmorClusterPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.VarmorClusterPolicy, err error)

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

func (*FakeVarmorClusterPolicies) List added in v0.5.4

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

func (*FakeVarmorClusterPolicies) Patch added in v0.5.4

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

Patch applies the patch and returns the patched varmorClusterPolicy.

func (*FakeVarmorClusterPolicies) Update added in v0.5.4

func (c *FakeVarmorClusterPolicies) Update(ctx context.Context, varmorClusterPolicy *v1beta1.VarmorClusterPolicy, opts v1.UpdateOptions) (result *v1beta1.VarmorClusterPolicy, err error)

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

func (*FakeVarmorClusterPolicies) UpdateStatus added in v0.5.4

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

func (*FakeVarmorClusterPolicies) Watch added in v0.5.4

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

type FakeVarmorPolicies

type FakeVarmorPolicies struct {
	Fake *FakeCrdV1beta1
	// contains filtered or unexported fields
}

FakeVarmorPolicies implements VarmorPolicyInterface

func (*FakeVarmorPolicies) Create

func (c *FakeVarmorPolicies) Create(ctx context.Context, varmorPolicy *v1beta1.VarmorPolicy, opts v1.CreateOptions) (result *v1beta1.VarmorPolicy, err error)

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

func (*FakeVarmorPolicies) Delete

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

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

func (*FakeVarmorPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVarmorPolicies) Get

func (c *FakeVarmorPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.VarmorPolicy, err error)

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

func (*FakeVarmorPolicies) List

func (c *FakeVarmorPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.VarmorPolicyList, err error)

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

func (*FakeVarmorPolicies) Patch

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

Patch applies the patch and returns the patched varmorPolicy.

func (*FakeVarmorPolicies) Update

func (c *FakeVarmorPolicies) Update(ctx context.Context, varmorPolicy *v1beta1.VarmorPolicy, opts v1.UpdateOptions) (result *v1beta1.VarmorPolicy, err error)

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

func (*FakeVarmorPolicies) UpdateStatus

func (c *FakeVarmorPolicies) UpdateStatus(ctx context.Context, varmorPolicy *v1beta1.VarmorPolicy, opts v1.UpdateOptions) (*v1beta1.VarmorPolicy, error)

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

func (*FakeVarmorPolicies) Watch

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

Jump to

Keyboard shortcuts

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