Documentation
¶
Index ¶
- Constants
- func GenAuditLogOptions(filter *AuditLogFilterDef) client.AuditLogOptions
- func GenerateFeedbackLink(header, version, commitSHA string, stack []byte) string
- func MinInt(a, b int) int
- func PrintPolicyJSON(w io.Writer, policies []*policyv1.Policy) error
- func PrintPolicyPrettyJSON(w io.Writer, policies []*policyv1.Policy) error
- func PrintPolicyYAML(w io.Writer, policies []*policyv1.Policy) error
- func PrintSchemaJSON(w io.Writer, schemas []*schemav1.Schema) error
- func PrintSchemaPrettyJSON(w io.Writer, schemas []*schemav1.Schema) error
- type AdminCommand
- type AuditLogFilterDef
- type KindFlag
- type WithClient
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 ¶ added in v0.10.0
func PrintPolicyJSON ¶ added in v0.12.0
func PrintPolicyPrettyJSON ¶ added in v0.12.0
func PrintPolicyYAML ¶ added in v0.12.0
func PrintSchemaJSON ¶ added in v0.12.0
Types ¶
type AdminCommand ¶ added in v0.12.0
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 ¶
type KindFlag requestv1.ListAuditLogEntriesRequest_Kind
func (KindFlag) Kind ¶
func (kf KindFlag) Kind() requestv1.ListAuditLogEntriesRequest_Kind
type WithClient ¶
type WithClient func(AdminCommand) func(cmd *cobra.Command, args []string) error
Click to show internal directories.
Click to hide internal directories.