fake

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 10 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 FakeIAMAuditConfigs

type FakeIAMAuditConfigs struct {
	Fake *FakeIamV1beta1
	// contains filtered or unexported fields
}

FakeIAMAuditConfigs implements IAMAuditConfigInterface

func (*FakeIAMAuditConfigs) Create

func (c *FakeIAMAuditConfigs) Create(ctx context.Context, iAMAuditConfig *v1beta1.IAMAuditConfig, opts v1.CreateOptions) (result *v1beta1.IAMAuditConfig, err error)

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

func (*FakeIAMAuditConfigs) Delete

func (c *FakeIAMAuditConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeIAMAuditConfigs) DeleteCollection

func (c *FakeIAMAuditConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIAMAuditConfigs) Get

func (c *FakeIAMAuditConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.IAMAuditConfig, err error)

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

func (*FakeIAMAuditConfigs) List

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

func (*FakeIAMAuditConfigs) Patch

func (c *FakeIAMAuditConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.IAMAuditConfig, err error)

Patch applies the patch and returns the patched iAMAuditConfig.

func (*FakeIAMAuditConfigs) Update

func (c *FakeIAMAuditConfigs) Update(ctx context.Context, iAMAuditConfig *v1beta1.IAMAuditConfig, opts v1.UpdateOptions) (result *v1beta1.IAMAuditConfig, err error)

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

func (*FakeIAMAuditConfigs) UpdateStatus

func (c *FakeIAMAuditConfigs) UpdateStatus(ctx context.Context, iAMAuditConfig *v1beta1.IAMAuditConfig, opts v1.UpdateOptions) (*v1beta1.IAMAuditConfig, error)

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

func (*FakeIAMAuditConfigs) Watch

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

type FakeIAMCustomRoles

type FakeIAMCustomRoles struct {
	Fake *FakeIamV1beta1
	// contains filtered or unexported fields
}

FakeIAMCustomRoles implements IAMCustomRoleInterface

func (*FakeIAMCustomRoles) Create

func (c *FakeIAMCustomRoles) Create(ctx context.Context, iAMCustomRole *v1beta1.IAMCustomRole, opts v1.CreateOptions) (result *v1beta1.IAMCustomRole, err error)

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

func (*FakeIAMCustomRoles) Delete

func (c *FakeIAMCustomRoles) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeIAMCustomRoles) DeleteCollection

func (c *FakeIAMCustomRoles) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIAMCustomRoles) Get

func (c *FakeIAMCustomRoles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.IAMCustomRole, err error)

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

func (*FakeIAMCustomRoles) List

func (c *FakeIAMCustomRoles) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IAMCustomRoleList, err error)

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

func (*FakeIAMCustomRoles) Patch

func (c *FakeIAMCustomRoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.IAMCustomRole, err error)

Patch applies the patch and returns the patched iAMCustomRole.

func (*FakeIAMCustomRoles) Update

func (c *FakeIAMCustomRoles) Update(ctx context.Context, iAMCustomRole *v1beta1.IAMCustomRole, opts v1.UpdateOptions) (result *v1beta1.IAMCustomRole, err error)

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

func (*FakeIAMCustomRoles) UpdateStatus

func (c *FakeIAMCustomRoles) UpdateStatus(ctx context.Context, iAMCustomRole *v1beta1.IAMCustomRole, opts v1.UpdateOptions) (*v1beta1.IAMCustomRole, error)

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

func (*FakeIAMCustomRoles) Watch

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

type FakeIAMPolicies

type FakeIAMPolicies struct {
	Fake *FakeIamV1beta1
	// contains filtered or unexported fields
}

FakeIAMPolicies implements IAMPolicyInterface

func (*FakeIAMPolicies) Create

func (c *FakeIAMPolicies) Create(ctx context.Context, iAMPolicy *v1beta1.IAMPolicy, opts v1.CreateOptions) (result *v1beta1.IAMPolicy, err error)

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

func (*FakeIAMPolicies) Delete

func (c *FakeIAMPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeIAMPolicies) DeleteCollection

func (c *FakeIAMPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIAMPolicies) Get

func (c *FakeIAMPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.IAMPolicy, err error)

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

func (*FakeIAMPolicies) List

func (c *FakeIAMPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IAMPolicyList, err error)

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

func (*FakeIAMPolicies) Patch

func (c *FakeIAMPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.IAMPolicy, err error)

Patch applies the patch and returns the patched iAMPolicy.

func (*FakeIAMPolicies) Update

func (c *FakeIAMPolicies) Update(ctx context.Context, iAMPolicy *v1beta1.IAMPolicy, opts v1.UpdateOptions) (result *v1beta1.IAMPolicy, err error)

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

func (*FakeIAMPolicies) UpdateStatus

func (c *FakeIAMPolicies) UpdateStatus(ctx context.Context, iAMPolicy *v1beta1.IAMPolicy, opts v1.UpdateOptions) (*v1beta1.IAMPolicy, error)

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

func (*FakeIAMPolicies) Watch

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

type FakeIAMPolicyMembers

type FakeIAMPolicyMembers struct {
	Fake *FakeIamV1beta1
	// contains filtered or unexported fields
}

FakeIAMPolicyMembers implements IAMPolicyMemberInterface

func (*FakeIAMPolicyMembers) Create

func (c *FakeIAMPolicyMembers) Create(ctx context.Context, iAMPolicyMember *v1beta1.IAMPolicyMember, opts v1.CreateOptions) (result *v1beta1.IAMPolicyMember, err error)

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

