fake

package
v2.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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 FakeCisV1

type FakeCisV1 struct {
	*testing.Fake
}

func (*FakeCisV1) ExternalDNSes

func (c *FakeCisV1) ExternalDNSes(namespace string) v1.ExternalDNSInterface
func (c *FakeCisV1) IngressLinks(namespace string) v1.IngressLinkInterface

func (*FakeCisV1) Policies

func (c *FakeCisV1) Policies(namespace string) v1.PolicyInterface

func (*FakeCisV1) RESTClient

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

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

func (*FakeCisV1) TLSProfiles

func (c *FakeCisV1) TLSProfiles(namespace string) v1.TLSProfileInterface

func (*FakeCisV1) TransportServers

func (c *FakeCisV1) TransportServers(namespace string) v1.TransportServerInterface

func (*FakeCisV1) VirtualServers

func (c *FakeCisV1) VirtualServers(namespace string) v1.VirtualServerInterface

type FakeExternalDNSes

type FakeExternalDNSes struct {
	Fake *FakeCisV1
	// contains filtered or unexported fields
}

FakeExternalDNSes implements ExternalDNSInterface

func (*FakeExternalDNSes) Create

func (c *FakeExternalDNSes) Create(ctx context.Context, externalDNS *cisv1.ExternalDNS, opts v1.CreateOptions) (result *cisv1.ExternalDNS, err error)

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

func (*FakeExternalDNSes) Delete

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

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

func (*FakeExternalDNSes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExternalDNSes) Get

func (c *FakeExternalDNSes) Get(ctx context.Context, name string, options v1.GetOptions) (result *cisv1.ExternalDNS, err error)

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

func (*FakeExternalDNSes) List

func (c *FakeExternalDNSes) List(ctx context.Context, opts v1.ListOptions) (result *cisv1.ExternalDNSList, err error)

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

func (*FakeExternalDNSes) Patch

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

Patch applies the patch and returns the patched externalDNS.

func (*FakeExternalDNSes) Update

func (c *FakeExternalDNSes) Update(ctx context.Context, externalDNS *cisv1.ExternalDNS, opts v1.UpdateOptions) (result *cisv1.ExternalDNS, err error)

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

func (*FakeExternalDNSes) Watch

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

type FakeIngressLinks struct {
	Fake *FakeCisV1
	// contains filtered or unexported fields
}

FakeIngressLinks implements IngressLinkInterface

func (*FakeIngressLinks) Create

func (c *FakeIngressLinks) Create(ctx context.Context, ingressLink *cisv1.IngressLink, opts v1.CreateOptions) (result *cisv1.IngressLink, err error)

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

func (*FakeIngressLinks) Delete

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

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

func (*FakeIngressLinks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIngressLinks) Get

func (c *FakeIngressLinks) Get(ctx context.Context, name string, options v1.GetOptions) (result *cisv1.IngressLink, err error)

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

func (*FakeIngressLinks) List

func (c *FakeIngressLinks) List(ctx context.Context, opts v1.ListOptions) (result *cisv1.IngressLinkList, err error)

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

func (*FakeIngressLinks) Patch

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

Patch applies the patch and returns the patched ingressLink.

func (*FakeIngressLinks) Update

func (c *FakeIngressLinks) Update(ctx context.Context, ingressLink *cisv1.IngressLink, opts v1.UpdateOptions) (result *cisv1.IngressLink, err error)

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

func (*FakeIngressLinks) UpdateStatus

func (c *FakeIngressLinks) UpdateStatus(ctx context.Context, ingressLink *cisv1.IngressLink, opts v1.UpdateOptions) (*cisv1.IngressLink, error)

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

func (*FakeIngressLinks) Watch

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

type FakePolicies

type FakePolicies struct {
	Fake *FakeCisV1
	// contains filtered or unexported fields
}

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

func (c *FakePolicies) Create(ctx context.Context, policy *cisv1.Policy, opts v1.CreateOptions) (result *cisv1.Policy, err error)

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

func (*FakePolicies) Delete

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

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

func (*FakePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicies) Get

func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *cisv1.Policy, err error)

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

func (*FakePolicies) List

func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *cisv1.PolicyList, err error)

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

func (*FakePolicies) Patch

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

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

