mockprovider

package
v0.0.0-...-5b7b456 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockJobBackendProvider

func NewMockJobBackendProvider(logger *zap.Logger, conf *config.Config) (jobbackendprovider.IJobBackendProvider, error)

Types

type MockJobBackendProvider

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

func (*MockJobBackendProvider) Healthcheck

func (p *MockJobBackendProvider) Healthcheck() bool

func (*MockJobBackendProvider) Init

func (p *MockJobBackendProvider) Init(notifChan chan jobbackendprovider.Event) error

func (*MockJobBackendProvider) JobExists

func (p *MockJobBackendProvider) JobExists(jobUUID job.JobUUID) (bool, error)

func (*MockJobBackendProvider) LoadJobs

func (p *MockJobBackendProvider) LoadJobs() (job.JobMap, error)

func (*MockJobBackendProvider) NotifyChange

func (p *MockJobBackendProvider) NotifyChange(event jobbackendprovider.Event)

func (*MockJobBackendProvider) OnAllResourcesUnlocked

func (p *MockJobBackendProvider) OnAllResourcesUnlocked() error

func (*MockJobBackendProvider) OnJobCanceled

func (p *MockJobBackendProvider) OnJobCanceled(j *job.Job) error

func (*MockJobBackendProvider) OnJobCreated

func (p *MockJobBackendProvider) OnJobCreated(j *job.Job) error

func (*MockJobBackendProvider) OnJobDeleted

func (p *MockJobBackendProvider) OnJobDeleted(jobUUID job.JobUUID) error

func (*MockJobBackendProvider) OnJobEnqueued

func (p *MockJobBackendProvider) OnJobEnqueued(j *job.Job) error

func (*MockJobBackendProvider) OnJobStarted

func (p *MockJobBackendProvider) OnJobStarted(j *job.Job) error

func (*MockJobBackendProvider) OnJobSucceeded

func (p *MockJobBackendProvider) OnJobSucceeded(j *job.Job) error

func (*MockJobBackendProvider) OnJobTimeout

func (p *MockJobBackendProvider) OnJobTimeout(j *job.Job) error

func (*MockJobBackendProvider) OnJobsDeleted

func (p *MockJobBackendProvider) OnJobsDeleted() error

func (*MockJobBackendProvider) OnResourceUnlocked

func (p *MockJobBackendProvider) OnResourceUnlocked(j *job.Job, resource string) error

func (*MockJobBackendProvider) Run

func (p *MockJobBackendProvider) Run() error

func (*MockJobBackendProvider) Stop

func (p *MockJobBackendProvider) Stop() error

Jump to

Keyboard shortcuts

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