output

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(writer io.Writer, entityName string, value map[string]EntityInfo) error

Write consumes a map with keys are usually repository names, or any other entity names, like groups and values are containers with either structures or errors

Types

type EntityInfo

type EntityInfo struct {
	Result interface{}
	Error  error
}

type Formatter added in v0.10.0

type Formatter interface {
	FormatMessage(value map[string]EntityInfo) string
}

type JsonFormatter added in v0.10.0

type JsonFormatter struct {
	// contains filtered or unexported fields
}

func (JsonFormatter) FormatMessage added in v0.10.0

func (w JsonFormatter) FormatMessage(value map[string]EntityInfo) string

type LineFormatter added in v0.10.0

type LineFormatter struct {
}

func (LineFormatter) FormatMessage added in v0.10.0

func (w LineFormatter) FormatMessage(value map[string]EntityInfo) string

type LogFormatter added in v0.10.0

type LogFormatter struct {
	// contains filtered or unexported fields
}

LogFormatter Formats the information with a regular logging

func (LogFormatter) FormatMessage added in v0.10.0

func (w LogFormatter) FormatMessage(value map[string]EntityInfo) string

type TableFormatter added in v0.10.0

type TableFormatter struct {
	// contains filtered or unexported fields
}

func (TableFormatter) FormatMessage added in v0.10.0

func (w TableFormatter) FormatMessage(value map[string]EntityInfo) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL