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