package logdetails

import "github.com/docker/cli/internal/logdetails"

Package logdetails contains tools for parsing docker log lines.

Index

Functions

func Parse

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

Parse 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
v28.2.0-rc.1+incompatible
Published
May 19, 2025
Platform
js/wasm
Imports
3 packages
Last checked
1 minute ago

Tools for package owners.