fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 FakeAccessApprovalSettingses

type FakeAccessApprovalSettingses struct {
	Fake *FakeFolderV1alpha1
	// contains filtered or unexported fields
}

FakeAccessApprovalSettingses implements AccessApprovalSettingsInterface

func (*FakeAccessApprovalSettingses) Create

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

func (*FakeAccessApprovalSettingses) Delete

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

func (*FakeAccessApprovalSettingses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAccessApprovalSettingses) Get

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

func (*FakeAccessApprovalSettingses) List

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

func (*FakeAccessApprovalSettingses) Patch

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

Patch applies the patch and returns the patched accessApprovalSettings.

func (*FakeAccessApprovalSettingses) Update

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

func (*FakeAccessApprovalSettingses) UpdateStatus

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

func (*FakeAccessApprovalSettingses) Watch

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

type FakeFolderV1alpha1

type FakeFolderV1alpha1 struct {
	*testing.Fake
}

func (*FakeFolderV1alpha1) AccessApprovalSettingses

func (c *FakeFolderV1alpha1) AccessApprovalSettingses(namespace string) v1alpha1.AccessApprovalSettingsInterface

func (*FakeFolderV1alpha1) Folders

func (c *FakeFolderV1alpha1) Folders(namespace string) v1alpha1.FolderInterface

func (*FakeFolderV1alpha1) IamAuditConfigs

func (c *FakeFolderV1alpha1) IamAuditConfigs(namespace string) v1alpha1.IamAuditConfigInterface

func (*FakeFolderV1alpha1) IamBindings

func (c *FakeFolderV1alpha1) IamBindings(namespace string) v1alpha1.IamBindingInterface

func (*FakeFolderV1alpha1) IamMembers

func (c *FakeFolderV1alpha1) IamMembers(namespace string) v1alpha1.IamMemberInterface

func (*FakeFolderV1alpha1) IamPolicies

func (c *FakeFolderV1alpha1) IamPolicies(namespace string) v1alpha1.IamPolicyInterface

func (*FakeFolderV1alpha1) OrganizationPolicies

func (c *FakeFolderV1alpha1) OrganizationPolicies(namespace string) v1alpha1.OrganizationPolicyInterface

func (*FakeFolderV1alpha1) RESTClient

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

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

type FakeFolders

type FakeFolders struct {
	Fake *FakeFolderV1alpha1
	// contains filtered or unexported fields
}

FakeFolders implements FolderInterface

func (*FakeFolders) Create

func (c *FakeFolders) Create(ctx context.Context, folder *v1alpha1.Folder, opts v1.CreateOptions) (result *v1alpha1.Folder, err error)

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

func (*FakeFolders) Delete

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

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

func (*FakeFolders) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFolders) Get

func (c *FakeFolders) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Folder, err error)

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

func (*FakeFolders) List

func (c *FakeFolders) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FolderList, err error)

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

func (*FakeFolders) Patch

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

Patch applies the patch and returns the patched folder.

func (*FakeFolders) Update

func (c *FakeFolders) Update(ctx context.Context, folder *v1alpha1.Folder, opts v1.UpdateOptions) (result *v1alpha1.Folder, err error)

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

func (*FakeFolders) UpdateStatus

func (c *FakeFolders) UpdateStatus(ctx context.Context, folder *v1alpha1.Folder, opts v1.UpdateOptions) (*v1alpha1.Folder, error)

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

func (*FakeFolders) Watch

func (c *FakeFolders) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeIamAuditConfigs

type FakeIamAuditConfigs struct {
	Fake *FakeFolderV1alpha1
	// contains filtered or unexported fields
}

FakeIamAuditConfigs implements IamAuditConfigInterface

func (*FakeIamAuditConfigs) Create

func (c *FakeIamAuditConfigs) Create(ctx context.Context, iamAuditConfig *v1alpha1.IamAuditConfig, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.IamAuditConfig, err error)

Patch applies the patch and returns the patched iamAuditConfig.

func (*FakeIamAuditConfigs) Update

