- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewStyleWriter (0.06 sec)
-
istioctl/pkg/writer/table/writer_test.go
return testObject{ name: name, namespace: namespace, version: version, } } func TestWriter(t *testing.T) { got := &bytes.Buffer{} w := NewStyleWriter(got) w.AddHeader("NAME", "NAMESPACE", "VERSION") w.SetAddRowFunc(func(obj interface{}) Row { o := obj.(testObject) return Row{ Cells: []Cell{ NewCell(o.name), NewCell(o.namespace, color.FgGreen),
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Oct 08 04:41:42 UTC 2022 - 1.6K bytes - Viewed (0) -
istioctl/pkg/writer/table/writer.go
"unicode/utf8" "github.com/fatih/color" ) type ColoredTableWriter struct { writer io.Writer header Row rows []Row addRowFunc func(obj interface{}) Row } func NewStyleWriter(writer io.Writer) *ColoredTableWriter { return &ColoredTableWriter{ writer: writer, rows: make([]Row, 0), header: Row{}, } } type BuildRowFunc func(obj interface{}) Row type Cell struct {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Nov 06 09:43:25 UTC 2024 - 2.7K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject.go
} func printCheckInjectorResults(writer io.Writer, was []webhookAnalysis) error { if len(was) == 0 { fmt.Fprintf(writer, "ERROR: no Istio injection hooks present.\n") return nil } w := table.NewStyleWriter(writer) w.SetAddRowFunc(func(obj interface{}) table.Row { wa := obj.(webhookAnalysis) row := table.Row{ Cells: make([]table.Cell, 0), }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 9.3K bytes - Viewed (0)