package jsonlog
import "github.com/docker/docker/pkg/jsonlog"
Index ¶
- type JSONLog
- func (jl *JSONLog) Format(format string) (string, error)
- func (mj *JSONLog) MarshalJSON() ([]byte, error)
- func (mj *JSONLog) MarshalJSONBuf(buf *bytes.Buffer) error
- func (jl *JSONLog) Reset()
- type JSONLogBytes
Types ¶
type JSONLog ¶
type JSONLog struct { Log string `json:"log,omitempty"` Stream string `json:"stream,omitempty"` Created time.Time `json:"time"` }
func (*JSONLog) Format ¶
func (*JSONLog) MarshalJSON ¶
func (*JSONLog) MarshalJSONBuf ¶
func (*JSONLog) Reset ¶
func (jl *JSONLog) Reset()
type JSONLogBytes ¶
type JSONLogBytes struct { Log []byte `json:"log,omitempty"` Stream string `json:"stream,omitempty"` Created string `json:"time"` }
JSONLogBytes is based on JSONLog. It allows marshalling JSONLog from Log as []byte and an already marshalled Created timestamp.
func (*JSONLogBytes) MarshalJSONBuf ¶
func (mj *JSONLogBytes) MarshalJSONBuf(buf *bytes.Buffer) error
MarshalJSONBuf is based on the same method from JSONLog It has been modified to take into account the necessary changes.
Source Files ¶
jsonlog.go jsonlog_marshalling.go jsonlogbytes.go
- Version
- v1.8.0-rc1
- Published
- Jul 25, 2015
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 1 minute ago –
Tools for package owners.