Documentation ¶
Index ¶
- Constants
- func IsFinished(log *Log) bool
- type Log
- func (l *Log) WithContent(s string) *Log
- func (l *Log) WithError(err error) *Log
- func (l *Log) WithMetadataEntry(key, value string) *Log
- func (l *Log) WithSource(s string) *Log
- func (l *Log) WithType(t string) *Log
- func (l *Log) WithV1Result(result *testkube.ExecutionResult) *Log
- func (l *Log) WithVersion(version LogVersion) *Log
- type LogResponse
- type LogVersion
- type Trigger
Constants ¶
View Source
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" SourceJobPod = "job-pod" SourceScheduler = "test-scheduler" SourceContainerExecutor = "container-executor" SourceJobExecutor = "job-executor" )
Variables ¶
This section is empty.
Functions ¶
func IsFinished ¶ added in v1.16.29
Types ¶
type Log ¶
func NewErrorLog ¶ added in v1.16.26
func NewFinishLog ¶ added in v1.16.29
func NewFinishLog() *Log
func NewLogFromBytes ¶ added in v1.16.26
NewLogFromBytes 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) WithContent ¶ added in v1.16.26
func (*Log) WithMetadataEntry ¶
func (*Log) WithSource ¶ added in v1.16.25
func (*Log) WithV1Result ¶
func (l *Log) WithV1Result(result *testkube.ExecutionResult) *Log
func (*Log) WithVersion ¶
func (l *Log) WithVersion(version LogVersion) *Log
type LogResponse ¶
type LogVersion ¶
type LogVersion string
type Trigger ¶
type Trigger struct {
ResourceId string `json:"resourceId,omitempty"`
}
Generic event like log-start log-end with resource id
func NewTrigger ¶ added in v1.16.26
NewTrigger returns Trigger instance
func (Trigger) GetResourceId ¶ added in v1.16.26
GetResourceId implements testkube.Trigger interface
Click to show internal directories.
Click to hide internal directories.