Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for rows (0.2 sec)

  1. istioctl/pkg/writer/table/writer.go

    )
    
    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 {
    	Value      string
    	Attributes []color.Attribute
    }
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Oct 08 04:41:42 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  2. istioctl/pkg/checkinject/checkinject.go

    	w.SetAddRowFunc(func(obj interface{}) table.Row {
    		wa := obj.(webhookAnalysis)
    		row := table.Row{
    			Cells: make([]table.Cell, 0),
    		}
    		row.Cells = append(row.Cells, table.NewCell(wa.Name), table.NewCell(wa.Revision))
    		if wa.Injected {
    			row.Cells = append(row.Cells, table.NewCell("✔", color.FgGreen))
    		} else {
    			row.Cells = append(row.Cells, table.NewCell("✘", color.FgRed))
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. licenses/github.com/russross/blackfriday/v2/LICENSE.txt

    Blackfriday is distributed under the Simplified BSD License:
    
    > Copyright © 2011 Russ Ross
    > All rights reserved.
    >
    > Redistribution and use in source and binary forms, with or without
    > modification, are permitted provided that the following conditions
    > are met:
    >
    > 1.  Redistributions of source code must retain the above copyright
    >     notice, this list of conditions and the following disclaimer.
    >
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 23 04:14:15 GMT 2020
    - 1.4K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/table/writer_test.go

    	}
    }
    
    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),
    				NewCell(o.version),
    			},
    		}
    	})
    	w.AddRow(newTestObject("foo", "bar", "1.0"))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Oct 08 04:41:42 GMT 2022
    - 1.6K bytes
    - Viewed (0)
Back to top