Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeVpnV1alpha1
- type FakeWireguardPeers
- func (c *FakeWireguardPeers) Create(ctx context.Context, wireguardPeer *v1alpha1.WireguardPeer, ...) (result *v1alpha1.WireguardPeer, err error)
- func (c *FakeWireguardPeers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeWireguardPeers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeWireguardPeers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.WireguardPeer, err error)
- func (c *FakeWireguardPeers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.WireguardPeerList, err error)
- func (c *FakeWireguardPeers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.WireguardPeer, err error)
- func (c *FakeWireguardPeers) Update(ctx context.Context, wireguardPeer *v1alpha1.WireguardPeer, ...) (result *v1alpha1.WireguardPeer, err error)
- func (c *FakeWireguardPeers) UpdateStatus(ctx context.Context, wireguardPeer *v1alpha1.WireguardPeer, ...) (*v1alpha1.WireguardPeer, error)
- func (c *FakeWireguardPeers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeWireguardServers
- func (c *FakeWireguardServers) Create(ctx context.Context, wireguardServer *v1alpha1.WireguardServer, ...) (result *v1alpha1.WireguardServer, err error)
- func (c *FakeWireguardServers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeWireguardServers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeWireguardServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.WireguardServer, err error)
- func (c *FakeWireguardServers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.WireguardServerList, err error)
- func (c *FakeWireguardServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.WireguardServer, err error)
- func (c *FakeWireguardServers) Update(ctx context.Context, wireguardServer *v1alpha1.WireguardServer, ...) (result *v1alpha1.WireguardServer, err error)
- func (c *FakeWireguardServers) UpdateStatus(ctx context.Context, wireguardServer *v1alpha1.WireguardServer, ...) (*v1alpha1.WireguardServer, error)
- func (c *FakeWireguardServers) 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 FakeVpnV1alpha1 ¶
func (*FakeVpnV1alpha1) RESTClient ¶
func (c *FakeVpnV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeVpnV1alpha1) WireguardPeers ¶
func (c *FakeVpnV1alpha1) WireguardPeers(namespace string) v1alpha1.WireguardPeerInterface
func (*FakeVpnV1alpha1) WireguardServers ¶
func (c *FakeVpnV1alpha1) WireguardServers(namespace string) v1alpha1.WireguardServerInterface
type FakeWireguardPeers ¶
type FakeWireguardPeers struct { Fake *FakeVpnV1alpha1 // contains filtered or unexported fields }
FakeWireguardPeers implements WireguardPeerInterface
func (*FakeWireguardPeers) Create ¶
func (c *FakeWireguardPeers) Create(ctx context.Context, wireguardPeer *v1alpha1.WireguardPeer, opts v1.CreateOptions) (result *v1alpha1.WireguardPeer, err error)
Create takes the representation of a wireguardPeer and creates it. Returns the server's representation of the wireguardPeer, and an error, if there is any.
func (*FakeWireguardPeers) Delete ¶
func (c *FakeWireguardPeers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the wireguardPeer and deletes it. Returns an error if one occurs.
func (*FakeWireguardPeers) DeleteCollection ¶
func (c *FakeWireguardPeers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeWireguardPeers) Get ¶
func (c *FakeWireguardPeers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.WireguardPeer, err error)
Get takes name of the wireguardPeer, and returns the corresponding wireguardPeer object, and an error if there is any.
func (*FakeWireguardPeers) List ¶
func (c *FakeWireguardPeers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.WireguardPeerList, err error)
List takes label and field selectors, and returns the list of WireguardPeers that match those selectors.
func (*FakeWireguardPeers) Patch ¶
func (c *FakeWireguardPeers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.WireguardPeer, err error)
Patch applies the patch and returns the patched wireguardPeer.
func (*FakeWireguardPeers) Update ¶
func (c *FakeWireguardPeers) Update(ctx context.Context, wireguardPeer *v1alpha1.WireguardPeer, opts v1.UpdateOptions) (result *v1alpha1.WireguardPeer, err error)
Update takes the representation of a wireguardPeer and updates it. Returns the server's representation of the wireguardPeer, and an error, if there is any.
func (*FakeWireguardPeers) UpdateStatus ¶
func (c *FakeWireguardPeers) UpdateStatus(ctx context.Context, wireguardPeer *v1alpha1.WireguardPeer, opts v1.UpdateOptions) (*v1alpha1.WireguardPeer, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeWireguardPeers) Watch ¶
func (c *FakeWireguardPeers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested wireguardPeers.
type FakeWireguardServers ¶
type FakeWireguardServers struct { Fake *FakeVpnV1alpha1 // contains filtered or unexported fields }
FakeWireguardServers implements WireguardServerInterface
func (*FakeWireguardServers) Create ¶
func (c *FakeWireguardServers) Create(ctx context.Context, wireguardServer *v1alpha1.WireguardServer, opts v1.CreateOptions) (result *v1alpha1.WireguardServer, err error)
Create takes the representation of a wireguardServer and creates it. Returns the server's representation of the wireguardServer, and an error, if there is any.
func (*FakeWireguardServers) Delete ¶
func (c *FakeWireguardServers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the wireguardServer and deletes it. Returns an error if one occurs.
func (*FakeWireguardServers) DeleteCollection ¶
func (c *FakeWireguardServers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeWireguardServers) Get ¶
func (c *FakeWireguardServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.WireguardServer, err error)
Get takes name of the wireguardServer, and returns the corresponding wireguardServer object, and an error if there is any.
func (*FakeWireguardServers) List ¶
func (c *FakeWireguardServers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.WireguardServerList, err error)
List takes label and field selectors, and returns the list of WireguardServers that match those selectors.
func (*FakeWireguardServers) Patch ¶
func (c *FakeWireguardServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.WireguardServer, err error)
Patch applies the patch and returns the patched wireguardServer.
func (*FakeWireguardServers) Update ¶
func (c *FakeWireguardServers) Update(ctx context.Context, wireguardServer *v1alpha1.WireguardServer, opts v1.UpdateOptions) (result *v1alpha1.WireguardServer, err error)
Update takes the representation of a wireguardServer and updates it. Returns the server's representation of the wireguardServer, and an error, if there is any.
func (*FakeWireguardServers) UpdateStatus ¶
func (c *FakeWireguardServers) UpdateStatus(ctx context.Context, wireguardServer *v1alpha1.WireguardServer, opts v1.UpdateOptions) (*v1alpha1.WireguardServer, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeWireguardServers) Watch ¶
func (c *FakeWireguardServers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested wireguardServers.