apiset

package
v0.0.0-...-432d548 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package apiset is a generated GoMock package.

Package apiset is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorkerNodeEvictionSpec

func NewWorkerNodeEvictionSpec(appName, namespace, cluster string, workerNodes []*carbonv1.ReclaimWorkerNode, pref *v1.HippoPrefrence) (*v1.WorkerNodeEviction, error)

NewWorkerNodeEvictionSpec creates WorkerNodeEviction spec.

Types

type CarbonJobAPIs

type CarbonJobAPIs interface {
	GetCarbonJob(namespace, name string) (*v1.CarbonJob, error)
	GetCarbonJobs(namespace, appName string) ([]v1.CarbonJob, error)
	CreateCarbonJob(cb *v1.CarbonJob) (*v1.CarbonJob, error)
	UpdateCarbonJob(cb *v1.CarbonJob) error
	DeleteCarbonJob(cb *v1.CarbonJob) error
}

CarbonJobAPIs wrap carbonjob apis

func NewCarbonJobAPIs

func NewCarbonJobAPIs(clientset carbonclientset.Interface) CarbonJobAPIs

NewCarbonJobAPIs creates carbonjob apis

type MockCarbonJobAPIs

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

MockCarbonJobAPIs is a mock of CarbonJobAPIs interface.

func NewMockCarbonJobAPIs

func NewMockCarbonJobAPIs(ctrl *gomock.Controller) *MockCarbonJobAPIs

NewMockCarbonJobAPIs creates a new mock instance.

func (*MockCarbonJobAPIs) CreateCarbonJob

func (m *MockCarbonJobAPIs) CreateCarbonJob(cb *v1.CarbonJob) (*v1.CarbonJob, error)

CreateCarbonJob mocks base method.

func (*MockCarbonJobAPIs) DeleteCarbonJob

func (m *MockCarbonJobAPIs) DeleteCarbonJob(cb *v1.CarbonJob) error

DeleteCarbonJob mocks base method.

func (*MockCarbonJobAPIs) EXPECT

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

func (*MockCarbonJobAPIs) GetCarbonJob

func (m *MockCarbonJobAPIs) GetCarbonJob(namespace, name string) (*v1.CarbonJob, error)

GetCarbonJob mocks base method.

func (*MockCarbonJobAPIs) GetCarbonJobs

func (m *MockCarbonJobAPIs) GetCarbonJobs(namespace, appName string) ([]v1.CarbonJob, error)

GetCarbonJobs mocks base method.

func (*MockCarbonJobAPIs) UpdateCarbonJob

func (m *MockCarbonJobAPIs) UpdateCarbonJob(cb *v1.CarbonJob) error

UpdateCarbonJob mocks base method.

type MockCarbonJobAPIsMockRecorder

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

MockCarbonJobAPIsMockRecorder is the mock recorder for MockCarbonJobAPIs.

func (*MockCarbonJobAPIsMockRecorder) CreateCarbonJob

func (mr *MockCarbonJobAPIsMockRecorder) CreateCarbonJob(cb interface{}) *gomock.Call

CreateCarbonJob indicates an expected call of CreateCarbonJob.

func (*MockCarbonJobAPIsMockRecorder) DeleteCarbonJob

func (mr *MockCarbonJobAPIsMockRecorder) DeleteCarbonJob(cb interface{}) *gomock.Call

DeleteCarbonJob indicates an expected call of DeleteCarbonJob.

func (*MockCarbonJobAPIsMockRecorder) GetCarbonJob

func (mr *MockCarbonJobAPIsMockRecorder) GetCarbonJob(namespace, name interface{}) *gomock.Call

GetCarbonJob indicates an expected call of GetCarbonJob.

func (*MockCarbonJobAPIsMockRecorder) GetCarbonJobs

func (mr *MockCarbonJobAPIsMockRecorder) GetCarbonJobs(namespace, appName interface{}) *gomock.Call

GetCarbonJobs indicates an expected call of GetCarbonJobs.

func (*MockCarbonJobAPIsMockRecorder) UpdateCarbonJob

func (mr *MockCarbonJobAPIsMockRecorder) UpdateCarbonJob(cb interface{}) *gomock.Call

UpdateCarbonJob indicates an expected call of UpdateCarbonJob.

type MockWorkerEvictionAPIs

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

MockWorkerEvictionAPIs is a mock of WorkerEvictionAPIs interface.

func NewMockWorkerEvictionAPIs

func NewMockWorkerEvictionAPIs(ctrl *gomock.Controller) *MockWorkerEvictionAPIs

NewMockWorkerEvictionAPIs creates a new mock instance.

func (*MockWorkerEvictionAPIs) EXPECT

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

func (*MockWorkerEvictionAPIs) SetWorkerNodeEviction

func (m *MockWorkerEvictionAPIs) SetWorkerNodeEviction(eviction *v1.WorkerNodeEviction) error

SetWorkerNodeEviction mocks base method.

type MockWorkerEvictionAPIsMockRecorder

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

MockWorkerEvictionAPIsMockRecorder is the mock recorder for MockWorkerEvictionAPIs.

func (*MockWorkerEvictionAPIsMockRecorder) SetWorkerNodeEviction

func (mr *MockWorkerEvictionAPIsMockRecorder) SetWorkerNodeEviction(eviction interface{}) *gomock.Call

SetWorkerNodeEviction indicates an expected call of SetWorkerNodeEviction.

type WorkerEvictionAPIs

type WorkerEvictionAPIs interface {
	SetWorkerNodeEviction(eviction *v1.WorkerNodeEviction) error
}

WorkerEvictionAPIs operates on WorkerNodeEviction

func NewWorkerEvictionAPIs

func NewWorkerEvictionAPIs(clientset carbonclientset.Interface) WorkerEvictionAPIs

NewWorkerEvictionAPIs creates a new worker node eviction apis.

Jump to

Keyboard shortcuts

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