profile

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 20 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 added in v0.0.22

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 added in v0.0.23

func NewProfileSettingsTable() table.Table

NewProfileSettingsTable creates a new table for rendering profile settings

func NewProfileStatusTable added in v0.0.22

func NewProfileStatusTable() table.Table

NewProfileStatusTable creates a new table for rendering profile status

func NewProfileTable added in v0.0.22

func NewProfileTable() table.Table

NewProfileTable creates a new table for rendering profiles

func NewRuleEvaluationsTable added in v0.0.22

func NewRuleEvaluationsTable() table.Table

NewRuleEvaluationsTable creates a new table for rendering rule evaluations

func RenderProfileSettingsTable added in v0.0.23

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

RenderProfileSettingsTable renders the profile settings table

func RenderProfileStatusTable added in v0.0.22

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

RenderProfileStatusTable renders the profile status table

func RenderProfileTable added in v0.0.17

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

RenderProfileTable renders the profile table

func RenderRuleEvaluationStatusTable added in v0.0.22

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