executors

package
v1.10.5-beta001 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package executors is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutorsClient

type ExecutorsClient struct {
	Client    client.Client
	Namespace string
}

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

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 Interface added in v1.5.5

type Interface interface {
	List(selector string) (*executorv1.ExecutorList, error)
	Get(name string) (*executorv1.Executor, error)
	GetByType(executorType string) (*executorv1.Executor, error)
	Create(executor *executorv1.Executor) (*executorv1.Executor, error)
	Delete(name string) error
	Update(executor *executorv1.Executor) (*executorv1.Executor, error)
	DeleteByLabels(selector string) error
}

type MockInterface added in v1.5.5

type MockInterface struct {
	// contains filtered or unexported fields
}

MockInterface is a mock of Interface interface.

func NewMockInterface added in v1.5.5

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) Create added in v1.5.5

func (m *MockInterface) Create(arg0 *v1.Executor) (*v1.Executor, error)

Create mocks base method.

func (*MockInterface) Delete added in v1.5.5

func (m *MockInterface) Delete(arg0 string) error

Delete mocks base method.

func (*MockInterface) DeleteByLabels added in v1.5.5

func (m *MockInterface) DeleteByLabels(arg0 string) error

DeleteByLabels mocks base method.

func (*MockInterface) EXPECT added in v1.5.5

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) Get added in v1.5.5

func (m *MockInterface) Get(arg0 string) (*v1.Executor, error)

Get mocks base method.

func (*MockInterface) GetByType added in v1.5.5

func (m *MockInterface) GetByType(arg0 string) (*v1.Executor, error)

GetByType mocks base method.

func (*MockInterface) List added in v1.5.5

func (m *MockInterface) List(arg0 string) (*v1.ExecutorList, error)

List mocks base method.

func (*MockInterface) Update added in v1.5.5

func (m *MockInterface) Update(arg0 *v1.Executor) (*v1.Executor, error)

Update mocks base method.

type MockInterfaceMockRecorder added in v1.5.5

type MockInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) Create added in v1.5.5

func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockInterfaceMockRecorder) Delete added in v1.5.5

func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockInterfaceMockRecorder) DeleteByLabels added in v1.5.5

func (mr *MockInterfaceMockRecorder) DeleteByLabels(arg0 interface{}) *gomock.Call

DeleteByLabels indicates an expected call of DeleteByLabels.

func (*MockInterfaceMockRecorder) Get added in v1.5.5

func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockInterfaceMockRecorder) GetByType added in v1.5.5

func (mr *MockInterfaceMockRecorder) GetByType(arg0 interface{}) *gomock.Call

GetByType indicates an expected call of GetByType.

func (*MockInterfaceMockRecorder) List added in v1.5.5

func (mr *MockInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockInterfaceMockRecorder) Update added in v1.5.5

func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

type WebhooksClient

type WebhooksClient struct {
	Client    client.Client
	Namespace string
}

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL