fake

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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 FakeAntreaAgentInfos

type FakeAntreaAgentInfos struct {
	Fake *FakeCrdV1beta1
}

FakeAntreaAgentInfos implements AntreaAgentInfoInterface

func (*FakeAntreaAgentInfos) Create

func (c *FakeAntreaAgentInfos) Create(ctx context.Context, antreaAgentInfo *v1beta1.AntreaAgentInfo, opts v1.CreateOptions) (result *v1beta1.AntreaAgentInfo, err error)

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

func (*FakeAntreaAgentInfos) Delete

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

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

func (*FakeAntreaAgentInfos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAntreaAgentInfos) Get

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

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

func (*FakeAntreaAgentInfos) List

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

func (*FakeAntreaAgentInfos) Patch

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

Patch applies the patch and returns the patched antreaAgentInfo.

func (*FakeAntreaAgentInfos) Update

func (c *FakeAntreaAgentInfos) Update(ctx context.Context, antreaAgentInfo *v1beta1.AntreaAgentInfo, opts v1.UpdateOptions) (result *v1beta1.AntreaAgentInfo, err error)

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

func (*FakeAntreaAgentInfos) Watch

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

type FakeAntreaControllerInfos

type FakeAntreaControllerInfos struct {
	Fake *FakeCrdV1beta1
}

FakeAntreaControllerInfos implements AntreaControllerInfoInterface

func (*FakeAntreaControllerInfos) Create

func (c *FakeAntreaControllerInfos) Create(ctx context.Context, antreaControllerInfo *v1beta1.AntreaControllerInfo, opts v1.CreateOptions) (result *v1beta1.AntreaControllerInfo, err error)

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

func (*FakeAntreaControllerInfos) Delete

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

func (*FakeAntreaControllerInfos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAntreaControllerInfos) Get

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

func (*FakeAntreaControllerInfos) List

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

func (*FakeAntreaControllerInfos) Patch

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

Patch applies the patch and returns the patched antreaControllerInfo.

func (*FakeAntreaControllerInfos) Update

func (c *FakeAntreaControllerInfos) Update(ctx context.Context, antreaControllerInfo *v1beta1.AntreaControllerInfo, opts v1.UpdateOptions) (result *v1beta1.AntreaControllerInfo, err error)

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

func (*FakeAntreaControllerInfos) Watch

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

type FakeClusterGroups added in v1.13.0

type FakeClusterGroups struct {
	Fake *FakeCrdV1beta1
}

FakeClusterGroups implements ClusterGroupInterface

func (*FakeClusterGroups) Create added in v1.13.0

func (c *FakeClusterGroups) Create(ctx context.Context, clusterGroup *v1beta1.ClusterGroup, opts v1.CreateOptions) (result *v1beta1.ClusterGroup, err error)

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

func (*FakeClusterGroups) Delete added in v1.13.0

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

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

func (*FakeClusterGroups) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterGroups) Get added in v1.13.0

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

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

func (*FakeClusterGroups) List added in v1.13.0

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

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

func (*FakeClusterGroups) Patch added in v1.13.0

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

Patch applies the patch and returns the patched clusterGroup.

func (*FakeClusterGroups) Update added in v1.13.0

func (c *FakeClusterGroups) Update(ctx context.Context, clusterGroup *v1beta1.ClusterGroup, opts v1.UpdateOptions) (result *v1beta1.ClusterGroup, err error)

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

func (*FakeClusterGroups) UpdateStatus added in v1.13.0

func (c *FakeClusterGroups) UpdateStatus(ctx context.Context, clusterGroup *v1beta1.ClusterGroup, opts v1.UpdateOptions) (*v1beta1.ClusterGroup, error)

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

func (*FakeClusterGroups) Watch added in v1.13.0

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

type FakeClusterNetworkPolicies added in v1.13.0

type FakeClusterNetworkPolicies struct {
	Fake *FakeCrdV1beta1
}

FakeClusterNetworkPolicies implements ClusterNetworkPolicyInterface

func (*FakeClusterNetworkPolicies) Create added in v1.13.0

func (c *FakeClusterNetworkPolicies) Create(ctx context.Context, clusterNetworkPolicy *v1beta1.ClusterNetworkPolicy, opts v1.CreateOptions) (result *v1beta1.ClusterNetworkPolicy, err error)

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

func (*FakeClusterNetworkPolicies) Delete added in v1.13.0

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

func (*FakeClusterNetworkPolicies) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterNetworkPolicies) Get added in v1.13.0

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

func (*FakeClusterNetworkPolicies) List added in v1.13.0

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

func (*FakeClusterNetworkPolicies) Patch added in v1.13.0

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

Patch applies the patch and returns the patched clusterNetworkPolicy.

func (*FakeClusterNetworkPolicies) Update added in v1.13.0

func (c *FakeClusterNetworkPolicies) Update(ctx context.Context, clusterNetworkPolicy *v1beta1.ClusterNetworkPolicy, opts v1.UpdateOptions) (result *v1beta1.ClusterNetworkPolicy, err error)

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

