Documentation ¶
Overview ¶
TODO DEPRECATED migrated to executors/v1 package
Index ¶
- type ExecutorsClient
- func (s ExecutorsClient) Create(executor *executorv1.Executor) (*executorv1.Executor, error)
- func (s ExecutorsClient) Delete(name string) error
- func (s ExecutorsClient) Get(name string) (*executorv1.Executor, error)
- func (s ExecutorsClient) GetByType(executorType string) (*executorv1.Executor, error)
- func (s ExecutorsClient) List() (*executorv1.ExecutorList, error)
- func (s ExecutorsClient) Update(executor *executorv1.Executor) (*executorv1.Executor, 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 ¶ added in v0.2.1
func (s ExecutorsClient) Delete(name string) error
Delete deletes executor by name
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() (*executorv1.ExecutorList, error)
List shows list of available executors
func (ExecutorsClient) Update ¶ added in v0.9.3
func (s ExecutorsClient) Update(executor *executorv1.Executor) (*executorv1.Executor, error)
Update updates executor
Click to show internal directories.
Click to hide internal directories.