Documentation ¶
Index ¶
- type ExecutorsClient
- func (s ExecutorsClient) Create(scripts *executorsAPI.Executor) (*executorsAPI.Executor, error)
- func (s ExecutorsClient) Get(namespace, name string) (*executorsAPI.Executor, error)
- func (s ExecutorsClient) GetByType(executorType string) (*executorsAPI.Executor, error)
- func (s ExecutorsClient) List(namespace string) (*executorsAPI.ExecutorList, 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) *ExecutorsClient
NewClient returns new client instance, needs kubernetes client to be passed as dependecy
func (ExecutorsClient) Create ¶
func (s ExecutorsClient) Create(scripts *executorsAPI.Executor) (*executorsAPI.Executor, error)
Create creates new Executor CR
func (ExecutorsClient) Get ¶
func (s ExecutorsClient) Get(namespace, name string) (*executorsAPI.Executor, error)
Get gets executor by name in given namespace
func (ExecutorsClient) GetByType ¶
func (s ExecutorsClient) GetByType(executorType string) (*executorsAPI.Executor, error)
GetByType gets first available executor for given type
func (ExecutorsClient) List ¶
func (s ExecutorsClient) List(namespace string) (*executorsAPI.ExecutorList, error)
List shows list of available executors
Click to show internal directories.
Click to hide internal directories.