...

Package logs

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

Overview ▾

Package logs contains tools for parsing docker log lines.

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