Update the util/kubernetes client to retrieve logs

This commit is contained in:
Jake Sanders
2019-12-17 16:09:51 +00:00
parent 0415ead504
commit 53ca742c66
7 changed files with 85 additions and 9 deletions

View File

@@ -29,14 +29,14 @@ type Log interface {
// Record is log record entry
type Record struct {
// Timestamp of logged event
Timestamp time.Time
Timestamp time.Time `json:"time"`
// Value contains log entry
Value interface{}
Value interface{} `json:"value"`
// Metadata to enrich log record
Metadata map[string]string
Metadata map[string]string `json:"metadata"`
}
// level is a log level
// Level is a log level
type Level int
const (