func (*FakeClusterNetworkPolicies) UpdateStatus added in v1.13.0

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

func (*FakeClusterNetworkPolicies) Watch added in v1.13.0

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

type FakeCrdV1beta1

type FakeCrdV1beta1 struct {
	*testing.Fake
}

func (*FakeCrdV1beta1) AntreaAgentInfos

func (c *FakeCrdV1beta1) AntreaAgentInfos() v1beta1.AntreaAgentInfoInterface

func (*FakeCrdV1beta1) AntreaControllerInfos

func (c *FakeCrdV1beta1) AntreaControllerInfos() v1beta1.AntreaControllerInfoInterface

func (*FakeCrdV1beta1) ClusterGroups added in v1.13.0

func (c *FakeCrdV1beta1) ClusterGroups() v1beta1.ClusterGroupInterface

func (*FakeCrdV1beta1) ClusterNetworkPolicies added in v1.13.0

func (c *FakeCrdV1beta1) ClusterNetworkPolicies() v1beta1.ClusterNetworkPolicyInterface

func (*FakeCrdV1beta1) Egresses added in v1.13.0

func (c *FakeCrdV1beta1) Egresses() v1beta1.EgressInterface

func (*FakeCrdV1beta1) ExternalIPPools added in v1.13.0

func (c *FakeCrdV1beta1) ExternalIPPools() v1beta1.ExternalIPPoolInterface

func (*FakeCrdV1beta1) Groups added in v1.13.0

func (c *FakeCrdV1beta1) Groups(namespace string) v1beta1.GroupInterface

func (*FakeCrdV1beta1) NetworkPolicies added in v1.13.0

func (c *FakeCrdV1beta1) NetworkPolicies(namespace string) v1beta1.NetworkPolicyInterface

func (*FakeCrdV1beta1) RESTClient

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

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

func (*FakeCrdV1beta1) Tiers added in v1.13.0

func (*FakeCrdV1beta1) Traceflows added in v1.13.0

func (c *FakeCrdV1beta1) Traceflows() v1beta1.TraceflowInterface

type FakeEgresses added in v1.13.0

type FakeEgresses struct {
	Fake *FakeCrdV1beta1
}

FakeEgresses implements EgressInterface

func (*FakeEgresses) Create added in v1.13.0

func (c *FakeEgresses) Create(ctx context.Context, egress *v1beta1.Egress, opts v1.CreateOptions) (result *v1beta1.Egress, err error)

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

func (*FakeEgresses) Delete added in v1.13.0

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

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

func (*FakeEgresses) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeEgresses) Get added in v1.13.0

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

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

func (*FakeEgresses) List added in v1.13.0

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

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

func (*FakeEgresses) Patch added in v1.13.0

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

Patch applies the patch and returns the patched egress.

func (*FakeEgresses) Update added in v1.13.0

func (c *FakeEgresses) Update(ctx context.Context, egress *v1beta1.Egress, opts v1.UpdateOptions) (result *v1beta1.Egress, err error)

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

func (*FakeEgresses) UpdateStatus added in v1.13.0

func (c *FakeEgresses) UpdateStatus(ctx context.Context, egress *v1beta1.Egress, opts v1.UpdateOptions) (*v1beta1.Egress, error)

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

func (*FakeEgresses) Watch added in v1.13.0

func (c *FakeEgresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeExternalIPPools added in v1.13.0

type FakeExternalIPPools struct {
	Fake *FakeCrdV1beta1
}

FakeExternalIPPools implements ExternalIPPoolInterface

func (*FakeExternalIPPools) Create added in v1.13.0

func (c *FakeExternalIPPools) Create(ctx context.Context, externalIPPool *v1beta1.ExternalIPPool, opts v1.CreateOptions) (result *v1beta1.ExternalIPPool, err error)

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

func (*FakeExternalIPPools) Delete added in v1.13.0

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

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

func (*FakeExternalIPPools) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeExternalIPPools) Get added in v1.13.0

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

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

func (*FakeExternalIPPools) List added in v1.13.0

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

func (*FakeExternalIPPools) Patch added in v1.13.0

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

Patch applies the patch and returns the patched externalIPPool.

func (*FakeExternalIPPools) Update added in v1.13.0

func (c *FakeExternalIPPools) Update(ctx context.Context, externalIPPool *v1beta1.ExternalIPPool, opts v1.UpdateOptions) (result *v1beta1.ExternalIPPool, err error)

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

func (*FakeExternalIPPools) UpdateStatus added in v1.13.0

func (c *FakeExternalIPPools) UpdateStatus(ctx context.Context, externalIPPool *v1beta1.ExternalIPPool, opts v1.UpdateOptions) (*v1beta1.ExternalIPPool, error)

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

func (*FakeExternalIPPools) Watch added in v1.13.0

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

type FakeGroups added in v1.13.0

