compute

package
v1.5.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 6 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)
	GetEventStoreFn        func() watcher.EventStore
	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) GetEventStore

func (m *CallbackStore) GetEventStore() watcher.EventStore

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

type HeartbeatClientMock added in v1.4.0

type HeartbeatClientMock struct {
	SendHeartbeatHandler func(ctx context.Context, sequence uint64) error
}

HeartbeatClientMock is a mock implementation of the HeartbeatClient interface

func (HeartbeatClientMock) Close added in v1.4.0

func (HeartbeatClientMock) SendHeartbeat added in v1.4.0

func (h HeartbeatClientMock) SendHeartbeat(ctx context.Context, sequence uint64) error

type ManagementEndpointMock added in v1.2.3

type ManagementEndpointMock struct {
	RegisterHandler        func(ctx context.Context, request requests.RegisterRequest) (*requests.RegisterResponse, error)
	UpdateInfoHandler      func(ctx context.Context, request requests.UpdateInfoRequest) (*requests.UpdateInfoResponse, error)
	UpdateResourcesHandler func(ctx context.Context, request requests.UpdateResourcesRequest) (*requests.UpdateResourcesResponse, error)
}

func (ManagementEndpointMock) Register added in v1.2.3

func (ManagementEndpointMock) UpdateInfo added in v1.2.3

func (ManagementEndpointMock) UpdateResources added in v1.4.0

Jump to

Keyboard shortcuts

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