Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeIPInstances
- func (c *FakeIPInstances) Create(ctx context.Context, iPInstance *networkingv1.IPInstance, ...) (result *networkingv1.IPInstance, err error)
- func (c *FakeIPInstances) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeIPInstances) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeIPInstances) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.IPInstance, err error)
- func (c *FakeIPInstances) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.IPInstanceList, err error)
- func (c *FakeIPInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkingv1.IPInstance, err error)
- func (c *FakeIPInstances) Update(ctx context.Context, iPInstance *networkingv1.IPInstance, ...) (result *networkingv1.IPInstance, err error)
- func (c *FakeIPInstances) UpdateStatus(ctx context.Context, iPInstance *networkingv1.IPInstance, ...) (*networkingv1.IPInstance, error)
- func (c *FakeIPInstances) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNetworkingV1
- func (c *FakeNetworkingV1) IPInstances(namespace string) v1.IPInstanceInterface
- func (c *FakeNetworkingV1) Networks() v1.NetworkInterface
- func (c *FakeNetworkingV1) NodeInfos() v1.NodeInfoInterface
- func (c *FakeNetworkingV1) RESTClient() rest.Interface
- func (c *FakeNetworkingV1) Subnets() v1.SubnetInterface
- type FakeNetworks
- func (c *FakeNetworks) Create(ctx context.Context, network *networkingv1.Network, opts v1.CreateOptions) (result *networkingv1.Network, err error)
- func (c *FakeNetworks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNetworks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.Network, err error)
- func (c *FakeNetworks) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.NetworkList, err error)
- func (c *FakeNetworks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkingv1.Network, err error)
- func (c *FakeNetworks) Update(ctx context.Context, network *networkingv1.Network, opts v1.UpdateOptions) (result *networkingv1.Network, err error)
- func (c *FakeNetworks) UpdateStatus(ctx context.Context, network *networkingv1.Network, opts v1.UpdateOptions) (*networkingv1.Network, error)
- func (c *FakeNetworks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNodeInfos
- func (c *FakeNodeInfos) Create(ctx context.Context, nodeInfo *networkingv1.NodeInfo, opts v1.CreateOptions) (result *networkingv1.NodeInfo, err error)
- func (c *FakeNodeInfos) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNodeInfos) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNodeInfos) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.NodeInfo, err error)
- func (c *FakeNodeInfos) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.NodeInfoList, err error)
- func (c *FakeNodeInfos) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkingv1.NodeInfo, err error)
- func (c *FakeNodeInfos) Update(ctx context.Context, nodeInfo *networkingv1.NodeInfo, opts v1.UpdateOptions) (result *networkingv1.NodeInfo, err error)
- func (c *FakeNodeInfos) UpdateStatus(ctx context.Context, nodeInfo *networkingv1.NodeInfo, opts v1.UpdateOptions) (*networkingv1.NodeInfo, error)
- func (c *FakeNodeInfos) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSubnets
- func (c *FakeSubnets) Create(ctx context.Context, subnet *networkingv1.Subnet, opts v1.CreateOptions) (result *networkingv1.Subnet, err error)
- func (c *FakeSubnets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSubnets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSubnets) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.Subnet, err error)
- func (c *FakeSubnets) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.SubnetList, err error)
- func (c *FakeSubnets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkingv1.Subnet, err error)
- func (c *FakeSubnets) Update(ctx context.Context, subnet *networkingv1.Subnet, opts v1.UpdateOptions) (result *networkingv1.Subnet, err error)
- func (c *FakeSubnets) UpdateStatus(ctx context.Context, subnet *networkingv1.Subnet, opts v1.UpdateOptions) (*networkingv1.Subnet, error)
- func (c *FakeSubnets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeIPInstances ¶
type FakeIPInstances struct { Fake *FakeNetworkingV1 // contains filtered or unexported fields }
FakeIPInstances implements IPInstanceInterface
func (*FakeIPInstances) Create ¶
func (c *FakeIPInstances) Create(ctx context.Context, iPInstance *networkingv1.IPInstance, opts v1.CreateOptions) (result *networkingv1.IPInstance, err error)
Create takes the representation of a iPInstance and creates it. Returns the server's representation of the iPInstance, and an error, if there is any.
func (*FakeIPInstances) Delete ¶
func (c *FakeIPInstances) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the iPInstance and deletes it. Returns an error if one occurs.
func (*FakeIPInstances) DeleteCollection ¶
func (c *FakeIPInstances) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeIPInstances) Get ¶
func (c *FakeIPInstances) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.IPInstance, err error)
Get takes name of the iPInstance, and returns the corresponding iPInstance object, and an error if there is any.
func (*FakeIPInstances) List ¶
func (c *FakeIPInstances) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.IPInstanceList, err error)
List takes label and field selectors, and returns the list of IPInstances that match those selectors.
func (*FakeIPInstances) Patch ¶
func (c *FakeIPInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkingv1.IPInstance, err error)
Patch applies the patch and returns the patched iPInstance.
func (*FakeIPInstances) Update ¶
func (c *FakeIPInstances) Update(ctx context.Context, iPInstance *networkingv1.IPInstance, opts v1.UpdateOptions) (result *networkingv1.IPInstance, err error)
Update takes the representation of a iPInstance and updates it. Returns the server's representation of the iPInstance, and an error, if there is any.
func (*FakeIPInstances) UpdateStatus ¶
func (c *FakeIPInstances) UpdateStatus(ctx context.Context, iPInstance *networkingv1.IPInstance, opts v1.UpdateOptions) (*networkingv1.IPInstance, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeIPInstances) Watch ¶
func (c *FakeIPInstances) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested iPInstances.
type FakeNetworkingV1 ¶
func (*FakeNetworkingV1) IPInstances ¶
func (c *FakeNetworkingV1) IPInstances(namespace string) v1.IPInstanceInterface
func (*FakeNetworkingV1) Networks ¶
func (c *FakeNetworkingV1) Networks() v1.NetworkInterface
func (*FakeNetworkingV1) NodeInfos ¶ added in v0.8.0
func (c *FakeNetworkingV1) NodeInfos() v1.NodeInfoInterface
func (*FakeNetworkingV1) RESTClient ¶
func (c *FakeNetworkingV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeNetworkingV1) Subnets ¶
func (c *FakeNetworkingV1) Subnets() v1.SubnetInterface
type FakeNetworks ¶
type FakeNetworks struct {
Fake *FakeNetworkingV1
}
FakeNetworks implements NetworkInterface
func (*FakeNetworks) Create ¶
func (c *FakeNetworks) Create(ctx context.Context, network *networkingv1.Network, opts v1.CreateOptions) (result *networkingv1.Network, err error)
Create takes the representation of a network and creates it. Returns the server's representation of the network, and an error, if there is any.
func (*FakeNetworks) Delete ¶
func (c *FakeNetworks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the network and deletes it. Returns an error if one occurs.
func (*FakeNetworks) DeleteCollection ¶
func (c *FakeNetworks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNetworks) Get ¶
func (c *FakeNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.Network, err error)
Get takes name of the network, and returns the corresponding network object, and an error if there is any.
func (*FakeNetworks) List ¶
func (c *FakeNetworks) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.NetworkList, err error)
List takes label and field selectors, and returns the list of Networks that match those selectors.
func (*FakeNetworks) Patch ¶
func (c *FakeNetworks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkingv1.Network, err error)
Patch applies the patch and returns the patched network.
func (*FakeNetworks) Update ¶
func (c *FakeNetworks) Update(ctx context.Context, network *networkingv1.Network, opts v1.UpdateOptions) (result *networkingv1.Network, err error)
Update takes the representation of a network and updates it. Returns the server's representation of the network, and an error, if there is any.
func (*FakeNetworks) UpdateStatus ¶
func (c *FakeNetworks) UpdateStatus(ctx context.Context, network *networkingv1.Network, opts v1.UpdateOptions) (*networkingv1.Network, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeNetworks) Watch ¶
func (c *FakeNetworks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested networks.
type FakeNodeInfos ¶ added in v0.8.0
type FakeNodeInfos struct {
Fake *FakeNetworkingV1
}
FakeNodeInfos implements NodeInfoInterface
func (*FakeNodeInfos) Create ¶ added in v0.8.0
func (c *FakeNodeInfos) Create(ctx context.Context, nodeInfo *networkingv1.NodeInfo, opts v1.CreateOptions) (result *networkingv1.NodeInfo, err error)
Create takes the representation of a nodeInfo and creates it. Returns the server's representation of the nodeInfo, and an error, if there is any.
func (*FakeNodeInfos) Delete ¶ added in v0.8.0
func (c *FakeNodeInfos) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the nodeInfo and deletes it. Returns an error if one occurs.
func (*FakeNodeInfos) DeleteCollection ¶ added in v0.8.0
func (c *FakeNodeInfos) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNodeInfos) Get ¶ added in v0.8.0
func (c *FakeNodeInfos) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.NodeInfo, err error)
Get takes name of the nodeInfo, and returns the corresponding nodeInfo object, and an error if there is any.
func (*FakeNodeInfos) List ¶ added in v0.8.0
func (c *FakeNodeInfos) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.NodeInfoList, err error)
List takes label and field selectors, and returns the list of NodeInfos that match those selectors.
func (*FakeNodeInfos) Patch ¶ added in v0.8.0
func (c *FakeNodeInfos) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkingv1.NodeInfo, err error)
Patch applies the patch and returns the patched nodeInfo.
func (*FakeNodeInfos) Update ¶ added in v0.8.0
func (c *FakeNodeInfos) Update(ctx context.Context, nodeInfo *networkingv1.NodeInfo, opts v1.UpdateOptions) (result *networkingv1.NodeInfo, err error)
Update takes the representation of a nodeInfo and updates it. Returns the server's representation of the nodeInfo, and an error, if there is any.
func (*FakeNodeInfos) UpdateStatus ¶ added in v0.8.0
func (c *FakeNodeInfos) UpdateStatus(ctx context.Context, nodeInfo *networkingv1.NodeInfo, opts v1.UpdateOptions) (*networkingv1.NodeInfo, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeNodeInfos) Watch ¶ added in v0.8.0
func (c *FakeNodeInfos) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested nodeInfos.
type FakeSubnets ¶
type FakeSubnets struct {
Fake *FakeNetworkingV1
}
FakeSubnets implements SubnetInterface
func (*FakeSubnets) Create ¶
func (c *FakeSubnets) Create(ctx context.Context, subnet *networkingv1.Subnet, opts v1.CreateOptions) (result *networkingv1.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 *networkingv1.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 *networkingv1.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 *networkingv1.Subnet, err error)
Patch applies the patch and returns the patched subnet.
func (*FakeSubnets) Update ¶
func (c *FakeSubnets) Update(ctx context.Context, subnet *networkingv1.Subnet, opts v1.UpdateOptions) (result *networkingv1.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 *networkingv1.Subnet, opts v1.UpdateOptions) (*networkingv1.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.