fake

package
v0.0.0-...-9695cce Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 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 FakeRbacConfigs

type FakeRbacConfigs struct {
	Fake *FakeRbacV1alpha1
	// contains filtered or unexported fields
}

FakeRbacConfigs implements RbacConfigInterface

func (*FakeRbacConfigs) Create

func (c *FakeRbacConfigs) Create(rbacConfig *v1alpha1.RbacConfig) (result *v1alpha1.RbacConfig, err error)

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

func (*FakeRbacConfigs) Delete

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

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

func (*FakeRbacConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRbacConfigs) Get

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

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

func (*FakeRbacConfigs) List

func (c *FakeRbacConfigs) List(opts v1.ListOptions) (result *v1alpha1.RbacConfigList, err error)

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

func (*FakeRbacConfigs) Patch

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

Patch applies the patch and returns the patched rbacConfig.

func (*FakeRbacConfigs) Update

func (c *FakeRbacConfigs) Update(rbacConfig *v1alpha1.RbacConfig) (result *v1alpha1.RbacConfig, err error)

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

func (*FakeRbacConfigs) Watch

func (c *FakeRbacConfigs) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeRbacV1alpha1

type FakeRbacV1alpha1 struct {
	*testing.Fake
}

func (*FakeRbacV1alpha1) RESTClient

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

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

func (*FakeRbacV1alpha1) RbacConfigs

func (c *FakeRbacV1alpha1) RbacConfigs(namespace string) v1alpha1.RbacConfigInterface

func (*FakeRbacV1alpha1) ServiceRoleBindings

func (c *FakeRbacV1alpha1) ServiceRoleBindings(namespace string) v1alpha1.ServiceRoleBindingInterface

func (*FakeRbacV1alpha1) ServiceRoles

func (c *FakeRbacV1alpha1) ServiceRoles(namespace string) v1alpha1.ServiceRoleInterface

type FakeServiceRoleBindings

type FakeServiceRoleBindings struct {
	Fake *FakeRbacV1alpha1
	// contains filtered or unexported fields
}

FakeServiceRoleBindings implements ServiceRoleBindingInterface

func (*FakeServiceRoleBindings) Create

func (c *FakeServiceRoleBindings) Create(serviceRoleBinding *v1alpha1.ServiceRoleBinding) (result *v1alpha1.ServiceRoleBinding, err error)

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

func (*FakeServiceRoleBindings) Delete

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

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

func (*FakeServiceRoleBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceRoleBindings) Get

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

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

func (*FakeServiceRoleBindings) List

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

func (*FakeServiceRoleBindings) Patch

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

Patch applies the patch and returns the patched serviceRoleBinding.

func (*FakeServiceRoleBindings) Update

func (c *FakeServiceRoleBindings) Update(serviceRoleBinding *v1alpha1.ServiceRoleBinding) (result *v1alpha1.ServiceRoleBinding, err error)

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

func (*FakeServiceRoleBindings) Watch

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

type FakeServiceRoles

type FakeServiceRoles struct {
	Fake *FakeRbacV1alpha1
	// contains filtered or unexported fields
}

FakeServiceRoles implements ServiceRoleInterface

func (*FakeServiceRoles) Create

func (c *FakeServiceRoles) Create(serviceRole *v1alpha1.ServiceRole) (result *v1alpha1.ServiceRole, err error)

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

func (*FakeServiceRoles) Delete

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

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

func (*FakeServiceRoles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceRoles) Get

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

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

func (*FakeServiceRoles) List

func (c *FakeServiceRoles) List(opts v1.ListOptions) (result *v1alpha1.ServiceRoleList, err error)

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

func (*FakeServiceRoles) Patch

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

Patch applies the patch and returns the patched serviceRole.

func (*FakeServiceRoles) Update

func (c *FakeServiceRoles) Update(serviceRole *v1alpha1.ServiceRole) (result *v1alpha1.ServiceRole, err error)

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

func (*FakeServiceRoles) Watch

func (c *FakeServiceRoles) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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