Documentation ¶
Index ¶
- type WebhooksClient
- func (s WebhooksClient) Create(webhook *executorsv1.Webhook) (*executorsv1.Webhook, error)
- func (s WebhooksClient) Delete(name, namespace string) error
- func (s WebhooksClient) Get(namespace, name string) (*executorsv1.Webhook, error)
- func (s WebhooksClient) GetByEvent(event string) (*executorsv1.WebhookList, error)
- func (s WebhooksClient) List(namespace string) (*executorsv1.WebhookList, error)
- func (s WebhooksClient) Update(webhook *executorsv1.Webhook) (*executorsv1.Webhook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhooksClient ¶
WebhooksClient client for getting webhooks CRs
func NewWebhooksClient ¶
func NewWebhooksClient(client client.Client) *WebhooksClient
NewWebhooksClient returns new client instance, needs kubernetes client to be passed as dependecy
func (WebhooksClient) Create ¶
func (s WebhooksClient) Create(webhook *executorsv1.Webhook) (*executorsv1.Webhook, error)
Create creates new Webhook CR
func (WebhooksClient) Delete ¶
func (s WebhooksClient) Delete(name, namespace string) error
Delete deletes Webhook by name
func (WebhooksClient) Get ¶
func (s WebhooksClient) Get(namespace, name string) (*executorsv1.Webhook, error)
Get gets webhook by name in given namespace
func (WebhooksClient) GetByEvent ¶
func (s WebhooksClient) GetByEvent(event string) (*executorsv1.WebhookList, error)
GetByEvent gets all webhooks with given event
func (WebhooksClient) List ¶
func (s WebhooksClient) List(namespace string) (*executorsv1.WebhookList, error)
List shows list of available webhooks
func (WebhooksClient) Update ¶
func (s WebhooksClient) Update(webhook *executorsv1.Webhook) (*executorsv1.Webhook, error)
Update updates Webhook
Click to show internal directories.
Click to hide internal directories.