Documentation
¶
Index ¶
- Constants
- Variables
- type AuxData
- type AuxData_builder
- type CheckInput
- func (x *CheckInput) ClearAuxData()
- func (x *CheckInput) ClearPrincipal()
- func (x *CheckInput) ClearResource()
- func (x *CheckInput) GetActions() []string
- func (x *CheckInput) GetAuxData() *AuxData
- func (x *CheckInput) GetPrincipal() *Principal
- func (x *CheckInput) GetRequestId() string
- func (x *CheckInput) GetResource() *Resource
- func (x *CheckInput) HasAuxData() bool
- func (x *CheckInput) HasPrincipal() bool
- func (x *CheckInput) HasResource() bool
- func (*CheckInput) ProtoMessage()
- func (x *CheckInput) ProtoReflect() protoreflect.Message
- func (x *CheckInput) Reset()
- func (x *CheckInput) SetActions(v []string)
- func (x *CheckInput) SetAuxData(v *AuxData)
- func (x *CheckInput) SetPrincipal(v *Principal)
- func (x *CheckInput) SetRequestId(v string)
- func (x *CheckInput) SetResource(v *Resource)
- func (x *CheckInput) String() string
- type CheckInput_builder
- type CheckOutput
- func (x *CheckOutput) GetActions() map[string]*CheckOutput_ActionEffect
- func (x *CheckOutput) GetEffectiveDerivedRoles() []string
- func (x *CheckOutput) GetOutputs() []*OutputEntry
- func (x *CheckOutput) GetRequestId() string
- func (x *CheckOutput) GetResourceId() string
- func (x *CheckOutput) GetValidationErrors() []*v1.ValidationError
- func (*CheckOutput) ProtoMessage()
- func (x *CheckOutput) ProtoReflect() protoreflect.Message
- func (x *CheckOutput) Reset()
- func (x *CheckOutput) SetActions(v map[string]*CheckOutput_ActionEffect)
- func (x *CheckOutput) SetEffectiveDerivedRoles(v []string)
- func (x *CheckOutput) SetOutputs(v []*OutputEntry)
- func (x *CheckOutput) SetRequestId(v string)
- func (x *CheckOutput) SetResourceId(v string)
- func (x *CheckOutput) SetValidationErrors(v []*v1.ValidationError)
- func (x *CheckOutput) String() string
- type CheckOutput_ActionEffect
- func (x *CheckOutput_ActionEffect) GetEffect() v11.Effect
- func (x *CheckOutput_ActionEffect) GetPolicy() string
- func (x *CheckOutput_ActionEffect) GetScope() string
- func (*CheckOutput_ActionEffect) ProtoMessage()
- func (x *CheckOutput_ActionEffect) ProtoReflect() protoreflect.Message
- func (x *CheckOutput_ActionEffect) Reset()
- func (x *CheckOutput_ActionEffect) SetEffect(v v11.Effect)
- func (x *CheckOutput_ActionEffect) SetPolicy(v string)
- func (x *CheckOutput_ActionEffect) SetScope(v string)
- func (x *CheckOutput_ActionEffect) String() string
- type CheckOutput_ActionEffect_builder
- type CheckOutput_builder
- type OutputEntry
- func (x *OutputEntry) ClearVal()
- func (x *OutputEntry) GetSrc() string
- func (x *OutputEntry) GetVal() *structpb.Value
- func (x *OutputEntry) HasVal() bool
- func (*OutputEntry) ProtoMessage()
- func (x *OutputEntry) ProtoReflect() protoreflect.Message
- func (x *OutputEntry) Reset()
- func (x *OutputEntry) SetSrc(v string)
- func (x *OutputEntry) SetVal(v *structpb.Value)
- func (x *OutputEntry) String() string
- type OutputEntry_builder
- type PlanResourcesAst
- func (x *PlanResourcesAst) ClearFilterAst()
- func (x *PlanResourcesAst) GetFilterAst() *PlanResourcesAst_Node
- func (x *PlanResourcesAst) HasFilterAst() bool
- func (*PlanResourcesAst) ProtoMessage()
- func (x *PlanResourcesAst) ProtoReflect() protoreflect.Message
- func (x *PlanResourcesAst) Reset()
- func (x *PlanResourcesAst) SetFilterAst(v *PlanResourcesAst_Node)
- func (x *PlanResourcesAst) String() string
- type PlanResourcesAst_LogicalOperation
- func (x *PlanResourcesAst_LogicalOperation) GetNodes() []*PlanResourcesAst_Node
- func (x *PlanResourcesAst_LogicalOperation) GetOperator() PlanResourcesAst_LogicalOperation_Operator
- func (*PlanResourcesAst_LogicalOperation) ProtoMessage()
- func (x *PlanResourcesAst_LogicalOperation) ProtoReflect() protoreflect.Message
- func (x *PlanResourcesAst_LogicalOperation) Reset()
- func (x *PlanResourcesAst_LogicalOperation) SetNodes(v []*PlanResourcesAst_Node)
- func (x *PlanResourcesAst_LogicalOperation) SetOperator(v PlanResourcesAst_LogicalOperation_Operator)
- func (x *PlanResourcesAst_LogicalOperation) String() string
- type PlanResourcesAst_LogicalOperation_Operator
- func (PlanResourcesAst_LogicalOperation_Operator) Descriptor() protoreflect.EnumDescriptor
- func (x PlanResourcesAst_LogicalOperation_Operator) Enum() *PlanResourcesAst_LogicalOperation_Operator
- func (x PlanResourcesAst_LogicalOperation_Operator) Number() protoreflect.EnumNumber
- func (x PlanResourcesAst_LogicalOperation_Operator) String() string
- func (PlanResourcesAst_LogicalOperation_Operator) Type() protoreflect.EnumType
- type PlanResourcesAst_LogicalOperation_builder
- type PlanResourcesAst_Node
- func (x *PlanResourcesAst_Node) ClearExpression()
- func (x *PlanResourcesAst_Node) ClearLogicalOperation()
- func (x *PlanResourcesAst_Node) ClearNode()
- func (x *PlanResourcesAst_Node) GetExpression() *v1alpha1.CheckedExpr
- func (x *PlanResourcesAst_Node) GetLogicalOperation() *PlanResourcesAst_LogicalOperation
- func (x *PlanResourcesAst_Node) GetNode() isPlanResourcesAst_Node_Node
- func (x *PlanResourcesAst_Node) HasExpression() bool
- func (x *PlanResourcesAst_Node) HasLogicalOperation() bool
- func (x *PlanResourcesAst_Node) HasNode() bool
- func (*PlanResourcesAst_Node) ProtoMessage()
- func (x *PlanResourcesAst_Node) ProtoReflect() protoreflect.Message
- func (x *PlanResourcesAst_Node) Reset()
- func (x *PlanResourcesAst_Node) SetExpression(v *v1alpha1.CheckedExpr)
- func (x *PlanResourcesAst_Node) SetLogicalOperation(v *PlanResourcesAst_LogicalOperation)
- func (x *PlanResourcesAst_Node) String() string
- func (x *PlanResourcesAst_Node) WhichNode() case_PlanResourcesAst_Node_Node
- type PlanResourcesAst_Node_Expression
- type PlanResourcesAst_Node_LogicalOperation
- type PlanResourcesAst_Node_builder
- type PlanResourcesAst_builder
- type PlanResourcesFilter
- func (x *PlanResourcesFilter) ClearCondition()
- func (x *PlanResourcesFilter) GetCondition() *PlanResourcesFilter_Expression_Operand
- func (x *PlanResourcesFilter) GetKind() PlanResourcesFilter_Kind
- func (x *PlanResourcesFilter) HasCondition() bool
- func (*PlanResourcesFilter) ProtoMessage()
- func (x *PlanResourcesFilter) ProtoReflect() protoreflect.Message
- func (x *PlanResourcesFilter) Reset()
- func (x *PlanResourcesFilter) SetCondition(v *PlanResourcesFilter_Expression_Operand)
- func (x *PlanResourcesFilter) SetKind(v PlanResourcesFilter_Kind)
- func (x *PlanResourcesFilter) String() string
- type PlanResourcesFilter_Expression
- func (x *PlanResourcesFilter_Expression) GetOperands() []*PlanResourcesFilter_Expression_Operand
- func (x *PlanResourcesFilter_Expression) GetOperator() string
- func (*PlanResourcesFilter_Expression) ProtoMessage()
- func (x *PlanResourcesFilter_Expression) ProtoReflect() protoreflect.Message
- func (x *PlanResourcesFilter_Expression) Reset()
- func (x *PlanResourcesFilter_Expression) SetOperands(v []*PlanResourcesFilter_Expression_Operand)
- func (x *PlanResourcesFilter_Expression) SetOperator(v string)
- func (x *PlanResourcesFilter_Expression) String() string
- type PlanResourcesFilter_Expression_Operand
- func (x *PlanResourcesFilter_Expression_Operand) ClearExpression()
- func (x *PlanResourcesFilter_Expression_Operand) ClearNode()
- func (x *PlanResourcesFilter_Expression_Operand) ClearValue()
- func (x *PlanResourcesFilter_Expression_Operand) ClearVariable()
- func (x *PlanResourcesFilter_Expression_Operand) GetExpression() *PlanResourcesFilter_Expression
- func (x *PlanResourcesFilter_Expression_Operand) GetNode() isPlanResourcesFilter_Expression_Operand_Node
- func (x *PlanResourcesFilter_Expression_Operand) GetValue() *structpb.Value
- func (x *PlanResourcesFilter_Expression_Operand) GetVariable() string
- func (x *PlanResourcesFilter_Expression_Operand) HasExpression() bool
- func (x *PlanResourcesFilter_Expression_Operand) HasNode() bool
- func (x *PlanResourcesFilter_Expression_Operand) HasValue() bool
- func (x *PlanResourcesFilter_Expression_Operand) HasVariable() bool
- func (*PlanResourcesFilter_Expression_Operand) ProtoMessage()
- func (x *PlanResourcesFilter_Expression_Operand) ProtoReflect() protoreflect.Message
- func (x *PlanResourcesFilter_Expression_Operand) Reset()
- func (x *PlanResourcesFilter_Expression_Operand) SetExpression(v *PlanResourcesFilter_Expression)
- func (x *PlanResourcesFilter_Expression_Operand) SetValue(v *structpb.Value)
- func (x *PlanResourcesFilter_Expression_Operand) SetVariable(v string)
- func (x *PlanResourcesFilter_Expression_Operand) String() string
- func (x *PlanResourcesFilter_Expression_Operand) WhichNode() case_PlanResourcesFilter_Expression_Operand_Node
- type PlanResourcesFilter_Expression_Operand_Expression
- type PlanResourcesFilter_Expression_Operand_Value
- type PlanResourcesFilter_Expression_Operand_Variable
- type PlanResourcesFilter_Expression_Operand_builder
- type PlanResourcesFilter_Expression_builder
- type PlanResourcesFilter_Kind
- func (PlanResourcesFilter_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x PlanResourcesFilter_Kind) Enum() *PlanResourcesFilter_Kind
- func (x PlanResourcesFilter_Kind) Number() protoreflect.EnumNumber
- func (x PlanResourcesFilter_Kind) String() string
- func (PlanResourcesFilter_Kind) Type() protoreflect.EnumType
- type PlanResourcesFilter_builder
- type PlanResourcesInput
- func (x *PlanResourcesInput) ClearAuxData()
- func (x *PlanResourcesInput) ClearPrincipal()
- func (x *PlanResourcesInput) ClearResource()
- func (x *PlanResourcesInput) GetAction() stringdeprecated
- func (x *PlanResourcesInput) GetActions() []string
- func (x *PlanResourcesInput) GetAuxData() *AuxData
- func (x *PlanResourcesInput) GetIncludeMeta() bool
- func (x *PlanResourcesInput) GetPrincipal() *Principal
- func (x *PlanResourcesInput) GetRequestId() string
- func (x *PlanResourcesInput) GetResource() *PlanResourcesInput_Resource
- func (x *PlanResourcesInput) HasAuxData() bool
- func (x *PlanResourcesInput) HasPrincipal() bool
- func (x *PlanResourcesInput) HasResource() bool
- func (*PlanResourcesInput) ProtoMessage()
- func (x *PlanResourcesInput) ProtoReflect() protoreflect.Message
- func (x *PlanResourcesInput) Reset()
- func (x *PlanResourcesInput) SetAction(v string)deprecated
- func (x *PlanResourcesInput) SetActions(v []string)
- func (x *PlanResourcesInput) SetAuxData(v *AuxData)
- func (x *PlanResourcesInput) SetIncludeMeta(v bool)
- func (x *PlanResourcesInput) SetPrincipal(v *Principal)
- func (x *PlanResourcesInput) SetRequestId(v string)
- func (x *PlanResourcesInput) SetResource(v *PlanResourcesInput_Resource)
- func (x *PlanResourcesInput) String() string
- type PlanResourcesInput_Resource
- func (x *PlanResourcesInput_Resource) GetAttr() map[string]*structpb.Value
- func (x *PlanResourcesInput_Resource) GetKind() string
- func (x *PlanResourcesInput_Resource) GetPolicyVersion() string
- func (x *PlanResourcesInput_Resource) GetScope() string
- func (*PlanResourcesInput_Resource) ProtoMessage()
- func (x *PlanResourcesInput_Resource) ProtoReflect() protoreflect.Message
- func (x *PlanResourcesInput_Resource) Reset()
- func (x *PlanResourcesInput_Resource) SetAttr(v map[string]*structpb.Value)
- func (x *PlanResourcesInput_Resource) SetKind(v string)
- func (x *PlanResourcesInput_Resource) SetPolicyVersion(v string)
- func (x *PlanResourcesInput_Resource) SetScope(v string)
- func (x *PlanResourcesInput_Resource) String() string
- type PlanResourcesInput_Resource_builder
- type PlanResourcesInput_builder
- type PlanResourcesOutput
- func (x *PlanResourcesOutput) ClearFilter()
- func (x *PlanResourcesOutput) GetAction() stringdeprecated
- func (x *PlanResourcesOutput) GetActions() []string
- func (x *PlanResourcesOutput) GetFilter() *PlanResourcesFilter
- func (x *PlanResourcesOutput) GetFilterDebug() string
- func (x *PlanResourcesOutput) GetKind() string
- func (x *PlanResourcesOutput) GetMatchedScopes() map[string]string
- func (x *PlanResourcesOutput) GetPolicyVersion() string
- func (x *PlanResourcesOutput) GetRequestId() string
- func (x *PlanResourcesOutput) GetScope() string
- func (x *PlanResourcesOutput) GetValidationErrors() []*v1.ValidationError
- func (x *PlanResourcesOutput) HasFilter() bool
- func (*PlanResourcesOutput) ProtoMessage()
- func (x *PlanResourcesOutput) ProtoReflect() protoreflect.Message
- func (x *PlanResourcesOutput) Reset()
- func (x *PlanResourcesOutput) SetAction(v string)deprecated
- func (x *PlanResourcesOutput) SetActions(v []string)
- func (x *PlanResourcesOutput) SetFilter(v *PlanResourcesFilter)
- func (x *PlanResourcesOutput) SetFilterDebug(v string)
- func (x *PlanResourcesOutput) SetKind(v string)
- func (x *PlanResourcesOutput) SetMatchedScopes(v map[string]string)
- func (x *PlanResourcesOutput) SetPolicyVersion(v string)
- func (x *PlanResourcesOutput) SetRequestId(v string)
- func (x *PlanResourcesOutput) SetScope(v string)
- func (x *PlanResourcesOutput) SetValidationErrors(v []*v1.ValidationError)
- func (x *PlanResourcesOutput) String() string
- type PlanResourcesOutput_builder
- type Principal
- func (x *Principal) GetAttr() map[string]*structpb.Value
- func (x *Principal) GetId() string
- func (x *Principal) GetPolicyVersion() string
- func (x *Principal) GetRoles() []string
- func (x *Principal) GetScope() string
- func (*Principal) ProtoMessage()
- func (x *Principal) ProtoReflect() protoreflect.Message
- func (x *Principal) Reset()
- func (x *Principal) SetAttr(v map[string]*structpb.Value)
- func (x *Principal) SetId(v string)
- func (x *Principal) SetPolicyVersion(v string)
- func (x *Principal) SetRoles(v []string)
- func (x *Principal) SetScope(v string)
- func (x *Principal) String() string
- type Principal_builder
- type Request
- func (x *Request) ClearAuxData()
- func (x *Request) ClearPrincipal()
- func (x *Request) ClearResource()
- func (x *Request) GetAuxData() *AuxData
- func (x *Request) GetPrincipal() *Request_Principal
- func (x *Request) GetResource() *Request_Resource
- func (x *Request) HasAuxData() bool
- func (x *Request) HasPrincipal() bool
- func (x *Request) HasResource() bool
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) SetAuxData(v *AuxData)
- func (x *Request) SetPrincipal(v *Request_Principal)
- func (x *Request) SetResource(v *Request_Resource)
- func (x *Request) String() string
- type Request_Principal
- func (x *Request_Principal) GetAttr() map[string]*structpb.Value
- func (x *Request_Principal) GetId() string
- func (x *Request_Principal) GetPolicyVersion() string
- func (x *Request_Principal) GetRoles() []string
- func (x *Request_Principal) GetScope() string
- func (*Request_Principal) ProtoMessage()
- func (x *Request_Principal) ProtoReflect() protoreflect.Message
- func (x *Request_Principal) Reset()
- func (x *Request_Principal) SetAttr(v map[string]*structpb.Value)
- func (x *Request_Principal) SetId(v string)
- func (x *Request_Principal) SetPolicyVersion(v string)
- func (x *Request_Principal) SetRoles(v []string)
- func (x *Request_Principal) SetScope(v string)
- func (x *Request_Principal) String() string
- type Request_Principal_builder
- type Request_Resource
- func (x *Request_Resource) GetAttr() map[string]*structpb.Value
- func (x *Request_Resource) GetId() string
- func (x *Request_Resource) GetKind() string
- func (x *Request_Resource) GetPolicyVersion() string
- func (x *Request_Resource) GetScope() string
- func (*Request_Resource) ProtoMessage()
- func (x *Request_Resource) ProtoReflect() protoreflect.Message
- func (x *Request_Resource) Reset()
- func (x *Request_Resource) SetAttr(v map[string]*structpb.Value)
- func (x *Request_Resource) SetId(v string)
- func (x *Request_Resource) SetKind(v string)
- func (x *Request_Resource) SetPolicyVersion(v string)
- func (x *Request_Resource) SetScope(v string)
- func (x *Request_Resource) String() string
- type Request_Resource_builder
- type Request_builder
- type Resource
- func (x *Resource) GetAttr() map[string]*structpb.Value
- func (x *Resource) GetId() string
- func (x *Resource) GetKind() string
- func (x *Resource) GetPolicyVersion() string
- func (x *Resource) GetScope() string
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) SetAttr(v map[string]*structpb.Value)
- func (x *Resource) SetId(v string)
- func (x *Resource) SetKind(v string)
- func (x *Resource) SetPolicyVersion(v string)
- func (x *Resource) SetScope(v string)
- func (x *Resource) String() string
- type Resource_builder
- type Runtime
- type Runtime_builder
- type Trace
- func (x *Trace) ClearEvent()
- func (x *Trace) GetComponents() []*Trace_Component
- func (x *Trace) GetEvent() *Trace_Event
- func (x *Trace) HasEvent() bool
- func (*Trace) ProtoMessage()
- func (x *Trace) ProtoReflect() protoreflect.Message
- func (x *Trace) Reset()
- func (x *Trace) SetComponents(v []*Trace_Component)
- func (x *Trace) SetEvent(v *Trace_Event)
- func (x *Trace) String() string
- type Trace_Component
- func (x *Trace_Component) ClearAction()
- func (x *Trace_Component) ClearDerivedRole()
- func (x *Trace_Component) ClearDetails()
- func (x *Trace_Component) ClearExpr()
- func (x *Trace_Component) ClearIndex()
- func (x *Trace_Component) ClearOutput()
- func (x *Trace_Component) ClearPolicy()
- func (x *Trace_Component) ClearResource()
- func (x *Trace_Component) ClearRole()
- func (x *Trace_Component) ClearRolePolicyScope()
- func (x *Trace_Component) ClearRule()
- func (x *Trace_Component) ClearScope()
- func (x *Trace_Component) ClearVariable()
- func (x *Trace_Component) GetAction() string
- func (x *Trace_Component) GetDerivedRole() string
- func (x *Trace_Component) GetDetails() isTrace_Component_Details
- func (x *Trace_Component) GetExpr() string
- func (x *Trace_Component) GetIndex() uint32
- func (x *Trace_Component) GetKind() Trace_Component_Kind
- func (x *Trace_Component) GetOutput() string
- func (x *Trace_Component) GetPolicy() string
- func (x *Trace_Component) GetResource() string
- func (x *Trace_Component) GetRole() string
- func (x *Trace_Component) GetRolePolicyScope() string
- func (x *Trace_Component) GetRule() string
- func (x *Trace_Component) GetScope() string
- func (x *Trace_Component) GetVariable() *Trace_Component_Variable
- func (x *Trace_Component) HasAction() bool
- func (x *Trace_Component) HasDerivedRole() bool
- func (x *Trace_Component) HasDetails() bool
- func (x *Trace_Component) HasExpr() bool
- func (x *Trace_Component) HasIndex() bool
- func (x *Trace_Component) HasOutput() bool
- func (x *Trace_Component) HasPolicy() bool
- func (x *Trace_Component) HasResource() bool
- func (x *Trace_Component) HasRole() bool
- func (x *Trace_Component) HasRolePolicyScope() bool
- func (x *Trace_Component) HasRule() bool
- func (x *Trace_Component) HasScope() bool
- func (x *Trace_Component) HasVariable() bool
- func (*Trace_Component) ProtoMessage()
- func (x *Trace_Component) ProtoReflect() protoreflect.Message
- func (x *Trace_Component) Reset()
- func (x *Trace_Component) SetAction(v string)
- func (x *Trace_Component) SetDerivedRole(v string)
- func (x *Trace_Component) SetExpr(v string)
- func (x *Trace_Component) SetIndex(v uint32)
- func (x *Trace_Component) SetKind(v Trace_Component_Kind)
- func (x *Trace_Component) SetOutput(v string)
- func (x *Trace_Component) SetPolicy(v string)
- func (x *Trace_Component) SetResource(v string)
- func (x *Trace_Component) SetRole(v string)
- func (x *Trace_Component) SetRolePolicyScope(v string)
- func (x *Trace_Component) SetRule(v string)
- func (x *Trace_Component) SetScope(v string)
- func (x *Trace_Component) SetVariable(v *Trace_Component_Variable)
- func (x *Trace_Component) String() string
- func (x *Trace_Component) WhichDetails() case_Trace_Component_Details
- type Trace_Component_Action
- type Trace_Component_DerivedRole
- type Trace_Component_Expr
- type Trace_Component_Index
- type Trace_Component_Kind
- type Trace_Component_Output
- type Trace_Component_Policy
- type Trace_Component_Resource
- type Trace_Component_Role
- type Trace_Component_RolePolicyScope
- type Trace_Component_Rule
- type Trace_Component_Scope
- type Trace_Component_Variable
- func (x *Trace_Component_Variable) GetExpr() string
- func (x *Trace_Component_Variable) GetName() string
- func (*Trace_Component_Variable) ProtoMessage()
- func (x *Trace_Component_Variable) ProtoReflect() protoreflect.Message
- func (x *Trace_Component_Variable) Reset()
- func (x *Trace_Component_Variable) SetExpr(v string)
- func (x *Trace_Component_Variable) SetName(v string)
- func (x *Trace_Component_Variable) String() string
- type Trace_Component_Variable_
- type Trace_Component_Variable_builder
- type Trace_Component_builder
- type Trace_Event
- func (x *Trace_Event) ClearResult()
- func (x *Trace_Event) GetEffect() v11.Effect
- func (x *Trace_Event) GetError() string
- func (x *Trace_Event) GetMessage() string
- func (x *Trace_Event) GetResult() *structpb.Value
- func (x *Trace_Event) GetStatus() Trace_Event_Status
- func (x *Trace_Event) HasResult() bool
- func (*Trace_Event) ProtoMessage()
- func (x *Trace_Event) ProtoReflect() protoreflect.Message
- func (x *Trace_Event) Reset()
- func (x *Trace_Event) SetEffect(v v11.Effect)
- func (x *Trace_Event) SetError(v string)
- func (x *Trace_Event) SetMessage(v string)
- func (x *Trace_Event) SetResult(v *structpb.Value)
- func (x *Trace_Event) SetStatus(v Trace_Event_Status)
- func (x *Trace_Event) String() string
- type Trace_Event_Status
- type Trace_Event_builder
- type Trace_builder
Constants ¶
View Source
const PlanResourcesAst_Node_Expression_case case_PlanResourcesAst_Node_Node = 2
View Source
const PlanResourcesAst_Node_LogicalOperation_case case_PlanResourcesAst_Node_Node = 1
View Source
const PlanResourcesAst_Node_Node_not_set_case case_PlanResourcesAst_Node_Node = 0
View Source
const PlanResourcesFilter_Expression_Operand_Expression_case case_PlanResourcesFilter_Expression_Operand_Node = 2
View Source
const PlanResourcesFilter_Expression_Operand_Node_not_set_case case_PlanResourcesFilter_Expression_Operand_Node = 0
View Source
const PlanResourcesFilter_Expression_Operand_Value_case case_PlanResourcesFilter_Expression_Operand_Node = 1
View Source
const PlanResourcesFilter_Expression_Operand_Variable_case case_PlanResourcesFilter_Expression_Operand_Node = 3
View Source
const Trace_Component_Action_case case_Trace_Component_Details = 2
View Source
const Trace_Component_DerivedRole_case case_Trace_Component_Details = 3
View Source
const Trace_Component_Details_not_set_case case_Trace_Component_Details = 0
View Source
const Trace_Component_Expr_case case_Trace_Component_Details = 4
View Source
const Trace_Component_Index_case case_Trace_Component_Details = 5
View Source
const Trace_Component_Output_case case_Trace_Component_Details = 11
View Source
const Trace_Component_Policy_case case_Trace_Component_Details = 6
View Source
const Trace_Component_Resource_case case_Trace_Component_Details = 7
View Source
const Trace_Component_RolePolicyScope_case case_Trace_Component_Details = 12
View Source
const Trace_Component_Role_case case_Trace_Component_Details = 13
View Source
const Trace_Component_Rule_case case_Trace_Component_Details = 8
View Source
const Trace_Component_Scope_case case_Trace_Component_Details = 9
View Source
const Trace_Component_Variable_case case_Trace_Component_Details = 10
Variables ¶
View Source
var ( PlanResourcesAst_LogicalOperation_Operator_name = map[int32]string{ 0: "OPERATOR_UNSPECIFIED", 1: "OPERATOR_AND", 2: "OPERATOR_OR", 3: "OPERATOR_NOT", } PlanResourcesAst_LogicalOperation_Operator_value = map[string]int32{ "OPERATOR_UNSPECIFIED": 0, "OPERATOR_AND": 1, "OPERATOR_OR": 2, "OPERATOR_NOT": 3, } )
Enum value maps for PlanResourcesAst_LogicalOperation_Operator.
View Source
var ( PlanResourcesFilter_Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "KIND_ALWAYS_ALLOWED", 2: "KIND_ALWAYS_DENIED", 3: "KIND_CONDITIONAL", } PlanResourcesFilter_Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "KIND_ALWAYS_ALLOWED": 1, "KIND_ALWAYS_DENIED": 2, "KIND_CONDITIONAL": 3, } )
Enum value maps for PlanResourcesFilter_Kind.
View Source
var ( Trace_Component_Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "KIND_ACTION", 2: "KIND_CONDITION_ALL", 3: "KIND_CONDITION_ANY", 4: "KIND_CONDITION_NONE", 5: "KIND_CONDITION", 6: "KIND_DERIVED_ROLE", 7: "KIND_EXPR", 8: "KIND_POLICY", 9: "KIND_RESOURCE", 10: "KIND_RULE", 11: "KIND_SCOPE", 12: "KIND_VARIABLE", 13: "KIND_VARIABLES", 14: "KIND_OUTPUT", 15: "KIND_ROLE_POLICY_SCOPE", 16: "KIND_ROLE", } Trace_Component_Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "KIND_ACTION": 1, "KIND_CONDITION_ALL": 2, "KIND_CONDITION_ANY": 3, "KIND_CONDITION_NONE": 4, "KIND_CONDITION": 5, "KIND_DERIVED_ROLE": 6, "KIND_EXPR": 7, "KIND_POLICY": 8, "KIND_RESOURCE": 9, "KIND_RULE": 10, "KIND_SCOPE": 11, "KIND_VARIABLE": 12, "KIND_VARIABLES": 13, "KIND_OUTPUT": 14, "KIND_ROLE_POLICY_SCOPE": 15, "KIND_ROLE": 16, } )
Enum value maps for Trace_Component_Kind.
View Source
var ( Trace_Event_Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "STATUS_ACTIVATED", 2: "STATUS_SKIPPED", } Trace_Event_Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "STATUS_ACTIVATED": 1, "STATUS_SKIPPED": 2, } )
Enum value maps for Trace_Event_Status.
View Source
var File_cerbos_engine_v1_engine_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuxData ¶
type AuxData struct {
Jwt map[string]*structpb.Value `` /* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*AuxData) ProtoReflect ¶
func (x *AuxData) ProtoReflect() protoreflect.Message
type AuxData_builder ¶
type AuxData_builder struct {
Jwt map[string]*structpb.Value
// contains filtered or unexported fields
}
func (AuxData_builder) Build ¶
func (b0 AuxData_builder) Build() *AuxData
type CheckInput ¶
type CheckInput struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
Principal *Principal `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"`
Actions []string `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
AuxData *AuxData `protobuf:"bytes,5,opt,name=aux_data,json=auxData,proto3" json:"aux_data,omitempty"`
// contains filtered or unexported fields
}
func (*CheckInput) ClearAuxData ¶
func (x *CheckInput) ClearAuxData()
func (*CheckInput) ClearPrincipal ¶
func (x *CheckInput) ClearPrincipal()
func (*CheckInput) ClearResource ¶
func (x *CheckInput) ClearResource()
func (*CheckInput) GetActions ¶
func (x *CheckInput) GetActions() []string
func (*CheckInput) GetAuxData ¶
func (x *CheckInput) GetAuxData() *AuxData
func (*CheckInput) GetPrincipal ¶
func (x *CheckInput) GetPrincipal() *Principal
func (*CheckInput) GetRequestId ¶
func (x *CheckInput) GetRequestId() string
func (*CheckInput) GetResource ¶
func (x *CheckInput) GetResource() *Resource
func (*CheckInput) HasAuxData ¶
func (x *CheckInput) HasAuxData() bool
func (*CheckInput) HasPrincipal ¶
func (x *CheckInput) HasPrincipal() bool
func (*CheckInput) HasResource ¶
func (x *CheckInput) HasResource() bool
func (*CheckInput) ProtoMessage ¶
func (*CheckInput) ProtoMessage()
func (*CheckInput) ProtoReflect ¶
func (x *CheckInput) ProtoReflect() protoreflect.Message
func (*CheckInput) Reset ¶
func (x *CheckInput) Reset()
func (*CheckInput) SetActions ¶
func (x *CheckInput) SetActions(v []string)
func (*CheckInput) SetAuxData ¶
func (x *CheckInput) SetAuxData(v *AuxData)
func (*CheckInput) SetPrincipal ¶
func (x *CheckInput) SetPrincipal(v *Principal)
func (*CheckInput) SetRequestId ¶
func (x *CheckInput) SetRequestId(v string)
func (*CheckInput) SetResource ¶
func (x *CheckInput) SetResource(v *Resource)
func (*CheckInput) String ¶
func (x *CheckInput) String() string
type CheckInput_builder ¶
type CheckInput_builder struct {
RequestId string
Resource *Resource
Principal *Principal
Actions []string
AuxData *AuxData
// contains filtered or unexported fields
}
func (CheckInput_builder) Build ¶
func (b0 CheckInput_builder) Build() *CheckInput
type CheckOutput ¶
type CheckOutput struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
Actions map[string]*CheckOutput_ActionEffect `` /* 141-byte string literal not displayed */
EffectiveDerivedRoles []string `` /* 126-byte string literal not displayed */
ValidationErrors []*v1.ValidationError `protobuf:"bytes,5,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
Outputs []*OutputEntry `protobuf:"bytes,6,rep,name=outputs,proto3" json:"outputs,omitempty"`
// contains filtered or unexported fields
}
func (*CheckOutput) GetActions ¶
func (x *CheckOutput) GetActions() map[string]*CheckOutput_ActionEffect
func (*CheckOutput) GetEffectiveDerivedRoles ¶
func (x *CheckOutput) GetEffectiveDerivedRoles() []string
func (*CheckOutput) GetOutputs ¶
func (x *CheckOutput) GetOutputs() []*OutputEntry
func (*CheckOutput) GetRequestId ¶
func (x *CheckOutput) GetRequestId() string
func (*CheckOutput) GetResourceId ¶
func (x *CheckOutput) GetResourceId() string
func (*CheckOutput) GetValidationErrors ¶
func (x *CheckOutput) GetValidationErrors() []*v1.ValidationError
func (*CheckOutput) ProtoMessage ¶
func (*CheckOutput) ProtoMessage()
func (*CheckOutput) ProtoReflect ¶
func (x *CheckOutput) ProtoReflect() protoreflect.Message
func (*CheckOutput) Reset ¶
func (x *CheckOutput) Reset()
func (*CheckOutput) SetActions ¶
func (x *CheckOutput) SetActions(v map[string]*CheckOutput_ActionEffect)
func (*CheckOutput) SetEffectiveDerivedRoles ¶
func (x *CheckOutput) SetEffectiveDerivedRoles(v []string)
func (*CheckOutput) SetOutputs ¶
func (x *CheckOutput) SetOutputs(v []*OutputEntry)
func (*CheckOutput) SetRequestId ¶
func (x *CheckOutput) SetRequestId(v string)
func (*CheckOutput) SetResourceId ¶
func (x *CheckOutput) SetResourceId(v string)
func (*CheckOutput) SetValidationErrors ¶
func (x *CheckOutput) SetValidationErrors(v []*v1.ValidationError)
func (*CheckOutput) String ¶
func (x *CheckOutput) String() string
type CheckOutput_ActionEffect ¶
type CheckOutput_ActionEffect struct {
Effect v11.Effect `protobuf:"varint,1,opt,name=effect,proto3,enum=cerbos.effect.v1.Effect" json:"effect,omitempty"`
Policy string `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
Scope string `protobuf:"bytes,3,opt,name=scope,proto3" json:"scope,omitempty"`
// contains filtered or unexported fields
}
func (*CheckOutput_ActionEffect) GetEffect ¶
func (x *CheckOutput_ActionEffect) GetEffect() v11.Effect
func (*CheckOutput_ActionEffect) GetPolicy ¶
func (x *CheckOutput_ActionEffect) GetPolicy() string
func (*CheckOutput_ActionEffect) GetScope ¶
func (x *CheckOutput_ActionEffect) GetScope() string
func (*CheckOutput_ActionEffect) ProtoMessage ¶
func (*CheckOutput_ActionEffect) ProtoMessage()
func (*CheckOutput_ActionEffect) ProtoReflect ¶
func (x *CheckOutput_ActionEffect) ProtoReflect() protoreflect.Message
func (*CheckOutput_ActionEffect) Reset ¶
func (x *CheckOutput_ActionEffect) Reset()
func (*CheckOutput_ActionEffect) SetEffect ¶
func (x *CheckOutput_ActionEffect) SetEffect(v v11.Effect)
func (*CheckOutput_ActionEffect) SetPolicy ¶
func (x *CheckOutput_ActionEffect) SetPolicy(v string)
func (*CheckOutput_ActionEffect) SetScope ¶
func (x *CheckOutput_ActionEffect) SetScope(v string)
func (*CheckOutput_ActionEffect) String ¶
func (x *CheckOutput_ActionEffect) String() string
type CheckOutput_ActionEffect_builder ¶
type CheckOutput_ActionEffect_builder struct {
Effect v11.Effect
Policy string
Scope string
// contains filtered or unexported fields
}
func (CheckOutput_ActionEffect_builder) Build ¶
func (b0 CheckOutput_ActionEffect_builder) Build() *CheckOutput_ActionEffect
type CheckOutput_builder ¶
type CheckOutput_builder struct {
RequestId string
ResourceId string
Actions map[string]*CheckOutput_ActionEffect
EffectiveDerivedRoles []string
ValidationErrors []*v1.ValidationError
Outputs []*OutputEntry
// contains filtered or unexported fields
}
func (CheckOutput_builder) Build ¶
func (b0 CheckOutput_builder) Build() *CheckOutput
type OutputEntry ¶
type OutputEntry struct {
Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
Val *structpb.Value `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"`
// contains filtered or unexported fields
}
func (*OutputEntry) ClearVal ¶
func (x *OutputEntry) ClearVal()
func (*OutputEntry) GetSrc ¶
func (x *OutputEntry) GetSrc() string
func (*OutputEntry) GetVal ¶
func (x *OutputEntry) GetVal() *structpb.Value
func (*OutputEntry) HasVal ¶
func (x *OutputEntry) HasVal() bool
func (*OutputEntry) ProtoMessage ¶
func (*OutputEntry) ProtoMessage()
func (*OutputEntry) ProtoReflect ¶
func (x *OutputEntry) ProtoReflect() protoreflect.Message
func (*OutputEntry) Reset ¶
func (x *OutputEntry) Reset()
func (*OutputEntry) SetSrc ¶
func (x *OutputEntry) SetSrc(v string)
func (*OutputEntry) SetVal ¶
func (x *OutputEntry) SetVal(v *structpb.Value)
func (*OutputEntry) String ¶
func (x *OutputEntry) String() string
type OutputEntry_builder ¶
type OutputEntry_builder struct {
Src string
Val *structpb.Value
// contains filtered or unexported fields
}
func (OutputEntry_builder) Build ¶
func (b0 OutputEntry_builder) Build() *OutputEntry
type PlanResourcesAst ¶
type PlanResourcesAst struct {
FilterAst *PlanResourcesAst_Node `protobuf:"bytes,1,opt,name=filter_ast,json=filterAst,proto3" json:"filter_ast,omitempty"`
// contains filtered or unexported fields
}
func (*PlanResourcesAst) ClearFilterAst ¶
func (x *PlanResourcesAst) ClearFilterAst()
func (*PlanResourcesAst) GetFilterAst ¶
func (x *PlanResourcesAst) GetFilterAst() *PlanResourcesAst_Node
func (*PlanResourcesAst) HasFilterAst ¶
func (x *PlanResourcesAst) HasFilterAst() bool
func (*PlanResourcesAst) ProtoMessage ¶
func (*PlanResourcesAst) ProtoMessage()
func (*PlanResourcesAst) ProtoReflect ¶
func (x *PlanResourcesAst) ProtoReflect() protoreflect.Message
func (*PlanResourcesAst) Reset ¶
func (x *PlanResourcesAst) Reset()
func (*PlanResourcesAst) SetFilterAst ¶
func (x *PlanResourcesAst) SetFilterAst(v *PlanResourcesAst_Node)
func (*PlanResourcesAst) String ¶
func (x *PlanResourcesAst) String() string
type PlanResourcesAst_LogicalOperation ¶
type PlanResourcesAst_LogicalOperation struct {
Operator PlanResourcesAst_LogicalOperation_Operator `` /* 135-byte string literal not displayed */
Nodes []*PlanResourcesAst_Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
// contains filtered or unexported fields
}
func (*PlanResourcesAst_LogicalOperation) GetNodes ¶
func (x *PlanResourcesAst_LogicalOperation) GetNodes() []*PlanResourcesAst_Node
func (*PlanResourcesAst_LogicalOperation) GetOperator ¶
func (x *PlanResourcesAst_LogicalOperation) GetOperator() PlanResourcesAst_LogicalOperation_Operator
func (*PlanResourcesAst_LogicalOperation) ProtoMessage ¶
func (*PlanResourcesAst_LogicalOperation) ProtoMessage()
func (*PlanResourcesAst_LogicalOperation) ProtoReflect ¶
func (x *PlanResourcesAst_LogicalOperation) ProtoReflect() protoreflect.Message
func (*PlanResourcesAst_LogicalOperation) Reset ¶
func (x *PlanResourcesAst_LogicalOperation) Reset()
func (*PlanResourcesAst_LogicalOperation) SetNodes ¶
func (x *PlanResourcesAst_LogicalOperation) SetNodes(v []*PlanResourcesAst_Node)
func (*PlanResourcesAst_LogicalOperation) SetOperator ¶
func (x *PlanResourcesAst_LogicalOperation) SetOperator(v PlanResourcesAst_LogicalOperation_Operator)
func (*PlanResourcesAst_LogicalOperation) String ¶
func (x *PlanResourcesAst_LogicalOperation) String() string
type PlanResourcesAst_LogicalOperation_Operator ¶
type PlanResourcesAst_LogicalOperation_Operator int32
const ( PlanResourcesAst_LogicalOperation_OPERATOR_UNSPECIFIED PlanResourcesAst_LogicalOperation_Operator = 0 PlanResourcesAst_LogicalOperation_OPERATOR_AND PlanResourcesAst_LogicalOperation_Operator = 1 PlanResourcesAst_LogicalOperation_OPERATOR_OR PlanResourcesAst_LogicalOperation_Operator = 2 PlanResourcesAst_LogicalOperation_OPERATOR_NOT PlanResourcesAst_LogicalOperation_Operator = 3 )
func (PlanResourcesAst_LogicalOperation_Operator) Descriptor ¶
func (PlanResourcesAst_LogicalOperation_Operator) Descriptor() protoreflect.EnumDescriptor
func (PlanResourcesAst_LogicalOperation_Operator) Enum ¶
func (PlanResourcesAst_LogicalOperation_Operator) Number ¶
func (x PlanResourcesAst_LogicalOperation_Operator) Number() protoreflect.EnumNumber
func (PlanResourcesAst_LogicalOperation_Operator) String ¶
func (x PlanResourcesAst_LogicalOperation_Operator) String() string
func (PlanResourcesAst_LogicalOperation_Operator) Type ¶
func (PlanResourcesAst_LogicalOperation_Operator) Type() protoreflect.EnumType
type PlanResourcesAst_LogicalOperation_builder ¶
type PlanResourcesAst_LogicalOperation_builder struct {
Operator PlanResourcesAst_LogicalOperation_Operator
Nodes []*PlanResourcesAst_Node
// contains filtered or unexported fields
}
func (PlanResourcesAst_LogicalOperation_builder) Build ¶
func (b0 PlanResourcesAst_LogicalOperation_builder) Build() *PlanResourcesAst_LogicalOperation
type PlanResourcesAst_Node ¶
type PlanResourcesAst_Node struct {
// Types that are valid to be assigned to Node:
//
// *PlanResourcesAst_Node_LogicalOperation
// *PlanResourcesAst_Node_Expression
Node isPlanResourcesAst_Node_Node `protobuf_oneof:"node"`
// contains filtered or unexported fields
}
func (*PlanResourcesAst_Node) ClearExpression ¶
func (x *PlanResourcesAst_Node) ClearExpression()
func (*PlanResourcesAst_Node) ClearLogicalOperation ¶
func (x *PlanResourcesAst_Node) ClearLogicalOperation()
func (*PlanResourcesAst_Node) ClearNode ¶
func (x *PlanResourcesAst_Node) ClearNode()
func (*PlanResourcesAst_Node) GetExpression ¶
func (x *PlanResourcesAst_Node) GetExpression() *v1alpha1.CheckedExpr
func (*PlanResourcesAst_Node) GetLogicalOperation ¶
func (x *PlanResourcesAst_Node) GetLogicalOperation() *PlanResourcesAst_LogicalOperation
func (*PlanResourcesAst_Node) GetNode ¶
func (x *PlanResourcesAst_Node) GetNode() isPlanResourcesAst_Node_Node
func (*PlanResourcesAst_Node) HasExpression ¶
func (x *PlanResourcesAst_Node) HasExpression() bool
func (*PlanResourcesAst_Node) HasLogicalOperation ¶
func (x *PlanResourcesAst_Node) HasLogicalOperation() bool
func (*PlanResourcesAst_Node) HasNode ¶
func (x *PlanResourcesAst_Node) HasNode() bool
func (*PlanResourcesAst_Node) ProtoMessage ¶
func (*PlanResourcesAst_Node) ProtoMessage()
func (*PlanResourcesAst_Node) ProtoReflect ¶
func (x *PlanResourcesAst_Node) ProtoReflect() protoreflect.Message
func (*PlanResourcesAst_Node) Reset ¶
func (x *PlanResourcesAst_Node) Reset()
func (*PlanResourcesAst_Node) SetExpression ¶
func (x *PlanResourcesAst_Node) SetExpression(v *v1alpha1.CheckedExpr)
func (*PlanResourcesAst_Node) SetLogicalOperation ¶
func (x *PlanResourcesAst_Node) SetLogicalOperation(v *PlanResourcesAst_LogicalOperation)
func (*PlanResourcesAst_Node) String ¶
func (x *PlanResourcesAst_Node) String() string
func (*PlanResourcesAst_Node) WhichNode ¶
func (x *PlanResourcesAst_Node) WhichNode() case_PlanResourcesAst_Node_Node
type PlanResourcesAst_Node_Expression ¶
type PlanResourcesAst_Node_Expression struct {
Expression *v1alpha1.CheckedExpr `protobuf:"bytes,2,opt,name=expression,proto3,oneof"`
}
type PlanResourcesAst_Node_LogicalOperation ¶
type PlanResourcesAst_Node_LogicalOperation struct {
LogicalOperation *PlanResourcesAst_LogicalOperation `protobuf:"bytes,1,opt,name=logical_operation,json=logicalOperation,proto3,oneof"`
}
type PlanResourcesAst_Node_builder ¶
type PlanResourcesAst_Node_builder struct {
// Fields of oneof Node:
LogicalOperation *PlanResourcesAst_LogicalOperation
Expression *v1alpha1.CheckedExpr
// contains filtered or unexported fields
}
func (PlanResourcesAst_Node_builder) Build ¶
func (b0 PlanResourcesAst_Node_builder) Build() *PlanResourcesAst_Node
type PlanResourcesAst_builder ¶
type PlanResourcesAst_builder struct {
FilterAst *PlanResourcesAst_Node
// contains filtered or unexported fields
}
func (PlanResourcesAst_builder) Build ¶
func (b0 PlanResourcesAst_builder) Build() *PlanResourcesAst
type PlanResourcesFilter ¶
type PlanResourcesFilter struct {
Kind PlanResourcesFilter_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=cerbos.engine.v1.PlanResourcesFilter_Kind" json:"kind,omitempty"`
Condition *PlanResourcesFilter_Expression_Operand `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"`
// contains filtered or unexported fields
}
func (*PlanResourcesFilter) ClearCondition ¶
func (x *PlanResourcesFilter) ClearCondition()
func (*PlanResourcesFilter) GetCondition ¶
func (x *PlanResourcesFilter) GetCondition() *PlanResourcesFilter_Expression_Operand
func (*PlanResourcesFilter) GetKind ¶
func (x *PlanResourcesFilter) GetKind() PlanResourcesFilter_Kind
func (*PlanResourcesFilter) HasCondition ¶
func (x *PlanResourcesFilter) HasCondition() bool
func (*PlanResourcesFilter) ProtoMessage ¶
func (*PlanResourcesFilter) ProtoMessage()
func (*PlanResourcesFilter) ProtoReflect ¶
func (x *PlanResourcesFilter) ProtoReflect() protoreflect.Message
func (*PlanResourcesFilter) Reset ¶
func (x *PlanResourcesFilter) Reset()
func (*PlanResourcesFilter) SetCondition ¶
func (x *PlanResourcesFilter) SetCondition(v *PlanResourcesFilter_Expression_Operand)
func (*PlanResourcesFilter) SetKind ¶
func (x *PlanResourcesFilter) SetKind(v PlanResourcesFilter_Kind)
func (*PlanResourcesFilter) String ¶
func (x *PlanResourcesFilter) String() string
type PlanResourcesFilter_Expression ¶
type PlanResourcesFilter_Expression struct {
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
Operands []*PlanResourcesFilter_Expression_Operand `protobuf:"bytes,2,rep,name=operands,proto3" json:"operands,omitempty"`
// contains filtered or unexported fields
}
func (*PlanResourcesFilter_Expression) GetOperands ¶
func (x *PlanResourcesFilter_Expression) GetOperands() []*PlanResourcesFilter_Expression_Operand
func (*PlanResourcesFilter_Expression) GetOperator ¶
func (x *PlanResourcesFilter_Expression) GetOperator() string
func (*PlanResourcesFilter_Expression) ProtoMessage ¶
func (*PlanResourcesFilter_Expression) ProtoMessage()
func (*PlanResourcesFilter_Expression) ProtoReflect ¶
func (x *PlanResourcesFilter_Expression) ProtoReflect() protoreflect.Message
func (*PlanResourcesFilter_Expression) Reset ¶
func (x *PlanResourcesFilter_Expression) Reset()
func (*PlanResourcesFilter_Expression) SetOperands ¶
func (x *PlanResourcesFilter_Expression) SetOperands(v []*PlanResourcesFilter_Expression_Operand)
func (*PlanResourcesFilter_Expression) SetOperator ¶
func (x *PlanResourcesFilter_Expression) SetOperator(v string)
func (*PlanResourcesFilter_Expression) String ¶
func (x *PlanResourcesFilter_Expression) String() string
type PlanResourcesFilter_Expression_Operand ¶
type PlanResourcesFilter_Expression_Operand struct {
// Types that are valid to be assigned to Node:
//
// *PlanResourcesFilter_Expression_Operand_Value
// *PlanResourcesFilter_Expression_Operand_Expression
// *PlanResourcesFilter_Expression_Operand_Variable
Node isPlanResourcesFilter_Expression_Operand_Node `protobuf_oneof:"node"`
// contains filtered or unexported fields
}
func (*PlanResourcesFilter_Expression_Operand) ClearExpression ¶
func (x *PlanResourcesFilter_Expression_Operand) ClearExpression()
func (*PlanResourcesFilter_Expression_Operand) ClearNode ¶
func (x *PlanResourcesFilter_Expression_Operand) ClearNode()
func (*PlanResourcesFilter_Expression_Operand) ClearValue ¶
func (x *PlanResourcesFilter_Expression_Operand) ClearValue()
func (*PlanResourcesFilter_Expression_Operand) ClearVariable ¶
func (x *PlanResourcesFilter_Expression_Operand) ClearVariable()
func (*PlanResourcesFilter_Expression_Operand) GetExpression ¶
func (x *PlanResourcesFilter_Expression_Operand) GetExpression() *PlanResourcesFilter_Expression
func (*PlanResourcesFilter_Expression_Operand) GetNode ¶
func (x *PlanResourcesFilter_Expression_Operand) GetNode() isPlanResourcesFilter_Expression_Operand_Node
func (*PlanResourcesFilter_Expression_Operand) GetValue ¶
func (x *PlanResourcesFilter_Expression_Operand) GetValue() *structpb.Value
func (*PlanResourcesFilter_Expression_Operand) GetVariable ¶
func (x *PlanResourcesFilter_Expression_Operand) GetVariable() string
func (*PlanResourcesFilter_Expression_Operand) HasExpression ¶
func (x *PlanResourcesFilter_Expression_Operand) HasExpression() bool
func (*PlanResourcesFilter_Expression_Operand) HasNode ¶
func (x *PlanResourcesFilter_Expression_Operand) HasNode() bool
func (*PlanResourcesFilter_Expression_Operand) HasValue ¶
func (x *PlanResourcesFilter_Expression_Operand) HasValue() bool
func (*PlanResourcesFilter_Expression_Operand) HasVariable ¶
func (x *PlanResourcesFilter_Expression_Operand) HasVariable() bool
func (*PlanResourcesFilter_Expression_Operand) ProtoMessage ¶
func (*PlanResourcesFilter_Expression_Operand) ProtoMessage()
func (*PlanResourcesFilter_Expression_Operand) ProtoReflect ¶
func (x *PlanResourcesFilter_Expression_Operand) ProtoReflect() protoreflect.Message
func (*PlanResourcesFilter_Expression_Operand) Reset ¶
func (x *PlanResourcesFilter_Expression_Operand) Reset()
func (*PlanResourcesFilter_Expression_Operand) SetExpression ¶
func (x *PlanResourcesFilter_Expression_Operand) SetExpression(v *PlanResourcesFilter_Expression)
func (*PlanResourcesFilter_Expression_Operand) SetValue ¶
func (x *PlanResourcesFilter_Expression_Operand) SetValue(v *structpb.Value)
func (*PlanResourcesFilter_Expression_Operand) SetVariable ¶
func (x *PlanResourcesFilter_Expression_Operand) SetVariable(v string)
func (*PlanResourcesFilter_Expression_Operand) String ¶
func (x *PlanResourcesFilter_Expression_Operand) String() string
func (*PlanResourcesFilter_Expression_Operand) WhichNode ¶
func (x *PlanResourcesFilter_Expression_Operand) WhichNode() case_PlanResourcesFilter_Expression_Operand_Node
type PlanResourcesFilter_Expression_Operand_Expression ¶
type PlanResourcesFilter_Expression_Operand_Expression struct {
Expression *PlanResourcesFilter_Expression `protobuf:"bytes,2,opt,name=expression,proto3,oneof"`
}
type PlanResourcesFilter_Expression_Operand_Value ¶
type PlanResourcesFilter_Expression_Operand_Variable ¶
type PlanResourcesFilter_Expression_Operand_Variable struct {
Variable string `protobuf:"bytes,3,opt,name=variable,proto3,oneof"`
}
type PlanResourcesFilter_Expression_Operand_builder ¶
type PlanResourcesFilter_Expression_Operand_builder struct {
// Fields of oneof Node:
Value *structpb.Value
Expression *PlanResourcesFilter_Expression
Variable *string
// contains filtered or unexported fields
}
func (PlanResourcesFilter_Expression_Operand_builder) Build ¶
type PlanResourcesFilter_Expression_builder ¶
type PlanResourcesFilter_Expression_builder struct {
Operator string
Operands []*PlanResourcesFilter_Expression_Operand
// contains filtered or unexported fields
}
func (PlanResourcesFilter_Expression_builder) Build ¶
func (b0 PlanResourcesFilter_Expression_builder) Build() *PlanResourcesFilter_Expression
type PlanResourcesFilter_Kind ¶
type PlanResourcesFilter_Kind int32
const ( PlanResourcesFilter_KIND_UNSPECIFIED PlanResourcesFilter_Kind = 0 PlanResourcesFilter_KIND_ALWAYS_ALLOWED PlanResourcesFilter_Kind = 1 PlanResourcesFilter_KIND_ALWAYS_DENIED PlanResourcesFilter_Kind = 2 PlanResourcesFilter_KIND_CONDITIONAL PlanResourcesFilter_Kind = 3 )
func (PlanResourcesFilter_Kind) Descriptor ¶
func (PlanResourcesFilter_Kind) Descriptor() protoreflect.EnumDescriptor
func (PlanResourcesFilter_Kind) Enum ¶
func (x PlanResourcesFilter_Kind) Enum() *PlanResourcesFilter_Kind
func (PlanResourcesFilter_Kind) Number ¶
func (x PlanResourcesFilter_Kind) Number() protoreflect.EnumNumber
func (PlanResourcesFilter_Kind) String ¶
func (x PlanResourcesFilter_Kind) String() string
func (PlanResourcesFilter_Kind) Type ¶
func (PlanResourcesFilter_Kind) Type() protoreflect.EnumType
type PlanResourcesFilter_builder ¶
type PlanResourcesFilter_builder struct {
Kind PlanResourcesFilter_Kind
Condition *PlanResourcesFilter_Expression_Operand
// contains filtered or unexported fields
}
func (PlanResourcesFilter_builder) Build ¶
func (b0 PlanResourcesFilter_builder) Build() *PlanResourcesFilter
type PlanResourcesInput ¶
type PlanResourcesInput struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Deprecated: Marked as deprecated in cerbos/engine/v1/engine.proto.
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
Actions []string `protobuf:"bytes,7,rep,name=actions,proto3" json:"actions,omitempty"`
Principal *Principal `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"`
Resource *PlanResourcesInput_Resource `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"`
AuxData *AuxData `protobuf:"bytes,5,opt,name=aux_data,json=auxData,proto3" json:"aux_data,omitempty"`
IncludeMeta bool `protobuf:"varint,6,opt,name=include_meta,json=includeMeta,proto3" json:"include_meta,omitempty"`
// contains filtered or unexported fields
}
func (*PlanResourcesInput) ClearAuxData ¶
func (x *PlanResourcesInput) ClearAuxData()
func (*PlanResourcesInput) ClearPrincipal ¶
func (x *PlanResourcesInput) ClearPrincipal()
func (*PlanResourcesInput) ClearResource ¶
func (x *PlanResourcesInput) ClearResource()
func (*PlanResourcesInput) GetAction
deprecated
func (x *PlanResourcesInput) GetAction() string
Deprecated: Marked as deprecated in cerbos/engine/v1/engine.proto.
func (*PlanResourcesInput) GetActions ¶
func (x *PlanResourcesInput) GetActions() []string
func (*PlanResourcesInput) GetAuxData ¶
func (x *PlanResourcesInput) GetAuxData() *AuxData
func (*PlanResourcesInput) GetIncludeMeta ¶
func (x *PlanResourcesInput) GetIncludeMeta() bool
func (*PlanResourcesInput) GetPrincipal ¶
func (x *PlanResourcesInput) GetPrincipal() *Principal
func (*PlanResourcesInput) GetRequestId ¶
func (x *PlanResourcesInput) GetRequestId() string
func (*PlanResourcesInput) GetResource ¶
func (x *PlanResourcesInput) GetResource() *PlanResourcesInput_Resource
func (*PlanResourcesInput) HasAuxData ¶
func (x *PlanResourcesInput) HasAuxData() bool
func (*PlanResourcesInput) HasPrincipal ¶
func (x *PlanResourcesInput) HasPrincipal() bool
func (*PlanResourcesInput) HasResource ¶
func (x *PlanResourcesInput) HasResource() bool
func (*PlanResourcesInput) ProtoMessage ¶
func (*PlanResourcesInput) ProtoMessage()
func (*PlanResourcesInput) ProtoReflect ¶
func (x *PlanResourcesInput) ProtoReflect() protoreflect.Message
func (*PlanResourcesInput) Reset ¶
func (x *PlanResourcesInput) Reset()
func (*PlanResourcesInput) SetAction
deprecated
func (x *PlanResourcesInput) SetAction(v string)
Deprecated: Marked as deprecated in cerbos/engine/v1/engine.proto.
func (*PlanResourcesInput) SetActions ¶
func (x *PlanResourcesInput) SetActions(v []string)
func (*PlanResourcesInput) SetAuxData ¶
func (x *PlanResourcesInput) SetAuxData(v *AuxData)
func (*PlanResourcesInput) SetIncludeMeta ¶
func (x *PlanResourcesInput) SetIncludeMeta(v bool)
func (*PlanResourcesInput) SetPrincipal ¶
func (x *PlanResourcesInput) SetPrincipal(v *Principal)
func (*PlanResourcesInput) SetRequestId ¶
func (x *PlanResourcesInput) SetRequestId(v string)
func (*PlanResourcesInput) SetResource ¶
func (x *PlanResourcesInput) SetResource(v *PlanResourcesInput_Resource)
func (*PlanResourcesInput) String ¶
func (x *PlanResourcesInput) String() string
type PlanResourcesInput_Resource ¶
type PlanResourcesInput_Resource struct {
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
Attr map[string]*structpb.Value `` /* 135-byte string literal not displayed */
PolicyVersion string `protobuf:"bytes,3,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"`
Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"`
// contains filtered or unexported fields
}
func (*PlanResourcesInput_Resource) GetAttr ¶
func (x *PlanResourcesInput_Resource) GetAttr() map[string]*structpb.Value
func (*PlanResourcesInput_Resource) GetKind ¶
func (x *PlanResourcesInput_Resource) GetKind() string
func (*PlanResourcesInput_Resource) GetPolicyVersion ¶
func (x *PlanResourcesInput_Resource) GetPolicyVersion() string
func (*PlanResourcesInput_Resource) GetScope ¶
func (x *PlanResourcesInput_Resource) GetScope() string
func (*PlanResourcesInput_Resource) ProtoMessage ¶
func (*PlanResourcesInput_Resource) ProtoMessage()
func (*PlanResourcesInput_Resource) ProtoReflect ¶
func (x *PlanResourcesInput_Resource) ProtoReflect() protoreflect.Message
func (*PlanResourcesInput_Resource) Reset ¶
func (x *PlanResourcesInput_Resource) Reset()
func (*PlanResourcesInput_Resource) SetAttr ¶
func (x *PlanResourcesInput_Resource) SetAttr(v map[string]*structpb.Value)
func (*PlanResourcesInput_Resource) SetKind ¶
func (x *PlanResourcesInput_Resource) SetKind(v string)
func (*PlanResourcesInput_Resource) SetPolicyVersion ¶
func (x *PlanResourcesInput_Resource) SetPolicyVersion(v string)
func (*PlanResourcesInput_Resource) SetScope ¶
func (x *PlanResourcesInput_Resource) SetScope(v string)
func (*PlanResourcesInput_Resource) String ¶
func (x *PlanResourcesInput_Resource) String() string
type PlanResourcesInput_Resource_builder ¶
type PlanResourcesInput_Resource_builder struct {
Kind string
Attr map[string]*structpb.Value
PolicyVersion string
Scope string
// contains filtered or unexported fields
}
func (PlanResourcesInput_Resource_builder) Build ¶
func (b0 PlanResourcesInput_Resource_builder) Build() *PlanResourcesInput_Resource
type PlanResourcesInput_builder ¶
type PlanResourcesInput_builder struct {
RequestId string
// Deprecated: Marked as deprecated in cerbos/engine/v1/engine.proto.
Action string
Actions []string
Principal *Principal
Resource *PlanResourcesInput_Resource
AuxData *AuxData
IncludeMeta bool
// contains filtered or unexported fields
}
func (PlanResourcesInput_builder) Build ¶
func (b0 PlanResourcesInput_builder) Build() *PlanResourcesInput
type PlanResourcesOutput ¶
type PlanResourcesOutput struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Deprecated: Marked as deprecated in cerbos/engine/v1/engine.proto.
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
PolicyVersion string `protobuf:"bytes,4,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"`
Scope string `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"`
Filter *PlanResourcesFilter `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"`
FilterDebug string `protobuf:"bytes,7,opt,name=filter_debug,json=filterDebug,proto3" json:"filter_debug,omitempty"`
ValidationErrors []*v1.ValidationError `protobuf:"bytes,8,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
Actions []string `protobuf:"bytes,9,rep,name=actions,proto3" json:"actions,omitempty"`
MatchedScopes map[string]string `` /* 175-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*PlanResourcesOutput) ClearFilter ¶
func (x *PlanResourcesOutput) ClearFilter()
func (*PlanResourcesOutput) GetAction
deprecated
func (x *PlanResourcesOutput) GetAction() string
Deprecated: Marked as deprecated in cerbos/engine/v1/engine.proto.
func (*PlanResourcesOutput) GetActions ¶
func (x *PlanResourcesOutput) GetActions() []string
func (*PlanResourcesOutput) GetFilter ¶
func (x *PlanResourcesOutput) GetFilter() *PlanResourcesFilter
func (*PlanResourcesOutput) GetFilterDebug ¶
func (x *PlanResourcesOutput) GetFilterDebug() string
func (*PlanResourcesOutput) GetKind ¶
func (x *PlanResourcesOutput) GetKind() string
func (*PlanResourcesOutput) GetMatchedScopes ¶
func (x *PlanResourcesOutput) GetMatchedScopes() map[string]string
func (*PlanResourcesOutput) GetPolicyVersion ¶
func (x *PlanResourcesOutput) GetPolicyVersion() string
func (*PlanResourcesOutput) GetRequestId ¶
func (x *PlanResourcesOutput) GetRequestId() string
func (*PlanResourcesOutput) GetScope ¶
func (x *PlanResourcesOutput) GetScope() string
func (*PlanResourcesOutput) GetValidationErrors ¶
func (x *PlanResourcesOutput) GetValidationErrors() []*v1.ValidationError
func (*PlanResourcesOutput) HasFilter ¶
func (x *PlanResourcesOutput) HasFilter() bool
func (*PlanResourcesOutput) ProtoMessage ¶
func (*PlanResourcesOutput) ProtoMessage()
func (*PlanResourcesOutput) ProtoReflect ¶
func (x *PlanResourcesOutput) ProtoReflect() protoreflect.Message
func (*PlanResourcesOutput) Reset ¶
func (x *PlanResourcesOutput) Reset()
func (*PlanResourcesOutput) SetAction
deprecated
func (x *PlanResourcesOutput) SetAction(v string)
Deprecated: Marked as deprecated in cerbos/engine/v1/engine.proto.
func (*PlanResourcesOutput) SetActions ¶
func (x *PlanResourcesOutput) SetActions(v []string)
func (*PlanResourcesOutput) SetFilter ¶
func (x *PlanResourcesOutput) SetFilter(v *PlanResourcesFilter)
func (*PlanResourcesOutput) SetFilterDebug ¶
func (x *PlanResourcesOutput) SetFilterDebug(v string)
func (*PlanResourcesOutput) SetKind ¶
func (x *PlanResourcesOutput) SetKind(v string)
func (*PlanResourcesOutput) SetMatchedScopes ¶
func (x *PlanResourcesOutput) SetMatchedScopes(v map[string]string)
func (*PlanResourcesOutput) SetPolicyVersion ¶
func (x *PlanResourcesOutput) SetPolicyVersion(v string)
func (*PlanResourcesOutput) SetRequestId ¶
func (x *PlanResourcesOutput) SetRequestId(v string)
func (*PlanResourcesOutput) SetScope ¶
func (x *PlanResourcesOutput) SetScope(v string)
func (*PlanResourcesOutput) SetValidationErrors ¶
func (x *PlanResourcesOutput) SetValidationErrors(v []*v1.ValidationError)
func (*PlanResourcesOutput) String ¶
func (x *PlanResourcesOutput) String() string
type PlanResourcesOutput_builder ¶
type PlanResourcesOutput_builder struct {
RequestId string
// Deprecated: Marked as deprecated in cerbos/engine/v1/engine.proto.
Action string
Kind string
PolicyVersion string
Scope string
Filter *PlanResourcesFilter
FilterDebug string
ValidationErrors []*v1.ValidationError
Actions []string
MatchedScopes map[string]string
// contains filtered or unexported fields
}
func (PlanResourcesOutput_builder) Build ¶
func (b0 PlanResourcesOutput_builder) Build() *PlanResourcesOutput
type Principal ¶
type Principal struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
PolicyVersion string `protobuf:"bytes,2,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"`
Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
Attr map[string]*structpb.Value `` /* 135-byte string literal not displayed */
Scope string `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"`
// contains filtered or unexported fields
}
func (*Principal) ProtoReflect ¶
func (x *Principal) ProtoReflect() protoreflect.Message
type Principal_builder ¶
type Principal_builder struct {
Id string
PolicyVersion string
Roles []string
Attr map[string]*structpb.Value
Scope string
// contains filtered or unexported fields
}
func (Principal_builder) Build ¶
func (b0 Principal_builder) Build() *Principal
type Request ¶
type Request struct {
Principal *Request_Principal `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
Resource *Request_Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
AuxData *AuxData `protobuf:"bytes,3,opt,name=aux_data,json=auxData,proto3" json:"aux_data,omitempty"`
// contains filtered or unexported fields
}
Data from the request, provided to expressions as the top-level `request` variable.
func (*Request) GetPrincipal ¶
func (x *Request) GetPrincipal() *Request_Principal
func (*Request) GetResource ¶
func (x *Request) GetResource() *Request_Resource
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
func (*Request) SetPrincipal ¶
func (x *Request) SetPrincipal(v *Request_Principal)
func (*Request) SetResource ¶
func (x *Request) SetResource(v *Request_Resource)
type Request_Principal ¶
type Request_Principal struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
Attr map[string]*structpb.Value `` /* 135-byte string literal not displayed */
PolicyVersion string `protobuf:"bytes,4,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"`
Scope string `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"`
// contains filtered or unexported fields
}
func (*Request_Principal) GetAttr ¶
func (x *Request_Principal) GetAttr() map[string]*structpb.Value
func (*Request_Principal) GetId ¶
func (x *Request_Principal) GetId() string
func (*Request_Principal) GetPolicyVersion ¶
func (x *Request_Principal) GetPolicyVersion() string
func (*Request_Principal) GetRoles ¶
func (x *Request_Principal) GetRoles() []string
func (*Request_Principal) GetScope ¶
func (x *Request_Principal) GetScope() string
func (*Request_Principal) ProtoMessage ¶
func (*Request_Principal) ProtoMessage()
func (*Request_Principal) ProtoReflect ¶
func (x *Request_Principal) ProtoReflect() protoreflect.Message
func (*Request_Principal) Reset ¶
func (x *Request_Principal) Reset()
func (*Request_Principal) SetAttr ¶
func (x *Request_Principal) SetAttr(v map[string]*structpb.Value)
func (*Request_Principal) SetId ¶
func (x *Request_Principal) SetId(v string)
func (*Request_Principal) SetPolicyVersion ¶
func (x *Request_Principal) SetPolicyVersion(v string)
func (*Request_Principal) SetRoles ¶
func (x *Request_Principal) SetRoles(v []string)
func (*Request_Principal) SetScope ¶
func (x *Request_Principal) SetScope(v string)
func (*Request_Principal) String ¶
func (x *Request_Principal) String() string
type Request_Principal_builder ¶
type Request_Principal_builder struct {
Id string
Roles []string
Attr map[string]*structpb.Value
PolicyVersion string
Scope string
// contains filtered or unexported fields
}
func (Request_Principal_builder) Build ¶
func (b0 Request_Principal_builder) Build() *Request_Principal
type Request_Resource ¶
type Request_Resource struct {
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Attr map[string]*structpb.Value `` /* 135-byte string literal not displayed */
PolicyVersion string `protobuf:"bytes,4,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"`
Scope string `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"`
// contains filtered or unexported fields
}
func (*Request_Resource) GetAttr ¶
func (x *Request_Resource) GetAttr() map[string]*structpb.Value
func (*Request_Resource) GetId ¶
func (x *Request_Resource) GetId() string
func (*Request_Resource) GetKind ¶
func (x *Request_Resource) GetKind() string
func (*Request_Resource) GetPolicyVersion ¶
func (x *Request_Resource) GetPolicyVersion() string
func (*Request_Resource) GetScope ¶
func (x *Request_Resource) GetScope() string
func (*Request_Resource) ProtoMessage ¶
func (*Request_Resource) ProtoMessage()
func (*Request_Resource) ProtoReflect ¶
func (x *Request_Resource) ProtoReflect() protoreflect.Message
func (*Request_Resource) Reset ¶
func (x *Request_Resource) Reset()
func (*Request_Resource) SetAttr ¶
func (x *Request_Resource) SetAttr(v map[string]*structpb.Value)
func (*Request_Resource) SetId ¶
func (x *Request_Resource) SetId(v string)
func (*Request_Resource) SetKind ¶
func (x *Request_Resource) SetKind(v string)
func (*Request_Resource) SetPolicyVersion ¶
func (x *Request_Resource) SetPolicyVersion(v string)
func (*Request_Resource) SetScope ¶
func (x *Request_Resource) SetScope(v string)
func (*Request_Resource) String ¶
func (x *Request_Resource) String() string
type Request_Resource_builder ¶
type Request_Resource_builder struct {
Kind string
Id string
Attr map[string]*structpb.Value
PolicyVersion string
Scope string
// contains filtered or unexported fields
}
func (Request_Resource_builder) Build ¶
func (b0 Request_Resource_builder) Build() *Request_Resource
type Request_builder ¶
type Request_builder struct {
Principal *Request_Principal
Resource *Request_Resource
AuxData *AuxData
// contains filtered or unexported fields
}
func (Request_builder) Build ¶
func (b0 Request_builder) Build() *Request
type Resource ¶
type Resource struct {
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
PolicyVersion string `protobuf:"bytes,2,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"`
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
Attr map[string]*structpb.Value `` /* 135-byte string literal not displayed */
Scope string `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"`
// contains filtered or unexported fields
}
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type Resource_builder ¶
type Resource_builder struct {
Kind string
PolicyVersion string
Id string
Attr map[string]*structpb.Value
Scope string
// contains filtered or unexported fields
}
func (Resource_builder) Build ¶
func (b0 Resource_builder) Build() *Resource
type Runtime ¶
type Runtime struct {
EffectiveDerivedRoles []string `` /* 126-byte string literal not displayed */
// contains filtered or unexported fields
}
Data from the runtime, provided to expressions as the top-level `runtime` variable.
func (*Runtime) ProtoReflect ¶
func (x *Runtime) ProtoReflect() protoreflect.Message
type Runtime_builder ¶
type Runtime_builder struct {
EffectiveDerivedRoles []string
// contains filtered or unexported fields
}
func (Runtime_builder) Build ¶
func (b0 Runtime_builder) Build() *Runtime
type Trace ¶
type Trace struct {
Components []*Trace_Component `protobuf:"bytes,1,rep,name=components,proto3" json:"components,omitempty"`
Event *Trace_Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
// contains filtered or unexported fields
}
func (*Trace) GetComponents ¶
func (x *Trace) GetComponents() []*Trace_Component
func (*Trace) GetEvent ¶
func (x *Trace) GetEvent() *Trace_Event
func (*Trace) ProtoReflect ¶
func (x *Trace) ProtoReflect() protoreflect.Message
func (*Trace) SetComponents ¶
func (x *Trace) SetComponents(v []*Trace_Component)
func (*Trace) SetEvent ¶
func (x *Trace) SetEvent(v *Trace_Event)
type Trace_Component ¶
type Trace_Component struct {
Kind Trace_Component_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=cerbos.engine.v1.Trace_Component_Kind" json:"kind,omitempty"`
// Types that are valid to be assigned to Details:
//
// *Trace_Component_Action
// *Trace_Component_DerivedRole
// *Trace_Component_Expr
// *Trace_Component_Index
// *Trace_Component_Policy
// *Trace_Component_Resource
// *Trace_Component_Rule
// *Trace_Component_Scope
// *Trace_Component_Variable_
// *Trace_Component_Output
// *Trace_Component_RolePolicyScope
// *Trace_Component_Role
Details isTrace_Component_Details `protobuf_oneof:"details"`
// contains filtered or unexported fields
}
func (*Trace_Component) ClearAction ¶
func (x *Trace_Component) ClearAction()
func (*Trace_Component) ClearDerivedRole ¶
func (x *Trace_Component) ClearDerivedRole()
func (*Trace_Component) ClearDetails ¶
func (x *Trace_Component) ClearDetails()
func (*Trace_Component) ClearExpr ¶
func (x *Trace_Component) ClearExpr()
func (*Trace_Component) ClearIndex ¶
func (x *Trace_Component) ClearIndex()
func (*Trace_Component) ClearOutput ¶
func (x *Trace_Component) ClearOutput()
func (*Trace_Component) ClearPolicy ¶
func (x *Trace_Component) ClearPolicy()
func (*Trace_Component) ClearResource ¶
func (x *Trace_Component) ClearResource()
func (*Trace_Component) ClearRole ¶
func (x *Trace_Component) ClearRole()
func (*Trace_Component) ClearRolePolicyScope ¶
func (x *Trace_Component) ClearRolePolicyScope()
func (*Trace_Component) ClearRule ¶
func (x *Trace_Component) ClearRule()
func (*Trace_Component) ClearScope ¶
func (x *Trace_Component) ClearScope()
func (*Trace_Component) ClearVariable ¶
func (x *Trace_Component) ClearVariable()
func (*Trace_Component) GetAction ¶
func (x *Trace_Component) GetAction() string
func (*Trace_Component) GetDerivedRole ¶
func (x *Trace_Component) GetDerivedRole() string
func (*Trace_Component) GetDetails ¶
func (x *Trace_Component) GetDetails() isTrace_Component_Details
func (*Trace_Component) GetExpr ¶
func (x *Trace_Component) GetExpr() string
func (*Trace_Component) GetIndex ¶
func (x *Trace_Component) GetIndex() uint32
func (*Trace_Component) GetKind ¶
func (x *Trace_Component) GetKind() Trace_Component_Kind
func (*Trace_Component) GetOutput ¶
func (x *Trace_Component) GetOutput() string
func (*Trace_Component) GetPolicy ¶
func (x *Trace_Component) GetPolicy() string
func (*Trace_Component) GetResource ¶
func (x *Trace_Component) GetResource() string
func (*Trace_Component) GetRole ¶
func (x *Trace_Component) GetRole() string
func (*Trace_Component) GetRolePolicyScope ¶
func (x *Trace_Component) GetRolePolicyScope() string
func (*Trace_Component) GetRule ¶
func (x *Trace_Component) GetRule() string
func (*Trace_Component) GetScope ¶
func (x *Trace_Component) GetScope() string
func (*Trace_Component) GetVariable ¶
func (x *Trace_Component) GetVariable() *Trace_Component_Variable
func (*Trace_Component) HasAction ¶
func (x *Trace_Component) HasAction() bool
func (*Trace_Component) HasDerivedRole ¶
func (x *Trace_Component) HasDerivedRole() bool
func (*Trace_Component) HasDetails ¶
func (x *Trace_Component) HasDetails() bool
func (*Trace_Component) HasExpr ¶
func (x *Trace_Component) HasExpr() bool
func (*Trace_Component) HasIndex ¶
func (x *Trace_Component) HasIndex() bool
func (*Trace_Component) HasOutput ¶
func (x *Trace_Component) HasOutput() bool
func (*Trace_Component) HasPolicy ¶
func (x *Trace_Component) HasPolicy() bool
func (*Trace_Component) HasResource ¶
func (x *Trace_Component) HasResource() bool
func (*Trace_Component) HasRole ¶
func (x *Trace_Component) HasRole() bool
func (*Trace_Component) HasRolePolicyScope ¶
func (x *Trace_Component) HasRolePolicyScope() bool
func (*Trace_Component) HasRule ¶
func (x *Trace_Component) HasRule() bool
func (*Trace_Component) HasScope ¶
func (x *Trace_Component) HasScope() bool
func (*Trace_Component) HasVariable ¶
func (x *Trace_Component) HasVariable() bool
func (*Trace_Component) ProtoMessage ¶
func (*Trace_Component) ProtoMessage()
func (*Trace_Component) ProtoReflect ¶
func (x *Trace_Component) ProtoReflect() protoreflect.Message
func (*Trace_Component) Reset ¶
func (x *Trace_Component) Reset()
func (*Trace_Component) SetAction ¶
func (x *Trace_Component) SetAction(v string)
func (*Trace_Component) SetDerivedRole ¶
func (x *Trace_Component) SetDerivedRole(v string)
func (*Trace_Component) SetExpr ¶
func (x *Trace_Component) SetExpr(v string)
func (*Trace_Component) SetIndex ¶
func (x *Trace_Component) SetIndex(v uint32)
func (*Trace_Component) SetKind ¶
func (x *Trace_Component) SetKind(v Trace_Component_Kind)
func (*Trace_Component) SetOutput ¶
func (x *Trace_Component) SetOutput(v string)
func (*Trace_Component) SetPolicy ¶
func (x *Trace_Component) SetPolicy(v string)
func (*Trace_Component) SetResource ¶
func (x *Trace_Component) SetResource(v string)
func (*Trace_Component) SetRole ¶
func (x *Trace_Component) SetRole(v string)
func (*Trace_Component) SetRolePolicyScope ¶
func (x *Trace_Component) SetRolePolicyScope(v string)
func (*Trace_Component) SetRule ¶
func (x *Trace_Component) SetRule(v string)
func (*Trace_Component) SetScope ¶
func (x *Trace_Component) SetScope(v string)
func (*Trace_Component) SetVariable ¶
func (x *Trace_Component) SetVariable(v *Trace_Component_Variable)
func (*Trace_Component) String ¶
func (x *Trace_Component) String() string
func (*Trace_Component) WhichDetails ¶
func (x *Trace_Component) WhichDetails() case_Trace_Component_Details
type Trace_Component_Action ¶
type Trace_Component_Action struct {
Action string `protobuf:"bytes,2,opt,name=action,proto3,oneof"`
}
type Trace_Component_DerivedRole ¶
type Trace_Component_DerivedRole struct {
DerivedRole string `protobuf:"bytes,3,opt,name=derived_role,json=derivedRole,proto3,oneof"`
}
type Trace_Component_Expr ¶
type Trace_Component_Expr struct {
Expr string `protobuf:"bytes,4,opt,name=expr,proto3,oneof"`
}
type Trace_Component_Index ¶
type Trace_Component_Index struct {
Index uint32 `protobuf:"varint,5,opt,name=index,proto3,oneof"`
}
type Trace_Component_Kind ¶
type Trace_Component_Kind int32
const ( Trace_Component_KIND_UNSPECIFIED Trace_Component_Kind = 0 Trace_Component_KIND_ACTION Trace_Component_Kind = 1 Trace_Component_KIND_CONDITION_ALL Trace_Component_Kind = 2 Trace_Component_KIND_CONDITION_ANY Trace_Component_Kind = 3 Trace_Component_KIND_CONDITION_NONE Trace_Component_Kind = 4 Trace_Component_KIND_CONDITION Trace_Component_Kind = 5 Trace_Component_KIND_DERIVED_ROLE Trace_Component_Kind = 6 Trace_Component_KIND_EXPR Trace_Component_Kind = 7 Trace_Component_KIND_POLICY Trace_Component_Kind = 8 Trace_Component_KIND_RESOURCE Trace_Component_Kind = 9 Trace_Component_KIND_RULE Trace_Component_Kind = 10 Trace_Component_KIND_SCOPE Trace_Component_Kind = 11 Trace_Component_KIND_VARIABLE Trace_Component_Kind = 12 Trace_Component_KIND_VARIABLES Trace_Component_Kind = 13 Trace_Component_KIND_OUTPUT Trace_Component_Kind = 14 Trace_Component_KIND_ROLE_POLICY_SCOPE Trace_Component_Kind = 15 Trace_Component_KIND_ROLE Trace_Component_Kind = 16 )
func (Trace_Component_Kind) Descriptor ¶
func (Trace_Component_Kind) Descriptor() protoreflect.EnumDescriptor
func (Trace_Component_Kind) Enum ¶
func (x Trace_Component_Kind) Enum() *Trace_Component_Kind
func (Trace_Component_Kind) Number ¶
func (x Trace_Component_Kind) Number() protoreflect.EnumNumber
func (Trace_Component_Kind) String ¶
func (x Trace_Component_Kind) String() string
func (Trace_Component_Kind) Type ¶
func (Trace_Component_Kind) Type() protoreflect.EnumType
type Trace_Component_Output ¶
type Trace_Component_Output struct {
Output string `protobuf:"bytes,11,opt,name=output,proto3,oneof"`
}
type Trace_Component_Policy ¶
type Trace_Component_Policy struct {
Policy string `protobuf:"bytes,6,opt,name=policy,proto3,oneof"`
}
type Trace_Component_Resource ¶
type Trace_Component_Resource struct {
Resource string `protobuf:"bytes,7,opt,name=resource,proto3,oneof"`
}
type Trace_Component_Role ¶
type Trace_Component_Role struct {
Role string `protobuf:"bytes,13,opt,name=role,proto3,oneof"`
}
type Trace_Component_RolePolicyScope ¶
type Trace_Component_RolePolicyScope struct {
RolePolicyScope string `protobuf:"bytes,12,opt,name=role_policy_scope,json=rolePolicyScope,proto3,oneof"`
}
type Trace_Component_Rule ¶
type Trace_Component_Rule struct {
Rule string `protobuf:"bytes,8,opt,name=rule,proto3,oneof"`
}
type Trace_Component_Scope ¶
type Trace_Component_Scope struct {
Scope string `protobuf:"bytes,9,opt,name=scope,proto3,oneof"`
}
type Trace_Component_Variable ¶
type Trace_Component_Variable struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Expr string `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"`
// contains filtered or unexported fields
}
func (*Trace_Component_Variable) GetExpr ¶
func (x *Trace_Component_Variable) GetExpr() string
func (*Trace_Component_Variable) GetName ¶
func (x *Trace_Component_Variable) GetName() string
func (*Trace_Component_Variable) ProtoMessage ¶
func (*Trace_Component_Variable) ProtoMessage()
func (*Trace_Component_Variable) ProtoReflect ¶
func (x *Trace_Component_Variable) ProtoReflect() protoreflect.Message
func (*Trace_Component_Variable) Reset ¶
func (x *Trace_Component_Variable) Reset()
func (*Trace_Component_Variable) SetExpr ¶
func (x *Trace_Component_Variable) SetExpr(v string)
func (*Trace_Component_Variable) SetName ¶
func (x *Trace_Component_Variable) SetName(v string)
func (*Trace_Component_Variable) String ¶
func (x *Trace_Component_Variable) String() string
type Trace_Component_Variable_ ¶
type Trace_Component_Variable_ struct {
Variable *Trace_Component_Variable `protobuf:"bytes,10,opt,name=variable,proto3,oneof"`
}
type Trace_Component_Variable_builder ¶
type Trace_Component_Variable_builder struct {
Name string
Expr string
// contains filtered or unexported fields
}
func (Trace_Component_Variable_builder) Build ¶
func (b0 Trace_Component_Variable_builder) Build() *Trace_Component_Variable
type Trace_Component_builder ¶
type Trace_Component_builder struct {
Kind Trace_Component_Kind
// Fields of oneof Details:
Action *string
DerivedRole *string
Expr *string
Index *uint32
Policy *string
Resource *string
Rule *string
Scope *string
Variable *Trace_Component_Variable
Output *string
RolePolicyScope *string
Role *string
// contains filtered or unexported fields
}
func (Trace_Component_builder) Build ¶
func (b0 Trace_Component_builder) Build() *Trace_Component
type Trace_Event ¶
type Trace_Event struct {
Status Trace_Event_Status `protobuf:"varint,1,opt,name=status,proto3,enum=cerbos.engine.v1.Trace_Event_Status" json:"status,omitempty"`
Effect v11.Effect `protobuf:"varint,2,opt,name=effect,proto3,enum=cerbos.effect.v1.Effect" json:"effect,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
Result *structpb.Value `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
func (*Trace_Event) ClearResult ¶
func (x *Trace_Event) ClearResult()
func (*Trace_Event) GetEffect ¶
func (x *Trace_Event) GetEffect() v11.Effect
func (*Trace_Event) GetError ¶
func (x *Trace_Event) GetError() string
func (*Trace_Event) GetMessage ¶
func (x *Trace_Event) GetMessage() string
func (*Trace_Event) GetResult ¶
func (x *Trace_Event) GetResult() *structpb.Value
func (*Trace_Event) GetStatus ¶
func (x *Trace_Event) GetStatus() Trace_Event_Status
func (*Trace_Event) HasResult ¶
func (x *Trace_Event) HasResult() bool
func (*Trace_Event) ProtoMessage ¶
func (*Trace_Event) ProtoMessage()
func (*Trace_Event) ProtoReflect ¶
func (x *Trace_Event) ProtoReflect() protoreflect.Message
func (*Trace_Event) Reset ¶
func (x *Trace_Event) Reset()
func (*Trace_Event) SetEffect ¶
func (x *Trace_Event) SetEffect(v v11.Effect)
func (*Trace_Event) SetError ¶
func (x *Trace_Event) SetError(v string)
func (*Trace_Event) SetMessage ¶
func (x *Trace_Event) SetMessage(v string)
func (*Trace_Event) SetResult ¶
func (x *Trace_Event) SetResult(v *structpb.Value)
func (*Trace_Event) SetStatus ¶
func (x *Trace_Event) SetStatus(v Trace_Event_Status)
func (*Trace_Event) String ¶
func (x *Trace_Event) String() string
type Trace_Event_Status ¶
type Trace_Event_Status int32
const ( Trace_Event_STATUS_UNSPECIFIED Trace_Event_Status = 0 Trace_Event_STATUS_ACTIVATED Trace_Event_Status = 1 Trace_Event_STATUS_SKIPPED Trace_Event_Status = 2 )
func (Trace_Event_Status) Descriptor ¶
func (Trace_Event_Status) Descriptor() protoreflect.EnumDescriptor
func (Trace_Event_Status) Enum ¶
func (x Trace_Event_Status) Enum() *Trace_Event_Status
func (Trace_Event_Status) Number ¶
func (x Trace_Event_Status) Number() protoreflect.EnumNumber
func (Trace_Event_Status) String ¶
func (x Trace_Event_Status) String() string
func (Trace_Event_Status) Type ¶
func (Trace_Event_Status) Type() protoreflect.EnumType
type Trace_Event_builder ¶
type Trace_Event_builder struct {
Status Trace_Event_Status
Effect v11.Effect
Error string
Message string
Result *structpb.Value
// contains filtered or unexported fields
}
func (Trace_Event_builder) Build ¶
func (b0 Trace_Event_builder) Build() *Trace_Event
type Trace_builder ¶
type Trace_builder struct {
Components []*Trace_Component
Event *Trace_Event
// contains filtered or unexported fields
}
func (Trace_builder) Build ¶
func (b0 Trace_builder) Build() *Trace
Source Files
¶
- engine.pb.go
Click to show internal directories.
Click to hide internal directories.