fake

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

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 FakeHtbQoses added in v1.9.0

type FakeHtbQoses struct {
	Fake *FakeKubeovnV1
}

FakeHtbQoses implements HtbQosInterface

func (*FakeHtbQoses) Create added in v1.9.0

func (c *FakeHtbQoses) Create(ctx context.Context, htbQos *kubeovnv1.HtbQos, opts v1.CreateOptions) (result *kubeovnv1.HtbQos, err error)

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

func (*FakeHtbQoses) Delete added in v1.9.0

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

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

func (*FakeHtbQoses) DeleteCollection added in v1.9.0

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

DeleteCollection deletes a collection of objects.

func (*FakeHtbQoses) Get added in v1.9.0

func (c *FakeHtbQoses) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubeovnv1.HtbQos, err error)

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

func (*FakeHtbQoses) List added in v1.9.0

func (c *FakeHtbQoses) List(ctx context.Context, opts v1.ListOptions) (result *kubeovnv1.HtbQosList, err error)

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

func (*FakeHtbQoses) Patch added in v1.9.0

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

Patch applies the patch and returns the patched htbQos.

func (*FakeHtbQoses) Update added in v1.9.0

func (c *FakeHtbQoses) Update(ctx context.Context, htbQos *kubeovnv1.HtbQos, opts v1.UpdateOptions) (result *kubeovnv1.HtbQos, err error)

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

func (*FakeHtbQoses) Watch added in v1.9.0

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

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

type FakeIPs

type FakeIPs struct {
	Fake *FakeKubeovnV1
}

FakeIPs implements IPInterface

func (*FakeIPs) Create

func (c *FakeIPs) Create(ctx context.Context, iP *kubeovnv1.IP, opts v1.CreateOptions) (result *kubeovnv1.IP, err error)

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

func (*FakeIPs) Delete

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

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

func (*FakeIPs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPs) Get

func (c *FakeIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubeovnv1.IP, err error)

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

func (*FakeIPs) List

func (c *FakeIPs) List(ctx context.Context, opts v1.ListOptions) (result *kubeovnv1.IPList, err error)

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

func (*FakeIPs) Patch

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

Patch applies the patch and returns the patched iP.

func (*FakeIPs) Update

func (c *FakeIPs) Update(ctx context.Context, iP *kubeovnv1.IP, opts v1.UpdateOptions) (result *kubeovnv1.IP, err error)

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

func (*FakeIPs) Watch

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

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

type FakeKubeovnV1

type FakeKubeovnV1 struct {
	*testing.Fake
}

func (*FakeKubeovnV1) HtbQoses added in v1.9.0

func (c *FakeKubeovnV1) HtbQoses() v1.HtbQosInterface

func (*FakeKubeovnV1) IPs

func (c *FakeKubeovnV1) IPs() v1.IPInterface

func (*FakeKubeovnV1) ProviderNetworks added in v1.7.1

func (c *FakeKubeovnV1) ProviderNetworks() v1.ProviderNetworkInterface

func (*FakeKubeovnV1) RESTClient

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

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

func (*FakeKubeovnV1) SecurityGroups added in v1.8.0

func (c *FakeKubeovnV1) SecurityGroups() v1.SecurityGroupInterface

func (*FakeKubeovnV1) Subnets

func (c *FakeKubeovnV1) Subnets() v1.SubnetInterface

func (*FakeKubeovnV1) Vlans

func (c *FakeKubeovnV1) Vlans() v1.VlanInterface

func (*FakeKubeovnV1) VpcNatGateways

func (c *FakeKubeovnV1) VpcNatGateways() v1.VpcNatGatewayInterface

func (*FakeKubeovnV1) Vpcs

func (c *FakeKubeovnV1) Vpcs() v1.VpcInterface

type FakeProviderNetworks added in v1.7.1

type FakeProviderNetworks struct {
	Fake *FakeKubeovnV1
}

FakeProviderNetworks implements ProviderNetworkInterface

func (*FakeProviderNetworks) Create added in v1.7.1

func (c *FakeProviderNetworks) Create(ctx context.Context, providerNetwork *kubeovnv1.ProviderNetwork, opts v1.CreateOptions) (result *kubeovnv1.ProviderNetwork, err error)

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

func (*FakeProviderNetworks) Delete added in v1.7.1

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

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

func (*FakeProviderNetworks) DeleteCollection added in v1.7.1

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

DeleteCollection deletes a collection of objects.

func (*FakeProviderNetworks) Get added in v1.7.1

func (c *FakeProviderNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubeovnv1.ProviderNetwork, err error)

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

func (*FakeProviderNetworks) List added in v1.7.1

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

func (*FakeProviderNetworks) Patch added in v1.7.1

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

Patch applies the patch and returns the patched providerNetwork.

func (*FakeProviderNetworks) Update added in v1.7.1

func (c *FakeProviderNetworks) Update(ctx context.Context, providerNetwork *kubeovnv1.ProviderNetwork, opts v1.UpdateOptions) (result *kubeovnv1.ProviderNetwork, err error)

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

func (*FakeProviderNetworks) UpdateStatus added in v1.7.1

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

func (*FakeProviderNetworks) Watch added in v1.7.1

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

type FakeSecurityGroups added in v1.8.0

type FakeSecurityGroups struct {
	Fake *FakeKubeovnV1
}

FakeSecurityGroups implements SecurityGroupInterface

func (*FakeSecurityGroups) Create added in v1.8.0

func (c *FakeSecurityGroups) Create(ctx context.Context, securityGroup *kubeovnv1.SecurityGroup, opts v1.CreateOptions) (result *kubeovnv1.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 added in v1.8.0

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 added in v1.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeSecurityGroups) Get added in v1.8.0

