package fake

import "k8s.io/client-go/kubernetes/typed/networking/v1alpha1/fake"

Package fake has the automatically generated clients.

Index

Types

type FakeClusterCIDRs

type FakeClusterCIDRs struct {
	Fake *FakeNetworkingV1alpha1
}

FakeClusterCIDRs implements ClusterCIDRInterface

func (*FakeClusterCIDRs) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied clusterCIDR.

func (*FakeClusterCIDRs) Create

func (c *FakeClusterCIDRs) Create(ctx context.Context, clusterCIDR *v1alpha1.ClusterCIDR, opts v1.CreateOptions) (result *v1alpha1.ClusterCIDR, err error)

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

func (*FakeClusterCIDRs) Delete

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

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

func (*FakeClusterCIDRs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterCIDRs) Get

func (c *FakeClusterCIDRs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterCIDR, err error)

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

func (*FakeClusterCIDRs) List

func (c *FakeClusterCIDRs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterCIDRList, err error)

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

func (*FakeClusterCIDRs) Patch

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

Patch applies the patch and returns the patched clusterCIDR.

func (*FakeClusterCIDRs) Update

func (c *FakeClusterCIDRs) Update(ctx context.Context, clusterCIDR *v1alpha1.ClusterCIDR, opts v1.UpdateOptions) (result *v1alpha1.ClusterCIDR, err error)

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

func (*FakeClusterCIDRs) Watch

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

type FakeIPAddresses

type FakeIPAddresses struct {
	Fake *FakeNetworkingV1alpha1
}

FakeIPAddresses implements IPAddressInterface

func (*FakeIPAddresses) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied iPAddress.

func (*FakeIPAddresses) Create

func (c *FakeIPAddresses) Create(ctx context.Context, iPAddress *v1alpha1.IPAddress, opts v1.CreateOptions) (result *v1alpha1.IPAddress, err error)

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

func (*FakeIPAddresses) Delete

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

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

func (*FakeIPAddresses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPAddresses) Get

func (c *FakeIPAddresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IPAddress, err error)

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

func (*FakeIPAddresses) List

func (c *FakeIPAddresses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPAddressList, err error)

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

func (*FakeIPAddresses) Patch

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

Patch applies the patch and returns the patched iPAddress.

func (*FakeIPAddresses) Update

func (c *FakeIPAddresses) Update(ctx context.Context, iPAddress *v1alpha1.IPAddress, opts v1.UpdateOptions) (result *v1alpha1.IPAddress, err error)

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

func (*FakeIPAddresses) Watch

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

type FakeNetworkingV1alpha1

type FakeNetworkingV1alpha1 struct {
	*testing.Fake
}

func (*FakeNetworkingV1alpha1) ClusterCIDRs

func (*FakeNetworkingV1alpha1) IPAddresses

func (*FakeNetworkingV1alpha1) RESTClient

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

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

Source Files

doc.go fake_clustercidr.go fake_ipaddress.go fake_networking_client.go

Version
v0.27.13
Published
Apr 16, 2024
Platform
linux/amd64
Imports
12 packages
Last checked
13 minutes ago

Tools for package owners.