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 FakeEncryptionConfigs

type FakeEncryptionConfigs struct {
	Fake *FakeXrayV1alpha1
	// contains filtered or unexported fields
}

FakeEncryptionConfigs implements EncryptionConfigInterface

func (*FakeEncryptionConfigs) Create

func (c *FakeEncryptionConfigs) Create(ctx context.Context, encryptionConfig *v1alpha1.EncryptionConfig, opts v1.CreateOptions) (result *v1alpha1.EncryptionConfig, err error)

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

func (*FakeEncryptionConfigs) Delete

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

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

func (*FakeEncryptionConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEncryptionConfigs) Get

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

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

func (*FakeEncryptionConfigs) List

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

func (*FakeEncryptionConfigs) Patch

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

Patch applies the patch and returns the patched encryptionConfig.

func (*FakeEncryptionConfigs) Update

func (c *FakeEncryptionConfigs) Update(ctx context.Context, encryptionConfig *v1alpha1.EncryptionConfig, opts v1.UpdateOptions) (result *v1alpha1.EncryptionConfig, err error)

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

func (*FakeEncryptionConfigs) UpdateStatus

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

func (*FakeEncryptionConfigs) Watch

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

type FakeGroups

type FakeGroups struct {
	Fake *FakeXrayV1alpha1
	// contains filtered or unexported fields
}

FakeGroups implements GroupInterface

func (*FakeGroups) Create

func (c *FakeGroups) Create(ctx context.Context, group *v1alpha1.Group, opts v1.CreateOptions) (result *v1alpha1.Group, err error)

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

func (*FakeGroups) Delete

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

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

func (*FakeGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGroups) Get

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

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

func (*FakeGroups) List

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

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

func (*FakeGroups) Patch

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

Patch applies the patch and returns the patched group.

func (*FakeGroups) Update

func (c *FakeGroups) Update(ctx context.Context, group *v1alpha1.Group, opts v1.UpdateOptions) (result *v1alpha1.Group, err error)

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

func (*FakeGroups) UpdateStatus

func (c *FakeGroups) UpdateStatus(ctx context.Context, group *v1alpha1.Group, opts v1.UpdateOptions) (*v1alpha1.Group, error)

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

func (*FakeGroups) Watch

func (c *FakeGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeSamplingRules

type FakeSamplingRules struct {
	Fake *FakeXrayV1alpha1
	// contains filtered or unexported fields
}

FakeSamplingRules implements SamplingRuleInterface

func (*FakeSamplingRules) Create

func (c *FakeSamplingRules) Create(ctx context.Context, samplingRule *v1alpha1.SamplingRule, opts v1.CreateOptions) (result *v1alpha1.SamplingRule, err error)

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

func (*FakeSamplingRules) Delete

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

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

func (*FakeSamplingRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSamplingRules) Get

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

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

func (*FakeSamplingRules) List

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

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

func (*FakeSamplingRules) Patch

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

Patch applies the patch and returns the patched samplingRule.

func (*FakeSamplingRules) Update

func (c *FakeSamplingRules) Update(ctx context.Context, samplingRule *v1alpha1.SamplingRule, opts v1.UpdateOptions) (result *v1alpha1.SamplingRule, err error)

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

func (*FakeSamplingRules) UpdateStatus

func (c *FakeSamplingRules) UpdateStatus(ctx context.Context, samplingRule *v1alpha1.SamplingRule, opts v1.UpdateOptions) (*v1alpha1.SamplingRule, error)

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

func (*FakeSamplingRules) Watch

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

type FakeXrayV1alpha1

type FakeXrayV1alpha1 struct {
	*testing.Fake
}

func (*FakeXrayV1alpha1) EncryptionConfigs

func (c *FakeXrayV1alpha1) EncryptionConfigs(namespace string) v1alpha1.EncryptionConfigInterface

func (*FakeXrayV1alpha1) Groups

func (c *FakeXrayV1alpha1) Groups(namespace string) v1alpha1.GroupInterface

func (*FakeXrayV1alpha1) RESTClient

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

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

func (*FakeXrayV1alpha1) SamplingRules

func (c *FakeXrayV1alpha1) SamplingRules(namespace string) v1alpha1.SamplingRuleInterface

Jump to

Keyboard shortcuts

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