storage

package
v0.0.0-...-17e6b21 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyStore

type PolicyStore interface {
	CreatePolicy(ctx context.Context, p policy.Policy) error
	UpdatePolicy(ctx context.Context, policyID string, p policy.Policy) error
	DeletePolicy(ctx context.Context, policyID string) error
	GetPolicy(ctx context.Context, policyID string) (*policy.Policy, error)
	ListPolicies(ctx context.Context) ([]policy.Policy, error)
}

type WorkflowStore

type WorkflowStore interface {
	CreateWorkflow(ctx context.Context, w workflow.Workflow) error
	UpdateWorkflow(ctx context.Context, workflowID string, w workflow.Workflow) error
	DeleteWorkflow(ctx context.Context, workflowID string) error
	GetWorkflow(ctx context.Context, workflowID string) (*workflow.Workflow, error)
	ListWorkflows(ctx context.Context) ([]workflow.Workflow, error)
}

Jump to

Keyboard shortcuts

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