fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 FakeCloudV1alpha1

type FakeCloudV1alpha1 struct {
	*testing.Fake
}

func (*FakeCloudV1alpha1) GuardCloudGuardConfigurations

func (c *FakeCloudV1alpha1) GuardCloudGuardConfigurations(namespace string) v1alpha1.GuardCloudGuardConfigurationInterface

func (*FakeCloudV1alpha1) GuardDataMaskRules

func (c *FakeCloudV1alpha1) GuardDataMaskRules(namespace string) v1alpha1.GuardDataMaskRuleInterface

func (*FakeCloudV1alpha1) GuardDetectorRecipes

func (c *FakeCloudV1alpha1) GuardDetectorRecipes(namespace string) v1alpha1.GuardDetectorRecipeInterface

func (*FakeCloudV1alpha1) GuardManagedLists

func (c *FakeCloudV1alpha1) GuardManagedLists(namespace string) v1alpha1.GuardManagedListInterface

func (*FakeCloudV1alpha1) GuardResponderRecipes

func (c *FakeCloudV1alpha1) GuardResponderRecipes(namespace string) v1alpha1.GuardResponderRecipeInterface

func (*FakeCloudV1alpha1) GuardTargets

func (c *FakeCloudV1alpha1) GuardTargets(namespace string) v1alpha1.GuardTargetInterface

func (*FakeCloudV1alpha1) RESTClient

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

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

type FakeGuardCloudGuardConfigurations

type FakeGuardCloudGuardConfigurations struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeGuardCloudGuardConfigurations implements GuardCloudGuardConfigurationInterface

func (*FakeGuardCloudGuardConfigurations) Create

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

func (*FakeGuardCloudGuardConfigurations) Delete

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

func (*FakeGuardCloudGuardConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGuardCloudGuardConfigurations) Get

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

func (*FakeGuardCloudGuardConfigurations) List

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

func (*FakeGuardCloudGuardConfigurations) Patch

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

Patch applies the patch and returns the patched guardCloudGuardConfiguration.

func (*FakeGuardCloudGuardConfigurations) Update

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

func (*FakeGuardCloudGuardConfigurations) UpdateStatus

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

func (*FakeGuardCloudGuardConfigurations) Watch

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

type FakeGuardDataMaskRules

type FakeGuardDataMaskRules struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeGuardDataMaskRules implements GuardDataMaskRuleInterface

func (*FakeGuardDataMaskRules) Create

func (c *FakeGuardDataMaskRules) Create(ctx context.Context, guardDataMaskRule *v1alpha1.GuardDataMaskRule, opts v1.CreateOptions) (result *v1alpha1.GuardDataMaskRule, err error)

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

func (*FakeGuardDataMaskRules) Delete

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

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

func (*FakeGuardDataMaskRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGuardDataMaskRules) Get

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

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

func (*FakeGuardDataMaskRules) List

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

func (*FakeGuardDataMaskRules) Patch

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

Patch applies the patch and returns the patched guardDataMaskRule.

func (*FakeGuardDataMaskRules) Update

func (c *FakeGuardDataMaskRules) Update(ctx context.Context, guardDataMaskRule *v1alpha1.GuardDataMaskRule, opts v1.UpdateOptions) (result *v1alpha1.GuardDataMaskRule, err error)

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

func (*FakeGuardDataMaskRules) UpdateStatus

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

func (*FakeGuardDataMaskRules) Watch

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

type FakeGuardDetectorRecipes

type FakeGuardDetectorRecipes struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeGuardDetectorRecipes implements GuardDetectorRecipeInterface

func (*FakeGuardDetectorRecipes) Create

func (c *FakeGuardDetectorRecipes) Create(ctx context.Context, guardDetectorRecipe *v1alpha1.GuardDetectorRecipe, opts v1.CreateOptions) (result *v1alpha1.GuardDetectorRecipe, err error)

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

func (*FakeGuardDetectorRecipes) Delete

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

func (*FakeGuardDetectorRecipes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGuardDetectorRecipes) Get

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

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

