fake

package
v3.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 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 FakeAuthorization

type FakeAuthorization struct {
	*testing.Fake
}

func (*FakeAuthorization) ClusterPolicies

func (*FakeAuthorization) ClusterPolicyBindings

func (*FakeAuthorization) ClusterRoleBindings

func (*FakeAuthorization) ClusterRoles

func (*FakeAuthorization) Policies

func (*FakeAuthorization) PolicyBindings

func (c *FakeAuthorization) PolicyBindings(namespace string) internalversion.PolicyBindingInterface

func (*FakeAuthorization) RESTClient

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

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

func (*FakeAuthorization) RoleBindings

func (c *FakeAuthorization) RoleBindings(namespace string) internalversion.RoleBindingInterface

func (*FakeAuthorization) Roles

type FakeClusterPolicies

type FakeClusterPolicies struct {
	Fake *FakeAuthorization
}

FakeClusterPolicies implements ClusterPolicyInterface

func (*FakeClusterPolicies) Create

func (c *FakeClusterPolicies) Create(clusterPolicy *authorization.ClusterPolicy) (result *authorization.ClusterPolicy, err error)

func (*FakeClusterPolicies) Delete

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

func (*FakeClusterPolicies) DeleteCollection

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

func (*FakeClusterPolicies) Get

func (c *FakeClusterPolicies) Get(name string, options v1.GetOptions) (result *authorization.ClusterPolicy, err error)

func (*FakeClusterPolicies) List

func (*FakeClusterPolicies) Patch

func (c *FakeClusterPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.ClusterPolicy, err error)

Patch applies the patch and returns the patched clusterPolicy.

func (*FakeClusterPolicies) Update

func (c *FakeClusterPolicies) Update(clusterPolicy *authorization.ClusterPolicy) (result *authorization.ClusterPolicy, err error)

func (*FakeClusterPolicies) Watch

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

type FakeClusterPolicyBindings

type FakeClusterPolicyBindings struct {
	Fake *FakeAuthorization
}

FakeClusterPolicyBindings implements ClusterPolicyBindingInterface

func (*FakeClusterPolicyBindings) Create

func (*FakeClusterPolicyBindings) Delete

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

func (*FakeClusterPolicyBindings) DeleteCollection

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

func (*FakeClusterPolicyBindings) Get

func (*FakeClusterPolicyBindings) List

func (*FakeClusterPolicyBindings) Patch

func (c *FakeClusterPolicyBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.ClusterPolicyBinding, err error)

Patch applies the patch and returns the patched clusterPolicyBinding.

func (*FakeClusterPolicyBindings) Update

func (*FakeClusterPolicyBindings) Watch

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

type FakeClusterRoleBindings

type FakeClusterRoleBindings struct {
	Fake *FakeAuthorization
}

FakeClusterRoleBindings implements ClusterRoleBindingInterface

func (*FakeClusterRoleBindings) Create

func (c *FakeClusterRoleBindings) Create(clusterRoleBinding *authorization.ClusterRoleBinding) (result *authorization.ClusterRoleBinding, err error)

func (*FakeClusterRoleBindings) Delete

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

func (*FakeClusterRoleBindings) DeleteCollection

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

func (*FakeClusterRoleBindings) Get

func (c *FakeClusterRoleBindings) Get(name string, options v1.GetOptions) (result *authorization.ClusterRoleBinding, err error)

func (*FakeClusterRoleBindings) List

func (*FakeClusterRoleBindings) Patch

func (c *FakeClusterRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.ClusterRoleBinding, err error)

Patch applies the patch and returns the patched clusterRoleBinding.

func (*FakeClusterRoleBindings) Update

func (c *FakeClusterRoleBindings) Update(clusterRoleBinding *authorization.ClusterRoleBinding) (result *authorization.ClusterRoleBinding, err error)

func (*FakeClusterRoleBindings) Watch

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

type FakeClusterRoles

type FakeClusterRoles struct {
	Fake *FakeAuthorization
}

FakeClusterRoles implements ClusterRoleInterface

func (*FakeClusterRoles) Create

func (c *FakeClusterRoles) Create(clusterRole *authorization.ClusterRole) (result *authorization.ClusterRole, err error)

func (*FakeClusterRoles) Delete

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

func (*FakeClusterRoles) DeleteCollection

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

func (*FakeClusterRoles) Get

func (c *FakeClusterRoles) Get(name string, options v1.GetOptions) (result *authorization.ClusterRole, err error)

func (*FakeClusterRoles) List

