Documentation ¶
Index ¶
- type ExecutorsClient
- func (s ExecutorsClient) Create(executor *executorv1.Executor) (*executorv1.Executor, error)
- func (s ExecutorsClient) Delete(name string) error
- func (s ExecutorsClient) DeleteByLabels(selector string) error
- func (s ExecutorsClient) Get(name string) (*executorv1.Executor, error)
- func (s ExecutorsClient) GetByType(executorType string) (*executorv1.Executor, error)
- func (s ExecutorsClient) List(selector string) (*executorv1.ExecutorList, error)
- func (s ExecutorsClient) Update(executor *executorv1.Executor) (*executorv1.Executor, error)
- type WebhooksClient
- func (s WebhooksClient) Create(webhook *executorsv1.Webhook) (*executorsv1.Webhook, error)
- func (s WebhooksClient) Delete(name string) error
- func (s WebhooksClient) DeleteByLabels(selector string) error
- func (s WebhooksClient) Get(name string) (*executorsv1.Webhook, error)
- func (s WebhooksClient) GetByEvent(event string) (*executorsv1.WebhookList, error)
- func (s WebhooksClient) List(selector 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 ExecutorsClient ¶
ExecutorsClient client for getting executors CRs
func NewClient ¶
func NewClient(client client.Client, namespace string) *ExecutorsClient
NewClient returns new client instance, needs kubernetes client to be passed as dependecy
func (ExecutorsClient) Create ¶
func (s ExecutorsClient) Create(executor *executorv1.Executor) (*executorv1.Executor, error)
Create creates new Executor CR
func (ExecutorsClient) Delete ¶
func (s ExecutorsClient) Delete(name string) error
Delete deletes executor by name
func (ExecutorsClient) DeleteByLabels ¶ added in v1.0.20
func (s ExecutorsClient) DeleteByLabels(selector string) error
DeleteByLabels deletes executors by labels
func (ExecutorsClient) Get ¶
func (s ExecutorsClient) Get(name string) (*executorv1.Executor, error)
Get gets executor by name in given namespace
func (ExecutorsClient) GetByType ¶
func (s ExecutorsClient) GetByType(executorType string) (*executorv1.Executor, error)
GetByType gets first available executor for given type
func (ExecutorsClient) List ¶
func (s ExecutorsClient) List(selector string) (*executorv1.ExecutorList, error)
List shows list of available executors
func (ExecutorsClient) Update ¶
func (s ExecutorsClient) Update(executor *executorv1.Executor) (*executorv1.Executor, error)
Update updates executor
type WebhooksClient ¶
WebhooksClient client for getting webhooks CRs
func NewWebhooksClient ¶
func NewWebhooksClient(client client.Client, namespace string) *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 string) error
Delete deletes Webhook by name
func (WebhooksClient) DeleteByLabels ¶ added in v1.0.20
func (s WebhooksClient) DeleteByLabels(selector string) error
DeleteByLabels deletes webhooks by labels
func (WebhooksClient) Get ¶
func (s WebhooksClient) Get(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(selector 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