Documentation
¶
Index ¶
- func Exists(name string) bool
- type BatchJob
- type BatchJobInput
- type BatchJobOutput
- type Event
- type EventType
- type FileType
- type Input
- type Job
- type JobDto
- type JobEvent
- type JobInput
- type JobOutput
- type JobResult
- type JobStatus
- type ObjectStore
- type ObjectStoreDownloadJob
- func (job *ObjectStoreDownloadJob) Abort()
- func (job *ObjectStoreDownloadJob) Clear()
- func (job *ObjectStoreDownloadJob) Close() error
- func (job *ObjectStoreDownloadJob) Execute(wf *Workflow, wg *sync.WaitGroup)
- func (job *ObjectStoreDownloadJob) GetId() string
- func (job *ObjectStoreDownloadJob) GetInputs() []Input
- func (job *ObjectStoreDownloadJob) GetOutputs() []Output
- func (job *ObjectStoreDownloadJob) GetReader() (io.ReadCloser, error)
- func (job *ObjectStoreDownloadJob) GetResult() *JobResult
- func (job *ObjectStoreDownloadJob) GetStatus() JobStatus
- func (job *ObjectStoreDownloadJob) IsFailed() bool
- func (job *ObjectStoreDownloadJob) Key() string
- func (job *ObjectStoreDownloadJob) Label() string
- func (job *ObjectStoreDownloadJob) Read(p []byte) (n int, err error)
- func (p *ObjectStoreDownloadJob) UnBlock()
- type ObjectStoreUploadJob
- func (p *ObjectStoreUploadJob) Abort()
- func (job *ObjectStoreUploadJob) Clear()
- func (job *ObjectStoreUploadJob) Execute(wf *Workflow, wg *sync.WaitGroup)
- func (p *ObjectStoreUploadJob) GetId() string
- func (p *ObjectStoreUploadJob) GetInputs() []Input
- func (p *ObjectStoreUploadJob) GetOutputs() []Output
- func (job *ObjectStoreUploadJob) GetResult() *JobResult
- func (p *ObjectStoreUploadJob) GetStatus() JobStatus
- func (p *ObjectStoreUploadJob) GetWriter() (io.WriteCloser, error)
- func (p *ObjectStoreUploadJob) Key() string
- func (p *ObjectStoreUploadJob) Label() string
- func (p *ObjectStoreUploadJob) UnBlock()
- type ObjectStoreUploader
- type Output
- type PipeHandler
- type Stream
- type Workflow
- type WorkflowDto
- type WorkflowEvent
- type WorkflowResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BatchJob ¶
type BatchJob struct { JobId string Command []string Inputs []BatchJobInput Outputs []BatchJobOutput ExitCode int Start time.Time End time.Time // contains filtered or unexported fields }
func (*BatchJob) GetOutputs ¶
type BatchJobInput ¶
type BatchJobInput struct {
// contains filtered or unexported fields
}
func (*BatchJobInput) Abort ¶
func (s *BatchJobInput) Abort()
func (*BatchJobInput) Clear ¶
func (job *BatchJobInput) Clear()
func (*BatchJobInput) GetWriter ¶
func (s *BatchJobInput) GetWriter() (io.WriteCloser, error)
func (*BatchJobInput) Key ¶
func (s *BatchJobInput) Key() string
func (*BatchJobInput) Label ¶
func (job *BatchJobInput) Label() string
func (*BatchJobInput) UnBlock ¶
func (s *BatchJobInput) UnBlock()
type BatchJobOutput ¶
type BatchJobOutput struct {
// contains filtered or unexported fields
}
func (*BatchJobOutput) Abort ¶
func (s *BatchJobOutput) Abort()
func (*BatchJobOutput) Clear ¶
func (job *BatchJobOutput) Clear()
func (*BatchJobOutput) GetReader ¶
func (s *BatchJobOutput) GetReader() (io.ReadCloser, error)
func (*BatchJobOutput) IsFailed ¶
func (job *BatchJobOutput) IsFailed() bool
func (*BatchJobOutput) Key ¶
func (s *BatchJobOutput) Key() string
func (*BatchJobOutput) Label ¶
func (job *BatchJobOutput) Label() string
func (*BatchJobOutput) UnBlock ¶
func (s *BatchJobOutput) UnBlock()
type Job ¶
type Job interface { GetId() string GetInputs() []Input GetOutputs() []Output Execute(wf *Workflow, wg *sync.WaitGroup) Abort() GetStatus() JobStatus GetResult() *JobResult }
func CreateBatchJob ¶
func CreateObjectStoreJob ¶
type JobEvent ¶
type JobEvent struct { JobId string Status JobStatus Occured time.Time ExitCode int Message string // contains filtered or unexported fields }
func (*JobEvent) GetEventType ¶
type JobStatus ¶
type JobStatus int
func (JobStatus) GetDefaultExitCode ¶
func (JobStatus) IsFinished ¶
func (JobStatus) MarshalJSON ¶
func (*JobStatus) UnmarshalJSON ¶
type ObjectStore ¶
func (*ObjectStore) Init ¶
func (o *ObjectStore) Init() error
type ObjectStoreDownloadJob ¶
type ObjectStoreDownloadJob struct { Bucket string Start time.Time End time.Time // contains filtered or unexported fields }
func (*ObjectStoreDownloadJob) Abort ¶
func (job *ObjectStoreDownloadJob) Abort()
func (*ObjectStoreDownloadJob) Clear ¶
func (job *ObjectStoreDownloadJob) Clear()
func (*ObjectStoreDownloadJob) Close ¶
func (job *ObjectStoreDownloadJob) Close() error
func (*ObjectStoreDownloadJob) Execute ¶
func (job *ObjectStoreDownloadJob) Execute(wf *Workflow, wg *sync.WaitGroup)
func (*ObjectStoreDownloadJob) GetId ¶
func (job *ObjectStoreDownloadJob) GetId() string
func (*ObjectStoreDownloadJob) GetInputs ¶
func (job *ObjectStoreDownloadJob) GetInputs() []Input
func (*ObjectStoreDownloadJob) GetOutputs ¶
func (job *ObjectStoreDownloadJob) GetOutputs() []Output
func (*ObjectStoreDownloadJob) GetReader ¶
func (job *ObjectStoreDownloadJob) GetReader() (io.ReadCloser, error)
func (*ObjectStoreDownloadJob) GetResult ¶
func (job *ObjectStoreDownloadJob) GetResult() *JobResult
func (*ObjectStoreDownloadJob) GetStatus ¶
func (job *ObjectStoreDownloadJob) GetStatus() JobStatus
func (*ObjectStoreDownloadJob) IsFailed ¶
func (job *ObjectStoreDownloadJob) IsFailed() bool
func (*ObjectStoreDownloadJob) Key ¶
func (job *ObjectStoreDownloadJob) Key() string
func (*ObjectStoreDownloadJob) Label ¶
func (job *ObjectStoreDownloadJob) Label() string
func (*ObjectStoreDownloadJob) Read ¶
func (job *ObjectStoreDownloadJob) Read(p []byte) (n int, err error)
func (*ObjectStoreDownloadJob) UnBlock ¶
func (p *ObjectStoreDownloadJob) UnBlock()
type ObjectStoreUploadJob ¶
type ObjectStoreUploadJob struct { Bucket string Start time.Time End time.Time // contains filtered or unexported fields }
func (*ObjectStoreUploadJob) Abort ¶
func (p *ObjectStoreUploadJob) Abort()
func (*ObjectStoreUploadJob) Clear ¶
func (job *ObjectStoreUploadJob) Clear()
func (*ObjectStoreUploadJob) Execute ¶
func (job *ObjectStoreUploadJob) Execute(wf *Workflow, wg *sync.WaitGroup)
func (*ObjectStoreUploadJob) GetId ¶
func (p *ObjectStoreUploadJob) GetId() string
func (*ObjectStoreUploadJob) GetInputs ¶
func (p *ObjectStoreUploadJob) GetInputs() []Input
func (*ObjectStoreUploadJob) GetOutputs ¶
func (p *ObjectStoreUploadJob) GetOutputs() []Output
func (*ObjectStoreUploadJob) GetResult ¶
func (job *ObjectStoreUploadJob) GetResult() *JobResult
func (*ObjectStoreUploadJob) GetStatus ¶
func (p *ObjectStoreUploadJob) GetStatus() JobStatus
func (*ObjectStoreUploadJob) GetWriter ¶
func (p *ObjectStoreUploadJob) GetWriter() (io.WriteCloser, error)
func (*ObjectStoreUploadJob) Key ¶
func (p *ObjectStoreUploadJob) Key() string
func (*ObjectStoreUploadJob) Label ¶
func (p *ObjectStoreUploadJob) Label() string
func (*ObjectStoreUploadJob) UnBlock ¶
func (p *ObjectStoreUploadJob) UnBlock()
type ObjectStoreUploader ¶
type ObjectStoreUploader struct {
// contains filtered or unexported fields
}
func (*ObjectStoreUploader) Abort ¶
func (p *ObjectStoreUploader) Abort()
func (*ObjectStoreUploader) Close ¶
func (p *ObjectStoreUploader) Close() error
func (*ObjectStoreUploader) Key ¶
func (p *ObjectStoreUploader) Key() string
type PipeHandler ¶
type PipeHandler struct { Status JobStatus // contains filtered or unexported fields }
func CreateHandlers ¶
func CreateHandlers(jobs []Job) []*PipeHandler
func (*PipeHandler) AbortAll ¶
func (p *PipeHandler) AbortAll()
func (*PipeHandler) AbortWriters ¶
func (p *PipeHandler) AbortWriters()
func (*PipeHandler) Finished ¶
func (p *PipeHandler) Finished()
func (*PipeHandler) Handle ¶
func (p *PipeHandler) Handle()
func (*PipeHandler) Init ¶
func (p *PipeHandler) Init()
func (*PipeHandler) UnBlock ¶
func (p *PipeHandler) UnBlock()
type Workflow ¶
type Workflow struct { Objectstore *ObjectStore Jobs []Job Status JobStatus // contains filtered or unexported fields }
func CreateWorkflow ¶
func CreateWorkflow(dto *WorkflowDto) *Workflow
func (*Workflow) Execute ¶
func (w *Workflow) Execute(status_ch chan Event) *WorkflowResult
type WorkflowDto ¶
type WorkflowDto struct { Objectstore *ObjectStore Jobs []*JobDto Status JobStatus // contains filtered or unexported fields }
type WorkflowEvent ¶
func (*WorkflowEvent) GetEventType ¶
func (we *WorkflowEvent) GetEventType() EventType
Click to show internal directories.
Click to hide internal directories.