Documentation ¶
Overview ¶
Package profile provides the CLI subcommand for managing profiles
Index ¶
- Variables
- func ExecOnOneProfile(ctx context.Context, t table.Table, f string, dashOpen io.Reader, ...) (*minderv1.Profile, error)
- func NewProfileSettingsTable() table.Table
- func NewProfileStatusTable() table.Table
- func NewProfileTable() table.Table
- func NewRuleEvaluationsTable() table.Table
- func RenderProfileSettingsTable(p *minderv1.Profile, t table.Table)
- func RenderProfileStatusTable(ps *minderv1.ProfileStatus, t table.Table)
- func RenderProfileTable(p *minderv1.Profile, t table.Table)
- func RenderRuleEvaluationStatusTable(statuses []*minderv1.RuleEvaluationStatus, t table.Table)
Constants ¶
This section is empty.
Variables ¶
var ProfileCmd = &cobra.Command{ Use: "profile", Short: "Manage profiles", Long: `The profile subcommands allows the management of profiles within Minder.`, RunE: func(cmd *cobra.Command, _ []string) error { return cmd.Usage() }, }
ProfileCmd is the root command for the profile subcommands
Functions ¶
func ExecOnOneProfile ¶
func ExecOnOneProfile(ctx context.Context, t table.Table, f string, dashOpen io.Reader, project string, exec func(context.Context, string, *minderv1.Profile) (*minderv1.Profile, error), ) (*minderv1.Profile, error)
ExecOnOneProfile is a helper function to execute a function on a single profile
func NewProfileSettingsTable ¶
NewProfileSettingsTable creates a new table for rendering profile settings
func NewProfileStatusTable ¶
NewProfileStatusTable creates a new table for rendering profile status
func NewProfileTable ¶
NewProfileTable creates a new table for rendering profiles
func NewRuleEvaluationsTable ¶
NewRuleEvaluationsTable creates a new table for rendering rule evaluations
func RenderProfileSettingsTable ¶
RenderProfileSettingsTable renders the profile settings table
func RenderProfileStatusTable ¶
func RenderProfileStatusTable(ps *minderv1.ProfileStatus, t table.Table)
RenderProfileStatusTable renders the profile status table
func RenderProfileTable ¶
RenderProfileTable renders the profile table
func RenderRuleEvaluationStatusTable ¶
func RenderRuleEvaluationStatusTable( statuses []*minderv1.RuleEvaluationStatus, t table.Table, )
RenderRuleEvaluationStatusTable renders the rule evaluations table
Types ¶
This section is empty.