Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCertificateSigningRequests
- func (c *FakeCertificateSigningRequests) Apply(ctx context.Context, ...) (result *v1.CertificateSigningRequest, err error)
- func (c *FakeCertificateSigningRequests) ApplyStatus(ctx context.Context, ...) (result *v1.CertificateSigningRequest, err error)
- func (c *FakeCertificateSigningRequests) Create(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, ...) (result *v1.CertificateSigningRequest, err error)
- func (c *FakeCertificateSigningRequests) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeCertificateSigningRequests) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeCertificateSigningRequests) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CertificateSigningRequest, err error)
- func (c *FakeCertificateSigningRequests) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CertificateSigningRequestList, err error)
- func (c *FakeCertificateSigningRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.CertificateSigningRequest, err error)
- func (c *FakeCertificateSigningRequests) Update(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, ...) (result *v1.CertificateSigningRequest, err error)
- func (c *FakeCertificateSigningRequests) UpdateApproval(ctx context.Context, certificateSigningRequestName string, ...) (result *v1.CertificateSigningRequest, err error)
- func (c *FakeCertificateSigningRequests) UpdateStatus(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, ...) (*v1.CertificateSigningRequest, error)
- func (c *FakeCertificateSigningRequests) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeCertificatesV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCertificateSigningRequests ¶
type FakeCertificateSigningRequests struct {
Fake *FakeCertificatesV1
}
FakeCertificateSigningRequests implements CertificateSigningRequestInterface
func (*FakeCertificateSigningRequests) Apply ¶ added in v0.21.0
func (c *FakeCertificateSigningRequests) Apply(ctx context.Context, certificateSigningRequest *certificatesv1.CertificateSigningRequestApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CertificateSigningRequest, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied certificateSigningRequest.
func (*FakeCertificateSigningRequests) ApplyStatus ¶ added in v0.21.0
func (c *FakeCertificateSigningRequests) ApplyStatus(ctx context.Context, certificateSigningRequest *certificatesv1.CertificateSigningRequestApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CertificateSigningRequest, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeCertificateSigningRequests) Create ¶
func (c *FakeCertificateSigningRequests) Create(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.CreateOptions) (result *v1.CertificateSigningRequest, err error)
Create takes the representation of a certificateSigningRequest and creates it. Returns the server's representation of the certificateSigningRequest, and an error, if there is any.
func (*FakeCertificateSigningRequests) Delete ¶
func (c *FakeCertificateSigningRequests) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the certificateSigningRequest and deletes it. Returns an error if one occurs.
func (*FakeCertificateSigningRequests) DeleteCollection ¶
func (c *FakeCertificateSigningRequests) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeCertificateSigningRequests) Get ¶
func (c *FakeCertificateSigningRequests) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CertificateSigningRequest, err error)
Get takes name of the certificateSigningRequest, and returns the corresponding certificateSigningRequest object, and an error if there is any.
func (*FakeCertificateSigningRequests) List ¶
func (c *FakeCertificateSigningRequests) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CertificateSigningRequestList, err error)
List takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors.
func (*FakeCertificateSigningRequests) Patch ¶
func (c *FakeCertificateSigningRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CertificateSigningRequest, err error)
Patch applies the patch and returns the patched certificateSigningRequest.
func (*FakeCertificateSigningRequests) Update ¶
func (c *FakeCertificateSigningRequests) Update(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.UpdateOptions) (result *v1.CertificateSigningRequest, err error)
Update takes the representation of a certificateSigningRequest and updates it. Returns the server's representation of the certificateSigningRequest, and an error, if there is any.
func (*FakeCertificateSigningRequests) UpdateApproval ¶
func (c *FakeCertificateSigningRequests) UpdateApproval(ctx context.Context, certificateSigningRequestName string, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.UpdateOptions) (result *v1.CertificateSigningRequest, err error)
UpdateApproval takes the representation of a certificateSigningRequest and updates it. Returns the server's representation of the certificateSigningRequest, and an error, if there is any.
func (*FakeCertificateSigningRequests) UpdateStatus ¶
func (c *FakeCertificateSigningRequests) UpdateStatus(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.UpdateOptions) (*v1.CertificateSigningRequest, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeCertificateSigningRequests) Watch ¶
func (c *FakeCertificateSigningRequests) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested certificateSigningRequests.
type FakeCertificatesV1 ¶
func (*FakeCertificatesV1) CertificateSigningRequests ¶
func (c *FakeCertificatesV1) CertificateSigningRequests() v1.CertificateSigningRequestInterface
func (*FakeCertificatesV1) RESTClient ¶
func (c *FakeCertificatesV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.