package fake

import "k8s.io/client-go/kubernetes/typed/resource/v1alpha2/fake"

Package fake has the automatically generated clients.

Index

Types

type FakePodSchedulingContexts

type FakePodSchedulingContexts struct {
	Fake *FakeResourceV1alpha2
	// contains filtered or unexported fields
}

FakePodSchedulingContexts implements PodSchedulingContextInterface

func (*FakePodSchedulingContexts) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied podSchedulingContext.

func (*FakePodSchedulingContexts) ApplyStatus

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

func (*FakePodSchedulingContexts) Create

func (c *FakePodSchedulingContexts) Create(ctx context.Context, podSchedulingContext *v1alpha2.PodSchedulingContext, opts v1.CreateOptions) (result *v1alpha2.PodSchedulingContext, err error)

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

func (*FakePodSchedulingContexts) Delete

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

func (*FakePodSchedulingContexts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodSchedulingContexts) Get

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

func (*FakePodSchedulingContexts) List

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

func (*FakePodSchedulingContexts) Patch

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

Patch applies the patch and returns the patched podSchedulingContext.

func (*FakePodSchedulingContexts) Update

func (c *FakePodSchedulingContexts) Update(ctx context.Context, podSchedulingContext *v1alpha2.PodSchedulingContext, opts v1.UpdateOptions) (result *v1alpha2.PodSchedulingContext, err error)

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

func (*FakePodSchedulingContexts) UpdateStatus

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

func (*FakePodSchedulingContexts) Watch

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

type FakeResourceClaimParameters

type FakeResourceClaimParameters struct {
	Fake *FakeResourceV1alpha2
	// contains filtered or unexported fields
}

FakeResourceClaimParameters implements ResourceClaimParametersInterface

func (*FakeResourceClaimParameters) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied resourceClaimParameters.

func (*FakeResourceClaimParameters) Create

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

func (*FakeResourceClaimParameters) Delete

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

func (*FakeResourceClaimParameters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceClaimParameters) Get

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

func (*FakeResourceClaimParameters) List

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

func (*FakeResourceClaimParameters) Patch

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

Patch applies the patch and returns the patched resourceClaimParameters.

func (*FakeResourceClaimParameters) Update

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

func (*FakeResourceClaimParameters) Watch

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

type FakeResourceClaimTemplates

type FakeResourceClaimTemplates struct {
	Fake *FakeResourceV1alpha2
	// contains filtered or unexported fields
}

FakeResourceClaimTemplates implements ResourceClaimTemplateInterface

func (*FakeResourceClaimTemplates) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied resourceClaimTemplate.

func (*FakeResourceClaimTemplates) Create

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

func (*FakeResourceClaimTemplates) Delete

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

func (*FakeResourceClaimTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceClaimTemplates) Get

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

func (*FakeResourceClaimTemplates) List

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

func (*FakeResourceClaimTemplates) Patch

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

Patch applies the patch and returns the patched resourceClaimTemplate.

func (*FakeResourceClaimTemplates) Update

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

func (*FakeResourceClaimTemplates) Watch

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

type FakeResourceClaims

type FakeResourceClaims struct {
	Fake *FakeResourceV1alpha2
	// contains filtered or unexported fields
}

FakeResourceClaims implements ResourceClaimInterface

func (*FakeResourceClaims) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied resourceClaim.

func (*FakeResourceClaims) ApplyStatus

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

func (*FakeResourceClaims) Create

func (c *FakeResourceClaims) Create(ctx context.Context, resourceClaim *v1alpha2.ResourceClaim, opts v1.CreateOptions) (result *v1alpha2.ResourceClaim, err error)

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

func (*FakeResourceClaims) Delete

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

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

func (*FakeResourceClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceClaims) Get

func (c *FakeResourceClaims) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceClaim, err error)

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

func (*FakeResourceClaims) List

func (c *FakeResourceClaims) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimList, err error)

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

func (*FakeResourceClaims) Patch

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

Patch applies the patch and returns the patched resourceClaim.

func (*FakeResourceClaims) Update

func (c *FakeResourceClaims) Update(ctx context.Context, resourceClaim *v1alpha2.ResourceClaim, opts v1.UpdateOptions) (result *v1alpha2.ResourceClaim, err error)

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

func (*FakeResourceClaims) UpdateStatus

func (c *FakeResourceClaims) UpdateStatus(ctx context.Context, resourceClaim *v1alpha2.ResourceClaim, opts v1.UpdateOptions) (*v1alpha2.ResourceClaim, error)

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

func (*FakeResourceClaims) Watch

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

type FakeResourceClassParameters