func (*FakeGuardDetectorRecipes) List

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

func (*FakeGuardDetectorRecipes) Patch

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

Patch applies the patch and returns the patched guardDetectorRecipe.

func (*FakeGuardDetectorRecipes) Update

func (c *FakeGuardDetectorRecipes) Update(ctx context.Context, guardDetectorRecipe *v1alpha1.GuardDetectorRecipe, opts v1.UpdateOptions) (result *v1alpha1.GuardDetectorRecipe, err error)

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

func (*FakeGuardDetectorRecipes) UpdateStatus

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

func (*FakeGuardDetectorRecipes) Watch

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

type FakeGuardManagedLists

type FakeGuardManagedLists struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeGuardManagedLists implements GuardManagedListInterface

func (*FakeGuardManagedLists) Create

func (c *FakeGuardManagedLists) Create(ctx context.Context, guardManagedList *v1alpha1.GuardManagedList, opts v1.CreateOptions) (result *v1alpha1.GuardManagedList, err error)

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

func (*FakeGuardManagedLists) Delete

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

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

func (*FakeGuardManagedLists) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGuardManagedLists) Get

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

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

func (*FakeGuardManagedLists) List

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

func (*FakeGuardManagedLists) Patch

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

Patch applies the patch and returns the patched guardManagedList.

func (*FakeGuardManagedLists) Update

func (c *FakeGuardManagedLists) Update(ctx context.Context, guardManagedList *v1alpha1.GuardManagedList, opts v1.UpdateOptions) (result *v1alpha1.GuardManagedList, err error)

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

func (*FakeGuardManagedLists) UpdateStatus

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

func (*FakeGuardManagedLists) Watch

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

type FakeGuardResponderRecipes

type FakeGuardResponderRecipes struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeGuardResponderRecipes implements GuardResponderRecipeInterface

func (*FakeGuardResponderRecipes) Create

func (c *FakeGuardResponderRecipes) Create(ctx context.Context, guardResponderRecipe *v1alpha1.GuardResponderRecipe, opts v1.CreateOptions) (result *v1alpha1.GuardResponderRecipe, err error)

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

func (*FakeGuardResponderRecipes) Delete

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

func (*FakeGuardResponderRecipes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGuardResponderRecipes) Get

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

func (*FakeGuardResponderRecipes) List

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

func (*FakeGuardResponderRecipes) Patch

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

Patch applies the patch and returns the patched guardResponderRecipe.

func (*FakeGuardResponderRecipes) Update

func (c *FakeGuardResponderRecipes) Update(ctx context.Context, guardResponderRecipe *v1alpha1.GuardResponderRecipe, opts v1.UpdateOptions) (result *v1alpha1.GuardResponderRecipe, err error)

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

func (*FakeGuardResponderRecipes) UpdateStatus

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

func (*FakeGuardResponderRecipes) Watch

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

type FakeGuardTargets

type FakeGuardTargets struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeGuardTargets implements GuardTargetInterface

func (*FakeGuardTargets) Create

func (c *FakeGuardTargets) Create(ctx context.Context, guardTarget *v1alpha1.GuardTarget, opts v1.CreateOptions) (result *v1alpha1.GuardTarget, err error)

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

func (*FakeGuardTargets) Delete

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

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

func (*FakeGuardTargets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGuardTargets) Get

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

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

func (*FakeGuardTargets) List

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

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

func (*FakeGuardTargets) Patch

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

Patch applies the patch and returns the patched guardTarget.

func (*FakeGuardTargets) Update

func (c *FakeGuardTargets) Update(ctx context.Context, guardTarget *v1alpha1.GuardTarget, opts v1.UpdateOptions) (result *v1alpha1.GuardTarget, err error)

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

func (*FakeGuardTargets) UpdateStatus

func (c *FakeGuardTargets) UpdateStatus(ctx context.Context, guardTarget *v1alpha1.GuardTarget, opts v1.UpdateOptions) (*v1alpha1.GuardTarget, error)

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

func (*FakeGuardTargets) Watch

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

Jump to

Keyboard shortcuts

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