fake

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 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 *FakeControlplaneV1beta1
}

FakeAddressGroups implements AddressGroupInterface

func (*FakeAddressGroups) Get

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

FakeAppliedToGroups implements AppliedToGroupInterface

func (*FakeAppliedToGroups) Get

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

type FakeControlplaneV1beta1 struct {
	*testing.Fake
}

func (*FakeControlplaneV1beta1) AddressGroups

func (*FakeControlplaneV1beta1) AppliedToGroups

func (*FakeControlplaneV1beta1) NetworkPolicies

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

func (*FakeControlplaneV1beta1) NodeStatsSummaries

func (*FakeControlplaneV1beta1) RESTClient

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

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

type FakeNetworkPolicies

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

FakeNetworkPolicies implements NetworkPolicyInterface

func (*FakeNetworkPolicies) Get

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

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

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

type FakeNodeStatsSummaries

type FakeNodeStatsSummaries struct {
	Fake *FakeControlplaneV1beta1
}

FakeNodeStatsSummaries implements NodeStatsSummaryInterface

func (*FakeNodeStatsSummaries) Create

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