fake

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: May 7, 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 FakeApplicationRevisions

type FakeApplicationRevisions struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeApplicationRevisions implements ApplicationRevisionInterface

func (*FakeApplicationRevisions) Create

func (c *FakeApplicationRevisions) Create(ctx context.Context, applicationRevision *v1beta1.ApplicationRevision, opts v1.CreateOptions) (result *v1beta1.ApplicationRevision, err error)

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

func (*FakeApplicationRevisions) Delete

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

func (*FakeApplicationRevisions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApplicationRevisions) Get

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

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

func (*FakeApplicationRevisions) List

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

func (*FakeApplicationRevisions) Patch

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

Patch applies the patch and returns the patched applicationRevision.

func (*FakeApplicationRevisions) Update

func (c *FakeApplicationRevisions) Update(ctx context.Context, applicationRevision *v1beta1.ApplicationRevision, opts v1.UpdateOptions) (result *v1beta1.ApplicationRevision, err error)

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

func (*FakeApplicationRevisions) UpdateStatus

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

func (*FakeApplicationRevisions) Watch

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

type FakeApplications

type FakeApplications struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeApplications implements ApplicationInterface

func (*FakeApplications) Create

func (c *FakeApplications) Create(ctx context.Context, application *v1beta1.Application, opts v1.CreateOptions) (result *v1beta1.Application, err error)

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

func (*FakeApplications) Delete

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

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

func (*FakeApplications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApplications) Get

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

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

func (*FakeApplications) List

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

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

func (*FakeApplications) Patch

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

Patch applies the patch and returns the patched application.

func (*FakeApplications) Update

func (c *FakeApplications) Update(ctx context.Context, application *v1beta1.Application, opts v1.UpdateOptions) (result *v1beta1.Application, err error)

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

func (*FakeApplications) UpdateStatus

func (c *FakeApplications) UpdateStatus(ctx context.Context, application *v1beta1.Application, opts v1.UpdateOptions) (*v1beta1.Application, error)

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

func (*FakeApplications) Watch

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

type FakeComponentDefinitions

type FakeComponentDefinitions struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeComponentDefinitions implements ComponentDefinitionInterface

func (*FakeComponentDefinitions) Create

func (c *FakeComponentDefinitions) Create(ctx context.Context, componentDefinition *v1beta1.ComponentDefinition, opts v1.CreateOptions) (result *v1beta1.ComponentDefinition, err error)

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

func (*FakeComponentDefinitions) Delete

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

func (*FakeComponentDefinitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeComponentDefinitions) Get

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

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

func (*FakeComponentDefinitions) List

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

func (*FakeComponentDefinitions) Patch

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

Patch applies the patch and returns the patched componentDefinition.

func (*FakeComponentDefinitions) Update

func (c *FakeComponentDefinitions) Update(ctx context.Context, componentDefinition *v1beta1.ComponentDefinition, opts v1.UpdateOptions) (result *v1beta1.ComponentDefinition, err error)

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

func (*FakeComponentDefinitions) UpdateStatus

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

func (*FakeComponentDefinitions) Watch

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

type FakeCoreV1beta1

type FakeCoreV1beta1 struct {
	*testing.Fake
}

func (*FakeCoreV1beta1) ApplicationRevisions

func (c *FakeCoreV1beta1) ApplicationRevisions(namespace string) v1beta1.ApplicationRevisionInterface

func (*FakeCoreV1beta1) Applications

func (c *FakeCoreV1beta1) Applications(namespace string) v1beta1.ApplicationInterface

func (*FakeCoreV1beta1) ComponentDefinitions

func (c *FakeCoreV1beta1) ComponentDefinitions(namespace string) v1beta1.ComponentDefinitionInterface

func (*FakeCoreV1beta1) DefinitionRevisions

func (c *FakeCoreV1beta1) DefinitionRevisions(namespace string) v1beta1.DefinitionRevisionInterface

func (*FakeCoreV1beta1) PolicyDefinitions

func (c *FakeCoreV1beta1) PolicyDefinitions(namespace string) v1beta1.PolicyDefinitionInterface

func (*FakeCoreV1beta1) RESTClient

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

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

func (*FakeCoreV1beta1) ResourceTrackers

func (c *FakeCoreV1beta1) ResourceTrackers(namespace string) v1beta1.ResourceTrackerInterface

func (*FakeCoreV1beta1) TraitDefinitions

func (c *FakeCoreV1beta1) TraitDefinitions(namespace string) v1beta1.TraitDefinitionInterface

func (*FakeCoreV1beta1) WorkflowStepDefinitions

func (c *FakeCoreV1beta1) WorkflowStepDefinitions(namespace string) v1beta1.WorkflowStepDefinitionInterface

func (*FakeCoreV1beta1) WorkloadDefinitions

func (c *FakeCoreV1beta1) WorkloadDefinitions(namespace string) v1beta1.WorkloadDefinitionInterface

type FakeDefinitionRevisions

type FakeDefinitionRevisions struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeDefinitionRevisions implements DefinitionRevisionInterface

func (*FakeDefinitionRevisions) Create

func (c *FakeDefinitionRevisions) Create(ctx context.Context, definitionRevision *v1beta1.DefinitionRevision, opts v1.CreateOptions) (result *v1beta1.DefinitionRevision, err error)

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

func (*FakeDefinitionRevisions) Delete

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

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

func (*FakeDefinitionRevisions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDefinitionRevisions) Get

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

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

func (*FakeDefinitionRevisions) List

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

func (*FakeDefinitionRevisions) Patch

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

Patch applies the patch and returns the patched definitionRevision.

func (*FakeDefinitionRevisions) Update

