fake

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClusterNetworks

type FakeClusterNetworks struct {
	Fake *FakeNetworkV1beta1
}

FakeClusterNetworks implements ClusterNetworkInterface

func (*FakeClusterNetworks) Create

func (c *FakeClusterNetworks) Create(ctx context.Context, clusterNetwork *v1beta1.ClusterNetwork, opts v1.CreateOptions) (result *v1beta1.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 *v1beta1.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

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 *v1beta1.ClusterNetwork, err error)

Patch applies the patch and returns the patched clusterNetwork.

func (*FakeClusterNetworks) Update

func (c *FakeClusterNetworks) Update(ctx context.Context, clusterNetwork *v1beta1.ClusterNetwork, opts v1.UpdateOptions) (result *v1beta1.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) UpdateStatus added in v0.3.0

func (c *FakeClusterNetworks) UpdateStatus(ctx context.Context, clusterNetwork *v1beta1.ClusterNetwork, opts v1.UpdateOptions) (*v1beta1.ClusterNetwork, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeClusterNetworks) Watch

Watch returns a watch.Interface that watches the requested clusterNetworks.

type FakeLinkMonitors added in v0.3.0

type FakeLinkMonitors struct {
	Fake *FakeNetworkV1beta1
}

FakeLinkMonitors implements LinkMonitorInterface

func (*FakeLinkMonitors) Create added in v0.3.0

func (c *FakeLinkMonitors) Create(ctx context.Context, linkMonitor *v1beta1.LinkMonitor, opts v1.CreateOptions) (result *v1beta1.LinkMonitor, err error)

Create takes the representation of a linkMonitor and creates it. Returns the server's representation of the linkMonitor, and an error, if there is any.

func (*FakeLinkMonitors) Delete added in v0.3.0

func (c *FakeLinkMonitors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the linkMonitor and deletes it. Returns an error if one occurs.

func (*FakeLinkMonitors) DeleteCollection added in v0.3.0

func (c *FakeLinkMonitors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeLinkMonitors) Get added in v0.3.0

func (c *FakeLinkMonitors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.LinkMonitor, err error)

Get takes name of the linkMonitor, and returns the corresponding linkMonitor object, and an error if there is any.

func (*FakeLinkMonitors) List added in v0.3.0

func (c *FakeLinkMonitors) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.LinkMonitorList, err error)

List takes label and field selectors, and returns the list of LinkMonitors that match those selectors.

func (*FakeLinkMonitors) Patch added in v0.3.0

func (c *FakeLinkMonitors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.LinkMonitor, err error)

Patch applies the patch and returns the patched linkMonitor.

func (*FakeLinkMonitors) Update added in v0.3.0

func (c *FakeLinkMonitors) Update(ctx context.Context, linkMonitor *v1beta1.LinkMonitor, opts v1.UpdateOptions) (result *v1beta1.LinkMonitor, err error)

Update takes the representation of a linkMonitor and updates it. Returns the server's representation of the linkMonitor, and an error, if there is any.

func (*FakeLinkMonitors) UpdateStatus added in v0.3.0

func (c *FakeLinkMonitors) UpdateStatus(ctx context.Context, linkMonitor *v1beta1.LinkMonitor, opts v1.UpdateOptions) (*v1beta1.LinkMonitor, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeLinkMonitors) Watch added in v0.3.0

Watch returns a watch.Interface that watches the requested linkMonitors.

type FakeNetworkV1beta1

type FakeNetworkV1beta1 struct {
	*testing.Fake
}

func (*FakeNetworkV1beta1) ClusterNetworks

func (c *FakeNetworkV1beta1) ClusterNetworks() v1beta1.ClusterNetworkInterface

func (*FakeNetworkV1beta1) LinkMonitors added in v0.3.0

func (*FakeNetworkV1beta1) RESTClient

func (c *FakeNetworkV1beta1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeNetworkV1beta1) VlanConfigs added in v0.3.0

func (*FakeNetworkV1beta1) VlanStatuses added in v0.3.0

type FakeVlanConfigs added in v0.3.0

type FakeVlanConfigs struct {
	Fake *FakeNetworkV1beta1
}

