Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeNatsClusters
- func (c *FakeNatsClusters) Create(ctx context.Context, natsCluster *v1alpha2.NatsCluster, opts v1.CreateOptions) (result *v1alpha2.NatsCluster, err error)
- func (c *FakeNatsClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNatsClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNatsClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.NatsCluster, err error)
- func (c *FakeNatsClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.NatsClusterList, err error)
- func (c *FakeNatsClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.NatsCluster, err error)
- func (c *FakeNatsClusters) Update(ctx context.Context, natsCluster *v1alpha2.NatsCluster, opts v1.UpdateOptions) (result *v1alpha2.NatsCluster, err error)
- func (c *FakeNatsClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNatsServiceRoles
- func (c *FakeNatsServiceRoles) Create(ctx context.Context, natsServiceRole *v1alpha2.NatsServiceRole, ...) (result *v1alpha2.NatsServiceRole, err error)
- func (c *FakeNatsServiceRoles) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNatsServiceRoles) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNatsServiceRoles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.NatsServiceRole, err error)
- func (c *FakeNatsServiceRoles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.NatsServiceRoleList, err error)
- func (c *FakeNatsServiceRoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.NatsServiceRole, err error)
- func (c *FakeNatsServiceRoles) Update(ctx context.Context, natsServiceRole *v1alpha2.NatsServiceRole, ...) (result *v1alpha2.NatsServiceRole, err error)
- func (c *FakeNatsServiceRoles) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNatsV1alpha2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNatsClusters ¶
type FakeNatsClusters struct { Fake *FakeNatsV1alpha2 // contains filtered or unexported fields }
FakeNatsClusters implements NatsClusterInterface
func (*FakeNatsClusters) Create ¶
func (c *FakeNatsClusters) Create(ctx context.Context, natsCluster *v1alpha2.NatsCluster, opts v1.CreateOptions) (result *v1alpha2.NatsCluster, err error)
Create takes the representation of a natsCluster and creates it. Returns the server's representation of the natsCluster, and an error, if there is any.
func (*FakeNatsClusters) Delete ¶
func (c *FakeNatsClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the natsCluster and deletes it. Returns an error if one occurs.
func (*FakeNatsClusters) DeleteCollection ¶
func (c *FakeNatsClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNatsClusters) Get ¶
func (c *FakeNatsClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.NatsCluster, err error)
Get takes name of the natsCluster, and returns the corresponding natsCluster object, and an error if there is any.
func (*FakeNatsClusters) List ¶
func (c *FakeNatsClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.NatsClusterList, err error)
List takes label and field selectors, and returns the list of NatsClusters that match those selectors.
func (*FakeNatsClusters) Patch ¶
func (c *FakeNatsClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.NatsCluster, err error)
Patch applies the patch and returns the patched natsCluster.
func (*FakeNatsClusters) Update ¶
func (c *FakeNatsClusters) Update(ctx context.Context, natsCluster *v1alpha2.NatsCluster, opts v1.UpdateOptions) (result *v1alpha2.NatsCluster, err error)
Update takes the representation of a natsCluster and updates it. Returns the server's representation of the natsCluster, and an error, if there is any.
func (*FakeNatsClusters) Watch ¶
func (c *FakeNatsClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested natsClusters.
type FakeNatsServiceRoles ¶
type FakeNatsServiceRoles struct { Fake *FakeNatsV1alpha2 // contains filtered or unexported fields }
FakeNatsServiceRoles implements NatsServiceRoleInterface
func (*FakeNatsServiceRoles) Create ¶
func (c *FakeNatsServiceRoles) Create(ctx context.Context, natsServiceRole *v1alpha2.NatsServiceRole, opts v1.CreateOptions) (result *v1alpha2.NatsServiceRole, err error)
Create takes the representation of a natsServiceRole and creates it. Returns the server's representation of the natsServiceRole, and an error, if there is any.
func (*FakeNatsServiceRoles) Delete ¶
func (c *FakeNatsServiceRoles) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the natsServiceRole and deletes it. Returns an error if one occurs.
func (*FakeNatsServiceRoles) DeleteCollection ¶
func (c *FakeNatsServiceRoles) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNatsServiceRoles) Get ¶
func (c *FakeNatsServiceRoles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.NatsServiceRole, err error)
Get takes name of the natsServiceRole, and returns the corresponding natsServiceRole object, and an error if there is any.
func (*FakeNatsServiceRoles) List ¶
func (c *FakeNatsServiceRoles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.NatsServiceRoleList, err error)
List takes label and field selectors, and returns the list of NatsServiceRoles that match those selectors.
func (*FakeNatsServiceRoles) Patch ¶
func (c *FakeNatsServiceRoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.NatsServiceRole, err error)
Patch applies the patch and returns the patched natsServiceRole.
func (*FakeNatsServiceRoles) Update ¶
func (c *FakeNatsServiceRoles) Update(ctx context.Context, natsServiceRole *v1alpha2.NatsServiceRole, opts v1.UpdateOptions) (result *v1alpha2.NatsServiceRole, err error)
Update takes the representation of a natsServiceRole and updates it. Returns the server's representation of the natsServiceRole, and an error, if there is any.
func (*FakeNatsServiceRoles) Watch ¶
func (c *FakeNatsServiceRoles) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested natsServiceRoles.
type FakeNatsV1alpha2 ¶
func (*FakeNatsV1alpha2) NatsClusters ¶
func (c *FakeNatsV1alpha2) NatsClusters(namespace string) v1alpha2.NatsClusterInterface
func (*FakeNatsV1alpha2) NatsServiceRoles ¶
func (c *FakeNatsV1alpha2) NatsServiceRoles(namespace string) v1alpha2.NatsServiceRoleInterface
func (*FakeNatsV1alpha2) RESTClient ¶
func (c *FakeNatsV1alpha2) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.