executors

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 9 Imported by: 6

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

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

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

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

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) Create

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

Create mocks base method.

func (*MockInterface) Delete

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

Delete mocks base method.

func (*MockInterface) DeleteByLabels

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

DeleteByLabels mocks base method.

func (*MockInterface) EXPECT

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

func (*MockInterface) Get

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

Get mocks base method.

func (*MockInterface) GetByType

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

GetByType mocks base method.

func (*MockInterface) List

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

List mocks base method.

func (*MockInterface) Update

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

Update mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) Create

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

Create indicates an expected call of Create.

func (*MockInterfaceMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockInterfaceMockRecorder) DeleteByLabels

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

DeleteByLabels indicates an expected call of DeleteByLabels.

func (*MockInterfaceMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockInterfaceMockRecorder) GetByType

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

GetByType indicates an expected call of GetByType.

func (*MockInterfaceMockRecorder) List

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

List indicates an expected call of List.

func (*MockInterfaceMockRecorder) Update

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

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