dockerfile

package
v0.9.1-0...-c5069b5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package dockerfile implements a Parser for the JSON-per-line format found in Docker logfiles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() parsers.Parser

New returns a new parser which will parse raw JSON lines as found in docker log files.

For example:

`{"log":"a message","stream":"stderr","time":"2019-06-06T16:35:55.930852911Z"}`

returns:

parsers.Message {
    Content: []byte("a message"),
    Status: "error",
    Timestamp: "2019-06-06T16:35:55.930852911Z",
    IsPartial: false,
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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