actionutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLogs

func ReadLogs(ctx context.Context, path string, options *aranyagopb.LogsCmd, stdout, stderr io.Writer) error

ReadLogs read the container log and redirect into stdout and stderr. Note that containerID is only needed when following the log, or else just pass in empty string "".

Types

type JSONLog

type JSONLog struct {
	// Log is the log message
	Log string `json:"log,omitempty"`
	// Stream is the log source
	Stream string `json:"stream,omitempty"`
	// Created is the created timestamp of log
	Created time.Time `json:"time"`
	// Attrs is the list of extra attributes provided by the user
	Attrs map[string]string `json:"attrs,omitempty"`
}

JSONLog is a log message, typically a single entry from a given log stream.

func (*JSONLog) Reset

func (jl *JSONLog) Reset()

Reset all fields to their zero value.

type LogOptions

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

LogOptions is the CRI internal type of all log options.

Jump to

Keyboard shortcuts

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