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