func (c *FakePolicies) Update(ctx context.Context, policy *cisv1.Policy, opts v1.UpdateOptions) (result *cisv1.Policy, err error)

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

func (*FakePolicies) Watch

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

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

type FakeTLSProfiles

type FakeTLSProfiles struct {
	Fake *FakeCisV1
	// contains filtered or unexported fields
}

FakeTLSProfiles implements TLSProfileInterface

func (*FakeTLSProfiles) Create

func (c *FakeTLSProfiles) Create(ctx context.Context, tLSProfile *cisv1.TLSProfile, opts v1.CreateOptions) (result *cisv1.TLSProfile, err error)

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

func (*FakeTLSProfiles) Delete

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

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

func (*FakeTLSProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTLSProfiles) Get

func (c *FakeTLSProfiles) Get(ctx context.Context, name string, options v1.GetOptions) (result *cisv1.TLSProfile, err error)

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

func (*FakeTLSProfiles) List

func (c *FakeTLSProfiles) List(ctx context.Context, opts v1.ListOptions) (result *cisv1.TLSProfileList, err error)

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

func (*FakeTLSProfiles) Patch

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

Patch applies the patch and returns the patched tLSProfile.

func (*FakeTLSProfiles) Update

func (c *FakeTLSProfiles) Update(ctx context.Context, tLSProfile *cisv1.TLSProfile, opts v1.UpdateOptions) (result *cisv1.TLSProfile, err error)

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

func (*FakeTLSProfiles) Watch

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

type FakeTransportServers

type FakeTransportServers struct {
	Fake *FakeCisV1
	// contains filtered or unexported fields
}

FakeTransportServers implements TransportServerInterface

func (*FakeTransportServers) Create

func (c *FakeTransportServers) Create(ctx context.Context, transportServer *cisv1.TransportServer, opts v1.CreateOptions) (result *cisv1.TransportServer, err error)

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

func (*FakeTransportServers) Delete

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

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

func (*FakeTransportServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTransportServers) Get

func (c *FakeTransportServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *cisv1.TransportServer, err error)

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

func (*FakeTransportServers) List

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

func (*FakeTransportServers) Patch

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

Patch applies the patch and returns the patched transportServer.

func (*FakeTransportServers) Update

func (c *FakeTransportServers) Update(ctx context.Context, transportServer *cisv1.TransportServer, opts v1.UpdateOptions) (result *cisv1.TransportServer, err error)

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

func (*FakeTransportServers) UpdateStatus

func (c *FakeTransportServers) UpdateStatus(ctx context.Context, transportServer *cisv1.TransportServer, opts v1.UpdateOptions) (*cisv1.TransportServer, error)

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

func (*FakeTransportServers) Watch

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

type FakeVirtualServers

type FakeVirtualServers struct {
	Fake *FakeCisV1
	// contains filtered or unexported fields
}

FakeVirtualServers implements VirtualServerInterface

func (*FakeVirtualServers) Create

func (c *FakeVirtualServers) Create(ctx context.Context, virtualServer *cisv1.VirtualServer, opts v1.CreateOptions) (result *cisv1.VirtualServer, err error)

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

func (*FakeVirtualServers) Delete

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

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

func (*FakeVirtualServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualServers) Get

func (c *FakeVirtualServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *cisv1.VirtualServer, err error)

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

func (*FakeVirtualServers) List

func (c *FakeVirtualServers) List(ctx context.Context, opts v1.ListOptions) (result *cisv1.VirtualServerList, err error)

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

func (*FakeVirtualServers) Patch

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

Patch applies the patch and returns the patched virtualServer.

func (*FakeVirtualServers) Update

func (c *FakeVirtualServers) Update(ctx context.Context, virtualServer *cisv1.VirtualServer, opts v1.UpdateOptions) (result *cisv1.VirtualServer, err error)

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

func (*FakeVirtualServers) UpdateStatus

func (c *FakeVirtualServers) UpdateStatus(ctx context.Context, virtualServer *cisv1.VirtualServer, opts v1.UpdateOptions) (*cisv1.VirtualServer, error)

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

func (*FakeVirtualServers) Watch

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

Jump to

Keyboard shortcuts

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