type FakeResourceClassParameters struct {
	Fake *FakeResourceV1alpha2
	// contains filtered or unexported fields
}

FakeResourceClassParameters implements ResourceClassParametersInterface

func (*FakeResourceClassParameters) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied resourceClassParameters.

func (*FakeResourceClassParameters) Create

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

func (*FakeResourceClassParameters) Delete

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

func (*FakeResourceClassParameters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceClassParameters) Get

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

func (*FakeResourceClassParameters) List

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

func (*FakeResourceClassParameters) Patch

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

Patch applies the patch and returns the patched resourceClassParameters.

func (*FakeResourceClassParameters) Update

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

func (*FakeResourceClassParameters) Watch

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

type FakeResourceClasses

type FakeResourceClasses struct {
	Fake *FakeResourceV1alpha2
}

FakeResourceClasses implements ResourceClassInterface

func (*FakeResourceClasses) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied resourceClass.

func (*FakeResourceClasses) Create

func (c *FakeResourceClasses) Create(ctx context.Context, resourceClass *v1alpha2.ResourceClass, opts v1.CreateOptions) (result *v1alpha2.ResourceClass, err error)

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

func (*FakeResourceClasses) Delete

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

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

func (*FakeResourceClasses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceClasses) Get

func (c *FakeResourceClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceClass, err error)

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

func (*FakeResourceClasses) List

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

func (*FakeResourceClasses) Patch

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

Patch applies the patch and returns the patched resourceClass.

func (*FakeResourceClasses) Update

func (c *FakeResourceClasses) Update(ctx context.Context, resourceClass *v1alpha2.ResourceClass, opts v1.UpdateOptions) (result *v1alpha2.ResourceClass, err error)

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

func (*FakeResourceClasses) Watch

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

type FakeResourceSlices

type FakeResourceSlices struct {
	Fake *FakeResourceV1alpha2
}

FakeResourceSlices implements ResourceSliceInterface

func (*FakeResourceSlices) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied resourceSlice.

func (*FakeResourceSlices) Create

func (c *FakeResourceSlices) Create(ctx context.Context, resourceSlice *v1alpha2.ResourceSlice, opts v1.CreateOptions) (result *v1alpha2.ResourceSlice, err error)

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

func (*FakeResourceSlices) Delete

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

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

func (*FakeResourceSlices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceSlices) Get

func (c *FakeResourceSlices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceSlice, err error)

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

func (*FakeResourceSlices) List

func (c *FakeResourceSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceSliceList, err error)

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

func (*FakeResourceSlices) Patch

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

Patch applies the patch and returns the patched resourceSlice.

func (*FakeResourceSlices) Update

func (c *FakeResourceSlices) Update(ctx context.Context, resourceSlice *v1alpha2.ResourceSlice, opts v1.UpdateOptions) (result *v1alpha2.ResourceSlice, err error)

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

func (*FakeResourceSlices) Watch

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

type FakeResourceV1alpha2

type FakeResourceV1alpha2 struct {
	*testing.Fake
}

func (*FakeResourceV1alpha2) PodSchedulingContexts

func (c *FakeResourceV1alpha2) PodSchedulingContexts(namespace string) v1alpha2.PodSchedulingContextInterface

func (*FakeResourceV1alpha2) RESTClient

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

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

func (*FakeResourceV1alpha2) ResourceClaimParameters

func (c *FakeResourceV1alpha2) ResourceClaimParameters(namespace string) v1alpha2.ResourceClaimParametersInterface

func (*FakeResourceV1alpha2) ResourceClaimTemplates

func (c *FakeResourceV1alpha2) ResourceClaimTemplates(namespace string) v1alpha2.ResourceClaimTemplateInterface

func (*FakeResourceV1alpha2) ResourceClaims

func (c *FakeResourceV1alpha2) ResourceClaims(namespace string) v1alpha2.ResourceClaimInterface

func (*FakeResourceV1alpha2) ResourceClassParameters

func (c *FakeResourceV1alpha2) ResourceClassParameters(namespace string) v1alpha2.ResourceClassParametersInterface

func (*FakeResourceV1alpha2) ResourceClasses

func (*FakeResourceV1alpha2) ResourceSlices

Source Files

doc.go fake_podschedulingcontext.go fake_resource_client.go fake_resourceclaim.go fake_resourceclaimparameters.go fake_resourceclaimtemplate.go fake_resourceclass.go fake_resourceclassparameters.go fake_resourceslice.go

Version
v0.30.0
Published
Apr 17, 2024
Platform
linux/amd64
Imports
12 packages
Last checked
6 minutes ago

Tools for package owners.