fs

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements a filesystem-based process storage

func New

func New(basePath string) (*Service, error)

New creates a new filesystem process storage service

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, id string) error

Delete removes a process from the filesystem

func (*Service) List

func (s *Service) List(ctx context.Context, parameters ...*dao.Parameter) ([]*execution.Execution, error)

List returns all processes from the filesystem

func (*Service) Load

func (s *Service) Load(ctx context.Context, id string) (*execution.Execution, error)

Load retrieves a process from the filesystem

func (*Service) Save

func (s *Service) Save(ctx context.Context, execution *execution.Execution) error

Save persists a process to the filesystem

Jump to

Keyboard shortcuts

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