package logs

import "github.com/docker/cli/service/logs"

Package logs contains tools for parsing docker log lines.

Index

Functions

func ParseLogDetails

func ParseLogDetails(details string) (map[string]string, error)

ParseLogDetails parses a string of key value pairs in the form "k=v,l=w", where the keys and values are url query escaped, and each pair is separated by a comma. Returns a map of the key value pairs on success, and an error if the details string is not in a valid format.

The details string encoding is implemented in github.com/moby/moby/api/server/httputils/write_log_stream.go

Source Files

parse_logs.go

Version
v20.10.10+incompatible
Published
Oct 15, 2021
Platform
js/wasm
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.