workflows

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID                    string
	Type                  string
	Address               string
	TLSCertificate        string
	TLSKey                string
	TLSInsecureSkipVerify bool
	MaxWorkflows          uint64
	ServiceToken          string
	WorkflowTimeout       time.Duration
	Namespace             string
}

type GPU

type GPU struct {
	Vendor  string
	Product string
}

type Processor

type Processor interface {
	Process(context.Context, *ProcessorConfig) (*ProcessorOutput, error)
}

type ProcessorConfig

type ProcessorConfig struct {
	Workflow       *api.Workflow
	InputDir       string
	InputWorkflows []*api.Workflow
}

type ProcessorOutput

type ProcessorOutput struct {
	FinishedAt time.Time
	Duration   time.Duration
	Parameters map[string]string
	Log        string
	OutputDir  string
}

type WorkflowHandler

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

func NewWorkflowHandler

func NewWorkflowHandler(cfg *Config, p Processor) (*WorkflowHandler, error)

func (*WorkflowHandler) GetInputWorkflow added in v0.2.0

func (h *WorkflowHandler) GetInputWorkflow(ctx context.Context, id, namespace string) (*api.Workflow, error)

func (*WorkflowHandler) Run

func (h *WorkflowHandler) Run(ctx context.Context) error

func (*WorkflowHandler) Stop

func (h *WorkflowHandler) Stop() error

Jump to

Keyboard shortcuts

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