templates

package
v1.16.11 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 8 Imported by: 4

Documentation

Overview

Package templates is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	List(selector string) (*templatev1.TemplateList, error)
	Get(name string) (*templatev1.Template, error)
	Create(template *templatev1.Template) (*templatev1.Template, error)
	Update(template *templatev1.Template) (*templatev1.Template, error)
	Delete(name string) 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.Template) (*v1.Template, 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.Template, error)

Get mocks base method.

func (*MockInterface) List

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

List mocks base method.

func (*MockInterface) Update

func (m *MockInterface) Update(arg0 *v1.Template) (*v1.Template, 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) 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 TemplatesClient

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

TemplatesClient client for getting templates CRs

func NewClient

func NewClient(client client.Client, namespace string) *TemplatesClient

NewClient returns new client instance, needs kubernetes client to be passed as dependecy

func (TemplatesClient) Create

func (s TemplatesClient) Create(template *templatev1.Template) (*templatev1.Template, error)

Create creates new template CRD

func (TemplatesClient) Delete

func (s TemplatesClient) Delete(name string) error

Delete deletes template by name

func (TemplatesClient) DeleteByLabels

func (s TemplatesClient) DeleteByLabels(selector string) error

DeleteByLabels deletes templates by labels

func (TemplatesClient) Get

Get gets template by name in given namespace

func (TemplatesClient) List

func (s TemplatesClient) List(selector string) (*templatev1.TemplateList, error)

List shows list of available executors

func (TemplatesClient) Update

func (s TemplatesClient) Update(template *templatev1.Template) (*templatev1.Template, error)

Update updates template

Jump to

Keyboard shortcuts

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