fake

package
v0.0.0-...-f0ef8f0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT 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 FakeAssignmentsV1alpha1

type FakeAssignmentsV1alpha1 struct {
	*testing.Fake
}

func (*FakeAssignmentsV1alpha1) ClusterPodAssignmentRules

func (*FakeAssignmentsV1alpha1) NodeAssignmentGroups

func (*FakeAssignmentsV1alpha1) PodAssignmentRules

func (c *FakeAssignmentsV1alpha1) PodAssignmentRules(namespace string) v1alpha1.PodAssignmentRuleInterface

func (*FakeAssignmentsV1alpha1) RESTClient

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

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

type FakeClusterPodAssignmentRules

type FakeClusterPodAssignmentRules struct {
	Fake *FakeAssignmentsV1alpha1
}

FakeClusterPodAssignmentRules implements ClusterPodAssignmentRuleInterface

func (*FakeClusterPodAssignmentRules) Create

func (c *FakeClusterPodAssignmentRules) Create(clusterPodAssignmentRule *v1alpha1.ClusterPodAssignmentRule) (result *v1alpha1.ClusterPodAssignmentRule, err error)

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

func (*FakeClusterPodAssignmentRules) Delete

func (c *FakeClusterPodAssignmentRules) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeClusterPodAssignmentRules) DeleteCollection

func (c *FakeClusterPodAssignmentRules) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterPodAssignmentRules) Get

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

func (*FakeClusterPodAssignmentRules) List

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

func (*FakeClusterPodAssignmentRules) Patch

func (c *FakeClusterPodAssignmentRules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterPodAssignmentRule, err error)

Patch applies the patch and returns the patched clusterPodAssignmentRule.

func (*FakeClusterPodAssignmentRules) Update

func (c *FakeClusterPodAssignmentRules) Update(clusterPodAssignmentRule *v1alpha1.ClusterPodAssignmentRule) (result *v1alpha1.ClusterPodAssignmentRule, err error)

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

func (*FakeClusterPodAssignmentRules) Watch

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

type FakeNodeAssignmentGroups

type FakeNodeAssignmentGroups struct {
	Fake *FakeAssignmentsV1alpha1
}

FakeNodeAssignmentGroups implements NodeAssignmentGroupInterface

func (*FakeNodeAssignmentGroups) Create

func (c *FakeNodeAssignmentGroups) Create(nodeAssignmentGroup *v1alpha1.NodeAssignmentGroup) (result *v1alpha1.NodeAssignmentGroup, err error)

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

func (*FakeNodeAssignmentGroups) Delete

func (c *FakeNodeAssignmentGroups) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeNodeAssignmentGroups) DeleteCollection

func (c *FakeNodeAssignmentGroups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeNodeAssignmentGroups) Get

func (c *FakeNodeAssignmentGroups) Get(name string, options v1.GetOptions) (result *v1alpha1.NodeAssignmentGroup, err error)

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

func (*FakeNodeAssignmentGroups) List

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

func (*FakeNodeAssignmentGroups) Patch

func (c *FakeNodeAssignmentGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.NodeAssignmentGroup, err error)

Patch applies the patch and returns the patched nodeAssignmentGroup.

func (*FakeNodeAssignmentGroups) Update

func (c *FakeNodeAssignmentGroups) Update(nodeAssignmentGroup *v1alpha1.NodeAssignmentGroup) (result *v1alpha1.NodeAssignmentGroup, err error)

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

func (*FakeNodeAssignmentGroups) UpdateStatus

func (c *FakeNodeAssignmentGroups) UpdateStatus(nodeAssignmentGroup *v1alpha1.NodeAssignmentGroup) (*v1alpha1.NodeAssignmentGroup, error)

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

func (*FakeNodeAssignmentGroups) Watch

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

type FakePodAssignmentRules

type FakePodAssignmentRules struct {
	Fake *FakeAssignmentsV1alpha1
	// contains filtered or unexported fields
}

FakePodAssignmentRules implements PodAssignmentRuleInterface

func (*FakePodAssignmentRules) Create

func (c *FakePodAssignmentRules) Create(podAssignmentRule *v1alpha1.PodAssignmentRule) (result *v1alpha1.PodAssignmentRule, err error)

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

func (*FakePodAssignmentRules) Delete

func (c *FakePodAssignmentRules) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakePodAssignmentRules) DeleteCollection

func (c *FakePodAssignmentRules) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePodAssignmentRules) Get

func (c *FakePodAssignmentRules) Get(name string, options v1.GetOptions) (result *v1alpha1.PodAssignmentRule, err error)

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

func (*FakePodAssignmentRules) List

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

func (*FakePodAssignmentRules) Patch

func (c *FakePodAssignmentRules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodAssignmentRule, err error)

Patch applies the patch and returns the patched podAssignmentRule.

func (*FakePodAssignmentRules) Update

func (c *FakePodAssignmentRules) Update(podAssignmentRule *v1alpha1.PodAssignmentRule) (result *v1alpha1.PodAssignmentRule, err error)

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

func (*FakePodAssignmentRules) Watch

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

Jump to

Keyboard shortcuts

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