Documentation
¶
Index ¶
Constants ¶
View Source
const ( CheckUnknown checkType = iota CheckDecision )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizerCmd ¶
type AuthorizerCmd struct {
CheckDecision EvalCmd `cmd:"" name:"eval" help:"evaluate policy decision"`
ExecQuery QueryCmd `cmd:"" name:"query" help:"execute query"`
DecisionTree DecisionTreeCmd `cmd:"" name:"decisiontree" help:"get decision tree"`
Get GetCmd `cmd:"" help:"get policy"`
List ListCmd `cmd:"" help:"list policy"`
Test TestCmd `cmd:"" help:"execute authorizer assertions"`
}
type DecisionTreeCmd ¶ added in v0.32.4
type DecisionTreeCmd struct {
Request string `` /* 131-byte string literal not displayed */
Template bool `name:"template" short:"t" help:"prints a check permission request template on stdout"`
Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"`
clients.AuthorizerConfig
}
type EvalCmd ¶ added in v0.32.4
type EvalCmd struct {
Request string `` /* 129-byte string literal not displayed */
Template bool `name:"template" short:"t" help:"prints a check permission request template on stdout"`
Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"`
clients.AuthorizerConfig
}
type GetCmd ¶ added in v0.32.12
type GetCmd struct {
Policy GetPolicyCmd `cmd:"" help:"get policy"`
}
type GetPolicyCmd ¶ added in v0.32.4
type GetPolicyCmd struct {
Request string `` /* 128-byte string literal not displayed */
Template bool `name:"template" short:"t" help:"prints a check permission request template on stdout"`
Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"`
Raw bool `name:"raw" help:"return raw request output"`
clients.AuthorizerConfig
}
type ListCmd ¶ added in v0.32.12
type ListCmd struct {
Policies ListPoliciesCmd `cmd:"" help:"list policies"`
}
type ListPoliciesCmd ¶ added in v0.32.4
type ListPoliciesCmd struct {
Request string `arg:"" type:"string" name:"request" optional:"" help:"json request or file path to list request or '-' to read from stdin"`
Template bool `name:"template" short:"t" help:"prints a check permission request template on stdout"`
Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"`
Raw bool `name:"raw" help:"return raw request output"`
clients.AuthorizerConfig
}
type QueryCmd ¶ added in v0.32.4
type QueryCmd struct {
Request string `` /* 134-byte string literal not displayed */
Template bool `name:"template" short:"t" help:"prints a check permission request template on stdout"`
Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"`
clients.AuthorizerConfig
}
type TestCmd ¶
type TestCmd struct {
Exec TestExecCmd `cmd:"" help:"execute assertions"`
Template TestTemplateCmd `cmd:"" help:"output assertions template"`
}
type TestExecCmd ¶
type TestExecCmd struct {
File string `arg:"" default:"assertions.json" help:"filepath to assertions file"`
NoColor bool `flag:"" default:"false" help:"disable colorized output"`
Summary bool `flag:"" default:"false" help:"display test summary"`
clients.AuthorizerConfig
// contains filtered or unexported fields
}
type TestTemplateCmd ¶
type TestTemplateCmd struct {
Pretty bool `flag:"" default:"false" help:"pretty print JSON"`
}
Click to show internal directories.
Click to hide internal directories.