func (c *FakeClusterRoles) List(opts v1.ListOptions) (result *authorization.ClusterRoleList, err error)

func (*FakeClusterRoles) Patch

func (c *FakeClusterRoles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.ClusterRole, err error)

Patch applies the patch and returns the patched clusterRole.

func (*FakeClusterRoles) Update

func (c *FakeClusterRoles) Update(clusterRole *authorization.ClusterRole) (result *authorization.ClusterRole, err error)

func (*FakeClusterRoles) Watch

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

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

type FakePolicies

type FakePolicies struct {
	Fake *FakeAuthorization
	// contains filtered or unexported fields
}

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

func (c *FakePolicies) Create(policy *authorization.Policy) (result *authorization.Policy, err error)

func (*FakePolicies) Delete

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

func (*FakePolicies) DeleteCollection

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

func (*FakePolicies) Get

func (c *FakePolicies) Get(name string, options v1.GetOptions) (result *authorization.Policy, err error)

func (*FakePolicies) List

func (c *FakePolicies) List(opts v1.ListOptions) (result *authorization.PolicyList, err error)

func (*FakePolicies) Patch

func (c *FakePolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.Policy, err error)

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

func (c *FakePolicies) Update(policy *authorization.Policy) (result *authorization.Policy, err error)

func (*FakePolicies) Watch

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

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

type FakePolicyBindings

type FakePolicyBindings struct {
	Fake *FakeAuthorization
	// contains filtered or unexported fields
}

FakePolicyBindings implements PolicyBindingInterface

func (*FakePolicyBindings) Create

func (c *FakePolicyBindings) Create(policyBinding *authorization.PolicyBinding) (result *authorization.PolicyBinding, err error)

func (*FakePolicyBindings) Delete

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

func (*FakePolicyBindings) DeleteCollection

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

func (*FakePolicyBindings) Get

func (c *FakePolicyBindings) Get(name string, options v1.GetOptions) (result *authorization.PolicyBinding, err error)

func (*FakePolicyBindings) List

func (*FakePolicyBindings) Patch

func (c *FakePolicyBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.PolicyBinding, err error)

Patch applies the patch and returns the patched policyBinding.

func (*FakePolicyBindings) Update

func (c *FakePolicyBindings) Update(policyBinding *authorization.PolicyBinding) (result *authorization.PolicyBinding, err error)

func (*FakePolicyBindings) Watch

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

type FakeRoleBindings

type FakeRoleBindings struct {
	Fake *FakeAuthorization
	// contains filtered or unexported fields
}

FakeRoleBindings implements RoleBindingInterface

func (*FakeRoleBindings) Create

func (c *FakeRoleBindings) Create(roleBinding *authorization.RoleBinding) (result *authorization.RoleBinding, err error)

func (*FakeRoleBindings) Delete

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

func (*FakeRoleBindings) DeleteCollection

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

func (*FakeRoleBindings) Get

func (c *FakeRoleBindings) Get(name string, options v1.GetOptions) (result *authorization.RoleBinding, err error)

func (*FakeRoleBindings) List

func (c *FakeRoleBindings) List(opts v1.ListOptions) (result *authorization.RoleBindingList, err error)

func (*FakeRoleBindings) Patch

func (c *FakeRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.RoleBinding, err error)

Patch applies the patch and returns the patched roleBinding.

func (*FakeRoleBindings) Update

func (c *FakeRoleBindings) Update(roleBinding *authorization.RoleBinding) (result *authorization.RoleBinding, err error)

func (*FakeRoleBindings) Watch

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

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

type FakeRoles

type FakeRoles struct {
	Fake *FakeAuthorization
	// contains filtered or unexported fields
}

FakeRoles implements RoleInterface

func (*FakeRoles) Create

func (c *FakeRoles) Create(role *authorization.Role) (result *authorization.Role, err error)

func (*FakeRoles) Delete

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

func (*FakeRoles) DeleteCollection

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

func (*FakeRoles) Get

func (c *FakeRoles) Get(name string, options v1.GetOptions) (result *authorization.Role, err error)

func (*FakeRoles) List

func (c *FakeRoles) List(opts v1.ListOptions) (result *authorization.RoleList, err error)

func (*FakeRoles) Patch

func (c *FakeRoles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.Role, err error)

Patch applies the patch and returns the patched role.

func (*FakeRoles) Update

func (c *FakeRoles) Update(role *authorization.Role) (result *authorization.Role, err error)

func (*FakeRoles) Watch

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

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

Jump to

Keyboard shortcuts

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