Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterNetworks
- func (c *FakeClusterNetworks) Apply(ctx context.Context, ...) (result *networkv1.ClusterNetwork, err error)
- func (c *FakeClusterNetworks) Create(ctx context.Context, clusterNetwork *networkv1.ClusterNetwork, ...) (result *networkv1.ClusterNetwork, err error)
- func (c *FakeClusterNetworks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterNetworks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.ClusterNetwork, err error)
- func (c *FakeClusterNetworks) List(ctx context.Context, opts v1.ListOptions) (result *networkv1.ClusterNetworkList, err error)
- func (c *FakeClusterNetworks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkv1.ClusterNetwork, err error)
- func (c *FakeClusterNetworks) Update(ctx context.Context, clusterNetwork *networkv1.ClusterNetwork, ...) (result *networkv1.ClusterNetwork, err error)
- func (c *FakeClusterNetworks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeEgressNetworkPolicies
- func (c *FakeEgressNetworkPolicies) Apply(ctx context.Context, ...) (result *networkv1.EgressNetworkPolicy, err error)
- func (c *FakeEgressNetworkPolicies) Create(ctx context.Context, egressNetworkPolicy *networkv1.EgressNetworkPolicy, ...) (result *networkv1.EgressNetworkPolicy, err error)
- func (c *FakeEgressNetworkPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeEgressNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeEgressNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.EgressNetworkPolicy, err error)
- func (c *FakeEgressNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *networkv1.EgressNetworkPolicyList, err error)
- func (c *FakeEgressNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkv1.EgressNetworkPolicy, err error)
- func (c *FakeEgressNetworkPolicies) Update(ctx context.Context, egressNetworkPolicy *networkv1.EgressNetworkPolicy, ...) (result *networkv1.EgressNetworkPolicy, err error)
- func (c *FakeEgressNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeHostSubnets
- func (c *FakeHostSubnets) Apply(ctx context.Context, ...) (result *networkv1.HostSubnet, err error)
- func (c *FakeHostSubnets) Create(ctx context.Context, hostSubnet *networkv1.HostSubnet, opts v1.CreateOptions) (result *networkv1.HostSubnet, err error)
- func (c *FakeHostSubnets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeHostSubnets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeHostSubnets) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.HostSubnet, err error)
- func (c *FakeHostSubnets) List(ctx context.Context, opts v1.ListOptions) (result *networkv1.HostSubnetList, err error)
- func (c *FakeHostSubnets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkv1.HostSubnet, err error)
- func (c *FakeHostSubnets) Update(ctx context.Context, hostSubnet *networkv1.HostSubnet, opts v1.UpdateOptions) (result *networkv1.HostSubnet, err error)
- func (c *FakeHostSubnets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNetNamespaces
- func (c *FakeNetNamespaces) Apply(ctx context.Context, ...) (result *networkv1.NetNamespace, err error)
- func (c *FakeNetNamespaces) Create(ctx context.Context, netNamespace *networkv1.NetNamespace, ...) (result *networkv1.NetNamespace, err error)
- func (c *FakeNetNamespaces) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNetNamespaces) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNetNamespaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.NetNamespace, err error)
- func (c *FakeNetNamespaces) List(ctx context.Context, opts v1.ListOptions) (result *networkv1.NetNamespaceList, err error)
- func (c *FakeNetNamespaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkv1.NetNamespace, err error)
- func (c *FakeNetNamespaces) Update(ctx context.Context, netNamespace *networkv1.NetNamespace, ...) (result *networkv1.NetNamespace, err error)
- func (c *FakeNetNamespaces) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNetworkV1
- func (c *FakeNetworkV1) ClusterNetworks() v1.ClusterNetworkInterface
- func (c *FakeNetworkV1) EgressNetworkPolicies(namespace string) v1.EgressNetworkPolicyInterface
- func (c *FakeNetworkV1) HostSubnets() v1.HostSubnetInterface
- func (c *FakeNetworkV1) NetNamespaces() v1.NetNamespaceInterface
- func (c *FakeNetworkV1) RESTClient() rest.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClusterNetworks ¶
type FakeClusterNetworks struct {
Fake *FakeNetworkV1
}
FakeClusterNetworks implements ClusterNetworkInterface
func (*FakeClusterNetworks) Apply ¶
func (c *FakeClusterNetworks) Apply(ctx context.Context, clusterNetwork *applyconfigurationsnetworkv1.ClusterNetworkApplyConfiguration, opts v1.ApplyOptions) (result *networkv1.ClusterNetwork, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied clusterNetwork.
func (*FakeClusterNetworks) Create ¶
func (c *FakeClusterNetworks) Create(ctx context.Context, clusterNetwork *networkv1.ClusterNetwork, opts v1.CreateOptions) (result *networkv1.ClusterNetwork, err error)
Create takes the representation of a clusterNetwork and creates it. Returns the server's representation of the clusterNetwork, and an error, if there is any.
func (*FakeClusterNetworks) Delete ¶
func (c *FakeClusterNetworks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the clusterNetwork and deletes it. Returns an error if one occurs.
func (*FakeClusterNetworks) DeleteCollection ¶
func (c *FakeClusterNetworks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterNetworks) Get ¶
func (c *FakeClusterNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.ClusterNetwork, err error)
Get takes name of the clusterNetwork, and returns the corresponding clusterNetwork object, and an error if there is any.
func (*FakeClusterNetworks) List ¶
func (c *FakeClusterNetworks) List(ctx context.Context, opts v1.ListOptions) (result *networkv1.ClusterNetworkList, err error)
List takes label and field selectors, and returns the list of ClusterNetworks that match those selectors.
func (*FakeClusterNetworks) Patch ¶
func (c *FakeClusterNetworks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkv1.ClusterNetwork, err error)
Patch applies the patch and returns the patched clusterNetwork.
func (*FakeClusterNetworks) Update ¶
func (c *FakeClusterNetworks) Update(ctx context.Context, clusterNetwork *networkv1.ClusterNetwork, opts v1.UpdateOptions) (result *networkv1.ClusterNetwork, err error)
Update takes the representation of a clusterNetwork and updates it. Returns the server's representation of the clusterNetwork, and an error, if there is any.
func (*FakeClusterNetworks) Watch ¶
func (c *FakeClusterNetworks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterNetworks.
type FakeEgressNetworkPolicies ¶
type FakeEgressNetworkPolicies struct { Fake *FakeNetworkV1 // contains filtered or unexported fields }
FakeEgressNetworkPolicies implements EgressNetworkPolicyInterface
func (*FakeEgressNetworkPolicies) Apply ¶
func (c *FakeEgressNetworkPolicies) Apply(ctx context.Context, egressNetworkPolicy *applyconfigurationsnetworkv1.EgressNetworkPolicyApplyConfiguration, opts v1.ApplyOptions) (result *networkv1.EgressNetworkPolicy, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied egressNetworkPolicy.
func (*FakeEgressNetworkPolicies) Create ¶
func (c *FakeEgressNetworkPolicies) Create(ctx context.Context, egressNetworkPolicy *networkv1.EgressNetworkPolicy, opts v1.CreateOptions) (result *networkv1.EgressNetworkPolicy, err error)
Create takes the representation of a egressNetworkPolicy and creates it. Returns the server's representation of the egressNetworkPolicy, and an error, if there is any.
func (*FakeEgressNetworkPolicies) Delete ¶
func (c *FakeEgressNetworkPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the egressNetworkPolicy and deletes it. Returns an error if one occurs.
func (*FakeEgressNetworkPolicies) DeleteCollection ¶
func (c *FakeEgressNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeEgressNetworkPolicies) Get ¶
func (c *FakeEgressNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.EgressNetworkPolicy, err error)
Get takes name of the egressNetworkPolicy, and returns the corresponding egressNetworkPolicy object, and an error if there is any.
func (*FakeEgressNetworkPolicies) List ¶
func (c *FakeEgressNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *networkv1.EgressNetworkPolicyList, err error)
List takes label and field selectors, and returns the list of EgressNetworkPolicies that match those selectors.
func (*FakeEgressNetworkPolicies) Patch ¶
func (c *FakeEgressNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkv1.EgressNetworkPolicy, err error)
Patch applies the patch and returns the patched egressNetworkPolicy.
func (*FakeEgressNetworkPolicies) Update ¶
func (c *FakeEgressNetworkPolicies) Update(ctx context.Context, egressNetworkPolicy *networkv1.EgressNetworkPolicy, opts v1.UpdateOptions) (result *networkv1.EgressNetworkPolicy, err error)
Update takes the representation of a egressNetworkPolicy and updates it. Returns the server's representation of the egressNetworkPolicy, and an error, if there is any.
func (*FakeEgressNetworkPolicies) Watch ¶
func (c *FakeEgressNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested egressNetworkPolicies.
type FakeHostSubnets ¶
type FakeHostSubnets struct {
Fake *FakeNetworkV1
}
FakeHostSubnets implements HostSubnetInterface
func (*FakeHostSubnets) Apply ¶
func (c *FakeHostSubnets) Apply(ctx context.Context, hostSubnet *applyconfigurationsnetworkv1.HostSubnetApplyConfiguration, opts v1.ApplyOptions) (result *networkv1.HostSubnet, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied hostSubnet.
func (*FakeHostSubnets) Create ¶
func (c *FakeHostSubnets) Create(ctx context.Context, hostSubnet *networkv1.HostSubnet, opts v1.CreateOptions) (result *networkv1.HostSubnet, err error)
Create takes the representation of a hostSubnet and creates it. Returns the server's representation of the hostSubnet, and an error, if there is any.
func (*FakeHostSubnets) Delete ¶
func (c *FakeHostSubnets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the hostSubnet and deletes it. Returns an error if one occurs.
func (*FakeHostSubnets) DeleteCollection ¶
func (c *FakeHostSubnets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeHostSubnets) Get ¶
func (c *FakeHostSubnets) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.HostSubnet, err error)
Get takes name of the hostSubnet, and returns the corresponding hostSubnet object, and an error if there is any.
func (*FakeHostSubnets) List ¶
func (c *FakeHostSubnets) List(ctx context.Context, opts v1.ListOptions) (result *networkv1.HostSubnetList, err error)
List takes label and field selectors, and returns the list of HostSubnets that match those selectors.
func (*FakeHostSubnets) Patch ¶
func (c *FakeHostSubnets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkv1.HostSubnet, err error)
Patch applies the patch and returns the patched hostSubnet.
func (*FakeHostSubnets) Update ¶
func (c *FakeHostSubnets) Update(ctx context.Context, hostSubnet *networkv1.HostSubnet, opts v1.UpdateOptions) (result *networkv1.HostSubnet, err error)
Update takes the representation of a hostSubnet and updates it. Returns the server's representation of the hostSubnet, and an error, if there is any.
func (*FakeHostSubnets) Watch ¶
func (c *FakeHostSubnets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested hostSubnets.
type FakeNetNamespaces ¶
type FakeNetNamespaces struct {
Fake *FakeNetworkV1
}
FakeNetNamespaces implements NetNamespaceInterface
func (*FakeNetNamespaces) Apply ¶
func (c *FakeNetNamespaces) Apply(ctx context.Context, netNamespace *applyconfigurationsnetworkv1.NetNamespaceApplyConfiguration, opts v1.ApplyOptions) (result *networkv1.NetNamespace, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied netNamespace.
func (*FakeNetNamespaces) Create ¶
func (c *FakeNetNamespaces) Create(ctx context.Context, netNamespace *networkv1.NetNamespace, opts v1.CreateOptions) (result *networkv1.NetNamespace, err error)
Create takes the representation of a netNamespace and creates it. Returns the server's representation of the netNamespace, and an error, if there is any.
func (*FakeNetNamespaces) Delete ¶
func (c *FakeNetNamespaces) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the netNamespace and deletes it. Returns an error if one occurs.
func (*FakeNetNamespaces) DeleteCollection ¶
func (c *FakeNetNamespaces) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNetNamespaces) Get ¶
func (c *FakeNetNamespaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.NetNamespace, err error)
Get takes name of the netNamespace, and returns the corresponding netNamespace object, and an error if there is any.
func (*FakeNetNamespaces) List ¶
func (c *FakeNetNamespaces) List(ctx context.Context, opts v1.ListOptions) (result *networkv1.NetNamespaceList, err error)
List takes label and field selectors, and returns the list of NetNamespaces that match those selectors.
func (*FakeNetNamespaces) Patch ¶
func (c *FakeNetNamespaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkv1.NetNamespace, err error)
Patch applies the patch and returns the patched netNamespace.
func (*FakeNetNamespaces) Update ¶
func (c *FakeNetNamespaces) Update(ctx context.Context, netNamespace *networkv1.NetNamespace, opts v1.UpdateOptions) (result *networkv1.NetNamespace, err error)
Update takes the representation of a netNamespace and updates it. Returns the server's representation of the netNamespace, and an error, if there is any.
func (*FakeNetNamespaces) Watch ¶
func (c *FakeNetNamespaces) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested netNamespaces.
type FakeNetworkV1 ¶
func (*FakeNetworkV1) ClusterNetworks ¶
func (c *FakeNetworkV1) ClusterNetworks() v1.ClusterNetworkInterface
func (*FakeNetworkV1) EgressNetworkPolicies ¶
func (c *FakeNetworkV1) EgressNetworkPolicies(namespace string) v1.EgressNetworkPolicyInterface
func (*FakeNetworkV1) HostSubnets ¶
func (c *FakeNetworkV1) HostSubnets() v1.HostSubnetInterface
func (*FakeNetworkV1) NetNamespaces ¶
func (c *FakeNetworkV1) NetNamespaces() v1.NetNamespaceInterface
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.