Help us shape the future of Go! Take the 2026 Go Developer Survey

edgeworkload

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package edgeworkload 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 NewEdgeWorkloadRepository

func NewEdgeWorkloadRepository(client client.Client) *CRRepository

func (*CRRepository) ListByLabel

func (r *CRRepository) ListByLabel(ctx context.Context, labelName, labelValue string, namespace string) ([]v1alpha1.EdgeWorkload, error)

func (*CRRepository) Patch

func (r *CRRepository) Patch(ctx context.Context, old, new *v1alpha1.EdgeWorkload) error

func (*CRRepository) Read

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

func (*CRRepository) RemoveFinalizer

func (r *CRRepository) RemoveFinalizer(ctx context.Context, edgeWorkload *v1alpha1.EdgeWorkload, finalizer string) 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) EXPECT

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

func (*MockRepository) ListByLabel

func (m *MockRepository) ListByLabel(arg0 context.Context, arg1, arg2, arg3 string) ([]v1alpha1.EdgeWorkload, error)

ListByLabel mocks base method.

func (*MockRepository) Patch

func (m *MockRepository) Patch(arg0 context.Context, arg1, arg2 *v1alpha1.EdgeWorkload) error

Patch mocks base method.

func (*MockRepository) Read

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

Read mocks base method.

func (*MockRepository) RemoveFinalizer

func (m *MockRepository) RemoveFinalizer(arg0 context.Context, arg1 *v1alpha1.EdgeWorkload, arg2 string) error

RemoveFinalizer mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) ListByLabel

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

ListByLabel indicates an expected call of ListByLabel.

func (*MockRepositoryMockRecorder) Patch

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

Patch indicates an expected call of Patch.

func (*MockRepositoryMockRecorder) Read

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

Read indicates an expected call of Read.

func (*MockRepositoryMockRecorder) RemoveFinalizer

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

RemoveFinalizer indicates an expected call of RemoveFinalizer.

type Repository

type Repository interface {
	Read(ctx context.Context, name string, namespace string) (*v1alpha1.EdgeWorkload, error)
	Patch(ctx context.Context, old, new *v1alpha1.EdgeWorkload) error
	RemoveFinalizer(ctx context.Context, edgeWorkload *v1alpha1.EdgeWorkload, finalizer string) error
	ListByLabel(ctx context.Context, labelName, labelValue string, namespace string) ([]v1alpha1.EdgeWorkload, error)
}

Jump to

Keyboard shortcuts

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