func (*FakeIAMPolicyMembers) Delete

func (c *FakeIAMPolicyMembers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeIAMPolicyMembers) DeleteCollection

func (c *FakeIAMPolicyMembers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIAMPolicyMembers) Get

func (c *FakeIAMPolicyMembers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.IAMPolicyMember, err error)

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

func (*FakeIAMPolicyMembers) List

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

func (*FakeIAMPolicyMembers) Patch

func (c *FakeIAMPolicyMembers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.IAMPolicyMember, err error)

Patch applies the patch and returns the patched iAMPolicyMember.

func (*FakeIAMPolicyMembers) Update

func (c *FakeIAMPolicyMembers) Update(ctx context.Context, iAMPolicyMember *v1beta1.IAMPolicyMember, opts v1.UpdateOptions) (result *v1beta1.IAMPolicyMember, err error)

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

func (*FakeIAMPolicyMembers) UpdateStatus

func (c *FakeIAMPolicyMembers) UpdateStatus(ctx context.Context, iAMPolicyMember *v1beta1.IAMPolicyMember, opts v1.UpdateOptions) (*v1beta1.IAMPolicyMember, error)

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

func (*FakeIAMPolicyMembers) Watch

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

type FakeIAMServiceAccountKeys

type FakeIAMServiceAccountKeys struct {
	Fake *FakeIamV1beta1
	// contains filtered or unexported fields
}

FakeIAMServiceAccountKeys implements IAMServiceAccountKeyInterface

func (*FakeIAMServiceAccountKeys) Create

func (c *FakeIAMServiceAccountKeys) Create(ctx context.Context, iAMServiceAccountKey *v1beta1.IAMServiceAccountKey, opts v1.CreateOptions) (result *v1beta1.IAMServiceAccountKey, err error)

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

func (*FakeIAMServiceAccountKeys) Delete

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

func (*FakeIAMServiceAccountKeys) DeleteCollection

func (c *FakeIAMServiceAccountKeys) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIAMServiceAccountKeys) Get

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

func (*FakeIAMServiceAccountKeys) List

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

func (*FakeIAMServiceAccountKeys) Patch

func (c *FakeIAMServiceAccountKeys) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.IAMServiceAccountKey, err error)

Patch applies the patch and returns the patched iAMServiceAccountKey.

func (*FakeIAMServiceAccountKeys) Update

func (c *FakeIAMServiceAccountKeys) Update(ctx context.Context, iAMServiceAccountKey *v1beta1.IAMServiceAccountKey, opts v1.UpdateOptions) (result *v1beta1.IAMServiceAccountKey, err error)

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

func (*FakeIAMServiceAccountKeys) UpdateStatus

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

func (*FakeIAMServiceAccountKeys) Watch

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

type FakeIAMServiceAccounts

type FakeIAMServiceAccounts struct {
	Fake *FakeIamV1beta1
	// contains filtered or unexported fields
}

FakeIAMServiceAccounts implements IAMServiceAccountInterface

func (*FakeIAMServiceAccounts) Create

func (c *FakeIAMServiceAccounts) Create(ctx context.Context, iAMServiceAccount *v1beta1.IAMServiceAccount, opts v1.CreateOptions) (result *v1beta1.IAMServiceAccount, err error)

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

func (*FakeIAMServiceAccounts) Delete

func (c *FakeIAMServiceAccounts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeIAMServiceAccounts) DeleteCollection

func (c *FakeIAMServiceAccounts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIAMServiceAccounts) Get

func (c *FakeIAMServiceAccounts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.IAMServiceAccount, err error)

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

func (*FakeIAMServiceAccounts) List

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

func (*FakeIAMServiceAccounts) Patch

func (c *FakeIAMServiceAccounts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.IAMServiceAccount, err error)

Patch applies the patch and returns the patched iAMServiceAccount.

func (*FakeIAMServiceAccounts) Update

func (c *FakeIAMServiceAccounts) Update(ctx context.Context, iAMServiceAccount *v1beta1.IAMServiceAccount, opts v1.UpdateOptions) (result *v1beta1.IAMServiceAccount, err error)

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

func (*FakeIAMServiceAccounts) UpdateStatus

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

func (*FakeIAMServiceAccounts) Watch

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

type FakeIamV1beta1

type FakeIamV1beta1 struct {
	*testing.Fake
}

func (*FakeIamV1beta1) IAMAuditConfigs

func (c *FakeIamV1beta1) IAMAuditConfigs(namespace string) v1beta1.IAMAuditConfigInterface

func (*FakeIamV1beta1) IAMCustomRoles

func (c *FakeIamV1beta1) IAMCustomRoles(namespace string) v1beta1.IAMCustomRoleInterface

func (*FakeIamV1beta1) IAMPolicies

func (c *FakeIamV1beta1) IAMPolicies(namespace string) v1beta1.IAMPolicyInterface

func (*FakeIamV1beta1) IAMPolicyMembers

func (c *FakeIamV1beta1) IAMPolicyMembers(namespace string) v1beta1.IAMPolicyMemberInterface

func (*FakeIamV1beta1) IAMServiceAccountKeys

func (c *FakeIamV1beta1) IAMServiceAccountKeys(namespace string) v1beta1.IAMServiceAccountKeyInterface

func (*FakeIamV1beta1) IAMServiceAccounts

func (c *FakeIamV1beta1) IAMServiceAccounts(namespace string) v1beta1.IAMServiceAccountInterface

func (*FakeIamV1beta1) RESTClient

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

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

Jump to

Keyboard shortcuts

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