type FakeGroups struct {
	Fake *FakeCrdV1beta1
	// contains filtered or unexported fields
}

FakeGroups implements GroupInterface

func (*FakeGroups) Create added in v1.13.0

func (c *FakeGroups) Create(ctx context.Context, group *v1beta1.Group, opts v1.CreateOptions) (result *v1beta1.Group, err error)

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

func (*FakeGroups) Delete added in v1.13.0

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

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

func (*FakeGroups) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeGroups) Get added in v1.13.0

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

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

func (*FakeGroups) List added in v1.13.0

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

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

func (*FakeGroups) Patch added in v1.13.0

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

Patch applies the patch and returns the patched group.

func (*FakeGroups) Update added in v1.13.0

func (c *FakeGroups) Update(ctx context.Context, group *v1beta1.Group, opts v1.UpdateOptions) (result *v1beta1.Group, err error)

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

func (*FakeGroups) UpdateStatus added in v1.13.0

func (c *FakeGroups) UpdateStatus(ctx context.Context, group *v1beta1.Group, opts v1.UpdateOptions) (*v1beta1.Group, error)

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

func (*FakeGroups) Watch added in v1.13.0

func (c *FakeGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeNetworkPolicies added in v1.13.0

type FakeNetworkPolicies struct {
	Fake *FakeCrdV1beta1
	// contains filtered or unexported fields
}

FakeNetworkPolicies implements NetworkPolicyInterface

func (*FakeNetworkPolicies) Create added in v1.13.0

func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *v1beta1.NetworkPolicy, opts v1.CreateOptions) (result *v1beta1.NetworkPolicy, err error)

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

func (*FakeNetworkPolicies) Delete added in v1.13.0

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

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

func (*FakeNetworkPolicies) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeNetworkPolicies) Get added in v1.13.0

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

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

func (*FakeNetworkPolicies) List added in v1.13.0

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

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

func (*FakeNetworkPolicies) Patch added in v1.13.0

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

Patch applies the patch and returns the patched networkPolicy.

func (*FakeNetworkPolicies) Update added in v1.13.0

func (c *FakeNetworkPolicies) Update(ctx context.Context, networkPolicy *v1beta1.NetworkPolicy, opts v1.UpdateOptions) (result *v1beta1.NetworkPolicy, err error)

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

func (*FakeNetworkPolicies) UpdateStatus added in v1.13.0

func (c *FakeNetworkPolicies) UpdateStatus(ctx context.Context, networkPolicy *v1beta1.NetworkPolicy, opts v1.UpdateOptions) (*v1beta1.NetworkPolicy, error)

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

func (*FakeNetworkPolicies) Watch added in v1.13.0

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

type FakeTiers added in v1.13.0

type FakeTiers struct {
	Fake *FakeCrdV1beta1
}

FakeTiers implements TierInterface

func (*FakeTiers) Create added in v1.13.0

func (c *FakeTiers) Create(ctx context.Context, tier *v1beta1.Tier, opts v1.CreateOptions) (result *v1beta1.Tier, err error)

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

func (*FakeTiers) Delete added in v1.13.0

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

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

func (*FakeTiers) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeTiers) Get added in v1.13.0

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

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

func (*FakeTiers) List added in v1.13.0

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

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

func (*FakeTiers) Patch added in v1.13.0

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

Patch applies the patch and returns the patched tier.

func (*FakeTiers) Update added in v1.13.0

func (c *FakeTiers) Update(ctx context.Context, tier *v1beta1.Tier, opts v1.UpdateOptions) (result *v1beta1.Tier, err error)

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

func (*FakeTiers) Watch added in v1.13.0

func (c *FakeTiers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeTraceflows added in v1.13.0

type FakeTraceflows struct {
	Fake *FakeCrdV1beta1
}

FakeTraceflows implements TraceflowInterface

func (*FakeTraceflows) Create added in v1.13.0

func (c *FakeTraceflows) Create(ctx context.Context, traceflow *v1beta1.Traceflow, opts v1.CreateOptions) (result *v1beta1.Traceflow, err error)

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

func (*FakeTraceflows) Delete added in v1.13.0

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

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

func (*FakeTraceflows) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeTraceflows) Get added in v1.13.0

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

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

func (*FakeTraceflows) List added in v1.13.0

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

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

func (*FakeTraceflows) Patch added in v1.13.0

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

Patch applies the patch and returns the patched traceflow.

func (*FakeTraceflows) Update added in v1.13.0

func (c *FakeTraceflows) Update(ctx context.Context, traceflow *v1beta1.Traceflow, opts v1.UpdateOptions) (result *v1beta1.Traceflow, err error)

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

func (*FakeTraceflows) UpdateStatus added in v1.13.0

func (c *FakeTraceflows) UpdateStatus(ctx context.Context, traceflow *v1beta1.Traceflow, opts v1.UpdateOptions) (*v1beta1.Traceflow, error)

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

func (*FakeTraceflows) Watch added in v1.13.0

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

Jump to

Keyboard shortcuts

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