func (c *FakeSecurityGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubeovnv1.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 added in v1.8.0

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

func (*FakeSecurityGroups) Patch added in v1.8.0

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

Patch applies the patch and returns the patched securityGroup.

func (*FakeSecurityGroups) Update added in v1.8.0

func (c *FakeSecurityGroups) Update(ctx context.Context, securityGroup *kubeovnv1.SecurityGroup, opts v1.UpdateOptions) (result *kubeovnv1.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 added in v1.8.0

func (c *FakeSecurityGroups) UpdateStatus(ctx context.Context, securityGroup *kubeovnv1.SecurityGroup, opts v1.UpdateOptions) (*kubeovnv1.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 added in v1.8.0

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

type FakeSubnets

type FakeSubnets struct {
	Fake *FakeKubeovnV1
}

FakeSubnets implements SubnetInterface

func (*FakeSubnets) Create

func (c *FakeSubnets) Create(ctx context.Context, subnet *kubeovnv1.Subnet, opts v1.CreateOptions) (result *kubeovnv1.Subnet, err error)

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

func (*FakeSubnets) Delete

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

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

func (*FakeSubnets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSubnets) Get

func (c *FakeSubnets) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubeovnv1.Subnet, err error)

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

func (*FakeSubnets) List

func (c *FakeSubnets) List(ctx context.Context, opts v1.ListOptions) (result *kubeovnv1.SubnetList, err error)

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

func (*FakeSubnets) Patch

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

Patch applies the patch and returns the patched subnet.

func (*FakeSubnets) Update

func (c *FakeSubnets) Update(ctx context.Context, subnet *kubeovnv1.Subnet, opts v1.UpdateOptions) (result *kubeovnv1.Subnet, err error)

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

func (*FakeSubnets) UpdateStatus

func (c *FakeSubnets) UpdateStatus(ctx context.Context, subnet *kubeovnv1.Subnet, opts v1.UpdateOptions) (*kubeovnv1.Subnet, error)

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

func (*FakeSubnets) Watch

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

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

type FakeVlans

type FakeVlans struct {
	Fake *FakeKubeovnV1
}

FakeVlans implements VlanInterface

func (*FakeVlans) Create

func (c *FakeVlans) Create(ctx context.Context, vlan *kubeovnv1.Vlan, opts v1.CreateOptions) (result *kubeovnv1.Vlan, err error)

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

func (*FakeVlans) Delete

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

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

func (*FakeVlans) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVlans) Get

func (c *FakeVlans) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubeovnv1.Vlan, err error)

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

func (*FakeVlans) List

func (c *FakeVlans) List(ctx context.Context, opts v1.ListOptions) (result *kubeovnv1.VlanList, err error)

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

func (*FakeVlans) Patch

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

Patch applies the patch and returns the patched vlan.

func (*FakeVlans) Update

func (c *FakeVlans) Update(ctx context.Context, vlan *kubeovnv1.Vlan, opts v1.UpdateOptions) (result *kubeovnv1.Vlan, err error)

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

func (*FakeVlans) UpdateStatus

func (c *FakeVlans) UpdateStatus(ctx context.Context, vlan *kubeovnv1.Vlan, opts v1.UpdateOptions) (*kubeovnv1.Vlan, error)

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

func (*FakeVlans) Watch

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

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

type FakeVpcNatGateways

type FakeVpcNatGateways struct {
	Fake *FakeKubeovnV1
}

FakeVpcNatGateways implements VpcNatGatewayInterface

func (*FakeVpcNatGateways) Create

func (c *FakeVpcNatGateways) Create(ctx context.Context, vpcNatGateway *kubeovnv1.VpcNatGateway, opts v1.CreateOptions) (result *kubeovnv1.VpcNatGateway, err error)

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

func (*FakeVpcNatGateways) Delete

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

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

func (*FakeVpcNatGateways) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVpcNatGateways) Get

func (c *FakeVpcNatGateways) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubeovnv1.VpcNatGateway, err error)

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

func (*FakeVpcNatGateways) List

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

func (*FakeVpcNatGateways) Patch

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

Patch applies the patch and returns the patched vpcNatGateway.

func (*FakeVpcNatGateways) Update

func (c *FakeVpcNatGateways) Update(ctx context.Context, vpcNatGateway *kubeovnv1.VpcNatGateway, opts v1.UpdateOptions) (result *kubeovnv1.VpcNatGateway, err error)

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

func (*FakeVpcNatGateways) Watch

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

type FakeVpcs

type FakeVpcs struct {
	Fake *FakeKubeovnV1
}

FakeVpcs implements VpcInterface

func (*FakeVpcs) Create

func (c *FakeVpcs) Create(ctx context.Context, vpc *kubeovnv1.Vpc, opts v1.CreateOptions) (result *kubeovnv1.Vpc, err error)

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

func (*FakeVpcs) Delete

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

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

func (*FakeVpcs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVpcs) Get

func (c *FakeVpcs) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubeovnv1.Vpc, err error)

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

func (*FakeVpcs) List

func (c *FakeVpcs) List(ctx context.Context, opts v1.ListOptions) (result *kubeovnv1.VpcList, err error)

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

func (*FakeVpcs) Patch

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

Patch applies the patch and returns the patched vpc.

func (*FakeVpcs) Update

func (c *FakeVpcs) Update(ctx context.Context, vpc *kubeovnv1.Vpc, opts v1.UpdateOptions) (result *kubeovnv1.Vpc, err error)

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

func (*FakeVpcs) UpdateStatus

func (c *FakeVpcs) UpdateStatus(ctx context.Context, vpc *kubeovnv1.Vpc, opts v1.UpdateOptions) (*kubeovnv1.Vpc, error)

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

func (*FakeVpcs) Watch

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

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

Jump to

Keyboard shortcuts

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