job

package
v0.0.0-...-87359d1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package job is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRRepository

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

func NewJobRepository

func NewJobRepository(client client.Client) *CRRepository

func (*CRRepository) Create

func (r *CRRepository) Create(ctx context.Context, job *batchv1.Job) error

func (*CRRepository) Read

func (r *CRRepository) Read(ctx context.Context, name string, namespace string) (*batchv1.Job, error)

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) Create

func (m *MockRepository) Create(arg0 context.Context, arg1 *v1.Job) error

Create mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) Read

func (m *MockRepository) Read(arg0 context.Context, arg1, arg2 string) (*v1.Job, error)

Read mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Create

func (mr *MockRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder) Read

func (mr *MockRepositoryMockRecorder) Read(arg0, arg1, arg2 interface{}) *gomock.Call

Read indicates an expected call of Read.

type Repository

type Repository interface {
	Read(ctx context.Context, name string, namespace string) (*batchv1.Job, error)
	Create(ctx context.Context, job *batchv1.Job) error
}

Jump to

Keyboard shortcuts

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