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 *FakeProjectV1alpha1
	// 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 FakeDefaultServiceAccountses

type FakeDefaultServiceAccountses struct {
	Fake *FakeProjectV1alpha1
	// contains filtered or unexported fields
}

FakeDefaultServiceAccountses implements DefaultServiceAccountsInterface

func (*FakeDefaultServiceAccountses) Create

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

func (*FakeDefaultServiceAccountses) Delete

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

func (*FakeDefaultServiceAccountses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDefaultServiceAccountses) Get

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

func (*FakeDefaultServiceAccountses) List

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

func (*FakeDefaultServiceAccountses) Patch

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

Patch applies the patch and returns the patched defaultServiceAccounts.

func (*FakeDefaultServiceAccountses) Update

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

func (*FakeDefaultServiceAccountses) UpdateStatus

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

func (*FakeDefaultServiceAccountses) Watch

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

type FakeIamAuditConfigs

type FakeIamAuditConfigs struct {
	Fake *FakeProjectV1alpha1
	// 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 *FakeProjectV1alpha1
	// 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 FakeIamCustomRoles

type FakeIamCustomRoles struct {
	Fake *FakeProjectV1alpha1
	// contains filtered or unexported fields
}

FakeIamCustomRoles implements IamCustomRoleInterface

func (*FakeIamCustomRoles) Create

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

Patch applies the patch and returns the patched iamCustomRole.

func (*FakeIamCustomRoles) Update

func (c *FakeIamCustomRoles) Update(ctx context.Context, iamCustomRole *v1alpha1.IamCustomRole, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.IamCustomRole, opts v1.UpdateOptions) (*v1alpha1.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 FakeIamMembers

type FakeIamMembers struct {
	Fake *FakeProjectV1alpha1
	// 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 *FakeProjectV1alpha1
	// 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 *FakeProjectV1alpha1
	// 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.

type FakeProjectV1alpha1

type FakeProjectV1alpha1 struct {
	*testing.Fake
}

func (*FakeProjectV1alpha1) AccessApprovalSettingses

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

func (*FakeProjectV1alpha1) DefaultServiceAccountses

func (c *FakeProjectV1alpha1) DefaultServiceAccountses(namespace string) v1alpha1.DefaultServiceAccountsInterface

func (*FakeProjectV1alpha1) IamAuditConfigs

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

func (*FakeProjectV1alpha1) IamBindings

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

func (*FakeProjectV1alpha1) IamCustomRoles

func (c *FakeProjectV1alpha1) IamCustomRoles(namespace string) v1alpha1.IamCustomRoleInterface

func (*FakeProjectV1alpha1) IamMembers

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

func (*FakeProjectV1alpha1) IamPolicies

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

func (*FakeProjectV1alpha1) OrganizationPolicies

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

func (*FakeProjectV1alpha1) Projects

func (c *FakeProjectV1alpha1) Projects(namespace string) v1alpha1.ProjectInterface

func (*FakeProjectV1alpha1) RESTClient

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

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

func (*FakeProjectV1alpha1) Services

func (c *FakeProjectV1alpha1) Services(namespace string) v1alpha1.ServiceInterface

func (*FakeProjectV1alpha1) UsageExportBuckets

func (c *FakeProjectV1alpha1) UsageExportBuckets(namespace string) v1alpha1.UsageExportBucketInterface

type FakeProjects

type FakeProjects struct {
	Fake *FakeProjectV1alpha1
	// contains filtered or unexported fields
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create

func (c *FakeProjects) Create(ctx context.Context, project *v1alpha1.Project, opts v1.CreateOptions) (result *v1alpha1.Project, err error)

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

func (*FakeProjects) Delete

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

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

func (*FakeProjects) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjects) Get

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

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

func (*FakeProjects) List

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

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

func (*FakeProjects) Patch

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

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update

func (c *FakeProjects) Update(ctx context.Context, project *v1alpha1.Project, opts v1.UpdateOptions) (result *v1alpha1.Project, err error)

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

func (*FakeProjects) UpdateStatus

func (c *FakeProjects) UpdateStatus(ctx context.Context, project *v1alpha1.Project, opts v1.UpdateOptions) (*v1alpha1.Project, error)

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

func (*FakeProjects) Watch

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

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

type FakeServices

type FakeServices struct {
	Fake *FakeProjectV1alpha1
	// contains filtered or unexported fields
}

FakeServices implements ServiceInterface

func (*FakeServices) Create

func (c *FakeServices) Create(ctx context.Context, service *v1alpha1.Service, opts v1.CreateOptions) (result *v1alpha1.Service, err error)

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

func (*FakeServices) Delete

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

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

func (*FakeServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServices) Get

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

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

func (*FakeServices) List

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

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

func (*FakeServices) Patch

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

Patch applies the patch and returns the patched service.

func (*FakeServices) Update

func (c *FakeServices) Update(ctx context.Context, service *v1alpha1.Service, opts v1.UpdateOptions) (result *v1alpha1.Service, err error)

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

func (*FakeServices) UpdateStatus

func (c *FakeServices) UpdateStatus(ctx context.Context, service *v1alpha1.Service, opts v1.UpdateOptions) (*v1alpha1.Service, error)

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

func (*FakeServices) Watch

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

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

type FakeUsageExportBuckets

type FakeUsageExportBuckets struct {
	Fake *FakeProjectV1alpha1
	// contains filtered or unexported fields
}

FakeUsageExportBuckets implements UsageExportBucketInterface

func (*FakeUsageExportBuckets) Create

func (c *FakeUsageExportBuckets) Create(ctx context.Context, usageExportBucket *v1alpha1.UsageExportBucket, opts v1.CreateOptions) (result *v1alpha1.UsageExportBucket, err error)

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

func (*FakeUsageExportBuckets) Delete

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

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

func (*FakeUsageExportBuckets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUsageExportBuckets) Get

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

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

func (*FakeUsageExportBuckets) List

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

func (*FakeUsageExportBuckets) Patch

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

Patch applies the patch and returns the patched usageExportBucket.

func (*FakeUsageExportBuckets) Update

func (c *FakeUsageExportBuckets) Update(ctx context.Context, usageExportBucket *v1alpha1.UsageExportBucket, opts v1.UpdateOptions) (result *v1alpha1.UsageExportBucket, err error)

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

func (*FakeUsageExportBuckets) UpdateStatus

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

func (*FakeUsageExportBuckets) Watch

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

Jump to

Keyboard shortcuts

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