Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCoreV1alpha1
- func (c *FakeCoreV1alpha1) NodeContributions() v1alpha1.NodeContributionInterface
- func (c *FakeCoreV1alpha1) RESTClient() rest.Interface
- func (c *FakeCoreV1alpha1) SliceClaims(namespace string) v1alpha1.SliceClaimInterface
- func (c *FakeCoreV1alpha1) Slices() v1alpha1.SliceInterface
- func (c *FakeCoreV1alpha1) SubNamespaces(namespace string) v1alpha1.SubNamespaceInterface
- func (c *FakeCoreV1alpha1) TenantResourceQuotas() v1alpha1.TenantResourceQuotaInterface
- func (c *FakeCoreV1alpha1) Tenants() v1alpha1.TenantInterface
- type FakeNodeContributions
- func (c *FakeNodeContributions) Create(ctx context.Context, nodeContribution *v1alpha1.NodeContribution, ...) (result *v1alpha1.NodeContribution, err error)
- func (c *FakeNodeContributions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNodeContributions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNodeContributions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NodeContribution, err error)
- func (c *FakeNodeContributions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NodeContributionList, err error)
- func (c *FakeNodeContributions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.NodeContribution, err error)
- func (c *FakeNodeContributions) Update(ctx context.Context, nodeContribution *v1alpha1.NodeContribution, ...) (result *v1alpha1.NodeContribution, err error)
- func (c *FakeNodeContributions) UpdateStatus(ctx context.Context, nodeContribution *v1alpha1.NodeContribution, ...) (*v1alpha1.NodeContribution, error)
- func (c *FakeNodeContributions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSliceClaims
- func (c *FakeSliceClaims) Create(ctx context.Context, sliceClaim *v1alpha1.SliceClaim, opts v1.CreateOptions) (result *v1alpha1.SliceClaim, err error)
- func (c *FakeSliceClaims) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSliceClaims) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSliceClaims) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SliceClaim, err error)
- func (c *FakeSliceClaims) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SliceClaimList, err error)
- func (c *FakeSliceClaims) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.SliceClaim, err error)
- func (c *FakeSliceClaims) Update(ctx context.Context, sliceClaim *v1alpha1.SliceClaim, opts v1.UpdateOptions) (result *v1alpha1.SliceClaim, err error)
- func (c *FakeSliceClaims) UpdateStatus(ctx context.Context, sliceClaim *v1alpha1.SliceClaim, opts v1.UpdateOptions) (*v1alpha1.SliceClaim, error)
- func (c *FakeSliceClaims) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSlices
- func (c *FakeSlices) Create(ctx context.Context, slice *v1alpha1.Slice, opts v1.CreateOptions) (result *v1alpha1.Slice, err error)
- func (c *FakeSlices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSlices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSlices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Slice, err error)
- func (c *FakeSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SliceList, err error)
- func (c *FakeSlices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Slice, err error)
- func (c *FakeSlices) Update(ctx context.Context, slice *v1alpha1.Slice, opts v1.UpdateOptions) (result *v1alpha1.Slice, err error)
- func (c *FakeSlices) UpdateStatus(ctx context.Context, slice *v1alpha1.Slice, opts v1.UpdateOptions) (*v1alpha1.Slice, error)
- func (c *FakeSlices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSubNamespaces
- func (c *FakeSubNamespaces) Create(ctx context.Context, subNamespace *v1alpha1.SubNamespace, ...) (result *v1alpha1.SubNamespace, err error)
- func (c *FakeSubNamespaces) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSubNamespaces) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSubNamespaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SubNamespace, err error)
- func (c *FakeSubNamespaces) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SubNamespaceList, err error)
- func (c *FakeSubNamespaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.SubNamespace, err error)
- func (c *FakeSubNamespaces) Update(ctx context.Context, subNamespace *v1alpha1.SubNamespace, ...) (result *v1alpha1.SubNamespace, err error)
- func (c *FakeSubNamespaces) UpdateStatus(ctx context.Context, subNamespace *v1alpha1.SubNamespace, ...) (*v1alpha1.SubNamespace, error)
- func (c *FakeSubNamespaces) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeTenantResourceQuotas
- func (c *FakeTenantResourceQuotas) Create(ctx context.Context, tenantResourceQuota *v1alpha1.TenantResourceQuota, ...) (result *v1alpha1.TenantResourceQuota, err error)
- func (c *FakeTenantResourceQuotas) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeTenantResourceQuotas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeTenantResourceQuotas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TenantResourceQuota, err error)
- func (c *FakeTenantResourceQuotas) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TenantResourceQuotaList, err error)
- func (c *FakeTenantResourceQuotas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.TenantResourceQuota, err error)
- func (c *FakeTenantResourceQuotas) Update(ctx context.Context, tenantResourceQuota *v1alpha1.TenantResourceQuota, ...) (result *v1alpha1.TenantResourceQuota, err error)
- func (c *FakeTenantResourceQuotas) UpdateStatus(ctx context.Context, tenantResourceQuota *v1alpha1.TenantResourceQuota, ...) (*v1alpha1.TenantResourceQuota, error)
- func (c *FakeTenantResourceQuotas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeTenants
- func (c *FakeTenants) Create(ctx context.Context, tenant *v1alpha1.Tenant, opts v1.CreateOptions) (result *v1alpha1.Tenant, err error)
- func (c *FakeTenants) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeTenants) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeTenants) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Tenant, err error)
- func (c *FakeTenants) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TenantList, err error)
- func (c *FakeTenants) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Tenant, err error)
- func (c *FakeTenants) Update(ctx context.Context, tenant *v1alpha1.Tenant, opts v1.UpdateOptions) (result *v1alpha1.Tenant, err error)
- func (c *FakeTenants) UpdateStatus(ctx context.Context, tenant *v1alpha1.Tenant, opts v1.UpdateOptions) (*v1alpha1.Tenant, error)
- func (c *FakeTenants) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCoreV1alpha1 ¶
func (*FakeCoreV1alpha1) NodeContributions ¶
func (c *FakeCoreV1alpha1) NodeContributions() v1alpha1.NodeContributionInterface
func (*FakeCoreV1alpha1) RESTClient ¶
func (c *FakeCoreV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeCoreV1alpha1) SliceClaims ¶
func (c *FakeCoreV1alpha1) SliceClaims(namespace string) v1alpha1.SliceClaimInterface
func (*FakeCoreV1alpha1) Slices ¶
func (c *FakeCoreV1alpha1) Slices() v1alpha1.SliceInterface
func (*FakeCoreV1alpha1) SubNamespaces ¶
func (c *FakeCoreV1alpha1) SubNamespaces(namespace string) v1alpha1.SubNamespaceInterface
func (*FakeCoreV1alpha1) TenantResourceQuotas ¶
func (c *FakeCoreV1alpha1) TenantResourceQuotas() v1alpha1.TenantResourceQuotaInterface
func (*FakeCoreV1alpha1) Tenants ¶
func (c *FakeCoreV1alpha1) Tenants() v1alpha1.TenantInterface
type FakeNodeContributions ¶
type FakeNodeContributions struct {
Fake *FakeCoreV1alpha1
}
FakeNodeContributions implements NodeContributionInterface
func (*FakeNodeContributions) Create ¶
func (c *FakeNodeContributions) Create(ctx context.Context, nodeContribution *v1alpha1.NodeContribution, opts v1.CreateOptions) (result *v1alpha1.NodeContribution, err error)
Create takes the representation of a nodeContribution and creates it. Returns the server's representation of the nodeContribution, and an error, if there is any.
func (*FakeNodeContributions) Delete ¶
func (c *FakeNodeContributions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the nodeContribution and deletes it. Returns an error if one occurs.
func (*FakeNodeContributions) DeleteCollection ¶
func (c *FakeNodeContributions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNodeContributions) Get ¶
func (c *FakeNodeContributions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NodeContribution, err error)
Get takes name of the nodeContribution, and returns the corresponding nodeContribution object, and an error if there is any.
func (*FakeNodeContributions) List ¶
func (c *FakeNodeContributions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NodeContributionList, err error)
List takes label and field selectors, and returns the list of NodeContributions that match those selectors.
func (*FakeNodeContributions) Patch ¶
func (c *FakeNodeContributions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.NodeContribution, err error)
Patch applies the patch and returns the patched nodeContribution.
func (*FakeNodeContributions) Update ¶
func (c *FakeNodeContributions) Update(ctx context.Context, nodeContribution *v1alpha1.NodeContribution, opts v1.UpdateOptions) (result *v1alpha1.NodeContribution, err error)
Update takes the representation of a nodeContribution and updates it. Returns the server's representation of the nodeContribution, and an error, if there is any.
func (*FakeNodeContributions) UpdateStatus ¶
func (c *FakeNodeContributions) UpdateStatus(ctx context.Context, nodeContribution *v1alpha1.NodeContribution, opts v1.UpdateOptions) (*v1alpha1.NodeContribution, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeNodeContributions) Watch ¶
func (c *FakeNodeContributions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested nodeContributions.
type FakeSliceClaims ¶
type FakeSliceClaims struct { Fake *FakeCoreV1alpha1 // contains filtered or unexported fields }
FakeSliceClaims implements SliceClaimInterface
func (*FakeSliceClaims) Create ¶
func (c *FakeSliceClaims) Create(ctx context.Context, sliceClaim *v1alpha1.SliceClaim, opts v1.CreateOptions) (result *v1alpha1.SliceClaim, err error)
Create takes the representation of a sliceClaim and creates it. Returns the server's representation of the sliceClaim, and an error, if there is any.
func (*FakeSliceClaims) Delete ¶
func (c *FakeSliceClaims) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the sliceClaim and deletes it. Returns an error if one occurs.
func (*FakeSliceClaims) DeleteCollection ¶
func (c *FakeSliceClaims) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSliceClaims) Get ¶
func (c *FakeSliceClaims) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SliceClaim, err error)
Get takes name of the sliceClaim, and returns the corresponding sliceClaim object, and an error if there is any.
func (*FakeSliceClaims) List ¶
func (c *FakeSliceClaims) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SliceClaimList, err error)
List takes label and field selectors, and returns the list of SliceClaims that match those selectors.
func (*FakeSliceClaims) Patch ¶
func (c *FakeSliceClaims) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SliceClaim, err error)
Patch applies the patch and returns the patched sliceClaim.
func (*FakeSliceClaims) Update ¶
func (c *FakeSliceClaims) Update(ctx context.Context, sliceClaim *v1alpha1.SliceClaim, opts v1.UpdateOptions) (result *v1alpha1.SliceClaim, err error)
Update takes the representation of a sliceClaim and updates it. Returns the server's representation of the sliceClaim, and an error, if there is any.
func (*FakeSliceClaims) UpdateStatus ¶
func (c *FakeSliceClaims) UpdateStatus(ctx context.Context, sliceClaim *v1alpha1.SliceClaim, opts v1.UpdateOptions) (*v1alpha1.SliceClaim, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSliceClaims) Watch ¶
func (c *FakeSliceClaims) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested sliceClaims.
type FakeSlices ¶
type FakeSlices struct {
Fake *FakeCoreV1alpha1
}
FakeSlices implements SliceInterface
func (*FakeSlices) Create ¶
func (c *FakeSlices) Create(ctx context.Context, slice *v1alpha1.Slice, opts v1.CreateOptions) (result *v1alpha1.Slice, err error)
Create takes the representation of a slice and creates it. Returns the server's representation of the slice, and an error, if there is any.
func (*FakeSlices) Delete ¶
func (c *FakeSlices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the slice and deletes it. Returns an error if one occurs.
func (*FakeSlices) DeleteCollection ¶
func (c *FakeSlices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSlices) Get ¶
func (c *FakeSlices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Slice, err error)
Get takes name of the slice, and returns the corresponding slice object, and an error if there is any.
func (*FakeSlices) List ¶
func (c *FakeSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SliceList, err error)
List takes label and field selectors, and returns the list of Slices that match those selectors.
func (*FakeSlices) Patch ¶
func (c *FakeSlices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Slice, err error)
Patch applies the patch and returns the patched slice.
func (*FakeSlices) Update ¶
func (c *FakeSlices) Update(ctx context.Context, slice *v1alpha1.Slice, opts v1.UpdateOptions) (result *v1alpha1.Slice, err error)
Update takes the representation of a slice and updates it. Returns the server's representation of the slice, and an error, if there is any.
func (*FakeSlices) UpdateStatus ¶
func (c *FakeSlices) UpdateStatus(ctx context.Context, slice *v1alpha1.Slice, opts v1.UpdateOptions) (*v1alpha1.Slice, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSlices) Watch ¶
func (c *FakeSlices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested slices.
type FakeSubNamespaces ¶
type FakeSubNamespaces struct { Fake *FakeCoreV1alpha1 // contains filtered or unexported fields }
FakeSubNamespaces implements SubNamespaceInterface
func (*FakeSubNamespaces) Create ¶
func (c *FakeSubNamespaces) Create(ctx context.Context, subNamespace *v1alpha1.SubNamespace, opts v1.CreateOptions) (result *v1alpha1.SubNamespace, err error)
Create takes the representation of a subNamespace and creates it. Returns the server's representation of the subNamespace, and an error, if there is any.
func (*FakeSubNamespaces) Delete ¶
func (c *FakeSubNamespaces) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the subNamespace and deletes it. Returns an error if one occurs.
func (*FakeSubNamespaces) DeleteCollection ¶
func (c *FakeSubNamespaces) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSubNamespaces) Get ¶
func (c *FakeSubNamespaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SubNamespace, err error)
Get takes name of the subNamespace, and returns the corresponding subNamespace object, and an error if there is any.
func (*FakeSubNamespaces) List ¶
func (c *FakeSubNamespaces) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SubNamespaceList, err error)
List takes label and field selectors, and returns the list of SubNamespaces that match those selectors.
func (*FakeSubNamespaces) Patch ¶
func (c *FakeSubNamespaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SubNamespace, err error)
Patch applies the patch and returns the patched subNamespace.
func (*FakeSubNamespaces) Update ¶
func (c *FakeSubNamespaces) Update(ctx context.Context, subNamespace *v1alpha1.SubNamespace, opts v1.UpdateOptions) (result *v1alpha1.SubNamespace, err error)
Update takes the representation of a subNamespace and updates it. Returns the server's representation of the subNamespace, and an error, if there is any.
func (*FakeSubNamespaces) UpdateStatus ¶
func (c *FakeSubNamespaces) UpdateStatus(ctx context.Context, subNamespace *v1alpha1.SubNamespace, opts v1.UpdateOptions) (*v1alpha1.SubNamespace, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSubNamespaces) Watch ¶
func (c *FakeSubNamespaces) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested subNamespaces.
type FakeTenantResourceQuotas ¶
type FakeTenantResourceQuotas struct {
Fake *FakeCoreV1alpha1
}
FakeTenantResourceQuotas implements TenantResourceQuotaInterface
func (*FakeTenantResourceQuotas) Create ¶
func (c *FakeTenantResourceQuotas) Create(ctx context.Context, tenantResourceQuota *v1alpha1.TenantResourceQuota, opts v1.CreateOptions) (result *v1alpha1.TenantResourceQuota, err error)
Create takes the representation of a tenantResourceQuota and creates it. Returns the server's representation of the tenantResourceQuota, and an error, if there is any.
func (*FakeTenantResourceQuotas) Delete ¶
func (c *FakeTenantResourceQuotas) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the tenantResourceQuota and deletes it. Returns an error if one occurs.
func (*FakeTenantResourceQuotas) DeleteCollection ¶
func (c *FakeTenantResourceQuotas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTenantResourceQuotas) Get ¶
func (c *FakeTenantResourceQuotas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TenantResourceQuota, err error)
Get takes name of the tenantResourceQuota, and returns the corresponding tenantResourceQuota object, and an error if there is any.
func (*FakeTenantResourceQuotas) List ¶
func (c *FakeTenantResourceQuotas) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TenantResourceQuotaList, err error)
List takes label and field selectors, and returns the list of TenantResourceQuotas that match those selectors.
func (*FakeTenantResourceQuotas) Patch ¶
func (c *FakeTenantResourceQuotas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.TenantResourceQuota, err error)
Patch applies the patch and returns the patched tenantResourceQuota.
func (*FakeTenantResourceQuotas) Update ¶
func (c *FakeTenantResourceQuotas) Update(ctx context.Context, tenantResourceQuota *v1alpha1.TenantResourceQuota, opts v1.UpdateOptions) (result *v1alpha1.TenantResourceQuota, err error)
Update takes the representation of a tenantResourceQuota and updates it. Returns the server's representation of the tenantResourceQuota, and an error, if there is any.
func (*FakeTenantResourceQuotas) UpdateStatus ¶
func (c *FakeTenantResourceQuotas) UpdateStatus(ctx context.Context, tenantResourceQuota *v1alpha1.TenantResourceQuota, opts v1.UpdateOptions) (*v1alpha1.TenantResourceQuota, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeTenantResourceQuotas) Watch ¶
func (c *FakeTenantResourceQuotas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested tenantResourceQuotas.
type FakeTenants ¶
type FakeTenants struct {
Fake *FakeCoreV1alpha1
}
FakeTenants implements TenantInterface
func (*FakeTenants) Create ¶
func (c *FakeTenants) Create(ctx context.Context, tenant *v1alpha1.Tenant, opts v1.CreateOptions) (result *v1alpha1.Tenant, err error)
Create takes the representation of a tenant and creates it. Returns the server's representation of the tenant, and an error, if there is any.
func (*FakeTenants) Delete ¶
func (c *FakeTenants) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the tenant and deletes it. Returns an error if one occurs.
func (*FakeTenants) DeleteCollection ¶
func (c *FakeTenants) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTenants) Get ¶
func (c *FakeTenants) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Tenant, err error)
Get takes name of the tenant, and returns the corresponding tenant object, and an error if there is any.
func (*FakeTenants) List ¶
func (c *FakeTenants) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TenantList, err error)
List takes label and field selectors, and returns the list of Tenants that match those selectors.
func (*FakeTenants) Patch ¶
func (c *FakeTenants) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Tenant, err error)
Patch applies the patch and returns the patched tenant.
func (*FakeTenants) Update ¶
func (c *FakeTenants) Update(ctx context.Context, tenant *v1alpha1.Tenant, opts v1.UpdateOptions) (result *v1alpha1.Tenant, err error)
Update takes the representation of a tenant and updates it. Returns the server's representation of the tenant, and an error, if there is any.
func (*FakeTenants) UpdateStatus ¶
func (c *FakeTenants) UpdateStatus(ctx context.Context, tenant *v1alpha1.Tenant, opts v1.UpdateOptions) (*v1alpha1.Tenant, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeTenants) Watch ¶
func (c *FakeTenants) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested tenants.