Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeKubeanV1alpha1
- type FakeManifests
- func (c *FakeManifests) Create(ctx context.Context, manifest *v1alpha1.Manifest, opts v1.CreateOptions) (result *v1alpha1.Manifest, err error)
- func (c *FakeManifests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeManifests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeManifests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Manifest, err error)
- func (c *FakeManifests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ManifestList, err error)
- func (c *FakeManifests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Manifest, err error)
- func (c *FakeManifests) Update(ctx context.Context, manifest *v1alpha1.Manifest, opts v1.UpdateOptions) (result *v1alpha1.Manifest, err error)
- func (c *FakeManifests) UpdateStatus(ctx context.Context, manifest *v1alpha1.Manifest, opts v1.UpdateOptions) (*v1alpha1.Manifest, error)
- func (c *FakeManifests) 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 FakeKubeanV1alpha1 ¶
func (*FakeKubeanV1alpha1) Manifests ¶
func (c *FakeKubeanV1alpha1) Manifests() v1alpha1.ManifestInterface
func (*FakeKubeanV1alpha1) RESTClient ¶
func (c *FakeKubeanV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeManifests ¶
type FakeManifests struct {
Fake *FakeKubeanV1alpha1
}
FakeManifests implements ManifestInterface
func (*FakeManifests) Create ¶
func (c *FakeManifests) Create(ctx context.Context, manifest *v1alpha1.Manifest, opts v1.CreateOptions) (result *v1alpha1.Manifest, err error)
Create takes the representation of a manifest and creates it. Returns the server's representation of the manifest, and an error, if there is any.
func (*FakeManifests) Delete ¶
func (c *FakeManifests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the manifest and deletes it. Returns an error if one occurs.
func (*FakeManifests) DeleteCollection ¶
func (c *FakeManifests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeManifests) Get ¶
func (c *FakeManifests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Manifest, err error)
Get takes name of the manifest, and returns the corresponding manifest object, and an error if there is any.
func (*FakeManifests) List ¶
func (c *FakeManifests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ManifestList, err error)
List takes label and field selectors, and returns the list of Manifests that match those selectors.
func (*FakeManifests) Patch ¶
func (c *FakeManifests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Manifest, err error)
Patch applies the patch and returns the patched manifest.
func (*FakeManifests) Update ¶
func (c *FakeManifests) Update(ctx context.Context, manifest *v1alpha1.Manifest, opts v1.UpdateOptions) (result *v1alpha1.Manifest, err error)
Update takes the representation of a manifest and updates it. Returns the server's representation of the manifest, and an error, if there is any.
func (*FakeManifests) UpdateStatus ¶
func (c *FakeManifests) UpdateStatus(ctx context.Context, manifest *v1alpha1.Manifest, opts v1.UpdateOptions) (*v1alpha1.Manifest, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeManifests) Watch ¶
func (c *FakeManifests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested manifests.