Documentation ¶
Overview ¶
Package layouts defines the available table layouts
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorsFromColoredColumns ¶
func ColorsFromColoredColumns(r []ColoredColumn) []tablewriter.Colors
ColorsFromColoredColumns returns the colors of the colored columns
func RowsFromColoredColumns ¶
func RowsFromColoredColumns(c []ColoredColumn) []string
RowsFromColoredColumns returns the rows of the colored columns
Types ¶
type ColoredColumn ¶
ColoredColumn is a column with a color
func GreenColumn ¶
func GreenColumn(column string) ColoredColumn
GreenColumn returns a green colored column
func YellowColumn ¶
func YellowColumn(column string) ColoredColumn
YellowColumn returns a yellow colored column
type TableLayout ¶
type TableLayout string
TableLayout is the type for table layouts
const ( // KeyValue is the key value table layout KeyValue TableLayout = "keyvalue" // RuleTypeOne is the rule type table layout RuleTypeOne TableLayout = "ruletype" // RuleTypeList is the rule type table layout RuleTypeList TableLayout = "ruletype_list" // ProfileSettings is the profile settings table layout ProfileSettings TableLayout = "profile_settings" // Profile is the profile table layout Profile TableLayout = "profile" // ProviderList is the provider list table layout ProviderList TableLayout = "provider_list" // RepoList is the repo list table layout RepoList TableLayout = "repolist" // ProfileStatus is the profile status table layout ProfileStatus TableLayout = "profile_status" // RuleEvaluations is the rule evaluations table layout RuleEvaluations TableLayout = "rule_evaluations" // EvaluationHistory is the evaluation history table layout EvaluationHistory TableLayout = "evaluation_history" // RoleList is the roles list table layout RoleList TableLayout = "role_list" // Default is the default table layout Default TableLayout = "" )
Click to show internal directories.
Click to hide internal directories.