fake

package
v0.0.0-...-cf96932 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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 FakeResourceCompositions

type FakeResourceCompositions struct {
	Fake *FakeWorkflowsV1alpha1
	// contains filtered or unexported fields
}

FakeResourceCompositions implements ResourceCompositionInterface

func (*FakeResourceCompositions) Create

func (c *FakeResourceCompositions) Create(ctx context.Context, resourceComposition *v1alpha1.ResourceComposition, opts v1.CreateOptions) (result *v1alpha1.ResourceComposition, err error)

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

func (*FakeResourceCompositions) Delete

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

func (*FakeResourceCompositions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceCompositions) Get

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

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

func (*FakeResourceCompositions) List

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

func (*FakeResourceCompositions) Patch

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

Patch applies the patch and returns the patched resourceComposition.

func (*FakeResourceCompositions) Update

func (c *FakeResourceCompositions) Update(ctx context.Context, resourceComposition *v1alpha1.ResourceComposition, opts v1.UpdateOptions) (result *v1alpha1.ResourceComposition, err error)

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

func (*FakeResourceCompositions) Watch

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

type FakeResourceEvents

type FakeResourceEvents struct {
	Fake *FakeWorkflowsV1alpha1
	// contains filtered or unexported fields
}

FakeResourceEvents implements ResourceEventInterface

func (*FakeResourceEvents) Create

func (c *FakeResourceEvents) Create(ctx context.Context, resourceEvent *v1alpha1.ResourceEvent, opts v1.CreateOptions) (result *v1alpha1.ResourceEvent, err error)

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

func (*FakeResourceEvents) Delete

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

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

func (*FakeResourceEvents) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceEvents) Get

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

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

func (*FakeResourceEvents) List

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

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

func (*FakeResourceEvents) Patch

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

Patch applies the patch and returns the patched resourceEvent.

func (*FakeResourceEvents) Update

func (c *FakeResourceEvents) Update(ctx context.Context, resourceEvent *v1alpha1.ResourceEvent, opts v1.UpdateOptions) (result *v1alpha1.ResourceEvent, err error)

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

func (*FakeResourceEvents) Watch

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

type FakeResourceMonitors

type FakeResourceMonitors struct {
	Fake *FakeWorkflowsV1alpha1
	// contains filtered or unexported fields
}

FakeResourceMonitors implements ResourceMonitorInterface

func (*FakeResourceMonitors) Create

func (c *FakeResourceMonitors) Create(ctx context.Context, resourceMonitor *v1alpha1.ResourceMonitor, opts v1.CreateOptions) (result *v1alpha1.ResourceMonitor, err error)

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

func (*FakeResourceMonitors) Delete

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

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

func (*FakeResourceMonitors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceMonitors) Get

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

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

func (*FakeResourceMonitors) List

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

func (*FakeResourceMonitors) Patch

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

Patch applies the patch and returns the patched resourceMonitor.

func (*FakeResourceMonitors) Update

func (c *FakeResourceMonitors) Update(ctx context.Context, resourceMonitor *v1alpha1.ResourceMonitor, opts v1.UpdateOptions) (result *v1alpha1.ResourceMonitor, err error)

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

func (*FakeResourceMonitors) Watch

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

type FakeResourcePolicies

type FakeResourcePolicies struct {
	Fake *FakeWorkflowsV1alpha1
	// contains filtered or unexported fields
}

FakeResourcePolicies implements ResourcePolicyInterface

func (*FakeResourcePolicies) Create

func (c *FakeResourcePolicies) Create(ctx context.Context, resourcePolicy *v1alpha1.ResourcePolicy, opts v1.CreateOptions) (result *v1alpha1.ResourcePolicy, err error)

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

func (*FakeResourcePolicies) Delete

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

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

func (*FakeResourcePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourcePolicies) Get

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

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

func (*FakeResourcePolicies) List

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

func (*FakeResourcePolicies) Patch

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

Patch applies the patch and returns the patched resourcePolicy.

func (*FakeResourcePolicies) Update

func (c *FakeResourcePolicies) Update(ctx context.Context, resourcePolicy *v1alpha1.ResourcePolicy, opts v1.UpdateOptions) (result *v1alpha1.ResourcePolicy, err error)

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

func (*FakeResourcePolicies) Watch

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

type FakeWorkflowsV1alpha1

type FakeWorkflowsV1alpha1 struct {
	*testing.Fake
}

func (*FakeWorkflowsV1alpha1) RESTClient

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

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

func (*FakeWorkflowsV1alpha1) ResourceCompositions

func (c *FakeWorkflowsV1alpha1) ResourceCompositions(namespace string) v1alpha1.ResourceCompositionInterface

func (*FakeWorkflowsV1alpha1) ResourceEvents

func (c *FakeWorkflowsV1alpha1) ResourceEvents(namespace string) v1alpha1.ResourceEventInterface

func (*FakeWorkflowsV1alpha1) ResourceMonitors

func (c *FakeWorkflowsV1alpha1) ResourceMonitors(namespace string) v1alpha1.ResourceMonitorInterface

func (*FakeWorkflowsV1alpha1) ResourcePolicies

func (c *FakeWorkflowsV1alpha1) ResourcePolicies(namespace string) v1alpha1.ResourcePolicyInterface

Jump to

Keyboard shortcuts

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