Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCrunchydataV1
- func (c *FakeCrunchydataV1) PerconaPGClusters(namespace string) v1.PerconaPGClusterInterface
- func (c *FakeCrunchydataV1) Pgclusters(namespace string) v1.PgclusterInterface
- func (c *FakeCrunchydataV1) Pgpolicies(namespace string) v1.PgpolicyInterface
- func (c *FakeCrunchydataV1) Pgreplicas(namespace string) v1.PgreplicaInterface
- func (c *FakeCrunchydataV1) Pgtasks(namespace string) v1.PgtaskInterface
- func (c *FakeCrunchydataV1) RESTClient() rest.Interface
- type FakePerconaPGClusters
- func (c *FakePerconaPGClusters) Create(ctx context.Context, perconaPGCluster *crunchydatacomv1.PerconaPGCluster, ...) (result *crunchydatacomv1.PerconaPGCluster, err error)
- func (c *FakePerconaPGClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePerconaPGClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePerconaPGClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.PerconaPGCluster, err error)
- func (c *FakePerconaPGClusters) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PerconaPGClusterList, err error)
- func (c *FakePerconaPGClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *crunchydatacomv1.PerconaPGCluster, err error)
- func (c *FakePerconaPGClusters) Update(ctx context.Context, perconaPGCluster *crunchydatacomv1.PerconaPGCluster, ...) (result *crunchydatacomv1.PerconaPGCluster, err error)
- func (c *FakePerconaPGClusters) UpdateStatus(ctx context.Context, perconaPGCluster *crunchydatacomv1.PerconaPGCluster, ...) (*crunchydatacomv1.PerconaPGCluster, error)
- func (c *FakePerconaPGClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePgclusters
- func (c *FakePgclusters) Create(ctx context.Context, pgcluster *crunchydatacomv1.Pgcluster, ...) (result *crunchydatacomv1.Pgcluster, err error)
- func (c *FakePgclusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePgclusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePgclusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgcluster, err error)
- func (c *FakePgclusters) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgclusterList, err error)
- func (c *FakePgclusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *crunchydatacomv1.Pgcluster, err error)
- func (c *FakePgclusters) Update(ctx context.Context, pgcluster *crunchydatacomv1.Pgcluster, ...) (result *crunchydatacomv1.Pgcluster, err error)
- func (c *FakePgclusters) UpdateStatus(ctx context.Context, pgcluster *crunchydatacomv1.Pgcluster, ...) (*crunchydatacomv1.Pgcluster, error)
- func (c *FakePgclusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePgpolicies
- func (c *FakePgpolicies) Create(ctx context.Context, pgpolicy *crunchydatacomv1.Pgpolicy, ...) (result *crunchydatacomv1.Pgpolicy, err error)
- func (c *FakePgpolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePgpolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePgpolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgpolicy, err error)
- func (c *FakePgpolicies) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgpolicyList, err error)
- func (c *FakePgpolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *crunchydatacomv1.Pgpolicy, err error)
- func (c *FakePgpolicies) Update(ctx context.Context, pgpolicy *crunchydatacomv1.Pgpolicy, ...) (result *crunchydatacomv1.Pgpolicy, err error)
- func (c *FakePgpolicies) UpdateStatus(ctx context.Context, pgpolicy *crunchydatacomv1.Pgpolicy, ...) (*crunchydatacomv1.Pgpolicy, error)
- func (c *FakePgpolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePgreplicas
- func (c *FakePgreplicas) Create(ctx context.Context, pgreplica *crunchydatacomv1.Pgreplica, ...) (result *crunchydatacomv1.Pgreplica, err error)
- func (c *FakePgreplicas) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePgreplicas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePgreplicas) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgreplica, err error)
- func (c *FakePgreplicas) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgreplicaList, err error)
- func (c *FakePgreplicas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *crunchydatacomv1.Pgreplica, err error)
- func (c *FakePgreplicas) Update(ctx context.Context, pgreplica *crunchydatacomv1.Pgreplica, ...) (result *crunchydatacomv1.Pgreplica, err error)
- func (c *FakePgreplicas) UpdateStatus(ctx context.Context, pgreplica *crunchydatacomv1.Pgreplica, ...) (*crunchydatacomv1.Pgreplica, error)
- func (c *FakePgreplicas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePgtasks
- func (c *FakePgtasks) Create(ctx context.Context, pgtask *crunchydatacomv1.Pgtask, opts v1.CreateOptions) (result *crunchydatacomv1.Pgtask, err error)
- func (c *FakePgtasks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePgtasks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePgtasks) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgtask, err error)
- func (c *FakePgtasks) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgtaskList, err error)
- func (c *FakePgtasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *crunchydatacomv1.Pgtask, err error)
- func (c *FakePgtasks) Update(ctx context.Context, pgtask *crunchydatacomv1.Pgtask, opts v1.UpdateOptions) (result *crunchydatacomv1.Pgtask, err error)
- func (c *FakePgtasks) UpdateStatus(ctx context.Context, pgtask *crunchydatacomv1.Pgtask, opts v1.UpdateOptions) (*crunchydatacomv1.Pgtask, error)
- func (c *FakePgtasks) 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 FakeCrunchydataV1 ¶
func (*FakeCrunchydataV1) PerconaPGClusters ¶ added in v0.2.0
func (c *FakeCrunchydataV1) PerconaPGClusters(namespace string) v1.PerconaPGClusterInterface
func (*FakeCrunchydataV1) Pgclusters ¶
func (c *FakeCrunchydataV1) Pgclusters(namespace string) v1.PgclusterInterface
func (*FakeCrunchydataV1) Pgpolicies ¶
func (c *FakeCrunchydataV1) Pgpolicies(namespace string) v1.PgpolicyInterface
func (*FakeCrunchydataV1) Pgreplicas ¶
func (c *FakeCrunchydataV1) Pgreplicas(namespace string) v1.PgreplicaInterface
func (*FakeCrunchydataV1) Pgtasks ¶
func (c *FakeCrunchydataV1) Pgtasks(namespace string) v1.PgtaskInterface
func (*FakeCrunchydataV1) RESTClient ¶
func (c *FakeCrunchydataV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakePerconaPGClusters ¶ added in v0.2.0
type FakePerconaPGClusters struct { Fake *FakeCrunchydataV1 // contains filtered or unexported fields }
FakePerconaPGClusters implements PerconaPGClusterInterface
func (*FakePerconaPGClusters) Create ¶ added in v0.2.0
func (c *FakePerconaPGClusters) Create(ctx context.Context, perconaPGCluster *crunchydatacomv1.PerconaPGCluster, opts v1.CreateOptions) (result *crunchydatacomv1.PerconaPGCluster, err error)
Create takes the representation of a perconaPGCluster and creates it. Returns the server's representation of the perconaPGCluster, and an error, if there is any.
func (*FakePerconaPGClusters) Delete ¶ added in v0.2.0
func (c *FakePerconaPGClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the perconaPGCluster and deletes it. Returns an error if one occurs.
func (*FakePerconaPGClusters) DeleteCollection ¶ added in v0.2.0
func (c *FakePerconaPGClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePerconaPGClusters) Get ¶ added in v0.2.0
func (c *FakePerconaPGClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.PerconaPGCluster, err error)
Get takes name of the perconaPGCluster, and returns the corresponding perconaPGCluster object, and an error if there is any.
func (*FakePerconaPGClusters) List ¶ added in v0.2.0
func (c *FakePerconaPGClusters) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PerconaPGClusterList, err error)
List takes label and field selectors, and returns the list of PerconaPGClusters that match those selectors.
func (*FakePerconaPGClusters) Patch ¶ added in v0.2.0
func (c *FakePerconaPGClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *crunchydatacomv1.PerconaPGCluster, err error)
Patch applies the patch and returns the patched perconaPGCluster.
func (*FakePerconaPGClusters) Update ¶ added in v0.2.0
func (c *FakePerconaPGClusters) Update(ctx context.Context, perconaPGCluster *crunchydatacomv1.PerconaPGCluster, opts v1.UpdateOptions) (result *crunchydatacomv1.PerconaPGCluster, err error)
Update takes the representation of a perconaPGCluster and updates it. Returns the server's representation of the perconaPGCluster, and an error, if there is any.
func (*FakePerconaPGClusters) UpdateStatus ¶ added in v0.2.0
func (c *FakePerconaPGClusters) UpdateStatus(ctx context.Context, perconaPGCluster *crunchydatacomv1.PerconaPGCluster, opts v1.UpdateOptions) (*crunchydatacomv1.PerconaPGCluster, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePerconaPGClusters) Watch ¶ added in v0.2.0
func (c *FakePerconaPGClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested perconaPGClusters.
type FakePgclusters ¶
type FakePgclusters struct { Fake *FakeCrunchydataV1 // contains filtered or unexported fields }
FakePgclusters implements PgclusterInterface
func (*FakePgclusters) Create ¶
func (c *FakePgclusters) Create(ctx context.Context, pgcluster *crunchydatacomv1.Pgcluster, opts v1.CreateOptions) (result *crunchydatacomv1.Pgcluster, err error)
Create takes the representation of a pgcluster and creates it. Returns the server's representation of the pgcluster, and an error, if there is any.
func (*FakePgclusters) Delete ¶
func (c *FakePgclusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the pgcluster and deletes it. Returns an error if one occurs.
func (*FakePgclusters) DeleteCollection ¶
func (c *FakePgclusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePgclusters) Get ¶
func (c *FakePgclusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgcluster, err error)
Get takes name of the pgcluster, and returns the corresponding pgcluster object, and an error if there is any.
func (*FakePgclusters) List ¶
func (c *FakePgclusters) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgclusterList, err error)
List takes label and field selectors, and returns the list of Pgclusters that match those selectors.
func (*FakePgclusters) Patch ¶
func (c *FakePgclusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *crunchydatacomv1.Pgcluster, err error)
Patch applies the patch and returns the patched pgcluster.
func (*FakePgclusters) Update ¶
func (c *FakePgclusters) Update(ctx context.Context, pgcluster *crunchydatacomv1.Pgcluster, opts v1.UpdateOptions) (result *crunchydatacomv1.Pgcluster, err error)
Update takes the representation of a pgcluster and updates it. Returns the server's representation of the pgcluster, and an error, if there is any.
func (*FakePgclusters) UpdateStatus ¶
func (c *FakePgclusters) UpdateStatus(ctx context.Context, pgcluster *crunchydatacomv1.Pgcluster, opts v1.UpdateOptions) (*crunchydatacomv1.Pgcluster, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePgclusters) Watch ¶
func (c *FakePgclusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pgclusters.
type FakePgpolicies ¶
type FakePgpolicies struct { Fake *FakeCrunchydataV1 // contains filtered or unexported fields }
FakePgpolicies implements PgpolicyInterface
func (*FakePgpolicies) Create ¶
func (c *FakePgpolicies) Create(ctx context.Context, pgpolicy *crunchydatacomv1.Pgpolicy, opts v1.CreateOptions) (result *crunchydatacomv1.Pgpolicy, err error)
Create takes the representation of a pgpolicy and creates it. Returns the server's representation of the pgpolicy, and an error, if there is any.
func (*FakePgpolicies) Delete ¶
func (c *FakePgpolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the pgpolicy and deletes it. Returns an error if one occurs.
func (*FakePgpolicies) DeleteCollection ¶
func (c *FakePgpolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePgpolicies) Get ¶
func (c *FakePgpolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgpolicy, err error)
Get takes name of the pgpolicy, and returns the corresponding pgpolicy object, and an error if there is any.
func (*FakePgpolicies) List ¶
func (c *FakePgpolicies) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgpolicyList, err error)
List takes label and field selectors, and returns the list of Pgpolicies that match those selectors.
func (*FakePgpolicies) Patch ¶
func (c *FakePgpolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *crunchydatacomv1.Pgpolicy, err error)
Patch applies the patch and returns the patched pgpolicy.
func (*FakePgpolicies) Update ¶
func (c *FakePgpolicies) Update(ctx context.Context, pgpolicy *crunchydatacomv1.Pgpolicy, opts v1.UpdateOptions) (result *crunchydatacomv1.Pgpolicy, err error)
Update takes the representation of a pgpolicy and updates it. Returns the server's representation of the pgpolicy, and an error, if there is any.
func (*FakePgpolicies) UpdateStatus ¶
func (c *FakePgpolicies) UpdateStatus(ctx context.Context, pgpolicy *crunchydatacomv1.Pgpolicy, opts v1.UpdateOptions) (*crunchydatacomv1.Pgpolicy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePgpolicies) Watch ¶
func (c *FakePgpolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pgpolicies.
type FakePgreplicas ¶
type FakePgreplicas struct { Fake *FakeCrunchydataV1 // contains filtered or unexported fields }
FakePgreplicas implements PgreplicaInterface
func (*FakePgreplicas) Create ¶
func (c *FakePgreplicas) Create(ctx context.Context, pgreplica *crunchydatacomv1.Pgreplica, opts v1.CreateOptions) (result *crunchydatacomv1.Pgreplica, err error)
Create takes the representation of a pgreplica and creates it. Returns the server's representation of the pgreplica, and an error, if there is any.
func (*FakePgreplicas) Delete ¶
func (c *FakePgreplicas) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the pgreplica and deletes it. Returns an error if one occurs.
func (*FakePgreplicas) DeleteCollection ¶
func (c *FakePgreplicas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePgreplicas) Get ¶
func (c *FakePgreplicas) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgreplica, err error)
Get takes name of the pgreplica, and returns the corresponding pgreplica object, and an error if there is any.
func (*FakePgreplicas) List ¶
func (c *FakePgreplicas) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgreplicaList, err error)
List takes label and field selectors, and returns the list of Pgreplicas that match those selectors.
func (*FakePgreplicas) Patch ¶
func (c *FakePgreplicas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *crunchydatacomv1.Pgreplica, err error)
Patch applies the patch and returns the patched pgreplica.
func (*FakePgreplicas) Update ¶
func (c *FakePgreplicas) Update(ctx context.Context, pgreplica *crunchydatacomv1.Pgreplica, opts v1.UpdateOptions) (result *crunchydatacomv1.Pgreplica, err error)
Update takes the representation of a pgreplica and updates it. Returns the server's representation of the pgreplica, and an error, if there is any.
func (*FakePgreplicas) UpdateStatus ¶
func (c *FakePgreplicas) UpdateStatus(ctx context.Context, pgreplica *crunchydatacomv1.Pgreplica, opts v1.UpdateOptions) (*crunchydatacomv1.Pgreplica, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePgreplicas) Watch ¶
func (c *FakePgreplicas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pgreplicas.
type FakePgtasks ¶
type FakePgtasks struct { Fake *FakeCrunchydataV1 // contains filtered or unexported fields }
FakePgtasks implements PgtaskInterface
func (*FakePgtasks) Create ¶
func (c *FakePgtasks) Create(ctx context.Context, pgtask *crunchydatacomv1.Pgtask, opts v1.CreateOptions) (result *crunchydatacomv1.Pgtask, err error)
Create takes the representation of a pgtask and creates it. Returns the server's representation of the pgtask, and an error, if there is any.
func (*FakePgtasks) Delete ¶
func (c *FakePgtasks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the pgtask and deletes it. Returns an error if one occurs.
func (*FakePgtasks) DeleteCollection ¶
func (c *FakePgtasks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePgtasks) Get ¶
func (c *FakePgtasks) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgtask, err error)
Get takes name of the pgtask, and returns the corresponding pgtask object, and an error if there is any.
func (*FakePgtasks) List ¶
func (c *FakePgtasks) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgtaskList, err error)
List takes label and field selectors, and returns the list of Pgtasks that match those selectors.
func (*FakePgtasks) Patch ¶
func (c *FakePgtasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *crunchydatacomv1.Pgtask, err error)
Patch applies the patch and returns the patched pgtask.
func (*FakePgtasks) Update ¶
func (c *FakePgtasks) Update(ctx context.Context, pgtask *crunchydatacomv1.Pgtask, opts v1.UpdateOptions) (result *crunchydatacomv1.Pgtask, err error)
Update takes the representation of a pgtask and updates it. Returns the server's representation of the pgtask, and an error, if there is any.
func (*FakePgtasks) UpdateStatus ¶
func (c *FakePgtasks) UpdateStatus(ctx context.Context, pgtask *crunchydatacomv1.Pgtask, opts v1.UpdateOptions) (*crunchydatacomv1.Pgtask, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePgtasks) Watch ¶
func (c *FakePgtasks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pgtasks.