compute

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackStore

type CallbackStore struct {
	GetExecutionFn         func(ctx context.Context, id string) (store.LocalExecutionState, error)
	GetExecutionsFn        func(ctx context.Context, id string) ([]store.LocalExecutionState, error)
	GetLiveExecutionsFn    func(ctx context.Context) ([]store.LocalExecutionState, error)
	GetExecutionHistoryFn  func(ctx context.Context, id string) ([]store.LocalStateHistory, error)
	CreateExecutionFn      func(ctx context.Context, execution store.LocalExecutionState) error
	UpdateExecutionStateFn func(ctx context.Context, request store.UpdateExecutionStateRequest) error
	DeleteExecutionFn      func(ctx context.Context, id string) error
	GetExecutionCountFn    func(ctx context.Context, state store.LocalExecutionStateType) (uint64, error)
	CloseFn                func(ctx context.Context) error
}

func (*CallbackStore) Close added in v1.0.4

func (m *CallbackStore) Close(ctx context.Context) error

func (*CallbackStore) CreateExecution

func (m *CallbackStore) CreateExecution(ctx context.Context, execution store.LocalExecutionState) error

func (*CallbackStore) DeleteExecution

func (m *CallbackStore) DeleteExecution(ctx context.Context, id string) error

func (*CallbackStore) GetExecution

func (m *CallbackStore) GetExecution(ctx context.Context, id string) (store.LocalExecutionState, error)

func (*CallbackStore) GetExecutionCount

func (m *CallbackStore) GetExecutionCount(ctx context.Context, state store.LocalExecutionStateType) (uint64, error)

func (*CallbackStore) GetExecutionHistory

func (m *CallbackStore) GetExecutionHistory(ctx context.Context, id string) ([]store.LocalStateHistory, error)

func (*CallbackStore) GetExecutions

func (m *CallbackStore) GetExecutions(ctx context.Context, jobID string) ([]store.LocalExecutionState, error)

func (*CallbackStore) GetLiveExecutions added in v1.0.4

func (m *CallbackStore) GetLiveExecutions(ctx context.Context) ([]store.LocalExecutionState, error)

func (*CallbackStore) UpdateExecutionState

func (m *CallbackStore) UpdateExecutionState(ctx context.Context, request store.UpdateExecutionStateRequest) error

Jump to

Keyboard shortcuts

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