Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeFunctions
- func (c *FakeFunctions) Create(ctx context.Context, function *v1alpha1.Function, opts v1.CreateOptions) (result *v1alpha1.Function, err error)
- func (c *FakeFunctions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeFunctions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeFunctions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Function, err error)
- func (c *FakeFunctions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FunctionList, err error)
- func (c *FakeFunctions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Function, err error)
- func (c *FakeFunctions) Update(ctx context.Context, function *v1alpha1.Function, opts v1.UpdateOptions) (result *v1alpha1.Function, err error)
- func (c *FakeFunctions) UpdateStatus(ctx context.Context, function *v1alpha1.Function, opts v1.UpdateOptions) (*v1alpha1.Function, error)
- func (c *FakeFunctions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePackageRevisionResources
- func (c *FakePackageRevisionResources) Create(ctx context.Context, ...) (result *v1alpha1.PackageRevisionResources, err error)
- func (c *FakePackageRevisionResources) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePackageRevisionResources) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePackageRevisionResources) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PackageRevisionResources, err error)
- func (c *FakePackageRevisionResources) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PackageRevisionResourcesList, err error)
- func (c *FakePackageRevisionResources) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.PackageRevisionResources, err error)
- func (c *FakePackageRevisionResources) Update(ctx context.Context, ...) (result *v1alpha1.PackageRevisionResources, err error)
- func (c *FakePackageRevisionResources) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePackageRevisions
- func (c *FakePackageRevisions) Create(ctx context.Context, packageRevision *v1alpha1.PackageRevision, ...) (result *v1alpha1.PackageRevision, err error)
- func (c *FakePackageRevisions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePackageRevisions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePackageRevisions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PackageRevision, err error)
- func (c *FakePackageRevisions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PackageRevisionList, err error)
- func (c *FakePackageRevisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.PackageRevision, err error)
- func (c *FakePackageRevisions) Update(ctx context.Context, packageRevision *v1alpha1.PackageRevision, ...) (result *v1alpha1.PackageRevision, err error)
- func (c *FakePackageRevisions) UpdateApproval(ctx context.Context, packageRevisionName string, ...) (result *v1alpha1.PackageRevision, err error)
- func (c *FakePackageRevisions) UpdateStatus(ctx context.Context, packageRevision *v1alpha1.PackageRevision, ...) (*v1alpha1.PackageRevision, error)
- func (c *FakePackageRevisions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePorchV1alpha1
- func (c *FakePorchV1alpha1) Functions(namespace string) v1alpha1.FunctionInterface
- func (c *FakePorchV1alpha1) PackageRevisionResources(namespace string) v1alpha1.PackageRevisionResourcesInterface
- func (c *FakePorchV1alpha1) PackageRevisions(namespace string) v1alpha1.PackageRevisionInterface
- func (c *FakePorchV1alpha1) RESTClient() rest.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeFunctions ¶
type FakeFunctions struct { Fake *FakePorchV1alpha1 // contains filtered or unexported fields }
FakeFunctions implements FunctionInterface
func (*FakeFunctions) Create ¶
func (c *FakeFunctions) Create(ctx context.Context, function *v1alpha1.Function, opts v1.CreateOptions) (result *v1alpha1.Function, err error)
Create takes the representation of a function and creates it. Returns the server's representation of the function, and an error, if there is any.
func (*FakeFunctions) Delete ¶
func (c *FakeFunctions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the function and deletes it. Returns an error if one occurs.
func (*FakeFunctions) DeleteCollection ¶
func (c *FakeFunctions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeFunctions) Get ¶
func (c *FakeFunctions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Function, err error)
Get takes name of the function, and returns the corresponding function object, and an error if there is any.
func (*FakeFunctions) List ¶
func (c *FakeFunctions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FunctionList, err error)
List takes label and field selectors, and returns the list of Functions that match those selectors.
func (*FakeFunctions) Patch ¶
func (c *FakeFunctions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Function, err error)
Patch applies the patch and returns the patched function.
func (*FakeFunctions) Update ¶
func (c *FakeFunctions) Update(ctx context.Context, function *v1alpha1.Function, opts v1.UpdateOptions) (result *v1alpha1.Function, err error)
Update takes the representation of a function and updates it. Returns the server's representation of the function, and an error, if there is any.
func (*FakeFunctions) UpdateStatus ¶
func (c *FakeFunctions) UpdateStatus(ctx context.Context, function *v1alpha1.Function, opts v1.UpdateOptions) (*v1alpha1.Function, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeFunctions) Watch ¶
func (c *FakeFunctions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested functions.
type FakePackageRevisionResources ¶
type FakePackageRevisionResources struct { Fake *FakePorchV1alpha1 // contains filtered or unexported fields }
FakePackageRevisionResources implements PackageRevisionResourcesInterface
func (*FakePackageRevisionResources) Create ¶
func (c *FakePackageRevisionResources) Create(ctx context.Context, packageRevisionResources *v1alpha1.PackageRevisionResources, opts v1.CreateOptions) (result *v1alpha1.PackageRevisionResources, err error)
Create takes the representation of a packageRevisionResources and creates it. Returns the server's representation of the packageRevisionResources, and an error, if there is any.
func (*FakePackageRevisionResources) Delete ¶
func (c *FakePackageRevisionResources) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the packageRevisionResources and deletes it. Returns an error if one occurs.
func (*FakePackageRevisionResources) DeleteCollection ¶
func (c *FakePackageRevisionResources) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePackageRevisionResources) Get ¶
func (c *FakePackageRevisionResources) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PackageRevisionResources, err error)
Get takes name of the packageRevisionResources, and returns the corresponding packageRevisionResources object, and an error if there is any.
func (*FakePackageRevisionResources) List ¶
func (c *FakePackageRevisionResources) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PackageRevisionResourcesList, err error)
List takes label and field selectors, and returns the list of PackageRevisionResources that match those selectors.
func (*FakePackageRevisionResources) Patch ¶
func (c *FakePackageRevisionResources) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PackageRevisionResources, err error)
Patch applies the patch and returns the patched packageRevisionResources.
func (*FakePackageRevisionResources) Update ¶
func (c *FakePackageRevisionResources) Update(ctx context.Context, packageRevisionResources *v1alpha1.PackageRevisionResources, opts v1.UpdateOptions) (result *v1alpha1.PackageRevisionResources, err error)
Update takes the representation of a packageRevisionResources and updates it. Returns the server's representation of the packageRevisionResources, and an error, if there is any.
func (*FakePackageRevisionResources) Watch ¶
func (c *FakePackageRevisionResources) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested packageRevisionResources.
type FakePackageRevisions ¶
type FakePackageRevisions struct { Fake *FakePorchV1alpha1 // contains filtered or unexported fields }
FakePackageRevisions implements PackageRevisionInterface
func (*FakePackageRevisions) Create ¶
func (c *FakePackageRevisions) Create(ctx context.Context, packageRevision *v1alpha1.PackageRevision, opts v1.CreateOptions) (result *v1alpha1.PackageRevision, err error)
Create takes the representation of a packageRevision and creates it. Returns the server's representation of the packageRevision, and an error, if there is any.
func (*FakePackageRevisions) Delete ¶
func (c *FakePackageRevisions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the packageRevision and deletes it. Returns an error if one occurs.
func (*FakePackageRevisions) DeleteCollection ¶
func (c *FakePackageRevisions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePackageRevisions) Get ¶
func (c *FakePackageRevisions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PackageRevision, err error)
Get takes name of the packageRevision, and returns the corresponding packageRevision object, and an error if there is any.
func (*FakePackageRevisions) List ¶
func (c *FakePackageRevisions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PackageRevisionList, err error)
List takes label and field selectors, and returns the list of PackageRevisions that match those selectors.
func (*FakePackageRevisions) Patch ¶
func (c *FakePackageRevisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PackageRevision, err error)
Patch applies the patch and returns the patched packageRevision.
func (*FakePackageRevisions) Update ¶
func (c *FakePackageRevisions) Update(ctx context.Context, packageRevision *v1alpha1.PackageRevision, opts v1.UpdateOptions) (result *v1alpha1.PackageRevision, err error)
Update takes the representation of a packageRevision and updates it. Returns the server's representation of the packageRevision, and an error, if there is any.
func (*FakePackageRevisions) UpdateApproval ¶
func (c *FakePackageRevisions) UpdateApproval(ctx context.Context, packageRevisionName string, packageRevision *v1alpha1.PackageRevision, opts v1.UpdateOptions) (result *v1alpha1.PackageRevision, err error)
UpdateApproval takes the representation of a packageRevision and updates it. Returns the server's representation of the packageRevision, and an error, if there is any.
func (*FakePackageRevisions) UpdateStatus ¶
func (c *FakePackageRevisions) UpdateStatus(ctx context.Context, packageRevision *v1alpha1.PackageRevision, opts v1.UpdateOptions) (*v1alpha1.PackageRevision, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePackageRevisions) Watch ¶
func (c *FakePackageRevisions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested packageRevisions.
type FakePorchV1alpha1 ¶
func (*FakePorchV1alpha1) Functions ¶
func (c *FakePorchV1alpha1) Functions(namespace string) v1alpha1.FunctionInterface
func (*FakePorchV1alpha1) PackageRevisionResources ¶
func (c *FakePorchV1alpha1) PackageRevisionResources(namespace string) v1alpha1.PackageRevisionResourcesInterface
func (*FakePorchV1alpha1) PackageRevisions ¶
func (c *FakePorchV1alpha1) PackageRevisions(namespace string) v1alpha1.PackageRevisionInterface
func (*FakePorchV1alpha1) RESTClient ¶
func (c *FakePorchV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.