Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeNodePtpDevices
- func (c *FakeNodePtpDevices) Create(ctx context.Context, nodePtpDevice *ptpv1.NodePtpDevice, opts v1.CreateOptions) (result *ptpv1.NodePtpDevice, err error)
- func (c *FakeNodePtpDevices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNodePtpDevices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNodePtpDevices) Get(ctx context.Context, name string, options v1.GetOptions) (result *ptpv1.NodePtpDevice, err error)
- func (c *FakeNodePtpDevices) List(ctx context.Context, opts v1.ListOptions) (result *ptpv1.NodePtpDeviceList, err error)
- func (c *FakeNodePtpDevices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *ptpv1.NodePtpDevice, err error)
- func (c *FakeNodePtpDevices) Update(ctx context.Context, nodePtpDevice *ptpv1.NodePtpDevice, opts v1.UpdateOptions) (result *ptpv1.NodePtpDevice, err error)
- func (c *FakeNodePtpDevices) UpdateStatus(ctx context.Context, nodePtpDevice *ptpv1.NodePtpDevice, opts v1.UpdateOptions) (*ptpv1.NodePtpDevice, error)
- func (c *FakeNodePtpDevices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePtpConfigs
- func (c *FakePtpConfigs) Create(ctx context.Context, ptpConfig *ptpv1.PtpConfig, opts v1.CreateOptions) (result *ptpv1.PtpConfig, err error)
- func (c *FakePtpConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePtpConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePtpConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *ptpv1.PtpConfig, err error)
- func (c *FakePtpConfigs) List(ctx context.Context, opts v1.ListOptions) (result *ptpv1.PtpConfigList, err error)
- func (c *FakePtpConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *ptpv1.PtpConfig, err error)
- func (c *FakePtpConfigs) Update(ctx context.Context, ptpConfig *ptpv1.PtpConfig, opts v1.UpdateOptions) (result *ptpv1.PtpConfig, err error)
- func (c *FakePtpConfigs) UpdateStatus(ctx context.Context, ptpConfig *ptpv1.PtpConfig, opts v1.UpdateOptions) (*ptpv1.PtpConfig, error)
- func (c *FakePtpConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePtpOperatorConfigs
- func (c *FakePtpOperatorConfigs) Create(ctx context.Context, ptpOperatorConfig *ptpv1.PtpOperatorConfig, ...) (result *ptpv1.PtpOperatorConfig, err error)
- func (c *FakePtpOperatorConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePtpOperatorConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePtpOperatorConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *ptpv1.PtpOperatorConfig, err error)
- func (c *FakePtpOperatorConfigs) List(ctx context.Context, opts v1.ListOptions) (result *ptpv1.PtpOperatorConfigList, err error)
- func (c *FakePtpOperatorConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *ptpv1.PtpOperatorConfig, err error)
- func (c *FakePtpOperatorConfigs) Update(ctx context.Context, ptpOperatorConfig *ptpv1.PtpOperatorConfig, ...) (result *ptpv1.PtpOperatorConfig, err error)
- func (c *FakePtpOperatorConfigs) UpdateStatus(ctx context.Context, ptpOperatorConfig *ptpv1.PtpOperatorConfig, ...) (*ptpv1.PtpOperatorConfig, error)
- func (c *FakePtpOperatorConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePtpV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNodePtpDevices ¶
type FakeNodePtpDevices struct { Fake *FakePtpV1 // contains filtered or unexported fields }
FakeNodePtpDevices implements NodePtpDeviceInterface
func (*FakeNodePtpDevices) Create ¶
func (c *FakeNodePtpDevices) Create(ctx context.Context, nodePtpDevice *ptpv1.NodePtpDevice, opts v1.CreateOptions) (result *ptpv1.NodePtpDevice, err error)
Create takes the representation of a nodePtpDevice and creates it. Returns the server's representation of the nodePtpDevice, and an error, if there is any.
func (*FakeNodePtpDevices) Delete ¶
func (c *FakeNodePtpDevices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the nodePtpDevice and deletes it. Returns an error if one occurs.
func (*FakeNodePtpDevices) DeleteCollection ¶
func (c *FakeNodePtpDevices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNodePtpDevices) Get ¶
func (c *FakeNodePtpDevices) Get(ctx context.Context, name string, options v1.GetOptions) (result *ptpv1.NodePtpDevice, err error)
Get takes name of the nodePtpDevice, and returns the corresponding nodePtpDevice object, and an error if there is any.
func (*FakeNodePtpDevices) List ¶
func (c *FakeNodePtpDevices) List(ctx context.Context, opts v1.ListOptions) (result *ptpv1.NodePtpDeviceList, err error)
List takes label and field selectors, and returns the list of NodePtpDevices that match those selectors.
func (*FakeNodePtpDevices) Patch ¶
func (c *FakeNodePtpDevices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ptpv1.NodePtpDevice, err error)
Patch applies the patch and returns the patched nodePtpDevice.
func (*FakeNodePtpDevices) Update ¶
func (c *FakeNodePtpDevices) Update(ctx context.Context, nodePtpDevice *ptpv1.NodePtpDevice, opts v1.UpdateOptions) (result *ptpv1.NodePtpDevice, err error)
Update takes the representation of a nodePtpDevice and updates it. Returns the server's representation of the nodePtpDevice, and an error, if there is any.
func (*FakeNodePtpDevices) UpdateStatus ¶
func (c *FakeNodePtpDevices) UpdateStatus(ctx context.Context, nodePtpDevice *ptpv1.NodePtpDevice, opts v1.UpdateOptions) (*ptpv1.NodePtpDevice, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeNodePtpDevices) Watch ¶
func (c *FakeNodePtpDevices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested nodePtpDevices.
type FakePtpConfigs ¶
type FakePtpConfigs struct { Fake *FakePtpV1 // contains filtered or unexported fields }
FakePtpConfigs implements PtpConfigInterface
func (*FakePtpConfigs) Create ¶
func (c *FakePtpConfigs) Create(ctx context.Context, ptpConfig *ptpv1.PtpConfig, opts v1.CreateOptions) (result *ptpv1.PtpConfig, err error)
Create takes the representation of a ptpConfig and creates it. Returns the server's representation of the ptpConfig, and an error, if there is any.
func (*FakePtpConfigs) Delete ¶
func (c *FakePtpConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the ptpConfig and deletes it. Returns an error if one occurs.
func (*FakePtpConfigs) DeleteCollection ¶
func (c *FakePtpConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePtpConfigs) Get ¶
func (c *FakePtpConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *ptpv1.PtpConfig, err error)
Get takes name of the ptpConfig, and returns the corresponding ptpConfig object, and an error if there is any.
func (*FakePtpConfigs) List ¶
func (c *FakePtpConfigs) List(ctx context.Context, opts v1.ListOptions) (result *ptpv1.PtpConfigList, err error)
List takes label and field selectors, and returns the list of PtpConfigs that match those selectors.
func (*FakePtpConfigs) Patch ¶
func (c *FakePtpConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ptpv1.PtpConfig, err error)
Patch applies the patch and returns the patched ptpConfig.
func (*FakePtpConfigs) Update ¶
func (c *FakePtpConfigs) Update(ctx context.Context, ptpConfig *ptpv1.PtpConfig, opts v1.UpdateOptions) (result *ptpv1.PtpConfig, err error)
Update takes the representation of a ptpConfig and updates it. Returns the server's representation of the ptpConfig, and an error, if there is any.
func (*FakePtpConfigs) UpdateStatus ¶
func (c *FakePtpConfigs) UpdateStatus(ctx context.Context, ptpConfig *ptpv1.PtpConfig, opts v1.UpdateOptions) (*ptpv1.PtpConfig, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePtpConfigs) Watch ¶
func (c *FakePtpConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested ptpConfigs.
type FakePtpOperatorConfigs ¶
type FakePtpOperatorConfigs struct { Fake *FakePtpV1 // contains filtered or unexported fields }
FakePtpOperatorConfigs implements PtpOperatorConfigInterface
func (*FakePtpOperatorConfigs) Create ¶
func (c *FakePtpOperatorConfigs) Create(ctx context.Context, ptpOperatorConfig *ptpv1.PtpOperatorConfig, opts v1.CreateOptions) (result *ptpv1.PtpOperatorConfig, err error)
Create takes the representation of a ptpOperatorConfig and creates it. Returns the server's representation of the ptpOperatorConfig, and an error, if there is any.
func (*FakePtpOperatorConfigs) Delete ¶
func (c *FakePtpOperatorConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the ptpOperatorConfig and deletes it. Returns an error if one occurs.
func (*FakePtpOperatorConfigs) DeleteCollection ¶
func (c *FakePtpOperatorConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePtpOperatorConfigs) Get ¶
func (c *FakePtpOperatorConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *ptpv1.PtpOperatorConfig, err error)
Get takes name of the ptpOperatorConfig, and returns the corresponding ptpOperatorConfig object, and an error if there is any.
func (*FakePtpOperatorConfigs) List ¶
func (c *FakePtpOperatorConfigs) List(ctx context.Context, opts v1.ListOptions) (result *ptpv1.PtpOperatorConfigList, err error)
List takes label and field selectors, and returns the list of PtpOperatorConfigs that match those selectors.
func (*FakePtpOperatorConfigs) Patch ¶
func (c *FakePtpOperatorConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ptpv1.PtpOperatorConfig, err error)
Patch applies the patch and returns the patched ptpOperatorConfig.
func (*FakePtpOperatorConfigs) Update ¶
func (c *FakePtpOperatorConfigs) Update(ctx context.Context, ptpOperatorConfig *ptpv1.PtpOperatorConfig, opts v1.UpdateOptions) (result *ptpv1.PtpOperatorConfig, err error)
Update takes the representation of a ptpOperatorConfig and updates it. Returns the server's representation of the ptpOperatorConfig, and an error, if there is any.
func (*FakePtpOperatorConfigs) UpdateStatus ¶
func (c *FakePtpOperatorConfigs) UpdateStatus(ctx context.Context, ptpOperatorConfig *ptpv1.PtpOperatorConfig, opts v1.UpdateOptions) (*ptpv1.PtpOperatorConfig, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePtpOperatorConfigs) Watch ¶
func (c *FakePtpOperatorConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested ptpOperatorConfigs.
type FakePtpV1 ¶
func (*FakePtpV1) NodePtpDevices ¶
func (c *FakePtpV1) NodePtpDevices(namespace string) v1.NodePtpDeviceInterface
func (*FakePtpV1) PtpConfigs ¶
func (c *FakePtpV1) PtpConfigs(namespace string) v1.PtpConfigInterface
func (*FakePtpV1) PtpOperatorConfigs ¶
func (c *FakePtpV1) PtpOperatorConfigs(namespace string) v1.PtpOperatorConfigInterface
func (*FakePtpV1) RESTClient ¶
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.