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 FakeCostManagementExports added in v0.5.0

type FakeCostManagementExports struct {
	Fake *FakeSubscriptionV1alpha1
	// contains filtered or unexported fields
}

FakeCostManagementExports implements CostManagementExportInterface

func (*FakeCostManagementExports) Create added in v0.5.0

func (c *FakeCostManagementExports) Create(ctx context.Context, costManagementExport *v1alpha1.CostManagementExport, opts v1.CreateOptions) (result *v1alpha1.CostManagementExport, err error)

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

func (*FakeCostManagementExports) Delete added in v0.5.0

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

func (*FakeCostManagementExports) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCostManagementExports) Get added in v0.5.0

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

func (*FakeCostManagementExports) List added in v0.5.0

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

func (*FakeCostManagementExports) Patch added in v0.5.0

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

Patch applies the patch and returns the patched costManagementExport.

func (*FakeCostManagementExports) Update added in v0.5.0

func (c *FakeCostManagementExports) Update(ctx context.Context, costManagementExport *v1alpha1.CostManagementExport, opts v1.UpdateOptions) (result *v1alpha1.CostManagementExport, err error)

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

func (*FakeCostManagementExports) UpdateStatus added in v0.5.0

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

func (*FakeCostManagementExports) Watch added in v0.5.0

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

type FakePolicyAssignments

type FakePolicyAssignments struct {
	Fake *FakeSubscriptionV1alpha1
	// contains filtered or unexported fields
}

FakePolicyAssignments implements PolicyAssignmentInterface

func (*FakePolicyAssignments) Create

func (c *FakePolicyAssignments) Create(ctx context.Context, policyAssignment *v1alpha1.PolicyAssignment, opts v1.CreateOptions) (result *v1alpha1.PolicyAssignment, err error)

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

func (*FakePolicyAssignments) Delete

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

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

func (*FakePolicyAssignments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicyAssignments) Get

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

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

func (*FakePolicyAssignments) List

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

func (*FakePolicyAssignments) Patch

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

Patch applies the patch and returns the patched policyAssignment.

func (*FakePolicyAssignments) Update

func (c *FakePolicyAssignments) Update(ctx context.Context, policyAssignment *v1alpha1.PolicyAssignment, opts v1.UpdateOptions) (result *v1alpha1.PolicyAssignment, err error)

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

func (*FakePolicyAssignments) UpdateStatus

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

func (*FakePolicyAssignments) Watch

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

type FakeSubscriptionV1alpha1

type FakeSubscriptionV1alpha1 struct {
	*testing.Fake
}

func (*FakeSubscriptionV1alpha1) CostManagementExports added in v0.5.0

func (c *FakeSubscriptionV1alpha1) CostManagementExports(namespace string) v1alpha1.CostManagementExportInterface

func (*FakeSubscriptionV1alpha1) PolicyAssignments

func (c *FakeSubscriptionV1alpha1) PolicyAssignments(namespace string) v1alpha1.PolicyAssignmentInterface

func (*FakeSubscriptionV1alpha1) RESTClient

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

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

func (*FakeSubscriptionV1alpha1) Subscriptions

func (c *FakeSubscriptionV1alpha1) Subscriptions(namespace string) v1alpha1.SubscriptionInterface

func (*FakeSubscriptionV1alpha1) TemplateDeployments

func (c *FakeSubscriptionV1alpha1) TemplateDeployments(namespace string) v1alpha1.TemplateDeploymentInterface

type FakeSubscriptions

type FakeSubscriptions struct {
	Fake *FakeSubscriptionV1alpha1
	// contains filtered or unexported fields
}

FakeSubscriptions implements SubscriptionInterface

func (*FakeSubscriptions) Create

func (c *FakeSubscriptions) Create(ctx context.Context, subscription *v1alpha1.Subscription, opts v1.CreateOptions) (result *v1alpha1.Subscription, err error)

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

func (*FakeSubscriptions) Delete

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

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

func (*FakeSubscriptions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSubscriptions) Get

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

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

func (*FakeSubscriptions) List

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

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

func (*FakeSubscriptions) Patch

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

Patch applies the patch and returns the patched subscription.

func (*FakeSubscriptions) Update

func (c *FakeSubscriptions) Update(ctx context.Context, subscription *v1alpha1.Subscription, opts v1.UpdateOptions) (result *v1alpha1.Subscription, err error)

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

func (*FakeSubscriptions) UpdateStatus

func (c *FakeSubscriptions) UpdateStatus(ctx context.Context, subscription *v1alpha1.Subscription, opts v1.UpdateOptions) (*v1alpha1.Subscription, error)

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

func (*FakeSubscriptions) Watch

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

type FakeTemplateDeployments

type FakeTemplateDeployments struct {
	Fake *FakeSubscriptionV1alpha1
	// contains filtered or unexported fields
}

FakeTemplateDeployments implements TemplateDeploymentInterface

func (*FakeTemplateDeployments) Create

func (c *FakeTemplateDeployments) Create(ctx context.Context, templateDeployment *v1alpha1.TemplateDeployment, opts v1.CreateOptions) (result *v1alpha1.TemplateDeployment, err error)

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

func (*FakeTemplateDeployments) Delete

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

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

func (*FakeTemplateDeployments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTemplateDeployments) Get

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

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

func (*FakeTemplateDeployments) List

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

func (*FakeTemplateDeployments) Patch

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

Patch applies the patch and returns the patched templateDeployment.

func (*FakeTemplateDeployments) Update

func (c *FakeTemplateDeployments) Update(ctx context.Context, templateDeployment *v1alpha1.TemplateDeployment, opts v1.UpdateOptions) (result *v1alpha1.TemplateDeployment, err error)

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

func (*FakeTemplateDeployments) UpdateStatus

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

func (*FakeTemplateDeployments) Watch

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

Jump to

Keyboard shortcuts

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