Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { Time time.Time `json:"ts,omitempty"` Content string `json:"content,omitempty"` Type string `json:"type,omitempty"` Source string `json:"source,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` Error bool `json:"error,omitempty"` Version LogVersion `json:"version,omitempty"` // Old output - for backwards compatibility - will be removed V1 *LogOutputV1 `json:"v1,omitempty"` }
func NewLogResponseFromBytes ¶
NewLogResponseFromBytes creates new LogResponse from bytes it's aware of new and old log formats default log format will be based on raw bytes with timestamp on the beginning
func (*Log) WithMetadataEntry ¶
log line/chunk data
func (*Log) WithV1Result ¶
func (c *Log) WithV1Result(result *testkube.ExecutionResult) *Log
func (*Log) WithVersion ¶
func (c *Log) WithVersion(version LogVersion) *Log
type LogOutputV1 ¶
type LogOutputV1 struct {
Result *testkube.ExecutionResult
}
type LogResponse ¶
type LogVersion ¶
type LogVersion string
const ( // v1 - old log format based on shell output of executors {"line":"...", "time":"..."} LogVersionV1 LogVersion = "v1" // v2 - raw binary format, timestamps are based on Kubernetes logs, line is raw log line LogVersionV2 LogVersion = "v2" )
Click to show internal directories.
Click to hide internal directories.