fake

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 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 FakeApplicationV1alpha1

type FakeApplicationV1alpha1 struct {
	*testing.Fake
}

func (*FakeApplicationV1alpha1) Gateways

func (*FakeApplicationV1alpha1) InsightsAPIKeys

func (c *FakeApplicationV1alpha1) InsightsAPIKeys(namespace string) v1alpha1.InsightsAPIKeyInterface

func (*FakeApplicationV1alpha1) InsightsAnalyticsItems

func (c *FakeApplicationV1alpha1) InsightsAnalyticsItems(namespace string) v1alpha1.InsightsAnalyticsItemInterface

func (*FakeApplicationV1alpha1) InsightsSmartDetectionRules

func (c *FakeApplicationV1alpha1) InsightsSmartDetectionRules(namespace string) v1alpha1.InsightsSmartDetectionRuleInterface

func (*FakeApplicationV1alpha1) InsightsWebTests

func (c *FakeApplicationV1alpha1) InsightsWebTests(namespace string) v1alpha1.InsightsWebTestInterface

func (*FakeApplicationV1alpha1) Insightses

func (c *FakeApplicationV1alpha1) Insightses(namespace string) v1alpha1.InsightsInterface

func (*FakeApplicationV1alpha1) RESTClient

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

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

func (*FakeApplicationV1alpha1) SecurityGroups

func (c *FakeApplicationV1alpha1) SecurityGroups(namespace string) v1alpha1.SecurityGroupInterface

type FakeGateways

type FakeGateways struct {
	Fake *FakeApplicationV1alpha1
	// contains filtered or unexported fields
}

FakeGateways implements GatewayInterface

func (*FakeGateways) Create

func (c *FakeGateways) Create(ctx context.Context, gateway *v1alpha1.Gateway, opts v1.CreateOptions) (result *v1alpha1.Gateway, err error)

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

func (*FakeGateways) Delete

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

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

func (*FakeGateways) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGateways) Get

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

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

func (*FakeGateways) List

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

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

func (*FakeGateways) Patch

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

Patch applies the patch and returns the patched gateway.

func (*FakeGateways) Update

func (c *FakeGateways) Update(ctx context.Context, gateway *v1alpha1.Gateway, opts v1.UpdateOptions) (result *v1alpha1.Gateway, err error)

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

func (*FakeGateways) UpdateStatus

func (c *FakeGateways) UpdateStatus(ctx context.Context, gateway *v1alpha1.Gateway, opts v1.UpdateOptions) (*v1alpha1.Gateway, error)

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

func (*FakeGateways) Watch

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

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

type FakeInsightsAPIKeys

type FakeInsightsAPIKeys struct {
	Fake *FakeApplicationV1alpha1
	// contains filtered or unexported fields
}

FakeInsightsAPIKeys implements InsightsAPIKeyInterface

func (*FakeInsightsAPIKeys) Create

func (c *FakeInsightsAPIKeys) Create(ctx context.Context, insightsAPIKey *v1alpha1.InsightsAPIKey, opts v1.CreateOptions) (result *v1alpha1.InsightsAPIKey, err error)

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

func (*FakeInsightsAPIKeys) Delete

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

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

func (*FakeInsightsAPIKeys) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInsightsAPIKeys) Get

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

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

func (*FakeInsightsAPIKeys) List

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

func (*FakeInsightsAPIKeys) Patch

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

Patch applies the patch and returns the patched insightsAPIKey.

func (*FakeInsightsAPIKeys) Update

func (c *FakeInsightsAPIKeys) Update(ctx context.Context, insightsAPIKey *v1alpha1.InsightsAPIKey, opts v1.UpdateOptions) (result *v1alpha1.InsightsAPIKey, err error)

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

func (*FakeInsightsAPIKeys) UpdateStatus

func (c *FakeInsightsAPIKeys) UpdateStatus(ctx context.Context, insightsAPIKey *v1alpha1.InsightsAPIKey, opts v1.UpdateOptions) (*v1alpha1.InsightsAPIKey, error)

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

func (*FakeInsightsAPIKeys) Watch

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

type FakeInsightsAnalyticsItems

type FakeInsightsAnalyticsItems struct {
	Fake *FakeApplicationV1alpha1
	// contains filtered or unexported fields
}

FakeInsightsAnalyticsItems implements InsightsAnalyticsItemInterface

func (*FakeInsightsAnalyticsItems) Create

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

func (*FakeInsightsAnalyticsItems) Delete

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

func (*FakeInsightsAnalyticsItems) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInsightsAnalyticsItems) Get

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

func (*FakeInsightsAnalyticsItems) List

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

func (*FakeInsightsAnalyticsItems) Patch

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

Patch applies the patch and returns the patched insightsAnalyticsItem.

func (*FakeInsightsAnalyticsItems) Update

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

func (*FakeInsightsAnalyticsItems) UpdateStatus

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

