stagelogstore

package
v0.45.4-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound         = errors.New("stage log was not found")
	ErrAlreadyCompleted = errors.New("stage log was already completed")
)

Functions

This section is empty.

Types

type Store

type Store interface {
	// FetchLogs get the specified stage logs which filtered by index.
	FetchLogs(ctx context.Context, deploymentID, stageID string, retriedCount int32, offsetIndex int64) ([]*model.LogBlock, bool, error)
	// AppendLogs appends the stage logs. The stage logs are deduplicated with index value.
	AppendLogs(ctx context.Context, deploymentID, stageID string, retriedCount int32, newBlocks []*model.LogBlock) error
	// AppendLogsFromLastCheckpoint appends the stage logs. The stage logs are deduplicated with index value.
	// If completed is true, flush all the logs to that point and cannot append it after this.
	AppendLogsFromLastCheckpoint(ctx context.Context, deploymentID, stageID string, retriedCount int32, newBlocks []*model.LogBlock, completed bool) error
}

func NewStore

func NewStore(fs filestore.Store, c cache.Cache, logger *zap.Logger) Store

Jump to

Keyboard shortcuts

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