FakeVlanConfigs implements VlanConfigInterface

func (*FakeVlanConfigs) Create added in v0.3.0

func (c *FakeVlanConfigs) Create(ctx context.Context, vlanConfig *v1beta1.VlanConfig, opts v1.CreateOptions) (result *v1beta1.VlanConfig, err error)

Create takes the representation of a vlanConfig and creates it. Returns the server's representation of the vlanConfig, and an error, if there is any.

func (*FakeVlanConfigs) Delete added in v0.3.0

func (c *FakeVlanConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the vlanConfig and deletes it. Returns an error if one occurs.

func (*FakeVlanConfigs) DeleteCollection added in v0.3.0

func (c *FakeVlanConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeVlanConfigs) Get added in v0.3.0

func (c *FakeVlanConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.VlanConfig, err error)

Get takes name of the vlanConfig, and returns the corresponding vlanConfig object, and an error if there is any.

func (*FakeVlanConfigs) List added in v0.3.0

func (c *FakeVlanConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.VlanConfigList, err error)

List takes label and field selectors, and returns the list of VlanConfigs that match those selectors.

func (*FakeVlanConfigs) Patch added in v0.3.0

func (c *FakeVlanConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VlanConfig, err error)

Patch applies the patch and returns the patched vlanConfig.

func (*FakeVlanConfigs) Update added in v0.3.0

func (c *FakeVlanConfigs) Update(ctx context.Context, vlanConfig *v1beta1.VlanConfig, opts v1.UpdateOptions) (result *v1beta1.VlanConfig, err error)

Update takes the representation of a vlanConfig and updates it. Returns the server's representation of the vlanConfig, and an error, if there is any.

func (*FakeVlanConfigs) Watch added in v0.3.0

Watch returns a watch.Interface that watches the requested vlanConfigs.

type FakeVlanStatuses added in v0.3.0

type FakeVlanStatuses struct {
	Fake *FakeNetworkV1beta1
}

FakeVlanStatuses implements VlanStatusInterface

func (*FakeVlanStatuses) Create added in v0.3.0

func (c *FakeVlanStatuses) Create(ctx context.Context, vlanStatus *v1beta1.VlanStatus, opts v1.CreateOptions) (result *v1beta1.VlanStatus, err error)

Create takes the representation of a vlanStatus and creates it. Returns the server's representation of the vlanStatus, and an error, if there is any.

func (*FakeVlanStatuses) Delete added in v0.3.0

func (c *FakeVlanStatuses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the vlanStatus and deletes it. Returns an error if one occurs.

func (*FakeVlanStatuses) DeleteCollection added in v0.3.0

func (c *FakeVlanStatuses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeVlanStatuses) Get added in v0.3.0

func (c *FakeVlanStatuses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.VlanStatus, err error)

Get takes name of the vlanStatus, and returns the corresponding vlanStatus object, and an error if there is any.

func (*FakeVlanStatuses) List added in v0.3.0

func (c *FakeVlanStatuses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.VlanStatusList, err error)

List takes label and field selectors, and returns the list of VlanStatuses that match those selectors.

func (*FakeVlanStatuses) Patch added in v0.3.0

func (c *FakeVlanStatuses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VlanStatus, err error)

Patch applies the patch and returns the patched vlanStatus.

func (*FakeVlanStatuses) Update added in v0.3.0

func (c *FakeVlanStatuses) Update(ctx context.Context, vlanStatus *v1beta1.VlanStatus, opts v1.UpdateOptions) (result *v1beta1.VlanStatus, err error)

Update takes the representation of a vlanStatus and updates it. Returns the server's representation of the vlanStatus, and an error, if there is any.

func (*FakeVlanStatuses) UpdateStatus added in v0.3.0

func (c *FakeVlanStatuses) UpdateStatus(ctx context.Context, vlanStatus *v1beta1.VlanStatus, opts v1.UpdateOptions) (*v1beta1.VlanStatus, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeVlanStatuses) Watch added in v0.3.0

Watch returns a watch.Interface that watches the requested vlanStatuses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL