{"modulePath":"github.com/hyperhq/hypercli","version":"v1.10.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package formatter\n\n## Types\n\n```go\ntype ContainerContext struct {\n\tContext\n\t// Size when set to true will display the size of the output.\n\tSize bool\n\t// Containers\n\tContainers []types.Container\n}\n```\nContainerContext contains container specific information required by the formater, encapsulate a Context struct.\n\n```go\nfunc (ctx ContainerContext) Write()\n```\n\n```go\ntype Context struct {\n\t// Output is the output stream to which the formatted string is written.\n\tOutput io.Writer\n\t// Format is used to choose raw, table or custom format for the output.\n\tFormat string\n\t// Quiet when set to true will simply print minimal information.\n\tQuiet bool\n\t// Trunc when set to true will truncate the output of certain fields such as Container ID.\n\tTrunc bool\n\t// contains filtered or unexported fields\n}\n```\nContext contains information required by the formatter to print the output as desired.\n\n```go\ntype ImageContext struct {\n\tContext\n\tDigest bool\n\t// Images\n\tImages []types.Image\n}\n```\nImageContext contains image specific information required by the formater, encapsulate a Context struct.\n\n```go\nfunc (ctx ImageContext) Write()\n```\n\n```go\ntype VolumeContext struct {\n\tContext\n\t// Volumes\n\tVolumes []*types.Volume\n}\n```\n\n```go\nfunc (ctx VolumeContext) Write()\n```\n\n","path":"github.com/hyperhq/hypercli/api/client/formatter","name":"formatter","synopsis":"","isRedistributable":true}
