package jsonstream
import "github.com/docker/cli/internal/jsonstream"
Index ¶
- func Display(ctx context.Context, in io.Reader, stream Stream, opts ...Options) error
- type JSONError
- type JSONMessage
- type JSONProgress
- type Options
- type Stream
Functions ¶
func Display ¶
Display prints the JSON messages from the given reader to the given stream.
It wraps the jsonmessage.DisplayJSONMessagesStream function to make it "context aware" and appropriately returns why the function was canceled.
It returns an error if the context is canceled, but not if the input reader / stream is closed.
Types ¶
type JSONError ¶
type JSONError = jsonmessage.JSONError
type JSONMessage ¶
type JSONMessage = jsonmessage.JSONMessage
type JSONProgress ¶
type JSONProgress = jsonmessage.JSONProgress
type Options ¶
type Options func(*options)
func WithAuxCallback ¶
func WithAuxCallback(cb func(JSONMessage)) Options
type Stream ¶
type Stream = jsonmessage.Stream
Source Files ¶
- Version
- v28.2.0-rc.1+incompatible
- Published
- May 19, 2025
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 1 hour ago –
Tools for package owners.