Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionInfo ¶
type AuthRequest ¶
type AuthRequest struct { Subject SubjectInfo `json:"subject"` Action ActionInfo `json:"action,omitempty"` Resource ResourceInfo `json:"resource,omitempty"` Context ContextInfo `json:"context,omitempty"` }
type AzInfo ¶
type AzInfo struct { Req *hexaOpaClient.ReqParams `json:"req"` Subject *hexaOpaClient.SubjectInfo `json:"subject"` Resource ResourceInfo `json:"resource"` }
type ContextInfo ¶
type ContextInfo struct {
json.RawMessage // no spec
}
type EvaluationsResponse ¶
type EvaluationsResponse struct { Iat time.Time `json:"iat,omitempty"` Exp time.Time `json:"exp,omitempty"` Subject SubjectInfo `json:"subject,omitempty"` Decision []QueryDecision `json:"decision"` Reasons []ReasonObject `json:"reasons,omitempty"` }
type QueryDecision ¶
type QueryDecision struct { Action string `json:"action"` Resource ResourceInfo `json:"resource"` Decision bool `json:"decision"` Reasons []json.Number `json:"reasons"` }
type QueryItem ¶
type QueryItem struct { Action string `json:"action"` Resource ResourceInfo `json:"resource"` }
type QueryRequest ¶
type QueryRequest struct { Subject SubjectInfo `json:"subject"` Queries []QueryItem `json:"queries"` }
type ReasonObject ¶
type ResourceInfo ¶
type ResourceInfo struct { Id string `json:"id,omitempty"` Type string `json:"type"` json.RawMessage }
type SimpleResponse ¶
type SimpleResponse struct {
Decision bool `json:"decision"`
}
type SubjectInfo ¶
Click to show internal directories.
Click to hide internal directories.