package formatter

import "github.com/dotcloud/docker/api/client/formatter"

Index

Types

type ContainerContext

type ContainerContext struct {
	Context
	// Size when set to true will display the size of the output.
	Size bool
	// Containers
	Containers []types.Container
}

ContainerContext contains container specific information required by the formater, encapsulate a Context struct.

func (ContainerContext) Write

func (ctx ContainerContext) Write()

type Context

type Context struct {
	// Output is the output stream to which the formatted string is written.
	Output io.Writer
	// Format is used to choose raw, table or custom format for the output.
	Format string
	// Quiet when set to true will simply print minimal information.
	Quiet bool
	// Trunc when set to true will truncate the output of certain fields such as Container ID.
	Trunc bool
	// contains filtered or unexported fields
}

Context contains information required by the formatter to print the output as desired.

type ImageContext

type ImageContext struct {
	Context
	Digest bool
	// Images
	Images []types.Image
}

ImageContext contains image specific information required by the formater, encapsulate a Context struct.

func (ImageContext) Write

func (ctx ImageContext) Write()

Source Files

custom.go formatter.go

Version
v1.12.6
Published
Jan 10, 2017
Platform
js/wasm
Imports
15 packages
Last checked
16 seconds ago

Tools for package owners.