fake

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 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 FakeAPITokens

type FakeAPITokens struct {
	Fake *FakeCrdsV1alpha1
	// contains filtered or unexported fields
}

FakeAPITokens implements APITokenInterface

func (*FakeAPITokens) Create

func (c *FakeAPITokens) Create(ctx context.Context, aPIToken *v1alpha1.APIToken, opts v1.CreateOptions) (result *v1alpha1.APIToken, err error)

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

func (*FakeAPITokens) Delete

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

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

func (*FakeAPITokens) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAPITokens) Get

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

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

func (*FakeAPITokens) List

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

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

func (*FakeAPITokens) Patch

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

Patch applies the patch and returns the patched aPIToken.

func (*FakeAPITokens) Update

func (c *FakeAPITokens) Update(ctx context.Context, aPIToken *v1alpha1.APIToken, opts v1.UpdateOptions) (result *v1alpha1.APIToken, err error)

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

func (*FakeAPITokens) UpdateStatus

func (c *FakeAPITokens) UpdateStatus(ctx context.Context, aPIToken *v1alpha1.APIToken, opts v1.UpdateOptions) (*v1alpha1.APIToken, error)

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

func (*FakeAPITokens) Watch

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

type FakeAccessApplications

type FakeAccessApplications struct {
	Fake *FakeCrdsV1alpha1
	// contains filtered or unexported fields
}

FakeAccessApplications implements AccessApplicationInterface

func (*FakeAccessApplications) Create

func (c *FakeAccessApplications) Create(ctx context.Context, accessApplication *v1alpha1.AccessApplication, opts v1.CreateOptions) (result *v1alpha1.AccessApplication, err error)

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

func (*FakeAccessApplications) Delete

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

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

func (*FakeAccessApplications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAccessApplications) Get

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

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

func (*FakeAccessApplications) List

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

func (*FakeAccessApplications) Patch

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

Patch applies the patch and returns the patched accessApplication.

func (*FakeAccessApplications) Update

func (c *FakeAccessApplications) Update(ctx context.Context, accessApplication *v1alpha1.AccessApplication, opts v1.UpdateOptions) (result *v1alpha1.AccessApplication, err error)

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

func (*FakeAccessApplications) UpdateStatus

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

func (*FakeAccessApplications) Watch

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

type FakeCrdsV1alpha1

type FakeCrdsV1alpha1 struct {
	*testing.Fake
}

func (*FakeCrdsV1alpha1) APITokens

func (c *FakeCrdsV1alpha1) APITokens(namespace string) v1alpha1.APITokenInterface

func (*FakeCrdsV1alpha1) AccessApplications

func (c *FakeCrdsV1alpha1) AccessApplications(namespace string) v1alpha1.AccessApplicationInterface

func (*FakeCrdsV1alpha1) DNSRecords

func (c *FakeCrdsV1alpha1) DNSRecords(namespace string) v1alpha1.DNSRecordInterface

func (*FakeCrdsV1alpha1) PageRules

func (c *FakeCrdsV1alpha1) PageRules(namespace string) v1alpha1.PageRuleInterface

func (*FakeCrdsV1alpha1) RESTClient

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

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

func (*FakeCrdsV1alpha1) WebApplicationFirewallRules added in v0.2.0

func (c *FakeCrdsV1alpha1) WebApplicationFirewallRules(namespace string) v1alpha1.WebApplicationFirewallRuleInterface

func (*FakeCrdsV1alpha1) Zones

func (c *FakeCrdsV1alpha1) Zones(namespace string) v1alpha1.ZoneInterface

type FakeDNSRecords

type FakeDNSRecords struct {
	Fake *FakeCrdsV1alpha1
	// contains filtered or unexported fields
}

FakeDNSRecords implements DNSRecordInterface

func (*FakeDNSRecords) Create

func (c *FakeDNSRecords) Create(ctx context.Context, dNSRecord *v1alpha1.DNSRecord, opts v1.CreateOptions) (result *v1alpha1.DNSRecord, err error)

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

func (*FakeDNSRecords) Delete

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

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

func (*FakeDNSRecords) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDNSRecords) Get

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

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

