Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAuditingV1alpha1
- type FakeRules
- func (c *FakeRules) Create(rule *v1alpha1.Rule) (result *v1alpha1.Rule, err error)
- func (c *FakeRules) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeRules) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeRules) Get(name string, options v1.GetOptions) (result *v1alpha1.Rule, err error)
- func (c *FakeRules) List(opts v1.ListOptions) (result *v1alpha1.RuleList, err error)
- func (c *FakeRules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Rule, err error)
- func (c *FakeRules) Update(rule *v1alpha1.Rule) (result *v1alpha1.Rule, err error)
- func (c *FakeRules) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeWebhooks
- func (c *FakeWebhooks) Create(webhook *v1alpha1.Webhook) (result *v1alpha1.Webhook, err error)
- func (c *FakeWebhooks) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeWebhooks) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeWebhooks) Get(name string, options v1.GetOptions) (result *v1alpha1.Webhook, err error)
- func (c *FakeWebhooks) List(opts v1.ListOptions) (result *v1alpha1.WebhookList, err error)
- func (c *FakeWebhooks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Webhook, err error)
- func (c *FakeWebhooks) Update(webhook *v1alpha1.Webhook) (result *v1alpha1.Webhook, err error)
- func (c *FakeWebhooks) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAuditingV1alpha1 ¶
func (*FakeAuditingV1alpha1) RESTClient ¶
func (c *FakeAuditingV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeAuditingV1alpha1) Rules ¶
func (c *FakeAuditingV1alpha1) Rules() v1alpha1.RuleInterface
func (*FakeAuditingV1alpha1) Webhooks ¶
func (c *FakeAuditingV1alpha1) Webhooks() v1alpha1.WebhookInterface
type FakeRules ¶
type FakeRules struct {
Fake *FakeAuditingV1alpha1
}
FakeRules implements RuleInterface
func (*FakeRules) Create ¶
Create takes the representation of a rule and creates it. Returns the server's representation of the rule, and an error, if there is any.
func (*FakeRules) Delete ¶
func (c *FakeRules) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the rule and deletes it. Returns an error if one occurs.
func (*FakeRules) DeleteCollection ¶
func (c *FakeRules) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRules) Get ¶
Get takes name of the rule, and returns the corresponding rule object, and an error if there is any.
func (*FakeRules) List ¶
List takes label and field selectors, and returns the list of Rules that match those selectors.
func (*FakeRules) Patch ¶
func (c *FakeRules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Rule, err error)
Patch applies the patch and returns the patched rule.
type FakeWebhooks ¶
type FakeWebhooks struct {
Fake *FakeAuditingV1alpha1
}
FakeWebhooks implements WebhookInterface
func (*FakeWebhooks) Create ¶
Create takes the representation of a webhook and creates it. Returns the server's representation of the webhook, and an error, if there is any.
func (*FakeWebhooks) Delete ¶
func (c *FakeWebhooks) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the webhook and deletes it. Returns an error if one occurs.
func (*FakeWebhooks) DeleteCollection ¶
func (c *FakeWebhooks) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeWebhooks) Get ¶
func (c *FakeWebhooks) Get(name string, options v1.GetOptions) (result *v1alpha1.Webhook, err error)
Get takes name of the webhook, and returns the corresponding webhook object, and an error if there is any.
func (*FakeWebhooks) List ¶
func (c *FakeWebhooks) List(opts v1.ListOptions) (result *v1alpha1.WebhookList, err error)
List takes label and field selectors, and returns the list of Webhooks that match those selectors.
func (*FakeWebhooks) Patch ¶
func (c *FakeWebhooks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Webhook, err error)
Patch applies the patch and returns the patched webhook.
func (*FakeWebhooks) Update ¶
Update takes the representation of a webhook and updates it. Returns the server's representation of the webhook, and an error, if there is any.
func (*FakeWebhooks) Watch ¶
func (c *FakeWebhooks) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested webhooks.