profile

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package profile provides the CLI subcommand for managing profiles

Index

Constants

This section is empty.

Variables

View Source
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 NewProfileRulesTable added in v0.1.0

func NewProfileRulesTable() table.Table

NewProfileRulesTable creates a new table for rendering profiles

func NewProfileSettingsTable

func NewProfileSettingsTable() table.Table

NewProfileSettingsTable creates a new table for rendering profile settings

func NewProfileStatusTable

func NewProfileStatusTable() table.Table

NewProfileStatusTable creates a new table for rendering profile status

func NewRuleEvaluationsTable

func NewRuleEvaluationsTable() table.Table

NewRuleEvaluationsTable creates a new table for rendering rule evaluations

func RenderProfileRulesTable added in v0.1.0

func RenderProfileRulesTable(p *minderv1.Profile, t table.Table)

RenderProfileRulesTable renders the profile table

func RenderProfileSettingsTable

func RenderProfileSettingsTable(p *minderv1.Profile, t table.Table)

RenderProfileSettingsTable renders the profile settings table

func RenderProfileStatusTable

func RenderProfileStatusTable(ps *minderv1.ProfileStatus, t table.Table, emoji bool)

RenderProfileStatusTable renders the profile status table

func RenderRuleEvaluationStatusTable

func RenderRuleEvaluationStatusTable(
	statuses []*minderv1.RuleEvaluationStatus,
	t table.Table,
	emoji bool,
)

RenderRuleEvaluationStatusTable renders the rule evaluations table

Types

This section is empty.

Directories

Path Synopsis
Package status provides the CLI subcommand for managing profile statuses
Package status provides the CLI subcommand for managing profile statuses

Jump to

Keyboard shortcuts

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