resources

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetColumns

func GetColumns() []string

Types

type Row

type Row struct {
	Kind         string
	ApiVersion   string
	Name         string
	Policy       string
	ConfigPolicy string
	Standard     string
	Category     string
	Control      string
	Source       string
	PolicyDir    string
}

func (*Row) Get

func (row *Row) Get(column string) string

type Table

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

func FromCsv

func FromCsv(reader io.Reader) *Table

func (*Table) Add

func (table *Table) Add(row Row)

func (*Table) Filter

func (table *Table) Filter(predicate func(row Row) bool) *Table

func (*Table) GroupBy

func (table *Table) GroupBy(column string) map[string]*Table

func (*Table) List

func (table *Table) List() []Row

func (*Table) Print

func (table *Table) Print()

func (*Table) ToCsv

func (table *Table) ToCsv(writer io.Writer)

Jump to

Keyboard shortcuts

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