profile

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 22 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 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 NewProfileTable

func NewProfileTable() table.Table

NewProfileTable creates a new table for rendering profiles

func NewRuleEvaluationsTable

func NewRuleEvaluationsTable() table.Table

NewRuleEvaluationsTable creates a new table for rendering rule evaluations

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)

RenderProfileStatusTable renders the profile status table

func RenderProfileTable

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

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.

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