fake

package
Version: v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 9 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.

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) 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.

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 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.

Jump to

Keyboard shortcuts

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