store

package
v0.0.0-...-da789b0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Project

type Project interface {
	CreateProject(w *gen.Project) (string, error)
	SaveProject(w *gen.Project) (string, error)
	GetProject(projectID string) (*gen.Project, error)
	ListProjects() ([]*gen.Project, error)
	CreateWorkflowRun(run *gen.WorkflowTrace) (string, error)
	SaveNodeExecution(workflowRunID string, nodeExecution *gen.NodeExecution) (string, error)
	GetWorkflowRunsForProject(project string) ([]*gen.WorkflowTrace, error)
}

type ProjectStore

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

func NewDBStore

func NewDBStore(db *gorm.DB) (*ProjectStore, error)

func (*ProjectStore) CreateProject

func (s *ProjectStore) CreateProject(w *gen.Project) (string, error)

func (*ProjectStore) CreateWorkflowRun

func (s *ProjectStore) CreateWorkflowRun(run *gen.WorkflowTrace) (string, error)

func (*ProjectStore) GetProject

func (s *ProjectStore) GetProject(projectID string) (*gen.Project, error)

func (*ProjectStore) GetWorkflowRunsForProject

func (s *ProjectStore) GetWorkflowRunsForProject(projectID string) ([]*gen.WorkflowTrace, error)

func (*ProjectStore) ListProjects

func (s *ProjectStore) ListProjects() ([]*gen.Project, error)

func (*ProjectStore) SaveNodeExecution

func (s *ProjectStore) SaveNodeExecution(workflowRunID string, nodeExecution *gen.NodeExecution) (string, error)

func (*ProjectStore) SaveProject

func (s *ProjectStore) SaveProject(w *gen.Project) (string, error)

type WorkflowRunModel

type WorkflowRunModel struct {
	WorkflowID string
	RunID      string
}

Jump to

Keyboard shortcuts

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