func (*FakeDNSRecords) List

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

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

func (*FakeDNSRecords) Patch

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

Patch applies the patch and returns the patched dNSRecord.

func (*FakeDNSRecords) Update

func (c *FakeDNSRecords) Update(ctx context.Context, dNSRecord *v1alpha1.DNSRecord, opts v1.UpdateOptions) (result *v1alpha1.DNSRecord, err error)

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

func (*FakeDNSRecords) UpdateStatus

func (c *FakeDNSRecords) UpdateStatus(ctx context.Context, dNSRecord *v1alpha1.DNSRecord, opts v1.UpdateOptions) (*v1alpha1.DNSRecord, error)

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

func (*FakeDNSRecords) Watch

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

type FakePageRules

type FakePageRules struct {
	Fake *FakeCrdsV1alpha1
	// contains filtered or unexported fields
}

FakePageRules implements PageRuleInterface

func (*FakePageRules) Create

func (c *FakePageRules) Create(ctx context.Context, pageRule *v1alpha1.PageRule, opts v1.CreateOptions) (result *v1alpha1.PageRule, err error)

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

func (*FakePageRules) Delete

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

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

func (*FakePageRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePageRules) Get

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

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

func (*FakePageRules) List

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

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

func (*FakePageRules) Patch

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

Patch applies the patch and returns the patched pageRule.

func (*FakePageRules) Update

func (c *FakePageRules) Update(ctx context.Context, pageRule *v1alpha1.PageRule, opts v1.UpdateOptions) (result *v1alpha1.PageRule, err error)

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

func (*FakePageRules) UpdateStatus

func (c *FakePageRules) UpdateStatus(ctx context.Context, pageRule *v1alpha1.PageRule, opts v1.UpdateOptions) (*v1alpha1.PageRule, error)

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

func (*FakePageRules) Watch

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

type FakeWebApplicationFirewallRules added in v0.2.0

type FakeWebApplicationFirewallRules struct {
	Fake *FakeCrdsV1alpha1
	// contains filtered or unexported fields
}

FakeWebApplicationFirewallRules implements WebApplicationFirewallRuleInterface

func (*FakeWebApplicationFirewallRules) Create added in v0.2.0

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

func (*FakeWebApplicationFirewallRules) Delete added in v0.2.0

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

func (*FakeWebApplicationFirewallRules) DeleteCollection added in v0.2.0

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

DeleteCollection deletes a collection of objects.

func (*FakeWebApplicationFirewallRules) Get added in v0.2.0

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

func (*FakeWebApplicationFirewallRules) List added in v0.2.0

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

func (*FakeWebApplicationFirewallRules) Patch added in v0.2.0

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

Patch applies the patch and returns the patched webApplicationFirewallRule.

func (*FakeWebApplicationFirewallRules) Update added in v0.2.0

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

func (*FakeWebApplicationFirewallRules) UpdateStatus added in v0.2.0

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

func (*FakeWebApplicationFirewallRules) Watch added in v0.2.0

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

type FakeZones

type FakeZones struct {
	Fake *FakeCrdsV1alpha1
	// contains filtered or unexported fields
}

FakeZones implements ZoneInterface

func (*FakeZones) Create

func (c *FakeZones) Create(ctx context.Context, zone *v1alpha1.Zone, opts v1.CreateOptions) (result *v1alpha1.Zone, err error)

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

func (*FakeZones) Delete

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

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

func (*FakeZones) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeZones) Get

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

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

func (*FakeZones) List

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

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

func (*FakeZones) Patch

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

Patch applies the patch and returns the patched zone.

func (*FakeZones) Update

func (c *FakeZones) Update(ctx context.Context, zone *v1alpha1.Zone, opts v1.UpdateOptions) (result *v1alpha1.Zone, err error)

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

func (*FakeZones) UpdateStatus

func (c *FakeZones) UpdateStatus(ctx context.Context, zone *v1alpha1.Zone, opts v1.UpdateOptions) (*v1alpha1.Zone, error)

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

func (*FakeZones) Watch

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

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

Jump to

Keyboard shortcuts

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