func (c *FakeIamAuditConfigs) Update(ctx context.Context, iamAuditConfig *v1alpha1.IamAuditConfig, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.IamAuditConfig, opts v1.UpdateOptions) (*v1alpha1.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 FakeIamBindings

type FakeIamBindings struct {
	Fake *FakeFolderV1alpha1
	// contains filtered or unexported fields
}

FakeIamBindings implements IamBindingInterface

func (*FakeIamBindings) Create

func (c *FakeIamBindings) Create(ctx context.Context, iamBinding *v1alpha1.IamBinding, opts v1.CreateOptions) (result *v1alpha1.IamBinding, err error)

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

func (*FakeIamBindings) Delete

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

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

func (*FakeIamBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIamBindings) Get

func (c *FakeIamBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IamBinding, err error)

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

func (*FakeIamBindings) List

func (c *FakeIamBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IamBindingList, err error)

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

func (*FakeIamBindings) Patch

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

Patch applies the patch and returns the patched iamBinding.

func (*FakeIamBindings) Update

func (c *FakeIamBindings) Update(ctx context.Context, iamBinding *v1alpha1.IamBinding, opts v1.UpdateOptions) (result *v1alpha1.IamBinding, err error)

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

func (*FakeIamBindings) UpdateStatus

func (c *FakeIamBindings) UpdateStatus(ctx context.Context, iamBinding *v1alpha1.IamBinding, opts v1.UpdateOptions) (*v1alpha1.IamBinding, error)

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

func (*FakeIamBindings) Watch

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

type FakeIamMembers

type FakeIamMembers struct {
	Fake *FakeFolderV1alpha1
	// contains filtered or unexported fields
}

FakeIamMembers implements IamMemberInterface

func (*FakeIamMembers) Create

func (c *FakeIamMembers) Create(ctx context.Context, iamMember *v1alpha1.IamMember, opts v1.CreateOptions) (result *v1alpha1.IamMember, err error)

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

func (*FakeIamMembers) Delete

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

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

func (*FakeIamMembers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIamMembers) Get

func (c *FakeIamMembers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IamMember, err error)

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

func (*FakeIamMembers) List

func (c *FakeIamMembers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IamMemberList, err error)

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

func (*FakeIamMembers) Patch

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

Patch applies the patch and returns the patched iamMember.

func (*FakeIamMembers) Update

func (c *FakeIamMembers) Update(ctx context.Context, iamMember *v1alpha1.IamMember, opts v1.UpdateOptions) (result *v1alpha1.IamMember, err error)

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

func (*FakeIamMembers) UpdateStatus

func (c *FakeIamMembers) UpdateStatus(ctx context.Context, iamMember *v1alpha1.IamMember, opts v1.UpdateOptions) (*v1alpha1.IamMember, error)

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

func (*FakeIamMembers) Watch

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

type FakeIamPolicies

type FakeIamPolicies struct {
	Fake *FakeFolderV1alpha1
	// contains filtered or unexported fields
}

FakeIamPolicies implements IamPolicyInterface

func (*FakeIamPolicies) Create

func (c *FakeIamPolicies) Create(ctx context.Context, iamPolicy *v1alpha1.IamPolicy, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.IamPolicy, err error)

Patch applies the patch and returns the patched iamPolicy.

func (*FakeIamPolicies) Update

func (c *FakeIamPolicies) Update(ctx context.Context, iamPolicy *v1alpha1.IamPolicy, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.IamPolicy, opts v1.UpdateOptions) (*v1alpha1.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 FakeOrganizationPolicies

type FakeOrganizationPolicies struct {
	Fake *FakeFolderV1alpha1
	// contains filtered or unexported fields
}

FakeOrganizationPolicies implements OrganizationPolicyInterface

func (*FakeOrganizationPolicies) Create

func (c *FakeOrganizationPolicies) Create(ctx context.Context, organizationPolicy *v1alpha1.OrganizationPolicy, opts v1.CreateOptions) (result *v1alpha1.OrganizationPolicy, err error)

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

func (*FakeOrganizationPolicies) Delete

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

func (*FakeOrganizationPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOrganizationPolicies) Get

func (c *FakeOrganizationPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.OrganizationPolicy, err error)

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

func (*FakeOrganizationPolicies) List

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

func (*FakeOrganizationPolicies) Patch

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

Patch applies the patch and returns the patched organizationPolicy.

func (*FakeOrganizationPolicies) Update

func (c *FakeOrganizationPolicies) Update(ctx context.Context, organizationPolicy *v1alpha1.OrganizationPolicy, opts v1.UpdateOptions) (result *v1alpha1.OrganizationPolicy, err error)

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

func (*FakeOrganizationPolicies) UpdateStatus

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

func (*FakeOrganizationPolicies) Watch

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

Jump to

Keyboard shortcuts

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