Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthParams ¶ added in v0.8.18
type AuthParams struct { Identity string `name:"identity" help:"caller identity" default:""` IdentityType IdentityType `name:"identity-type" enum:"sub,jwt,none" help:"type of identity [sub|jwt|none]" default:"none"` Resource string `name:"resource" help:"a JSON object to include as resource context"` PolicyID string `name:"policy-id" required:"" help:"policy id"` }
func (AuthParams) IdentityContext ¶ added in v0.8.18
func (a AuthParams) IdentityContext() *api.IdentityContext
func (AuthParams) ResourceContext ¶ added in v0.8.18
func (a AuthParams) ResourceContext() (*structpb.Struct, error)
type DecisionTreeCmd ¶
type DecisionTreeCmd struct { AuthParams `embed:""` Path string `name:"path" help:"policy package to evaluate"` Decisions []string `name:"decisions" default:"*" help:"policy decisions to return"` }
type EvalDecisionCmd ¶
type EvalDecisionCmd struct { AuthParams `embed:""` Path string `name:"path" required:"" help:"policy package to evaluate"` Decisions []string `name:"decisions" required:"" help:"policy decisions to return"` }
type ExecQueryCmd ¶
type ExecQueryCmd struct { AuthParams `embed:""` Statement string `arg:"stmt" name:"stmt" required:"" help:"query statement"` Path string `name:"path" help:"policy package to evaluate"` Input string `name:"input" help:"query input context"` }
type IdentityType ¶ added in v0.8.18
type IdentityType string
const ( IdentityTypeNone IdentityType = "none" IdentityTypeSub IdentityType = "sub" IdentityTypeJwt IdentityType = "jwt" )
Click to show internal directories.
Click to hide internal directories.