archive

package
v1.7.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	LogFormatJSON = LogFormat("json-lines")
	LogFormatText = LogFormat("text")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtractLogOptions

type ExtractLogOptions struct {
	LogFormat  LogFormat
	Timestamps bool
}

type LogArchive

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

func NewLogArchive

func NewLogArchive(logPathPrefix, logFileName string) *LogArchive

func (*LogArchive) CopyLogFromArchive

func (a *LogArchive) CopyLogFromArchive(logContent []byte, dst io.Writer, opts ExtractLogOptions) error

CopyLogFromArchive copies a task run archived log into expected format.

func (*LogArchive) GetLogObjectKey

func (a *LogArchive) GetLogObjectKey(workflow *util.Workflow, nodeID string) (key string, err error)

type LogArchiveInterface

type LogArchiveInterface interface {
	GetLogObjectKey(workflow *util.Workflow, nodeId string) (string, error)
	CopyLogFromArchive(logContent []byte, dst io.Writer, opts ExtractLogOptions) error
}

type LogFormat

type LogFormat string

type RunLogEntry

type RunLogEntry struct {
	Log       string    `json:"log"`
	Timestamp time.Time `json:"timestamp,omitempty"`
}

Log Archive

Jump to

Keyboard shortcuts

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