Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCrunchydataV1
- 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 FakePgclusters
- func (c *FakePgclusters) Create(pgcluster *crunchydatacomv1.Pgcluster) (result *crunchydatacomv1.Pgcluster, err error)
- func (c *FakePgclusters) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePgclusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePgclusters) Get(name string, options v1.GetOptions) (result *crunchydatacomv1.Pgcluster, err error)
- func (c *FakePgclusters) List(opts v1.ListOptions) (result *crunchydatacomv1.PgclusterList, err error)
- func (c *FakePgclusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *crunchydatacomv1.Pgcluster, err error)
- func (c *FakePgclusters) Update(pgcluster *crunchydatacomv1.Pgcluster) (result *crunchydatacomv1.Pgcluster, err error)
- func (c *FakePgclusters) UpdateStatus(pgcluster *crunchydatacomv1.Pgcluster) (*crunchydatacomv1.Pgcluster, error)
- func (c *FakePgclusters) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakePgpolicies
- func (c *FakePgpolicies) Create(pgpolicy *crunchydatacomv1.Pgpolicy) (result *crunchydatacomv1.Pgpolicy, err error)
- func (c *FakePgpolicies) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePgpolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePgpolicies) Get(name string, options v1.GetOptions) (result *crunchydatacomv1.Pgpolicy, err error)
- func (c *FakePgpolicies) List(opts v1.ListOptions) (result *crunchydatacomv1.PgpolicyList, err error)
- func (c *FakePgpolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *crunchydatacomv1.Pgpolicy, err error)
- func (c *FakePgpolicies) Update(pgpolicy *crunchydatacomv1.Pgpolicy) (result *crunchydatacomv1.Pgpolicy, err error)
- func (c *FakePgpolicies) UpdateStatus(pgpolicy *crunchydatacomv1.Pgpolicy) (*crunchydatacomv1.Pgpolicy, error)
- func (c *FakePgpolicies) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakePgreplicas
- func (c *FakePgreplicas) Create(pgreplica *crunchydatacomv1.Pgreplica) (result *crunchydatacomv1.Pgreplica, err error)
- func (c *FakePgreplicas) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePgreplicas) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePgreplicas) Get(name string, options v1.GetOptions) (result *crunchydatacomv1.Pgreplica, err error)
- func (c *FakePgreplicas) List(opts v1.ListOptions) (result *crunchydatacomv1.PgreplicaList, err error)
- func (c *FakePgreplicas) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *crunchydatacomv1.Pgreplica, err error)
- func (c *FakePgreplicas) Update(pgreplica *crunchydatacomv1.Pgreplica) (result *crunchydatacomv1.Pgreplica, err error)
- func (c *FakePgreplicas) UpdateStatus(pgreplica *crunchydatacomv1.Pgreplica) (*crunchydatacomv1.Pgreplica, error)
- func (c *FakePgreplicas) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakePgtasks
- func (c *FakePgtasks) Create(pgtask *crunchydatacomv1.Pgtask) (result *crunchydatacomv1.Pgtask, err error)
- func (c *FakePgtasks) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePgtasks) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePgtasks) Get(name string, options v1.GetOptions) (result *crunchydatacomv1.Pgtask, err error)
- func (c *FakePgtasks) List(opts v1.ListOptions) (result *crunchydatacomv1.PgtaskList, err error)
- func (c *FakePgtasks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *crunchydatacomv1.Pgtask, err error)
- func (c *FakePgtasks) Update(pgtask *crunchydatacomv1.Pgtask) (result *crunchydatacomv1.Pgtask, err error)
- func (c *FakePgtasks) UpdateStatus(pgtask *crunchydatacomv1.Pgtask) (*crunchydatacomv1.Pgtask, error)
- func (c *FakePgtasks) Watch(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) 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 FakePgclusters ¶
type FakePgclusters struct { Fake *FakeCrunchydataV1 // contains filtered or unexported fields }
FakePgclusters implements PgclusterInterface
func (*FakePgclusters) Create ¶
func (c *FakePgclusters) Create(pgcluster *crunchydatacomv1.Pgcluster) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePgclusters) Get ¶
func (c *FakePgclusters) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *crunchydatacomv1.Pgcluster, err error)
Patch applies the patch and returns the patched pgcluster.
func (*FakePgclusters) Update ¶
func (c *FakePgclusters) Update(pgcluster *crunchydatacomv1.Pgcluster) (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(pgcluster *crunchydatacomv1.Pgcluster) (*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(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(pgpolicy *crunchydatacomv1.Pgpolicy) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePgpolicies) Get ¶
func (c *FakePgpolicies) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *crunchydatacomv1.Pgpolicy, err error)
Patch applies the patch and returns the patched pgpolicy.
func (*FakePgpolicies) Update ¶
func (c *FakePgpolicies) Update(pgpolicy *crunchydatacomv1.Pgpolicy) (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(pgpolicy *crunchydatacomv1.Pgpolicy) (*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(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(pgreplica *crunchydatacomv1.Pgreplica) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePgreplicas) Get ¶
func (c *FakePgreplicas) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *crunchydatacomv1.Pgreplica, err error)
Patch applies the patch and returns the patched pgreplica.
func (*FakePgreplicas) Update ¶
func (c *FakePgreplicas) Update(pgreplica *crunchydatacomv1.Pgreplica) (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(pgreplica *crunchydatacomv1.Pgreplica) (*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(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(pgtask *crunchydatacomv1.Pgtask) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePgtasks) Get ¶
func (c *FakePgtasks) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *crunchydatacomv1.Pgtask, err error)
Patch applies the patch and returns the patched pgtask.
func (*FakePgtasks) Update ¶
func (c *FakePgtasks) Update(pgtask *crunchydatacomv1.Pgtask) (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(pgtask *crunchydatacomv1.Pgtask) (*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(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pgtasks.