fake

package
v1.0.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 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 FakeCoreV1alpha1

type FakeCoreV1alpha1 struct {
	*testing.Fake
}

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 (*FakeCoreV1alpha1) SubNamespaces

func (c *FakeCoreV1alpha1) SubNamespaces(namespace string) v1alpha1.SubNamespaceInterface

func (*FakeCoreV1alpha1) TenantResourceQuotas

func (c *FakeCoreV1alpha1) TenantResourceQuotas() v1alpha1.TenantResourceQuotaInterface

func (*FakeCoreV1alpha1) Tenants

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

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

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

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

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

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

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

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

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

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.

Jump to

Keyboard shortcuts

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