fake

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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 FakeDiscoveryRules

type FakeDiscoveryRules struct {
	Fake *FakeInvV1alpha1
	// contains filtered or unexported fields
}

FakeDiscoveryRules implements DiscoveryRuleInterface

func (*FakeDiscoveryRules) Create

func (c *FakeDiscoveryRules) Create(ctx context.Context, discoveryRule *v1alpha1.DiscoveryRule, opts v1.CreateOptions) (result *v1alpha1.DiscoveryRule, err error)

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

func (*FakeDiscoveryRules) Delete

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

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

func (*FakeDiscoveryRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDiscoveryRules) Get

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

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

func (*FakeDiscoveryRules) List

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

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

func (*FakeDiscoveryRules) Patch

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

Patch applies the patch and returns the patched discoveryRule.

func (*FakeDiscoveryRules) Update

func (c *FakeDiscoveryRules) Update(ctx context.Context, discoveryRule *v1alpha1.DiscoveryRule, opts v1.UpdateOptions) (result *v1alpha1.DiscoveryRule, err error)

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

func (*FakeDiscoveryRules) UpdateStatus

func (c *FakeDiscoveryRules) UpdateStatus(ctx context.Context, discoveryRule *v1alpha1.DiscoveryRule, opts v1.UpdateOptions) (*v1alpha1.DiscoveryRule, error)

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

func (*FakeDiscoveryRules) Watch

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

type FakeInvV1alpha1

type FakeInvV1alpha1 struct {
	*testing.Fake
}

func (*FakeInvV1alpha1) DiscoveryRules

func (c *FakeInvV1alpha1) DiscoveryRules(namespace string) v1alpha1.DiscoveryRuleInterface

func (*FakeInvV1alpha1) RESTClient

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

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

func (*FakeInvV1alpha1) Schemas

func (c *FakeInvV1alpha1) Schemas(namespace string) v1alpha1.SchemaInterface

func (*FakeInvV1alpha1) TargetConnectionProfiles

func (c *FakeInvV1alpha1) TargetConnectionProfiles(namespace string) v1alpha1.TargetConnectionProfileInterface

func (*FakeInvV1alpha1) TargetSyncProfiles

func (c *FakeInvV1alpha1) TargetSyncProfiles(namespace string) v1alpha1.TargetSyncProfileInterface

func (*FakeInvV1alpha1) Targets

func (c *FakeInvV1alpha1) Targets(namespace string) v1alpha1.TargetInterface

type FakeSchemas

type FakeSchemas struct {
	Fake *FakeInvV1alpha1
	// contains filtered or unexported fields
}

FakeSchemas implements SchemaInterface

func (*FakeSchemas) Create

func (c *FakeSchemas) Create(ctx context.Context, schema *v1alpha1.Schema, opts v1.CreateOptions) (result *v1alpha1.Schema, err error)

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

func (*FakeSchemas) Delete

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

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

func (*FakeSchemas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSchemas) Get

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

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

func (*FakeSchemas) List

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

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

func (*FakeSchemas) Patch

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

Patch applies the patch and returns the patched schema.

func (*FakeSchemas) Update

func (c *FakeSchemas) Update(ctx context.Context, schema *v1alpha1.Schema, opts v1.UpdateOptions) (result *v1alpha1.Schema, err error)

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

func (*FakeSchemas) UpdateStatus

func (c *FakeSchemas) UpdateStatus(ctx context.Context, schema *v1alpha1.Schema, opts v1.UpdateOptions) (*v1alpha1.Schema, error)

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

func (*FakeSchemas) Watch

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

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

type FakeTargetConnectionProfiles

type FakeTargetConnectionProfiles struct {
	Fake *FakeInvV1alpha1
	// contains filtered or unexported fields
}

FakeTargetConnectionProfiles implements TargetConnectionProfileInterface

func (*FakeTargetConnectionProfiles) Create

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

func (*FakeTargetConnectionProfiles) Delete

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

func (*FakeTargetConnectionProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTargetConnectionProfiles) Get

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

func (*FakeTargetConnectionProfiles) List

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

func (*FakeTargetConnectionProfiles) Patch

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

Patch applies the patch and returns the patched targetConnectionProfile.

func (*FakeTargetConnectionProfiles) Update

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

func (*FakeTargetConnectionProfiles) Watch

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

type FakeTargetSyncProfiles

type FakeTargetSyncProfiles struct {
	Fake *FakeInvV1alpha1
	// contains filtered or unexported fields
}

FakeTargetSyncProfiles implements TargetSyncProfileInterface

func (*FakeTargetSyncProfiles) Create

func (c *FakeTargetSyncProfiles) Create(ctx context.Context, targetSyncProfile *v1alpha1.TargetSyncProfile, opts v1.CreateOptions) (result *v1alpha1.TargetSyncProfile, err error)

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

func (*FakeTargetSyncProfiles) Delete

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

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

func (*FakeTargetSyncProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTargetSyncProfiles) Get

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

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

func (*FakeTargetSyncProfiles) List

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

func (*FakeTargetSyncProfiles) Patch

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

Patch applies the patch and returns the patched targetSyncProfile.

func (*FakeTargetSyncProfiles) Update

func (c *FakeTargetSyncProfiles) Update(ctx context.Context, targetSyncProfile *v1alpha1.TargetSyncProfile, opts v1.UpdateOptions) (result *v1alpha1.TargetSyncProfile, err error)

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

func (*FakeTargetSyncProfiles) Watch

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

type FakeTargets

type FakeTargets struct {
	Fake *FakeInvV1alpha1
	// contains filtered or unexported fields
}

FakeTargets implements TargetInterface

func (*FakeTargets) Create

func (c *FakeTargets) Create(ctx context.Context, target *v1alpha1.Target, opts v1.CreateOptions) (result *v1alpha1.Target, err error)

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

func (*FakeTargets) Delete

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

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

func (*FakeTargets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTargets) Get

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

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

func (*FakeTargets) List

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

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

func (*FakeTargets) Patch

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

Patch applies the patch and returns the patched target.

func (*FakeTargets) Update

func (c *FakeTargets) Update(ctx context.Context, target *v1alpha1.Target, opts v1.UpdateOptions) (result *v1alpha1.Target, err error)

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

func (*FakeTargets) UpdateStatus

func (c *FakeTargets) UpdateStatus(ctx context.Context, target *v1alpha1.Target, opts v1.UpdateOptions) (*v1alpha1.Target, error)

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

func (*FakeTargets) Watch

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

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

Jump to

Keyboard shortcuts

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