fake

package
v0.0.0-...-f20e628 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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 FakeClusterEnforcerProfiles

type FakeClusterEnforcerProfiles struct {
	Fake *FakeNetworkV1
}

FakeClusterEnforcerProfiles implements ClusterEnforcerProfileInterface

func (*FakeClusterEnforcerProfiles) Create

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

func (*FakeClusterEnforcerProfiles) Delete

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

func (*FakeClusterEnforcerProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterEnforcerProfiles) Get

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

func (*FakeClusterEnforcerProfiles) List

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

func (*FakeClusterEnforcerProfiles) Patch

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

Patch applies the patch and returns the patched clusterEnforcerProfile.

func (*FakeClusterEnforcerProfiles) Update

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

func (*FakeClusterEnforcerProfiles) Watch

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

type FakeClusterEnforcers

type FakeClusterEnforcers struct {
	Fake *FakeNetworkV1
}

FakeClusterEnforcers implements ClusterEnforcerInterface

func (*FakeClusterEnforcers) Get

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

func (*FakeClusterEnforcers) List

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

func (*FakeClusterEnforcers) Watch

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

type FakeClusterExternalNetworks

type FakeClusterExternalNetworks struct {
	Fake *FakeNetworkV1
}

FakeClusterExternalNetworks implements ClusterExternalNetworkInterface

func (*FakeClusterExternalNetworks) Create

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

func (*FakeClusterExternalNetworks) Delete

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

func (*FakeClusterExternalNetworks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterExternalNetworks) Get

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

func (*FakeClusterExternalNetworks) List

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

func (*FakeClusterExternalNetworks) Patch

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

Patch applies the patch and returns the patched clusterExternalNetwork.

func (*FakeClusterExternalNetworks) Update

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

func (*FakeClusterExternalNetworks) Watch

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

type FakeClusterNetworkRuleSetPolicies

type FakeClusterNetworkRuleSetPolicies struct {
	Fake *FakeNetworkV1
}

FakeClusterNetworkRuleSetPolicies implements ClusterNetworkRuleSetPolicyInterface

func (*FakeClusterNetworkRuleSetPolicies) Create

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

func (*FakeClusterNetworkRuleSetPolicies) Delete

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

func (*FakeClusterNetworkRuleSetPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterNetworkRuleSetPolicies) Get

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

func (*FakeClusterNetworkRuleSetPolicies) List

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

func (*FakeClusterNetworkRuleSetPolicies) Patch

Patch applies the patch and returns the patched clusterNetworkRuleSetPolicy.

func (*FakeClusterNetworkRuleSetPolicies) Update

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

func (*FakeClusterNetworkRuleSetPolicies) Watch

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

type FakeClusterPUTrafficActions

type FakeClusterPUTrafficActions struct {
	Fake *FakeNetworkV1
}

FakeClusterPUTrafficActions implements ClusterPUTrafficActionInterface

func (*FakeClusterPUTrafficActions) Create

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

func (*FakeClusterPUTrafficActions) Delete

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

func (*FakeClusterPUTrafficActions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterPUTrafficActions) Get

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

func (*FakeClusterPUTrafficActions) List

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

func (*FakeClusterPUTrafficActions) Patch

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

Patch applies the patch and returns the patched clusterPUTrafficAction.

func (*FakeClusterPUTrafficActions) Update

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

func (*FakeClusterPUTrafficActions) Watch

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

type FakeClusterProcessingUnits

type FakeClusterProcessingUnits struct {
	Fake *FakeNetworkV1
}

FakeClusterProcessingUnits implements ClusterProcessingUnitInterface

func (*FakeClusterProcessingUnits) Get

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

func (*FakeClusterProcessingUnits) List

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

func (*FakeClusterProcessingUnits) Watch

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

type FakeExternalNetworks

type FakeExternalNetworks struct {
	Fake *FakeNetworkV1
	// contains filtered or unexported fields
}

FakeExternalNetworks implements ExternalNetworkInterface

func (*FakeExternalNetworks) Create

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

func (*FakeExternalNetworks) Delete

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

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

