internal

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeedbackMsg = "It looks like an unexpected error happened. Please use the link below to report it to Cerbos developers."

	FeedbackLink = baseURL + "/choose"
)
View Source
const MaxIDPerReq = 25

Variables

This section is empty.

Functions

func GenAuditLogOptions

func GenAuditLogOptions(filter *AuditLogFilterDef) client.AuditLogOptions
func GenerateFeedbackLink(header, version, commitSHA string, stack []byte) string

func MinInt added in v0.12.0

func MinInt(a, b int) int

func PrintPolicyJSON added in v0.12.0

func PrintPolicyJSON(w io.Writer, policies []*policyv1.Policy) error

func PrintPolicyPrettyJSON added in v0.12.0

func PrintPolicyPrettyJSON(w io.Writer, policies []*policyv1.Policy) error

func PrintPolicyYAML added in v0.12.0

func PrintPolicyYAML(w io.Writer, policies []*policyv1.Policy) error

func PrintSchemaJSON added in v0.12.0

func PrintSchemaJSON(w io.Writer, schemas []*schemav1.Schema) error

func PrintSchemaPrettyJSON added in v0.12.0

func PrintSchemaPrettyJSON(w io.Writer, schemas []*schemav1.Schema) error

Types

type AdminCommand added in v0.12.0

type AdminCommand func(c client.AdminClient, cmd *cobra.Command, args []string) error

type AuditLogFilterDef

type AuditLogFilterDef struct {
	// contains filtered or unexported fields
}

func NewAuditLogFilterDef

func NewAuditLogFilterDef() *AuditLogFilterDef

func (*AuditLogFilterDef) FlagSet

func (afd *AuditLogFilterDef) FlagSet() *pflag.FlagSet

func (*AuditLogFilterDef) Validate

func (afd *AuditLogFilterDef) Validate() error

type KindFlag

func (KindFlag) Kind

func (*KindFlag) Set

func (kf *KindFlag) Set(v string) error

func (KindFlag) String

func (kf KindFlag) String() string

func (KindFlag) Type

func (kf KindFlag) Type() string

type WithClient

type WithClient func(AdminCommand) func(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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