Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RFC3339NanoFixed is the fixed width version of time.RFC3339Nano. RFC3339NanoFixed = "2006-01-02T15:04:05.000000000Z07:00" // RFC3339NanoLenient is the variable width RFC3339 time format for lenient parsing of strings into timestamps. RFC3339NanoLenient = "2006-01-02T15:04:05.999999999Z07:00" )
Variables ¶
This section is empty.
Functions ¶
func ReadLogs ¶
func ReadLogs(ctx context.Context, logger *klog.Logger, path, containerID string, opts *LogOptions, runtimeService internalapi.RuntimeService, 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 LogOptions ¶
type LogOptions struct {
// contains filtered or unexported fields
}
LogOptions is the CRI internal type of all log options.
func NewLogOptions ¶
func NewLogOptions(apiOpts *v1.PodLogOptions, now time.Time) *LogOptions
NewLogOptions convert the v1.PodLogOptions to CRI internal LogOptions.
Click to show internal directories.
Click to hide internal directories.