func (*FakeExternalNetworks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExternalNetworks) Get

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

func (*FakeExternalNetworks) List

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

func (*FakeExternalNetworks) Patch

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

Patch applies the patch and returns the patched externalNetwork.

func (*FakeExternalNetworks) Update

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

func (*FakeExternalNetworks) Watch

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

type FakeNetworkRuleSetPolicies

type FakeNetworkRuleSetPolicies struct {
	Fake *FakeNetworkV1
	// contains filtered or unexported fields
}

FakeNetworkRuleSetPolicies implements NetworkRuleSetPolicyInterface

func (*FakeNetworkRuleSetPolicies) Create

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

func (*FakeNetworkRuleSetPolicies) Delete

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

func (*FakeNetworkRuleSetPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetworkRuleSetPolicies) Get

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

func (*FakeNetworkRuleSetPolicies) List

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

func (*FakeNetworkRuleSetPolicies) Patch

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

Patch applies the patch and returns the patched networkRuleSetPolicy.

func (*FakeNetworkRuleSetPolicies) Update

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

func (*FakeNetworkRuleSetPolicies) Watch

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

type FakeNetworkV1

type FakeNetworkV1 struct {
	*testing.Fake
}

func (*FakeNetworkV1) ClusterEnforcerProfiles

func (c *FakeNetworkV1) ClusterEnforcerProfiles() v1.ClusterEnforcerProfileInterface

func (*FakeNetworkV1) ClusterEnforcers

func (c *FakeNetworkV1) ClusterEnforcers() v1.ClusterEnforcerInterface

func (*FakeNetworkV1) ClusterExternalNetworks

func (c *FakeNetworkV1) ClusterExternalNetworks() v1.ClusterExternalNetworkInterface

func (*FakeNetworkV1) ClusterNetworkRuleSetPolicies

func (c *FakeNetworkV1) ClusterNetworkRuleSetPolicies() v1.ClusterNetworkRuleSetPolicyInterface

func (*FakeNetworkV1) ClusterPUTrafficActions

func (c *FakeNetworkV1) ClusterPUTrafficActions() v1.ClusterPUTrafficActionInterface

func (*FakeNetworkV1) ClusterProcessingUnits

func (c *FakeNetworkV1) ClusterProcessingUnits() v1.ClusterProcessingUnitInterface

func (*FakeNetworkV1) ExternalNetworks

func (c *FakeNetworkV1) ExternalNetworks(namespace string) v1.ExternalNetworkInterface

func (*FakeNetworkV1) NetworkRuleSetPolicies

func (c *FakeNetworkV1) NetworkRuleSetPolicies(namespace string) v1.NetworkRuleSetPolicyInterface

func (*FakeNetworkV1) PUTrafficActions

func (c *FakeNetworkV1) PUTrafficActions(namespace string) v1.PUTrafficActionInterface

func (*FakeNetworkV1) ProcessingUnits

func (c *FakeNetworkV1) ProcessingUnits(namespace string) v1.ProcessingUnitInterface

func (*FakeNetworkV1) RESTClient

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

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

type FakePUTrafficActions

type FakePUTrafficActions struct {
	Fake *FakeNetworkV1
	// contains filtered or unexported fields
}

FakePUTrafficActions implements PUTrafficActionInterface

func (*FakePUTrafficActions) Create

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

func (*FakePUTrafficActions) Delete

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

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

func (*FakePUTrafficActions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePUTrafficActions) Get

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

func (*FakePUTrafficActions) List

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

func (*FakePUTrafficActions) Patch

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

Patch applies the patch and returns the patched pUTrafficAction.

func (*FakePUTrafficActions) Update

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

func (*FakePUTrafficActions) Watch

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

type FakeProcessingUnits

type FakeProcessingUnits struct {
	Fake *FakeNetworkV1
	// contains filtered or unexported fields
}

FakeProcessingUnits implements ProcessingUnitInterface

func (*FakeProcessingUnits) Get

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

func (*FakeProcessingUnits) List

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

func (*FakeProcessingUnits) Watch

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

Jump to

Keyboard shortcuts

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