func (c *FakeDefinitionRevisions) Update(ctx context.Context, definitionRevision *v1beta1.DefinitionRevision, opts v1.UpdateOptions) (result *v1beta1.DefinitionRevision, err error)

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

func (*FakeDefinitionRevisions) Watch

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

type FakePolicyDefinitions

type FakePolicyDefinitions struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakePolicyDefinitions implements PolicyDefinitionInterface

func (*FakePolicyDefinitions) Create

func (c *FakePolicyDefinitions) Create(ctx context.Context, policyDefinition *v1beta1.PolicyDefinition, opts v1.CreateOptions) (result *v1beta1.PolicyDefinition, err error)

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

func (*FakePolicyDefinitions) Delete

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

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

func (*FakePolicyDefinitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicyDefinitions) Get

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

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

func (*FakePolicyDefinitions) List

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

func (*FakePolicyDefinitions) Patch

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

Patch applies the patch and returns the patched policyDefinition.

func (*FakePolicyDefinitions) Update

func (c *FakePolicyDefinitions) Update(ctx context.Context, policyDefinition *v1beta1.PolicyDefinition, opts v1.UpdateOptions) (result *v1beta1.PolicyDefinition, err error)

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

func (*FakePolicyDefinitions) UpdateStatus

func (c *FakePolicyDefinitions) UpdateStatus(ctx context.Context, policyDefinition *v1beta1.PolicyDefinition, opts v1.UpdateOptions) (*v1beta1.PolicyDefinition, error)

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

func (*FakePolicyDefinitions) Watch

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

type FakeResourceTrackers

type FakeResourceTrackers struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeResourceTrackers implements ResourceTrackerInterface

func (*FakeResourceTrackers) Create

func (c *FakeResourceTrackers) Create(ctx context.Context, resourceTracker *v1beta1.ResourceTracker, opts v1.CreateOptions) (result *v1beta1.ResourceTracker, err error)

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

func (*FakeResourceTrackers) Delete

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

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

func (*FakeResourceTrackers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceTrackers) Get

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

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

func (*FakeResourceTrackers) List

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

func (*FakeResourceTrackers) Patch

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

Patch applies the patch and returns the patched resourceTracker.

func (*FakeResourceTrackers) Update

func (c *FakeResourceTrackers) Update(ctx context.Context, resourceTracker *v1beta1.ResourceTracker, opts v1.UpdateOptions) (result *v1beta1.ResourceTracker, err error)

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

func (*FakeResourceTrackers) Watch

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

type FakeTraitDefinitions

type FakeTraitDefinitions struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeTraitDefinitions implements TraitDefinitionInterface

func (*FakeTraitDefinitions) Create

func (c *FakeTraitDefinitions) Create(ctx context.Context, traitDefinition *v1beta1.TraitDefinition, opts v1.CreateOptions) (result *v1beta1.TraitDefinition, err error)

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

func (*FakeTraitDefinitions) Delete

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

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

func (*FakeTraitDefinitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTraitDefinitions) Get

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

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

func (*FakeTraitDefinitions) List

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

func (*FakeTraitDefinitions) Patch

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

Patch applies the patch and returns the patched traitDefinition.

func (*FakeTraitDefinitions) Update

func (c *FakeTraitDefinitions) Update(ctx context.Context, traitDefinition *v1beta1.TraitDefinition, opts v1.UpdateOptions) (result *v1beta1.TraitDefinition, err error)

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

func (*FakeTraitDefinitions) UpdateStatus

func (c *FakeTraitDefinitions) UpdateStatus(ctx context.Context, traitDefinition *v1beta1.TraitDefinition, opts v1.UpdateOptions) (*v1beta1.TraitDefinition, error)

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

func (*FakeTraitDefinitions) Watch

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

type FakeWorkflowStepDefinitions

type FakeWorkflowStepDefinitions struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeWorkflowStepDefinitions implements WorkflowStepDefinitionInterface

func (*FakeWorkflowStepDefinitions) Create

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

func (*FakeWorkflowStepDefinitions) Delete

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

func (*FakeWorkflowStepDefinitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkflowStepDefinitions) Get

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

func (*FakeWorkflowStepDefinitions) List

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

func (*FakeWorkflowStepDefinitions) Patch

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

Patch applies the patch and returns the patched workflowStepDefinition.

func (*FakeWorkflowStepDefinitions) Update

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

func (*FakeWorkflowStepDefinitions) UpdateStatus

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

func (*FakeWorkflowStepDefinitions) Watch

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

type FakeWorkloadDefinitions

type FakeWorkloadDefinitions struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeWorkloadDefinitions implements WorkloadDefinitionInterface

func (*FakeWorkloadDefinitions) Create

func (c *FakeWorkloadDefinitions) Create(ctx context.Context, workloadDefinition *v1beta1.WorkloadDefinition, opts v1.CreateOptions) (result *v1beta1.WorkloadDefinition, err error)

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

func (*FakeWorkloadDefinitions) Delete

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

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

func (*FakeWorkloadDefinitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkloadDefinitions) Get

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

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

func (*FakeWorkloadDefinitions) List

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

func (*FakeWorkloadDefinitions) Patch

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

Patch applies the patch and returns the patched workloadDefinition.

func (*FakeWorkloadDefinitions) Update

func (c *FakeWorkloadDefinitions) Update(ctx context.Context, workloadDefinition *v1beta1.WorkloadDefinition, opts v1.UpdateOptions) (result *v1beta1.WorkloadDefinition, err error)

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

func (*FakeWorkloadDefinitions) UpdateStatus

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

func (*FakeWorkloadDefinitions) Watch

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

Jump to

Keyboard shortcuts

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