func (*FakeInsightsAnalyticsItems) Watch

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

type FakeInsightsSmartDetectionRules

type FakeInsightsSmartDetectionRules struct {
	Fake *FakeApplicationV1alpha1
	// contains filtered or unexported fields
}

FakeInsightsSmartDetectionRules implements InsightsSmartDetectionRuleInterface

func (*FakeInsightsSmartDetectionRules) Create

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

func (*FakeInsightsSmartDetectionRules) Delete

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

func (*FakeInsightsSmartDetectionRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInsightsSmartDetectionRules) Get

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

func (*FakeInsightsSmartDetectionRules) List

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

func (*FakeInsightsSmartDetectionRules) Patch

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

Patch applies the patch and returns the patched insightsSmartDetectionRule.

func (*FakeInsightsSmartDetectionRules) Update

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

func (*FakeInsightsSmartDetectionRules) UpdateStatus

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

func (*FakeInsightsSmartDetectionRules) Watch

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

type FakeInsightsWebTests

type FakeInsightsWebTests struct {
	Fake *FakeApplicationV1alpha1
	// contains filtered or unexported fields
}

FakeInsightsWebTests implements InsightsWebTestInterface

func (*FakeInsightsWebTests) Create

func (c *FakeInsightsWebTests) Create(ctx context.Context, insightsWebTest *v1alpha1.InsightsWebTest, opts v1.CreateOptions) (result *v1alpha1.InsightsWebTest, err error)

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

func (*FakeInsightsWebTests) Delete

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

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

func (*FakeInsightsWebTests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInsightsWebTests) Get

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

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

func (*FakeInsightsWebTests) List

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

func (*FakeInsightsWebTests) Patch

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

Patch applies the patch and returns the patched insightsWebTest.

func (*FakeInsightsWebTests) Update

func (c *FakeInsightsWebTests) Update(ctx context.Context, insightsWebTest *v1alpha1.InsightsWebTest, opts v1.UpdateOptions) (result *v1alpha1.InsightsWebTest, err error)

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

func (*FakeInsightsWebTests) UpdateStatus

func (c *FakeInsightsWebTests) UpdateStatus(ctx context.Context, insightsWebTest *v1alpha1.InsightsWebTest, opts v1.UpdateOptions) (*v1alpha1.InsightsWebTest, error)

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

func (*FakeInsightsWebTests) Watch

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

type FakeInsightses

type FakeInsightses struct {
	Fake *FakeApplicationV1alpha1
	// contains filtered or unexported fields
}

FakeInsightses implements InsightsInterface

func (*FakeInsightses) Create

func (c *FakeInsightses) Create(ctx context.Context, insights *v1alpha1.Insights, opts v1.CreateOptions) (result *v1alpha1.Insights, err error)

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

func (*FakeInsightses) Delete

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

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

func (*FakeInsightses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInsightses) Get

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

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

func (*FakeInsightses) List

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

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

func (*FakeInsightses) Patch

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

Patch applies the patch and returns the patched insights.

func (*FakeInsightses) Update

func (c *FakeInsightses) Update(ctx context.Context, insights *v1alpha1.Insights, opts v1.UpdateOptions) (result *v1alpha1.Insights, err error)

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

func (*FakeInsightses) UpdateStatus

func (c *FakeInsightses) UpdateStatus(ctx context.Context, insights *v1alpha1.Insights, opts v1.UpdateOptions) (*v1alpha1.Insights, error)

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

func (*FakeInsightses) Watch

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

type FakeSecurityGroups

type FakeSecurityGroups struct {
	Fake *FakeApplicationV1alpha1
	// contains filtered or unexported fields
}

FakeSecurityGroups implements SecurityGroupInterface

func (*FakeSecurityGroups) Create

func (c *FakeSecurityGroups) Create(ctx context.Context, securityGroup *v1alpha1.SecurityGroup, opts v1.CreateOptions) (result *v1alpha1.SecurityGroup, err error)

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

func (*FakeSecurityGroups) Delete

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

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

func (*FakeSecurityGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSecurityGroups) Get

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

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

func (*FakeSecurityGroups) List

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

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

func (*FakeSecurityGroups) Patch

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

Patch applies the patch and returns the patched securityGroup.

func (*FakeSecurityGroups) Update

func (c *FakeSecurityGroups) Update(ctx context.Context, securityGroup *v1alpha1.SecurityGroup, opts v1.UpdateOptions) (result *v1alpha1.SecurityGroup, err error)

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

func (*FakeSecurityGroups) UpdateStatus

func (c *FakeSecurityGroups) UpdateStatus(ctx context.Context, securityGroup *v1alpha1.SecurityGroup, opts v1.UpdateOptions) (*v1alpha1.SecurityGroup, error)

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

func (*FakeSecurityGroups) Watch

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

Jump to

Keyboard shortcuts

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