Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeIPAMBlocks
- func (c *FakeIPAMBlocks) Create(ctx context.Context, iPAMBlock *v1alpha1.IPAMBlock, opts v1.CreateOptions) (result *v1alpha1.IPAMBlock, err error)
- func (c *FakeIPAMBlocks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeIPAMBlocks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeIPAMBlocks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IPAMBlock, err error)
- func (c *FakeIPAMBlocks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPAMBlockList, err error)
- func (c *FakeIPAMBlocks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.IPAMBlock, err error)
- func (c *FakeIPAMBlocks) Update(ctx context.Context, iPAMBlock *v1alpha1.IPAMBlock, opts v1.UpdateOptions) (result *v1alpha1.IPAMBlock, err error)
- func (c *FakeIPAMBlocks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeIPAMHandles
- func (c *FakeIPAMHandles) Create(ctx context.Context, iPAMHandle *v1alpha1.IPAMHandle, opts v1.CreateOptions) (result *v1alpha1.IPAMHandle, err error)
- func (c *FakeIPAMHandles) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeIPAMHandles) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeIPAMHandles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IPAMHandle, err error)
- func (c *FakeIPAMHandles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPAMHandleList, err error)
- func (c *FakeIPAMHandles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.IPAMHandle, err error)
- func (c *FakeIPAMHandles) Update(ctx context.Context, iPAMHandle *v1alpha1.IPAMHandle, opts v1.UpdateOptions) (result *v1alpha1.IPAMHandle, err error)
- func (c *FakeIPAMHandles) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeIPPools
- func (c *FakeIPPools) Create(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.CreateOptions) (result *v1alpha1.IPPool, err error)
- func (c *FakeIPPools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeIPPools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IPPool, err error)
- func (c *FakeIPPools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPPoolList, err error)
- func (c *FakeIPPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.IPPool, err error)
- func (c *FakeIPPools) Update(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.UpdateOptions) (result *v1alpha1.IPPool, err error)
- func (c *FakeIPPools) UpdateStatus(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.UpdateOptions) (*v1alpha1.IPPool, error)
- func (c *FakeIPPools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNamespaceNetworkPolicies
- func (c *FakeNamespaceNetworkPolicies) Create(ctx context.Context, namespaceNetworkPolicy *v1alpha1.NamespaceNetworkPolicy, ...) (result *v1alpha1.NamespaceNetworkPolicy, err error)
- func (c *FakeNamespaceNetworkPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNamespaceNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNamespaceNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NamespaceNetworkPolicy, err error)
- func (c *FakeNamespaceNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NamespaceNetworkPolicyList, err error)
- func (c *FakeNamespaceNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.NamespaceNetworkPolicy, err error)
- func (c *FakeNamespaceNetworkPolicies) Update(ctx context.Context, namespaceNetworkPolicy *v1alpha1.NamespaceNetworkPolicy, ...) (result *v1alpha1.NamespaceNetworkPolicy, err error)
- func (c *FakeNamespaceNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNetworkV1alpha1
- func (c *FakeNetworkV1alpha1) IPAMBlocks() v1alpha1.IPAMBlockInterface
- func (c *FakeNetworkV1alpha1) IPAMHandles() v1alpha1.IPAMHandleInterface
- func (c *FakeNetworkV1alpha1) IPPools() v1alpha1.IPPoolInterface
- func (c *FakeNetworkV1alpha1) NamespaceNetworkPolicies(namespace string) v1alpha1.NamespaceNetworkPolicyInterface
- func (c *FakeNetworkV1alpha1) RESTClient() rest.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeIPAMBlocks ¶
type FakeIPAMBlocks struct {
Fake *FakeNetworkV1alpha1
}
FakeIPAMBlocks implements IPAMBlockInterface
func (*FakeIPAMBlocks) Create ¶
func (c *FakeIPAMBlocks) Create(ctx context.Context, iPAMBlock *v1alpha1.IPAMBlock, opts v1.CreateOptions) (result *v1alpha1.IPAMBlock, err error)
Create takes the representation of a iPAMBlock and creates it. Returns the server's representation of the iPAMBlock, and an error, if there is any.
func (*FakeIPAMBlocks) Delete ¶
func (c *FakeIPAMBlocks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the iPAMBlock and deletes it. Returns an error if one occurs.
func (*FakeIPAMBlocks) DeleteCollection ¶
func (c *FakeIPAMBlocks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeIPAMBlocks) Get ¶
func (c *FakeIPAMBlocks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IPAMBlock, err error)
Get takes name of the iPAMBlock, and returns the corresponding iPAMBlock object, and an error if there is any.
func (*FakeIPAMBlocks) List ¶
func (c *FakeIPAMBlocks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPAMBlockList, err error)
List takes label and field selectors, and returns the list of IPAMBlocks that match those selectors.
func (*FakeIPAMBlocks) Patch ¶
func (c *FakeIPAMBlocks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.IPAMBlock, err error)
Patch applies the patch and returns the patched iPAMBlock.
func (*FakeIPAMBlocks) Update ¶
func (c *FakeIPAMBlocks) Update(ctx context.Context, iPAMBlock *v1alpha1.IPAMBlock, opts v1.UpdateOptions) (result *v1alpha1.IPAMBlock, err error)
Update takes the representation of a iPAMBlock and updates it. Returns the server's representation of the iPAMBlock, and an error, if there is any.
func (*FakeIPAMBlocks) Watch ¶
func (c *FakeIPAMBlocks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested iPAMBlocks.
type FakeIPAMHandles ¶
type FakeIPAMHandles struct {
Fake *FakeNetworkV1alpha1
}
FakeIPAMHandles implements IPAMHandleInterface
func (*FakeIPAMHandles) Create ¶
func (c *FakeIPAMHandles) Create(ctx context.Context, iPAMHandle *v1alpha1.IPAMHandle, opts v1.CreateOptions) (result *v1alpha1.IPAMHandle, err error)
Create takes the representation of a iPAMHandle and creates it. Returns the server's representation of the iPAMHandle, and an error, if there is any.
func (*FakeIPAMHandles) Delete ¶
func (c *FakeIPAMHandles) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the iPAMHandle and deletes it. Returns an error if one occurs.
func (*FakeIPAMHandles) DeleteCollection ¶
func (c *FakeIPAMHandles) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeIPAMHandles) Get ¶
func (c *FakeIPAMHandles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IPAMHandle, err error)
Get takes name of the iPAMHandle, and returns the corresponding iPAMHandle object, and an error if there is any.
func (*FakeIPAMHandles) List ¶
func (c *FakeIPAMHandles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPAMHandleList, err error)
List takes label and field selectors, and returns the list of IPAMHandles that match those selectors.
func (*FakeIPAMHandles) Patch ¶
func (c *FakeIPAMHandles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.IPAMHandle, err error)
Patch applies the patch and returns the patched iPAMHandle.
func (*FakeIPAMHandles) Update ¶
func (c *FakeIPAMHandles) Update(ctx context.Context, iPAMHandle *v1alpha1.IPAMHandle, opts v1.UpdateOptions) (result *v1alpha1.IPAMHandle, err error)
Update takes the representation of a iPAMHandle and updates it. Returns the server's representation of the iPAMHandle, and an error, if there is any.
func (*FakeIPAMHandles) Watch ¶
func (c *FakeIPAMHandles) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested iPAMHandles.
type FakeIPPools ¶
type FakeIPPools struct {
Fake *FakeNetworkV1alpha1
}
FakeIPPools implements IPPoolInterface
func (*FakeIPPools) Create ¶
func (c *FakeIPPools) Create(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.CreateOptions) (result *v1alpha1.IPPool, err error)
Create takes the representation of a iPPool and creates it. Returns the server's representation of the iPPool, and an error, if there is any.
func (*FakeIPPools) Delete ¶
func (c *FakeIPPools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the iPPool and deletes it. Returns an error if one occurs.
func (*FakeIPPools) DeleteCollection ¶
func (c *FakeIPPools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeIPPools) Get ¶
func (c *FakeIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IPPool, err error)
Get takes name of the iPPool, and returns the corresponding iPPool object, and an error if there is any.
func (*FakeIPPools) List ¶
func (c *FakeIPPools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPPoolList, err error)
List takes label and field selectors, and returns the list of IPPools that match those selectors.
func (*FakeIPPools) Patch ¶
func (c *FakeIPPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.IPPool, err error)
Patch applies the patch and returns the patched iPPool.
func (*FakeIPPools) Update ¶
func (c *FakeIPPools) Update(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.UpdateOptions) (result *v1alpha1.IPPool, err error)
Update takes the representation of a iPPool and updates it. Returns the server's representation of the iPPool, and an error, if there is any.
func (*FakeIPPools) UpdateStatus ¶
func (c *FakeIPPools) UpdateStatus(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.UpdateOptions) (*v1alpha1.IPPool, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeIPPools) Watch ¶
func (c *FakeIPPools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested iPPools.
type FakeNamespaceNetworkPolicies ¶
type FakeNamespaceNetworkPolicies struct { Fake *FakeNetworkV1alpha1 // contains filtered or unexported fields }
FakeNamespaceNetworkPolicies implements NamespaceNetworkPolicyInterface
func (*FakeNamespaceNetworkPolicies) Create ¶
func (c *FakeNamespaceNetworkPolicies) Create(ctx context.Context, namespaceNetworkPolicy *v1alpha1.NamespaceNetworkPolicy, opts v1.CreateOptions) (result *v1alpha1.NamespaceNetworkPolicy, err error)
Create takes the representation of a namespaceNetworkPolicy and creates it. Returns the server's representation of the namespaceNetworkPolicy, and an error, if there is any.
func (*FakeNamespaceNetworkPolicies) Delete ¶
func (c *FakeNamespaceNetworkPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the namespaceNetworkPolicy and deletes it. Returns an error if one occurs.
func (*FakeNamespaceNetworkPolicies) DeleteCollection ¶
func (c *FakeNamespaceNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNamespaceNetworkPolicies) Get ¶
func (c *FakeNamespaceNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NamespaceNetworkPolicy, err error)
Get takes name of the namespaceNetworkPolicy, and returns the corresponding namespaceNetworkPolicy object, and an error if there is any.
func (*FakeNamespaceNetworkPolicies) List ¶
func (c *FakeNamespaceNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NamespaceNetworkPolicyList, err error)
List takes label and field selectors, and returns the list of NamespaceNetworkPolicies that match those selectors.
func (*FakeNamespaceNetworkPolicies) Patch ¶
func (c *FakeNamespaceNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.NamespaceNetworkPolicy, err error)
Patch applies the patch and returns the patched namespaceNetworkPolicy.
func (*FakeNamespaceNetworkPolicies) Update ¶
func (c *FakeNamespaceNetworkPolicies) Update(ctx context.Context, namespaceNetworkPolicy *v1alpha1.NamespaceNetworkPolicy, opts v1.UpdateOptions) (result *v1alpha1.NamespaceNetworkPolicy, err error)
Update takes the representation of a namespaceNetworkPolicy and updates it. Returns the server's representation of the namespaceNetworkPolicy, and an error, if there is any.
func (*FakeNamespaceNetworkPolicies) Watch ¶
func (c *FakeNamespaceNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested namespaceNetworkPolicies.
type FakeNetworkV1alpha1 ¶
func (*FakeNetworkV1alpha1) IPAMBlocks ¶
func (c *FakeNetworkV1alpha1) IPAMBlocks() v1alpha1.IPAMBlockInterface
func (*FakeNetworkV1alpha1) IPAMHandles ¶
func (c *FakeNetworkV1alpha1) IPAMHandles() v1alpha1.IPAMHandleInterface
func (*FakeNetworkV1alpha1) IPPools ¶
func (c *FakeNetworkV1alpha1) IPPools() v1alpha1.IPPoolInterface
func (*FakeNetworkV1alpha1) NamespaceNetworkPolicies ¶
func (c *FakeNetworkV1alpha1) NamespaceNetworkPolicies(namespace string) v1alpha1.NamespaceNetworkPolicyInterface
func (*FakeNetworkV1alpha1) RESTClient ¶
func (c *FakeNetworkV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.