driver

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDriver

func AddDriver(backend types.Backend, init Initialize)

Types

type Initialize

type Initialize func(parameters types.Parameters) (StorageDriver, error)

type StorageDriver

type StorageDriver interface {
	Open() error
	Close()
	SetConfigParameters(parameters types.Parameters)
	GetLocationsName() []string
	GetLocation(location string) *models.WorkLocation
	GetLocationSimpleJobs(location string) []*models.SimpleJob
	GetSimpleJob(jobid string) *models.SimpleJob
	GetJobs() []*models.Job
	GetStateJobs(state int) []*models.Job
	GetLocationJobs(location string) []*models.Job
	GetGroupJobs(groupid string) []*models.Job
	GetJob(jobid string) *models.Job
	SetJob(job *models.Job)
	SetJobLog(joblog *models.JobLog)
}

StorageDriver is exported

func NewDriver

func NewDriver(backend types.Backend, parameters types.Parameters) (StorageDriver, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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