Documentation
¶
Index ¶
- func NewCmdFormatter(cmds []string, optz ...OptBasicExternalFormatterOptsSetter) format.Provider
- func NewFormatter(cmds []string, optz ...OptBasicExternalFormatterOptsSetter) format.Provider
- func NewNoopBasicExternalFormatProvider() format.Provider
- func NewNoopExternalFormatProvider() format.Provider
- func WrapExternalFormatterWithStdio(ext ExternalFormatter) format.Provider
- type BasicExternalFormatterOpts
- type DockerExternalFormatter
- type ExternalFormatter
- type NoopExternalFormatter
- type OptBasicExternalFormatterOptsSetter
- func WithDockerCommand(opt []string) OptBasicExternalFormatterOptsSetter
- func WithDockerImageName(opt string) OptBasicExternalFormatterOptsSetter
- func WithDockerImageTag(opt string) OptBasicExternalFormatterOptsSetter
- func WithExecutable(opt string) OptBasicExternalFormatterOptsSetter
- func WithFmtCommand(opt []string) OptBasicExternalFormatterOptsSetter
- func WithIndent(opt string) OptBasicExternalFormatterOptsSetter
- func WithTempFiles(opt map[string]string) OptBasicExternalFormatterOptsSetter
- func WithUseDocker(opt bool) OptBasicExternalFormatterOptsSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdFormatter ¶
func NewCmdFormatter(cmds []string, optz ...OptBasicExternalFormatterOptsSetter) format.Provider
func NewFormatter ¶
func NewFormatter(cmds []string, optz ...OptBasicExternalFormatterOptsSetter) format.Provider
func WrapExternalFormatterWithStdio ¶
func WrapExternalFormatterWithStdio(ext ExternalFormatter) format.Provider
Types ¶
type BasicExternalFormatterOpts ¶
type BasicExternalFormatterOpts struct {
// contains filtered or unexported fields
}
func NewBasicExternalFormatterOpts ¶
func NewBasicExternalFormatterOpts( options ...OptBasicExternalFormatterOptsSetter, ) BasicExternalFormatterOpts
func (*BasicExternalFormatterOpts) Validate ¶
func (o *BasicExternalFormatterOpts) Validate() error
type DockerExternalFormatter ¶
type DockerExternalFormatter struct {
Image string
Command []string
Once sync.Once
// contains filtered or unexported fields
}
func NewDockerCmdFormatter ¶
func NewDockerCmdFormatter(command []string, optz ...OptBasicExternalFormatterOptsSetter) *DockerExternalFormatter
type ExternalFormatter ¶
type NoopExternalFormatter ¶
type NoopExternalFormatter struct {
}
func (*NoopExternalFormatter) Indent ¶
func (me *NoopExternalFormatter) Indent() string
func (*NoopExternalFormatter) TempFiles ¶
func (me *NoopExternalFormatter) TempFiles() map[string]string
type OptBasicExternalFormatterOptsSetter ¶
type OptBasicExternalFormatterOptsSetter func(o *BasicExternalFormatterOpts)
func WithDockerCommand ¶
func WithDockerCommand(opt []string) OptBasicExternalFormatterOptsSetter
func WithDockerImageName ¶
func WithDockerImageName(opt string) OptBasicExternalFormatterOptsSetter
func WithDockerImageTag ¶
func WithDockerImageTag(opt string) OptBasicExternalFormatterOptsSetter
func WithExecutable ¶
func WithExecutable(opt string) OptBasicExternalFormatterOptsSetter
func WithFmtCommand ¶
func WithFmtCommand(opt []string) OptBasicExternalFormatterOptsSetter
func WithIndent ¶
func WithIndent(opt string) OptBasicExternalFormatterOptsSetter
func WithTempFiles ¶
func WithTempFiles(opt map[string]string) OptBasicExternalFormatterOptsSetter
func WithUseDocker ¶
func WithUseDocker(opt bool) OptBasicExternalFormatterOptsSetter
Click to show internal directories.
Click to hide internal directories.