fake

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 11 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 FakeAddressGroups

type FakeAddressGroups struct {
	Fake *FakeControlplaneV1beta2
}

FakeAddressGroups implements AddressGroupInterface

func (*FakeAddressGroups) Get

func (c *FakeAddressGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.AddressGroup, err error)

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

func (*FakeAddressGroups) List

func (c *FakeAddressGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.AddressGroupList, err error)

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

func (*FakeAddressGroups) Watch

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

type FakeAppliedToGroups

type FakeAppliedToGroups struct {
	Fake *FakeControlplaneV1beta2
}

FakeAppliedToGroups implements AppliedToGroupInterface

func (*FakeAppliedToGroups) Get

func (c *FakeAppliedToGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.AppliedToGroup, err error)

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

func (*FakeAppliedToGroups) List

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

func (*FakeAppliedToGroups) Watch

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

type FakeClusterGroupMembers

type FakeClusterGroupMembers struct {
	Fake *FakeControlplaneV1beta2
}

FakeClusterGroupMembers implements ClusterGroupMembersInterface

func (*FakeClusterGroupMembers) Get

func (c *FakeClusterGroupMembers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.ClusterGroupMembers, err error)

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

func (*FakeClusterGroupMembers) PaginatedGet added in v1.14.0

func (c *FakeClusterGroupMembers) PaginatedGet(ctx context.Context, name string, pagination v1beta2.PaginationGetOptions, options v1.GetOptions) (result *v1beta2.ClusterGroupMembers, err error)

type FakeControlplaneV1beta2

type FakeControlplaneV1beta2 struct {
	*testing.Fake
}

func (*FakeControlplaneV1beta2) AddressGroups

func (*FakeControlplaneV1beta2) AppliedToGroups

func (*FakeControlplaneV1beta2) ClusterGroupMembers

func (*FakeControlplaneV1beta2) EgressGroups

func (*FakeControlplaneV1beta2) GroupAssociations

func (c *FakeControlplaneV1beta2) GroupAssociations(namespace string) v1beta2.GroupAssociationInterface

func (*FakeControlplaneV1beta2) GroupMembers added in v1.14.0

func (c *FakeControlplaneV1beta2) GroupMembers(namespace string) v1beta2.GroupMembersInterface

func (*FakeControlplaneV1beta2) IPGroupAssociations added in v1.12.0

func (*FakeControlplaneV1beta2) NetworkPolicies

func (*FakeControlplaneV1beta2) NodeStatsSummaries

func (*FakeControlplaneV1beta2) RESTClient

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

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

func (*FakeControlplaneV1beta2) SupportBundleCollections added in v1.10.0

type FakeEgressGroups

type FakeEgressGroups struct {
	Fake *FakeControlplaneV1beta2
}

FakeEgressGroups implements EgressGroupInterface

func (*FakeEgressGroups) Get

func (c *FakeEgressGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.EgressGroup, err error)

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

func (*FakeEgressGroups) List

func (c *FakeEgressGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.EgressGroupList, err error)

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

func (*FakeEgressGroups) Watch

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

type FakeGroupAssociations

type FakeGroupAssociations struct {
	Fake *FakeControlplaneV1beta2
	// contains filtered or unexported fields
}

FakeGroupAssociations implements GroupAssociationInterface

func (*FakeGroupAssociations) Get

func (c *FakeGroupAssociations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.GroupAssociation, err error)

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

type FakeGroupMembers added in v1.14.0

type FakeGroupMembers struct {
	Fake *FakeControlplaneV1beta2
	// contains filtered or unexported fields
}

FakeGroupMembers implements GroupMembersInterface

func (*FakeGroupMembers) Get added in v1.14.0

func (c *FakeGroupMembers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.GroupMembers, err error)

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

func (*FakeGroupMembers) PaginatedGet added in v1.14.0

func (c *FakeGroupMembers) PaginatedGet(ctx context.Context, name string, pagination v1beta2.PaginationGetOptions, options v1.GetOptions) (result *v1beta2.GroupMembers, err error)

type FakeIPGroupAssociations added in v1.12.0

type FakeIPGroupAssociations struct {
	Fake *FakeControlplaneV1beta2
}

FakeIPGroupAssociations implements IPGroupAssociationInterface

func (*FakeIPGroupAssociations) Get added in v1.12.0

func (c *FakeIPGroupAssociations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.IPGroupAssociation, err error)

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

type FakeNetworkPolicies

type FakeNetworkPolicies struct {
	Fake *FakeControlplaneV1beta2
}

FakeNetworkPolicies implements NetworkPolicyInterface

func (*FakeNetworkPolicies) Get

func (c *FakeNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.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

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

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

func (*FakeNetworkPolicies) UpdateStatus

func (c *FakeNetworkPolicies) UpdateStatus(ctx context.Context, name string, status *v1beta2.NetworkPolicyStatus) error

func (*FakeNetworkPolicies) Watch

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

type FakeNodeStatsSummaries

type FakeNodeStatsSummaries struct {
	Fake *FakeControlplaneV1beta2
}

FakeNodeStatsSummaries implements NodeStatsSummaryInterface

func (*FakeNodeStatsSummaries) Create

func (c *FakeNodeStatsSummaries) Create(ctx context.Context, nodeStatsSummary *v1beta2.NodeStatsSummary, opts v1.CreateOptions) (result *v1beta2.NodeStatsSummary, err error)

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

type FakeSupportBundleCollections added in v1.10.0

type FakeSupportBundleCollections struct {
	Fake *FakeControlplaneV1beta2
}

FakeSupportBundleCollections implements SupportBundleCollectionInterface

func (*FakeSupportBundleCollections) Get added in v1.10.0

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

func (*FakeSupportBundleCollections) List added in v1.10.0

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

func (*FakeSupportBundleCollections) UpdateStatus added in v1.10.0

func (*FakeSupportBundleCollections) Watch added in v1.10.0

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

Jump to

Keyboard shortcuts

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