Documentation
¶
Index ¶
- Constants
- Variables
- type Condition
- func (x *Condition) ClearCondition()
- func (x *Condition) ClearMatch()
- func (x *Condition) ClearScript()
- func (x *Condition) GetCondition() isCondition_Condition
- func (x *Condition) GetMatch() *Match
- func (x *Condition) GetScript() string
- func (x *Condition) HasCondition() bool
- func (x *Condition) HasMatch() bool
- func (x *Condition) HasScript() bool
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (x *Condition) SetMatch(v *Match)
- func (x *Condition) SetScript(v string)
- func (x *Condition) String() string
- func (x *Condition) WhichCondition() case_Condition_Condition
- type Condition_Match
- type Condition_Script
- type Condition_builder
- type Constants
- func (x *Constants) GetImport() []string
- func (x *Constants) GetLocal() map[string]*structpb.Value
- func (*Constants) ProtoMessage()
- func (x *Constants) ProtoReflect() protoreflect.Message
- func (x *Constants) Reset()
- func (x *Constants) SetImport(v []string)
- func (x *Constants) SetLocal(v map[string]*structpb.Value)
- func (x *Constants) String() string
- type Constants_builder
- type DerivedRoles
- func (x *DerivedRoles) ClearConstants()
- func (x *DerivedRoles) ClearVariables()
- func (x *DerivedRoles) GetConstants() *Constants
- func (x *DerivedRoles) GetDefinitions() []*RoleDef
- func (x *DerivedRoles) GetName() string
- func (x *DerivedRoles) GetVariables() *Variables
- func (x *DerivedRoles) HasConstants() bool
- func (x *DerivedRoles) HasVariables() bool
- func (*DerivedRoles) ProtoMessage()
- func (x *DerivedRoles) ProtoReflect() protoreflect.Message
- func (x *DerivedRoles) Reset()
- func (x *DerivedRoles) SetConstants(v *Constants)
- func (x *DerivedRoles) SetDefinitions(v []*RoleDef)
- func (x *DerivedRoles) SetName(v string)
- func (x *DerivedRoles) SetVariables(v *Variables)
- func (x *DerivedRoles) String() string
- type DerivedRoles_builder
- type ExportConstants
- func (x *ExportConstants) GetDefinitions() map[string]*structpb.Value
- func (x *ExportConstants) GetName() string
- func (*ExportConstants) ProtoMessage()
- func (x *ExportConstants) ProtoReflect() protoreflect.Message
- func (x *ExportConstants) Reset()
- func (x *ExportConstants) SetDefinitions(v map[string]*structpb.Value)
- func (x *ExportConstants) SetName(v string)
- func (x *ExportConstants) String() string
- type ExportConstants_builder
- type ExportVariables
- func (x *ExportVariables) GetDefinitions() map[string]string
- func (x *ExportVariables) GetName() string
- func (*ExportVariables) ProtoMessage()
- func (x *ExportVariables) ProtoReflect() protoreflect.Message
- func (x *ExportVariables) Reset()
- func (x *ExportVariables) SetDefinitions(v map[string]string)
- func (x *ExportVariables) SetName(v string)
- func (x *ExportVariables) String() string
- type ExportVariables_builder
- type Kind
- type Match
- func (x *Match) ClearAll()
- func (x *Match) ClearAny()
- func (x *Match) ClearExpr()
- func (x *Match) ClearNone()
- func (x *Match) ClearOp()
- func (x *Match) GetAll() *Match_ExprList
- func (x *Match) GetAny() *Match_ExprList
- func (x *Match) GetExpr() string
- func (x *Match) GetNone() *Match_ExprList
- func (x *Match) GetOp() isMatch_Op
- func (x *Match) HasAll() bool
- func (x *Match) HasAny() bool
- func (x *Match) HasExpr() bool
- func (x *Match) HasNone() bool
- func (x *Match) HasOp() bool
- func (*Match) ProtoMessage()
- func (x *Match) ProtoReflect() protoreflect.Message
- func (x *Match) Reset()
- func (x *Match) SetAll(v *Match_ExprList)
- func (x *Match) SetAny(v *Match_ExprList)
- func (x *Match) SetExpr(v string)
- func (x *Match) SetNone(v *Match_ExprList)
- func (x *Match) String() string
- func (x *Match) WhichOp() case_Match_Op
- type Match_All
- type Match_Any
- type Match_Expr
- type Match_ExprList
- type Match_ExprList_builder
- type Match_None
- type Match_builder
- type Metadata
- func (x *Metadata) ClearHash()
- func (x *Metadata) ClearSourceAttributes()
- func (x *Metadata) GetAnnotations() map[string]string
- func (x *Metadata) GetHash() *wrapperspb.UInt64Value
- func (x *Metadata) GetSourceAttributes() *SourceAttributes
- func (x *Metadata) GetSourceFile() string
- func (x *Metadata) GetStoreIdentifer() stringdeprecated
- func (x *Metadata) GetStoreIdentifier() string
- func (x *Metadata) HasHash() bool
- func (x *Metadata) HasSourceAttributes() bool
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) SetAnnotations(v map[string]string)
- func (x *Metadata) SetHash(v *wrapperspb.UInt64Value)
- func (x *Metadata) SetSourceAttributes(v *SourceAttributes)
- func (x *Metadata) SetSourceFile(v string)
- func (x *Metadata) SetStoreIdentifer(v string)deprecated
- func (x *Metadata) SetStoreIdentifier(v string)
- func (x *Metadata) String() string
- type Metadata_builder
- type Output
- func (x *Output) ClearWhen()
- func (x *Output) GetExpr() stringdeprecated
- func (x *Output) GetWhen() *Output_When
- func (x *Output) HasWhen() bool
- func (*Output) ProtoMessage()
- func (x *Output) ProtoReflect() protoreflect.Message
- func (x *Output) Reset()
- func (x *Output) SetExpr(v string)deprecated
- func (x *Output) SetWhen(v *Output_When)
- func (x *Output) String() string
- type Output_When
- func (x *Output_When) GetConditionNotMet() string
- func (x *Output_When) GetRuleActivated() string
- func (*Output_When) ProtoMessage()
- func (x *Output_When) ProtoReflect() protoreflect.Message
- func (x *Output_When) Reset()
- func (x *Output_When) SetConditionNotMet(v string)
- func (x *Output_When) SetRuleActivated(v string)
- func (x *Output_When) String() string
- type Output_When_builder
- type Output_builder
- type Policy
- func (x *Policy) ClearDerivedRoles()
- func (x *Policy) ClearExportConstants()
- func (x *Policy) ClearExportVariables()
- func (x *Policy) ClearMetadata()
- func (x *Policy) ClearPolicyType()
- func (x *Policy) ClearPrincipalPolicy()
- func (x *Policy) ClearResourcePolicy()
- func (x *Policy) ClearRolePolicy()
- func (x *Policy) GetApiVersion() string
- func (x *Policy) GetDerivedRoles() *DerivedRoles
- func (x *Policy) GetDescription() string
- func (x *Policy) GetDisabled() bool
- func (x *Policy) GetExportConstants() *ExportConstants
- func (x *Policy) GetExportVariables() *ExportVariables
- func (x *Policy) GetJsonSchema() string
- func (x *Policy) GetMetadata() *Metadata
- func (x *Policy) GetPolicyType() isPolicy_PolicyType
- func (x *Policy) GetPrincipalPolicy() *PrincipalPolicy
- func (x *Policy) GetResourcePolicy() *ResourcePolicy
- func (x *Policy) GetRolePolicy() *RolePolicy
- func (x *Policy) GetVariables() map[string]stringdeprecated
- func (x *Policy) HasDerivedRoles() bool
- func (x *Policy) HasExportConstants() bool
- func (x *Policy) HasExportVariables() bool
- func (x *Policy) HasMetadata() bool
- func (x *Policy) HasPolicyType() bool
- func (x *Policy) HasPrincipalPolicy() bool
- func (x *Policy) HasResourcePolicy() bool
- func (x *Policy) HasRolePolicy() bool
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (x *Policy) SetApiVersion(v string)
- func (x *Policy) SetDerivedRoles(v *DerivedRoles)
- func (x *Policy) SetDescription(v string)
- func (x *Policy) SetDisabled(v bool)
- func (x *Policy) SetExportConstants(v *ExportConstants)
- func (x *Policy) SetExportVariables(v *ExportVariables)
- func (x *Policy) SetJsonSchema(v string)
- func (x *Policy) SetMetadata(v *Metadata)
- func (x *Policy) SetPrincipalPolicy(v *PrincipalPolicy)
- func (x *Policy) SetResourcePolicy(v *ResourcePolicy)
- func (x *Policy) SetRolePolicy(v *RolePolicy)
- func (x *Policy) SetVariables(v map[string]string)deprecated
- func (x *Policy) String() string
- func (x *Policy) WhichPolicyType() case_Policy_PolicyType
- type Policy_DerivedRoles
- type Policy_ExportConstants
- type Policy_ExportVariables
- type Policy_PrincipalPolicy
- type Policy_ResourcePolicy
- type Policy_RolePolicy
- type Policy_builder
- type PrincipalPolicy
- func (x *PrincipalPolicy) ClearConstants()
- func (x *PrincipalPolicy) ClearVariables()
- func (x *PrincipalPolicy) GetConstants() *Constants
- func (x *PrincipalPolicy) GetPrincipal() string
- func (x *PrincipalPolicy) GetRules() []*PrincipalRule
- func (x *PrincipalPolicy) GetScope() string
- func (x *PrincipalPolicy) GetScopePermissions() ScopePermissions
- func (x *PrincipalPolicy) GetVariables() *Variables
- func (x *PrincipalPolicy) GetVersion() string
- func (x *PrincipalPolicy) HasConstants() bool
- func (x *PrincipalPolicy) HasVariables() bool
- func (*PrincipalPolicy) ProtoMessage()
- func (x *PrincipalPolicy) ProtoReflect() protoreflect.Message
- func (x *PrincipalPolicy) Reset()
- func (x *PrincipalPolicy) SetConstants(v *Constants)
- func (x *PrincipalPolicy) SetPrincipal(v string)
- func (x *PrincipalPolicy) SetRules(v []*PrincipalRule)
- func (x *PrincipalPolicy) SetScope(v string)
- func (x *PrincipalPolicy) SetScopePermissions(v ScopePermissions)
- func (x *PrincipalPolicy) SetVariables(v *Variables)
- func (x *PrincipalPolicy) SetVersion(v string)
- func (x *PrincipalPolicy) String() string
- type PrincipalPolicy_builder
- type PrincipalRule
- func (x *PrincipalRule) GetActions() []*PrincipalRule_Action
- func (x *PrincipalRule) GetResource() string
- func (*PrincipalRule) ProtoMessage()
- func (x *PrincipalRule) ProtoReflect() protoreflect.Message
- func (x *PrincipalRule) Reset()
- func (x *PrincipalRule) SetActions(v []*PrincipalRule_Action)
- func (x *PrincipalRule) SetResource(v string)
- func (x *PrincipalRule) String() string
- type PrincipalRule_Action
- func (x *PrincipalRule_Action) ClearCondition()
- func (x *PrincipalRule_Action) ClearOutput()
- func (x *PrincipalRule_Action) GetAction() string
- func (x *PrincipalRule_Action) GetCondition() *Condition
- func (x *PrincipalRule_Action) GetEffect() v1.Effect
- func (x *PrincipalRule_Action) GetName() string
- func (x *PrincipalRule_Action) GetOutput() *Output
- func (x *PrincipalRule_Action) HasCondition() bool
- func (x *PrincipalRule_Action) HasOutput() bool
- func (*PrincipalRule_Action) ProtoMessage()
- func (x *PrincipalRule_Action) ProtoReflect() protoreflect.Message
- func (x *PrincipalRule_Action) Reset()
- func (x *PrincipalRule_Action) SetAction(v string)
- func (x *PrincipalRule_Action) SetCondition(v *Condition)
- func (x *PrincipalRule_Action) SetEffect(v v1.Effect)
- func (x *PrincipalRule_Action) SetName(v string)
- func (x *PrincipalRule_Action) SetOutput(v *Output)
- func (x *PrincipalRule_Action) String() string
- type PrincipalRule_Action_builder
- type PrincipalRule_builder
- type ResourcePolicy
- func (x *ResourcePolicy) ClearConstants()
- func (x *ResourcePolicy) ClearSchemas()
- func (x *ResourcePolicy) ClearVariables()
- func (x *ResourcePolicy) GetConstants() *Constants
- func (x *ResourcePolicy) GetImportDerivedRoles() []string
- func (x *ResourcePolicy) GetResource() string
- func (x *ResourcePolicy) GetRules() []*ResourceRule
- func (x *ResourcePolicy) GetSchemas() *Schemas
- func (x *ResourcePolicy) GetScope() string
- func (x *ResourcePolicy) GetScopePermissions() ScopePermissions
- func (x *ResourcePolicy) GetVariables() *Variables
- func (x *ResourcePolicy) GetVersion() string
- func (x *ResourcePolicy) HasConstants() bool
- func (x *ResourcePolicy) HasSchemas() bool
- func (x *ResourcePolicy) HasVariables() bool
- func (*ResourcePolicy) ProtoMessage()
- func (x *ResourcePolicy) ProtoReflect() protoreflect.Message
- func (x *ResourcePolicy) Reset()
- func (x *ResourcePolicy) SetConstants(v *Constants)
- func (x *ResourcePolicy) SetImportDerivedRoles(v []string)
- func (x *ResourcePolicy) SetResource(v string)
- func (x *ResourcePolicy) SetRules(v []*ResourceRule)
- func (x *ResourcePolicy) SetSchemas(v *Schemas)
- func (x *ResourcePolicy) SetScope(v string)
- func (x *ResourcePolicy) SetScopePermissions(v ScopePermissions)
- func (x *ResourcePolicy) SetVariables(v *Variables)
- func (x *ResourcePolicy) SetVersion(v string)
- func (x *ResourcePolicy) String() string
- type ResourcePolicy_builder
- type ResourceRule
- func (x *ResourceRule) ClearCondition()
- func (x *ResourceRule) ClearOutput()
- func (x *ResourceRule) GetActions() []string
- func (x *ResourceRule) GetCondition() *Condition
- func (x *ResourceRule) GetDerivedRoles() []string
- func (x *ResourceRule) GetEffect() v1.Effect
- func (x *ResourceRule) GetName() string
- func (x *ResourceRule) GetOutput() *Output
- func (x *ResourceRule) GetRoles() []string
- func (x *ResourceRule) HasCondition() bool
- func (x *ResourceRule) HasOutput() bool
- func (*ResourceRule) ProtoMessage()
- func (x *ResourceRule) ProtoReflect() protoreflect.Message
- func (x *ResourceRule) Reset()
- func (x *ResourceRule) SetActions(v []string)
- func (x *ResourceRule) SetCondition(v *Condition)
- func (x *ResourceRule) SetDerivedRoles(v []string)
- func (x *ResourceRule) SetEffect(v v1.Effect)
- func (x *ResourceRule) SetName(v string)
- func (x *ResourceRule) SetOutput(v *Output)
- func (x *ResourceRule) SetRoles(v []string)
- func (x *ResourceRule) String() string
- type ResourceRule_builder
- type RoleDef
- func (x *RoleDef) ClearCondition()
- func (x *RoleDef) GetCondition() *Condition
- func (x *RoleDef) GetName() string
- func (x *RoleDef) GetParentRoles() []string
- func (x *RoleDef) HasCondition() bool
- func (*RoleDef) ProtoMessage()
- func (x *RoleDef) ProtoReflect() protoreflect.Message
- func (x *RoleDef) Reset()
- func (x *RoleDef) SetCondition(v *Condition)
- func (x *RoleDef) SetName(v string)
- func (x *RoleDef) SetParentRoles(v []string)
- func (x *RoleDef) String() string
- type RoleDef_builder
- type RolePolicy
- func (x *RolePolicy) ClearConstants()
- func (x *RolePolicy) ClearPolicyType()
- func (x *RolePolicy) ClearRole()
- func (x *RolePolicy) ClearVariables()
- func (x *RolePolicy) GetConstants() *Constants
- func (x *RolePolicy) GetParentRoles() []string
- func (x *RolePolicy) GetPolicyType() isRolePolicy_PolicyType
- func (x *RolePolicy) GetRole() string
- func (x *RolePolicy) GetRules() []*RoleRule
- func (x *RolePolicy) GetScope() string
- func (x *RolePolicy) GetScopePermissions() ScopePermissionsdeprecated
- func (x *RolePolicy) GetVariables() *Variables
- func (x *RolePolicy) GetVersion() string
- func (x *RolePolicy) HasConstants() bool
- func (x *RolePolicy) HasPolicyType() bool
- func (x *RolePolicy) HasRole() bool
- func (x *RolePolicy) HasVariables() bool
- func (*RolePolicy) ProtoMessage()
- func (x *RolePolicy) ProtoReflect() protoreflect.Message
- func (x *RolePolicy) Reset()
- func (x *RolePolicy) SetConstants(v *Constants)
- func (x *RolePolicy) SetParentRoles(v []string)
- func (x *RolePolicy) SetRole(v string)
- func (x *RolePolicy) SetRules(v []*RoleRule)
- func (x *RolePolicy) SetScope(v string)
- func (x *RolePolicy) SetScopePermissions(v ScopePermissions)deprecated
- func (x *RolePolicy) SetVariables(v *Variables)
- func (x *RolePolicy) SetVersion(v string)
- func (x *RolePolicy) String() string
- func (x *RolePolicy) WhichPolicyType() case_RolePolicy_PolicyType
- type RolePolicy_Role
- type RolePolicy_builder
- type RoleRule
- func (x *RoleRule) ClearCondition()
- func (x *RoleRule) ClearOutput()
- func (x *RoleRule) GetAllowActions() []string
- func (x *RoleRule) GetCondition() *Condition
- func (x *RoleRule) GetName() string
- func (x *RoleRule) GetOutput() *Output
- func (x *RoleRule) GetResource() string
- func (x *RoleRule) HasCondition() bool
- func (x *RoleRule) HasOutput() bool
- func (*RoleRule) ProtoMessage()
- func (x *RoleRule) ProtoReflect() protoreflect.Message
- func (x *RoleRule) Reset()
- func (x *RoleRule) SetAllowActions(v []string)
- func (x *RoleRule) SetCondition(v *Condition)
- func (x *RoleRule) SetName(v string)
- func (x *RoleRule) SetOutput(v *Output)
- func (x *RoleRule) SetResource(v string)
- func (x *RoleRule) String() string
- type RoleRule_builder
- type Schemas
- func (x *Schemas) ClearPrincipalSchema()
- func (x *Schemas) ClearResourceSchema()
- func (x *Schemas) GetPrincipalSchema() *Schemas_Schema
- func (x *Schemas) GetResourceSchema() *Schemas_Schema
- func (x *Schemas) HasPrincipalSchema() bool
- func (x *Schemas) HasResourceSchema() bool
- func (*Schemas) ProtoMessage()
- func (x *Schemas) ProtoReflect() protoreflect.Message
- func (x *Schemas) Reset()
- func (x *Schemas) SetPrincipalSchema(v *Schemas_Schema)
- func (x *Schemas) SetResourceSchema(v *Schemas_Schema)
- func (x *Schemas) String() string
- type Schemas_IgnoreWhen
- type Schemas_IgnoreWhen_builder
- type Schemas_Schema
- func (x *Schemas_Schema) ClearIgnoreWhen()
- func (x *Schemas_Schema) GetIgnoreWhen() *Schemas_IgnoreWhen
- func (x *Schemas_Schema) GetRef() string
- func (x *Schemas_Schema) HasIgnoreWhen() bool
- func (*Schemas_Schema) ProtoMessage()
- func (x *Schemas_Schema) ProtoReflect() protoreflect.Message
- func (x *Schemas_Schema) Reset()
- func (x *Schemas_Schema) SetIgnoreWhen(v *Schemas_IgnoreWhen)
- func (x *Schemas_Schema) SetRef(v string)
- func (x *Schemas_Schema) String() string
- type Schemas_Schema_builder
- type Schemas_builder
- type ScopePermissions
- type SourceAttributes
- func (x *SourceAttributes) GetAttributes() map[string]*structpb.Value
- func (*SourceAttributes) ProtoMessage()
- func (x *SourceAttributes) ProtoReflect() protoreflect.Message
- func (x *SourceAttributes) Reset()
- func (x *SourceAttributes) SetAttributes(v map[string]*structpb.Value)
- func (x *SourceAttributes) String() string
- type SourceAttributes_builder
- type Test
- func (x *Test) ClearInput()
- func (x *Test) ClearName()
- func (x *Test) ClearOptions()
- func (x *Test) GetDescription() string
- func (x *Test) GetExpected() map[string]v1.Effect
- func (x *Test) GetExpectedOutputs() map[string]*Test_OutputEntries
- func (x *Test) GetInput() *v11.CheckInput
- func (x *Test) GetName() *Test_TestName
- func (x *Test) GetOptions() *TestOptions
- func (x *Test) GetSkip() bool
- func (x *Test) GetSkipReason() string
- func (x *Test) HasInput() bool
- func (x *Test) HasName() bool
- func (x *Test) HasOptions() bool
- func (*Test) ProtoMessage()
- func (x *Test) ProtoReflect() protoreflect.Message
- func (x *Test) Reset()
- func (x *Test) SetDescription(v string)
- func (x *Test) SetExpected(v map[string]v1.Effect)
- func (x *Test) SetExpectedOutputs(v map[string]*Test_OutputEntries)
- func (x *Test) SetInput(v *v11.CheckInput)
- func (x *Test) SetName(v *Test_TestName)
- func (x *Test) SetOptions(v *TestOptions)
- func (x *Test) SetSkip(v bool)
- func (x *Test) SetSkipReason(v string)
- func (x *Test) String() string
- type TestFixture
- type TestFixtureGroup
- type TestFixtureGroup_Principals
- func (x *TestFixtureGroup_Principals) GetPrincipals() []string
- func (*TestFixtureGroup_Principals) ProtoMessage()
- func (x *TestFixtureGroup_Principals) ProtoReflect() protoreflect.Message
- func (x *TestFixtureGroup_Principals) Reset()
- func (x *TestFixtureGroup_Principals) SetPrincipals(v []string)
- func (x *TestFixtureGroup_Principals) String() string
- type TestFixtureGroup_Principals_builder
- type TestFixtureGroup_Resources
- func (x *TestFixtureGroup_Resources) GetResources() []string
- func (*TestFixtureGroup_Resources) ProtoMessage()
- func (x *TestFixtureGroup_Resources) ProtoReflect() protoreflect.Message
- func (x *TestFixtureGroup_Resources) Reset()
- func (x *TestFixtureGroup_Resources) SetResources(v []string)
- func (x *TestFixtureGroup_Resources) String() string
- type TestFixtureGroup_Resources_builder
- type TestFixtureGroup_builder
- type TestFixture_AuxData
- func (x *TestFixture_AuxData) GetAuxData() map[string]*v11.AuxData
- func (x *TestFixture_AuxData) GetJsonSchema() string
- func (*TestFixture_AuxData) ProtoMessage()
- func (x *TestFixture_AuxData) ProtoReflect() protoreflect.Message
- func (x *TestFixture_AuxData) Reset()
- func (x *TestFixture_AuxData) SetAuxData(v map[string]*v11.AuxData)
- func (x *TestFixture_AuxData) SetJsonSchema(v string)
- func (x *TestFixture_AuxData) String() string
- type TestFixture_AuxData_builder
- type TestFixture_Principals
- func (x *TestFixture_Principals) GetJsonSchema() string
- func (x *TestFixture_Principals) GetPrincipalGroups() map[string]*TestFixtureGroup_Principals
- func (x *TestFixture_Principals) GetPrincipals() map[string]*v11.Principal
- func (*TestFixture_Principals) ProtoMessage()
- func (x *TestFixture_Principals) ProtoReflect() protoreflect.Message
- func (x *TestFixture_Principals) Reset()
- func (x *TestFixture_Principals) SetJsonSchema(v string)
- func (x *TestFixture_Principals) SetPrincipalGroups(v map[string]*TestFixtureGroup_Principals)
- func (x *TestFixture_Principals) SetPrincipals(v map[string]*v11.Principal)
- func (x *TestFixture_Principals) String() string
- type TestFixture_Principals_builder
- type TestFixture_Resources
- func (x *TestFixture_Resources) GetJsonSchema() string
- func (x *TestFixture_Resources) GetResourceGroups() map[string]*TestFixtureGroup_Resources
- func (x *TestFixture_Resources) GetResources() map[string]*v11.Resource
- func (*TestFixture_Resources) ProtoMessage()
- func (x *TestFixture_Resources) ProtoReflect() protoreflect.Message
- func (x *TestFixture_Resources) Reset()
- func (x *TestFixture_Resources) SetJsonSchema(v string)
- func (x *TestFixture_Resources) SetResourceGroups(v map[string]*TestFixtureGroup_Resources)
- func (x *TestFixture_Resources) SetResources(v map[string]*v11.Resource)
- func (x *TestFixture_Resources) String() string
- type TestFixture_Resources_builder
- type TestFixture_builder
- type TestOptions
- func (x *TestOptions) ClearNow()
- func (x *TestOptions) GetDefaultPolicyVersion() string
- func (x *TestOptions) GetDefaultScope() string
- func (x *TestOptions) GetGlobals() map[string]*structpb.Value
- func (x *TestOptions) GetLenientScopeSearch() bool
- func (x *TestOptions) GetNow() *timestamppb.Timestamp
- func (x *TestOptions) GetStrictEvaluation() bool
- func (x *TestOptions) HasNow() bool
- func (*TestOptions) ProtoMessage()
- func (x *TestOptions) ProtoReflect() protoreflect.Message
- func (x *TestOptions) Reset()
- func (x *TestOptions) SetDefaultPolicyVersion(v string)
- func (x *TestOptions) SetDefaultScope(v string)
- func (x *TestOptions) SetGlobals(v map[string]*structpb.Value)
- func (x *TestOptions) SetLenientScopeSearch(v bool)
- func (x *TestOptions) SetNow(v *timestamppb.Timestamp)
- func (x *TestOptions) SetStrictEvaluation(v bool)
- func (x *TestOptions) String() string
- type TestOptions_builder
- type TestResults
- func (x *TestResults) ClearSummary()
- func (x *TestResults) GetSuites() []*TestResults_Suite
- func (x *TestResults) GetSummary() *TestResults_Summary
- func (x *TestResults) HasSummary() bool
- func (*TestResults) ProtoMessage()
- func (x *TestResults) ProtoReflect() protoreflect.Message
- func (x *TestResults) Reset()
- func (x *TestResults) SetSuites(v []*TestResults_Suite)
- func (x *TestResults) SetSummary(v *TestResults_Summary)
- func (x *TestResults) String() string
- type TestResults_Action
- func (x *TestResults_Action) ClearDetails()
- func (x *TestResults_Action) GetDetails() *TestResults_Details
- func (x *TestResults_Action) GetName() string
- func (x *TestResults_Action) HasDetails() bool
- func (*TestResults_Action) ProtoMessage()
- func (x *TestResults_Action) ProtoReflect() protoreflect.Message
- func (x *TestResults_Action) Reset()
- func (x *TestResults_Action) SetDetails(v *TestResults_Details)
- func (x *TestResults_Action) SetName(v string)
- func (x *TestResults_Action) String() string
- type TestResults_Action_builder
- type TestResults_Details
- func (x *TestResults_Details) ClearEngineTraceBatch()
- func (x *TestResults_Details) ClearError()
- func (x *TestResults_Details) ClearFailure()
- func (x *TestResults_Details) ClearOutcome()
- func (x *TestResults_Details) ClearSkipReason()
- func (x *TestResults_Details) ClearSuccess()
- func (x *TestResults_Details) GetEngineTrace() []*v11.Tracedeprecated
- func (x *TestResults_Details) GetEngineTraceBatch() *v11.TraceBatch
- func (x *TestResults_Details) GetError() string
- func (x *TestResults_Details) GetFailure() *TestResults_Failure
- func (x *TestResults_Details) GetOutcome() isTestResults_Details_Outcome
- func (x *TestResults_Details) GetResult() TestResults_Result
- func (x *TestResults_Details) GetSkipReason() string
- func (x *TestResults_Details) GetSuccess() *TestResults_Success
- func (x *TestResults_Details) HasEngineTraceBatch() bool
- func (x *TestResults_Details) HasError() bool
- func (x *TestResults_Details) HasFailure() bool
- func (x *TestResults_Details) HasOutcome() bool
- func (x *TestResults_Details) HasSkipReason() bool
- func (x *TestResults_Details) HasSuccess() bool
- func (*TestResults_Details) ProtoMessage()
- func (x *TestResults_Details) ProtoReflect() protoreflect.Message
- func (x *TestResults_Details) Reset()
- func (x *TestResults_Details) SetEngineTrace(v []*v11.Trace)deprecated
- func (x *TestResults_Details) SetEngineTraceBatch(v *v11.TraceBatch)
- func (x *TestResults_Details) SetError(v string)
- func (x *TestResults_Details) SetFailure(v *TestResults_Failure)
- func (x *TestResults_Details) SetResult(v TestResults_Result)
- func (x *TestResults_Details) SetSkipReason(v string)
- func (x *TestResults_Details) SetSuccess(v *TestResults_Success)
- func (x *TestResults_Details) String() string
- func (x *TestResults_Details) WhichOutcome() case_TestResults_Details_Outcome
- type TestResults_Details_Error
- type TestResults_Details_Failure
- type TestResults_Details_SkipReason
- type TestResults_Details_Success
- type TestResults_Details_builder
- type TestResults_Failure
- func (x *TestResults_Failure) GetActual() v1.Effect
- func (x *TestResults_Failure) GetExpected() v1.Effect
- func (x *TestResults_Failure) GetOutputs() []*TestResults_OutputFailure
- func (*TestResults_Failure) ProtoMessage()
- func (x *TestResults_Failure) ProtoReflect() protoreflect.Message
- func (x *TestResults_Failure) Reset()
- func (x *TestResults_Failure) SetActual(v v1.Effect)
- func (x *TestResults_Failure) SetExpected(v v1.Effect)
- func (x *TestResults_Failure) SetOutputs(v []*TestResults_OutputFailure)
- func (x *TestResults_Failure) String() string
- type TestResults_Failure_builder
- type TestResults_OutputFailure
- func (x *TestResults_OutputFailure) ClearErrored()
- func (x *TestResults_OutputFailure) ClearMismatched()
- func (x *TestResults_OutputFailure) ClearMissing()
- func (x *TestResults_OutputFailure) ClearOutcome()
- func (x *TestResults_OutputFailure) GetErrored() *TestResults_OutputFailure_EvaluationError
- func (x *TestResults_OutputFailure) GetMismatched() *TestResults_OutputFailure_MismatchedValue
- func (x *TestResults_OutputFailure) GetMissing() *TestResults_OutputFailure_MissingValue
- func (x *TestResults_OutputFailure) GetOutcome() isTestResults_OutputFailure_Outcome
- func (x *TestResults_OutputFailure) GetSrc() string
- func (x *TestResults_OutputFailure) HasErrored() bool
- func (x *TestResults_OutputFailure) HasMismatched() bool
- func (x *TestResults_OutputFailure) HasMissing() bool
- func (x *TestResults_OutputFailure) HasOutcome() bool
- func (*TestResults_OutputFailure) ProtoMessage()
- func (x *TestResults_OutputFailure) ProtoReflect() protoreflect.Message
- func (x *TestResults_OutputFailure) Reset()
- func (x *TestResults_OutputFailure) SetErrored(v *TestResults_OutputFailure_EvaluationError)
- func (x *TestResults_OutputFailure) SetMismatched(v *TestResults_OutputFailure_MismatchedValue)
- func (x *TestResults_OutputFailure) SetMissing(v *TestResults_OutputFailure_MissingValue)
- func (x *TestResults_OutputFailure) SetSrc(v string)
- func (x *TestResults_OutputFailure) String() string
- func (x *TestResults_OutputFailure) WhichOutcome() case_TestResults_OutputFailure_Outcome
- type TestResults_OutputFailure_Errored
- type TestResults_OutputFailure_EvaluationError
- func (x *TestResults_OutputFailure_EvaluationError) ClearExpected()
- func (x *TestResults_OutputFailure_EvaluationError) GetError() string
- func (x *TestResults_OutputFailure_EvaluationError) GetExpected() *structpb.Value
- func (x *TestResults_OutputFailure_EvaluationError) HasExpected() bool
- func (*TestResults_OutputFailure_EvaluationError) ProtoMessage()
- func (x *TestResults_OutputFailure_EvaluationError) ProtoReflect() protoreflect.Message
- func (x *TestResults_OutputFailure_EvaluationError) Reset()
- func (x *TestResults_OutputFailure_EvaluationError) SetError(v string)
- func (x *TestResults_OutputFailure_EvaluationError) SetExpected(v *structpb.Value)
- func (x *TestResults_OutputFailure_EvaluationError) String() string
- type TestResults_OutputFailure_EvaluationError_builder
- type TestResults_OutputFailure_Mismatched
- type TestResults_OutputFailure_MismatchedValue
- func (x *TestResults_OutputFailure_MismatchedValue) ClearActual()
- func (x *TestResults_OutputFailure_MismatchedValue) ClearExpected()
- func (x *TestResults_OutputFailure_MismatchedValue) GetActual() *structpb.Value
- func (x *TestResults_OutputFailure_MismatchedValue) GetExpected() *structpb.Value
- func (x *TestResults_OutputFailure_MismatchedValue) HasActual() bool
- func (x *TestResults_OutputFailure_MismatchedValue) HasExpected() bool
- func (*TestResults_OutputFailure_MismatchedValue) ProtoMessage()
- func (x *TestResults_OutputFailure_MismatchedValue) ProtoReflect() protoreflect.Message
- func (x *TestResults_OutputFailure_MismatchedValue) Reset()
- func (x *TestResults_OutputFailure_MismatchedValue) SetActual(v *structpb.Value)
- func (x *TestResults_OutputFailure_MismatchedValue) SetExpected(v *structpb.Value)
- func (x *TestResults_OutputFailure_MismatchedValue) String() string
- type TestResults_OutputFailure_MismatchedValue_builder
- type TestResults_OutputFailure_Missing
- type TestResults_OutputFailure_MissingValue
- func (x *TestResults_OutputFailure_MissingValue) ClearExpected()
- func (x *TestResults_OutputFailure_MissingValue) GetExpected() *structpb.Value
- func (x *TestResults_OutputFailure_MissingValue) HasExpected() bool
- func (*TestResults_OutputFailure_MissingValue) ProtoMessage()
- func (x *TestResults_OutputFailure_MissingValue) ProtoReflect() protoreflect.Message
- func (x *TestResults_OutputFailure_MissingValue) Reset()
- func (x *TestResults_OutputFailure_MissingValue) SetExpected(v *structpb.Value)
- func (x *TestResults_OutputFailure_MissingValue) String() string
- type TestResults_OutputFailure_MissingValue_builder
- type TestResults_OutputFailure_builder
- type TestResults_Principal
- func (x *TestResults_Principal) GetName() string
- func (x *TestResults_Principal) GetResources() []*TestResults_Resource
- func (*TestResults_Principal) ProtoMessage()
- func (x *TestResults_Principal) ProtoReflect() protoreflect.Message
- func (x *TestResults_Principal) Reset()
- func (x *TestResults_Principal) SetName(v string)
- func (x *TestResults_Principal) SetResources(v []*TestResults_Resource)
- func (x *TestResults_Principal) String() string
- type TestResults_Principal_builder
- type TestResults_Resource
- func (x *TestResults_Resource) GetActions() []*TestResults_Action
- func (x *TestResults_Resource) GetName() string
- func (*TestResults_Resource) ProtoMessage()
- func (x *TestResults_Resource) ProtoReflect() protoreflect.Message
- func (x *TestResults_Resource) Reset()
- func (x *TestResults_Resource) SetActions(v []*TestResults_Action)
- func (x *TestResults_Resource) SetName(v string)
- func (x *TestResults_Resource) String() string
- type TestResults_Resource_builder
- type TestResults_Result
- type TestResults_Success
- func (x *TestResults_Success) GetEffect() v1.Effect
- func (x *TestResults_Success) GetOutputs() []*v11.OutputEntry
- func (*TestResults_Success) ProtoMessage()
- func (x *TestResults_Success) ProtoReflect() protoreflect.Message
- func (x *TestResults_Success) Reset()
- func (x *TestResults_Success) SetEffect(v v1.Effect)
- func (x *TestResults_Success) SetOutputs(v []*v11.OutputEntry)
- func (x *TestResults_Success) String() string
- type TestResults_Success_builder
- type TestResults_Suite
- func (x *TestResults_Suite) ClearSummary()
- func (x *TestResults_Suite) GetDescription() string
- func (x *TestResults_Suite) GetError() string
- func (x *TestResults_Suite) GetFile() string
- func (x *TestResults_Suite) GetName() string
- func (x *TestResults_Suite) GetPrincipals() []*TestResults_Principaldeprecated
- func (x *TestResults_Suite) GetSkipReason() string
- func (x *TestResults_Suite) GetSummary() *TestResults_Summary
- func (x *TestResults_Suite) GetTestCases() []*TestResults_TestCase
- func (x *TestResults_Suite) HasSummary() bool
- func (*TestResults_Suite) ProtoMessage()
- func (x *TestResults_Suite) ProtoReflect() protoreflect.Message
- func (x *TestResults_Suite) Reset()
- func (x *TestResults_Suite) SetDescription(v string)
- func (x *TestResults_Suite) SetError(v string)
- func (x *TestResults_Suite) SetFile(v string)
- func (x *TestResults_Suite) SetName(v string)
- func (x *TestResults_Suite) SetPrincipals(v []*TestResults_Principal)deprecated
- func (x *TestResults_Suite) SetSkipReason(v string)
- func (x *TestResults_Suite) SetSummary(v *TestResults_Summary)
- func (x *TestResults_Suite) SetTestCases(v []*TestResults_TestCase)
- func (x *TestResults_Suite) String() string
- type TestResults_Suite_builder
- type TestResults_Summary
- func (x *TestResults_Summary) GetOverallResult() TestResults_Result
- func (x *TestResults_Summary) GetResultCounts() []*TestResults_Tally
- func (x *TestResults_Summary) GetTestsCount() uint32
- func (*TestResults_Summary) ProtoMessage()
- func (x *TestResults_Summary) ProtoReflect() protoreflect.Message
- func (x *TestResults_Summary) Reset()
- func (x *TestResults_Summary) SetOverallResult(v TestResults_Result)
- func (x *TestResults_Summary) SetResultCounts(v []*TestResults_Tally)
- func (x *TestResults_Summary) SetTestsCount(v uint32)
- func (x *TestResults_Summary) String() string
- type TestResults_Summary_builder
- type TestResults_Tally
- func (x *TestResults_Tally) GetCount() uint32
- func (x *TestResults_Tally) GetResult() TestResults_Result
- func (*TestResults_Tally) ProtoMessage()
- func (x *TestResults_Tally) ProtoReflect() protoreflect.Message
- func (x *TestResults_Tally) Reset()
- func (x *TestResults_Tally) SetCount(v uint32)
- func (x *TestResults_Tally) SetResult(v TestResults_Result)
- func (x *TestResults_Tally) String() string
- type TestResults_Tally_builder
- type TestResults_TestCase
- func (x *TestResults_TestCase) GetName() string
- func (x *TestResults_TestCase) GetPrincipals() []*TestResults_Principal
- func (*TestResults_TestCase) ProtoMessage()
- func (x *TestResults_TestCase) ProtoReflect() protoreflect.Message
- func (x *TestResults_TestCase) Reset()
- func (x *TestResults_TestCase) SetName(v string)
- func (x *TestResults_TestCase) SetPrincipals(v []*TestResults_Principal)
- func (x *TestResults_TestCase) String() string
- type TestResults_TestCase_builder
- type TestResults_builder
- type TestSuite
- func (x *TestSuite) ClearOptions()
- func (x *TestSuite) GetAuxData() map[string]*v11.AuxData
- func (x *TestSuite) GetDescription() string
- func (x *TestSuite) GetJsonSchema() string
- func (x *TestSuite) GetName() string
- func (x *TestSuite) GetOptions() *TestOptions
- func (x *TestSuite) GetPrincipalGroups() map[string]*TestFixtureGroup_Principals
- func (x *TestSuite) GetPrincipals() map[string]*v11.Principal
- func (x *TestSuite) GetResourceGroups() map[string]*TestFixtureGroup_Resources
- func (x *TestSuite) GetResources() map[string]*v11.Resource
- func (x *TestSuite) GetSkip() bool
- func (x *TestSuite) GetSkipReason() string
- func (x *TestSuite) GetTests() []*TestTable
- func (x *TestSuite) HasOptions() bool
- func (*TestSuite) ProtoMessage()
- func (x *TestSuite) ProtoReflect() protoreflect.Message
- func (x *TestSuite) Reset()
- func (x *TestSuite) SetAuxData(v map[string]*v11.AuxData)
- func (x *TestSuite) SetDescription(v string)
- func (x *TestSuite) SetJsonSchema(v string)
- func (x *TestSuite) SetName(v string)
- func (x *TestSuite) SetOptions(v *TestOptions)
- func (x *TestSuite) SetPrincipalGroups(v map[string]*TestFixtureGroup_Principals)
- func (x *TestSuite) SetPrincipals(v map[string]*v11.Principal)
- func (x *TestSuite) SetResourceGroups(v map[string]*TestFixtureGroup_Resources)
- func (x *TestSuite) SetResources(v map[string]*v11.Resource)
- func (x *TestSuite) SetSkip(v bool)
- func (x *TestSuite) SetSkipReason(v string)
- func (x *TestSuite) SetTests(v []*TestTable)
- func (x *TestSuite) String() string
- type TestSuite_builder
- type TestTable
- func (x *TestTable) ClearInput()
- func (x *TestTable) ClearOptions()
- func (x *TestTable) GetDescription() string
- func (x *TestTable) GetExpected() []*TestTable_Expectation
- func (x *TestTable) GetInput() *TestTable_Input
- func (x *TestTable) GetName() string
- func (x *TestTable) GetOptions() *TestOptions
- func (x *TestTable) GetSkip() bool
- func (x *TestTable) GetSkipReason() string
- func (x *TestTable) HasInput() bool
- func (x *TestTable) HasOptions() bool
- func (*TestTable) ProtoMessage()
- func (x *TestTable) ProtoReflect() protoreflect.Message
- func (x *TestTable) Reset()
- func (x *TestTable) SetDescription(v string)
- func (x *TestTable) SetExpected(v []*TestTable_Expectation)
- func (x *TestTable) SetInput(v *TestTable_Input)
- func (x *TestTable) SetName(v string)
- func (x *TestTable) SetOptions(v *TestOptions)
- func (x *TestTable) SetSkip(v bool)
- func (x *TestTable) SetSkipReason(v string)
- func (x *TestTable) String() string
- type TestTable_Expectation
- func (x *TestTable_Expectation) GetActions() map[string]v1.Effect
- func (x *TestTable_Expectation) GetOutputs() []*TestTable_OutputExpectations
- func (x *TestTable_Expectation) GetPrincipal() string
- func (x *TestTable_Expectation) GetPrincipalGroups() []string
- func (x *TestTable_Expectation) GetPrincipals() []string
- func (x *TestTable_Expectation) GetResource() string
- func (x *TestTable_Expectation) GetResourceGroups() []string
- func (x *TestTable_Expectation) GetResources() []string
- func (*TestTable_Expectation) ProtoMessage()
- func (x *TestTable_Expectation) ProtoReflect() protoreflect.Message
- func (x *TestTable_Expectation) Reset()
- func (x *TestTable_Expectation) SetActions(v map[string]v1.Effect)
- func (x *TestTable_Expectation) SetOutputs(v []*TestTable_OutputExpectations)
- func (x *TestTable_Expectation) SetPrincipal(v string)
- func (x *TestTable_Expectation) SetPrincipalGroups(v []string)
- func (x *TestTable_Expectation) SetPrincipals(v []string)
- func (x *TestTable_Expectation) SetResource(v string)
- func (x *TestTable_Expectation) SetResourceGroups(v []string)
- func (x *TestTable_Expectation) SetResources(v []string)
- func (x *TestTable_Expectation) String() string
- type TestTable_Expectation_builder
- type TestTable_Input
- func (x *TestTable_Input) GetActions() []string
- func (x *TestTable_Input) GetAuxData() string
- func (x *TestTable_Input) GetPrincipalGroups() []string
- func (x *TestTable_Input) GetPrincipals() []string
- func (x *TestTable_Input) GetResourceGroups() []string
- func (x *TestTable_Input) GetResources() []string
- func (*TestTable_Input) ProtoMessage()
- func (x *TestTable_Input) ProtoReflect() protoreflect.Message
- func (x *TestTable_Input) Reset()
- func (x *TestTable_Input) SetActions(v []string)
- func (x *TestTable_Input) SetAuxData(v string)
- func (x *TestTable_Input) SetPrincipalGroups(v []string)
- func (x *TestTable_Input) SetPrincipals(v []string)
- func (x *TestTable_Input) SetResourceGroups(v []string)
- func (x *TestTable_Input) SetResources(v []string)
- func (x *TestTable_Input) String() string
- type TestTable_Input_builder
- type TestTable_OutputExpectations
- func (x *TestTable_OutputExpectations) GetAction() string
- func (x *TestTable_OutputExpectations) GetExpected() []*v11.OutputEntry
- func (*TestTable_OutputExpectations) ProtoMessage()
- func (x *TestTable_OutputExpectations) ProtoReflect() protoreflect.Message
- func (x *TestTable_OutputExpectations) Reset()
- func (x *TestTable_OutputExpectations) SetAction(v string)
- func (x *TestTable_OutputExpectations) SetExpected(v []*v11.OutputEntry)
- func (x *TestTable_OutputExpectations) String() string
- type TestTable_OutputExpectations_builder
- type TestTable_builder
- type Test_OutputEntries
- func (x *Test_OutputEntries) GetEntries() map[string]*structpb.Value
- func (*Test_OutputEntries) ProtoMessage()
- func (x *Test_OutputEntries) ProtoReflect() protoreflect.Message
- func (x *Test_OutputEntries) Reset()
- func (x *Test_OutputEntries) SetEntries(v map[string]*structpb.Value)
- func (x *Test_OutputEntries) String() string
- type Test_OutputEntries_builder
- type Test_TestName
- func (x *Test_TestName) GetPrincipalKey() string
- func (x *Test_TestName) GetResourceKey() string
- func (x *Test_TestName) GetTestTableName() string
- func (*Test_TestName) ProtoMessage()
- func (x *Test_TestName) ProtoReflect() protoreflect.Message
- func (x *Test_TestName) Reset()
- func (x *Test_TestName) SetPrincipalKey(v string)
- func (x *Test_TestName) SetResourceKey(v string)
- func (x *Test_TestName) SetTestTableName(v string)
- func (x *Test_TestName) String() string
- type Test_TestName_builder
- type Test_builder
- type Variables
- func (x *Variables) GetImport() []string
- func (x *Variables) GetLocal() map[string]string
- func (*Variables) ProtoMessage()
- func (x *Variables) ProtoReflect() protoreflect.Message
- func (x *Variables) Reset()
- func (x *Variables) SetImport(v []string)
- func (x *Variables) SetLocal(v map[string]string)
- func (x *Variables) String() string
- type Variables_builder
Constants ¶
View Source
const Condition_Condition_not_set_case case_Condition_Condition = 0
View Source
const Condition_Match_case case_Condition_Condition = 1
View Source
const Condition_Script_case case_Condition_Condition = 2
View Source
const Match_All_case case_Match_Op = 1
View Source
const Match_Any_case case_Match_Op = 2
View Source
const Match_Expr_case case_Match_Op = 4
View Source
const Match_None_case case_Match_Op = 3
View Source
const Match_Op_not_set_case case_Match_Op = 0
View Source
const Policy_DerivedRoles_case case_Policy_PolicyType = 7
View Source
const Policy_ExportConstants_case case_Policy_PolicyType = 12
View Source
const Policy_ExportVariables_case case_Policy_PolicyType = 10
View Source
const Policy_PolicyType_not_set_case case_Policy_PolicyType = 0
View Source
const Policy_PrincipalPolicy_case case_Policy_PolicyType = 6
View Source
const Policy_ResourcePolicy_case case_Policy_PolicyType = 5
View Source
const Policy_RolePolicy_case case_Policy_PolicyType = 11
View Source
const RolePolicy_PolicyType_not_set_case case_RolePolicy_PolicyType = 0
View Source
const RolePolicy_Role_case case_RolePolicy_PolicyType = 1
View Source
const TestResults_Details_Error_case case_TestResults_Details_Outcome = 3
View Source
const TestResults_Details_Failure_case case_TestResults_Details_Outcome = 2
View Source
const TestResults_Details_Outcome_not_set_case case_TestResults_Details_Outcome = 0
View Source
const TestResults_Details_SkipReason_case case_TestResults_Details_Outcome = 6
View Source
const TestResults_Details_Success_case case_TestResults_Details_Outcome = 5
View Source
const TestResults_OutputFailure_Errored_case case_TestResults_OutputFailure_Outcome = 4
View Source
const TestResults_OutputFailure_Mismatched_case case_TestResults_OutputFailure_Outcome = 2
View Source
const TestResults_OutputFailure_Missing_case case_TestResults_OutputFailure_Outcome = 3
View Source
const TestResults_OutputFailure_Outcome_not_set_case case_TestResults_OutputFailure_Outcome = 0
Variables ¶
View Source
var ( Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "KIND_DERIVED_ROLES", 2: "KIND_EXPORT_VARIABLES", 3: "KIND_PRINCIPAL", 4: "KIND_RESOURCE", 5: "KIND_ROLE_POLICY", 6: "KIND_EXPORT_CONSTANTS", } Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "KIND_DERIVED_ROLES": 1, "KIND_EXPORT_VARIABLES": 2, "KIND_PRINCIPAL": 3, "KIND_RESOURCE": 4, "KIND_ROLE_POLICY": 5, "KIND_EXPORT_CONSTANTS": 6, } )
Enum value maps for Kind.
View Source
var ( ScopePermissions_name = map[int32]string{ 0: "SCOPE_PERMISSIONS_UNSPECIFIED", 1: "SCOPE_PERMISSIONS_OVERRIDE_PARENT", 2: "SCOPE_PERMISSIONS_REQUIRE_PARENTAL_CONSENT_FOR_ALLOWS", } ScopePermissions_value = map[string]int32{ "SCOPE_PERMISSIONS_UNSPECIFIED": 0, "SCOPE_PERMISSIONS_OVERRIDE_PARENT": 1, "SCOPE_PERMISSIONS_REQUIRE_PARENTAL_CONSENT_FOR_ALLOWS": 2, } )
Enum value maps for ScopePermissions.
View Source
var ( TestResults_Result_name = map[int32]string{ 0: "RESULT_UNSPECIFIED", 1: "RESULT_SKIPPED", 2: "RESULT_PASSED", 3: "RESULT_FAILED", 4: "RESULT_ERRORED", } TestResults_Result_value = map[string]int32{ "RESULT_UNSPECIFIED": 0, "RESULT_SKIPPED": 1, "RESULT_PASSED": 2, "RESULT_FAILED": 3, "RESULT_ERRORED": 4, } )
Enum value maps for TestResults_Result.
View Source
var File_cerbos_policy_v1_policy_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct {
// Types that are valid to be assigned to Condition:
//
// *Condition_Match
// *Condition_Script
Condition isCondition_Condition `protobuf_oneof:"condition"`
// contains filtered or unexported fields
}
func (*Condition) ProtoReflect ¶
func (x *Condition) ProtoReflect() protoreflect.Message
type Condition_Match ¶
type Condition_Match struct {
Match *Match `protobuf:"bytes,1,opt,name=match,proto3,oneof"`
}
type Condition_Script ¶
type Condition_Script struct {
Script string `protobuf:"bytes,2,opt,name=script,proto3,oneof"`
}
type Condition_builder ¶
type Condition_builder struct {
// Fields of oneof Condition:
Match *Match
Script *string
// contains filtered or unexported fields
}
func (Condition_builder) Build ¶
func (b0 Condition_builder) Build() *Condition
type Constants ¶
type Constants struct {
Import []string `protobuf:"bytes,1,rep,name=import,proto3" json:"import,omitempty"`
Local map[string]*structpb.Value `` /* 137-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Constants) ProtoReflect ¶
func (x *Constants) ProtoReflect() protoreflect.Message
type Constants_builder ¶
type Constants_builder struct {
Import []string
Local map[string]*structpb.Value
// contains filtered or unexported fields
}
func (Constants_builder) Build ¶
func (b0 Constants_builder) Build() *Constants
type DerivedRoles ¶
type DerivedRoles struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Definitions []*RoleDef `protobuf:"bytes,2,rep,name=definitions,proto3" json:"definitions,omitempty"`
Variables *Variables `protobuf:"bytes,3,opt,name=variables,proto3" json:"variables,omitempty"`
Constants *Constants `protobuf:"bytes,4,opt,name=constants,proto3" json:"constants,omitempty"`
// contains filtered or unexported fields
}
func (*DerivedRoles) ClearConstants ¶
func (x *DerivedRoles) ClearConstants()
func (*DerivedRoles) ClearVariables ¶
func (x *DerivedRoles) ClearVariables()
func (*DerivedRoles) GetConstants ¶
func (x *DerivedRoles) GetConstants() *Constants
func (*DerivedRoles) GetDefinitions ¶
func (x *DerivedRoles) GetDefinitions() []*RoleDef
func (*DerivedRoles) GetName ¶
func (x *DerivedRoles) GetName() string
func (*DerivedRoles) GetVariables ¶
func (x *DerivedRoles) GetVariables() *Variables
func (*DerivedRoles) HasConstants ¶
func (x *DerivedRoles) HasConstants() bool
func (*DerivedRoles) HasVariables ¶
func (x *DerivedRoles) HasVariables() bool
func (*DerivedRoles) ProtoMessage ¶
func (*DerivedRoles) ProtoMessage()
func (*DerivedRoles) ProtoReflect ¶
func (x *DerivedRoles) ProtoReflect() protoreflect.Message
func (*DerivedRoles) Reset ¶
func (x *DerivedRoles) Reset()
func (*DerivedRoles) SetConstants ¶
func (x *DerivedRoles) SetConstants(v *Constants)
func (*DerivedRoles) SetDefinitions ¶
func (x *DerivedRoles) SetDefinitions(v []*RoleDef)
func (*DerivedRoles) SetName ¶
func (x *DerivedRoles) SetName(v string)
func (*DerivedRoles) SetVariables ¶
func (x *DerivedRoles) SetVariables(v *Variables)
func (*DerivedRoles) String ¶
func (x *DerivedRoles) String() string
type DerivedRoles_builder ¶
type DerivedRoles_builder struct {
Name string
Definitions []*RoleDef
Variables *Variables
Constants *Constants
// contains filtered or unexported fields
}
func (DerivedRoles_builder) Build ¶
func (b0 DerivedRoles_builder) Build() *DerivedRoles
type ExportConstants ¶
type ExportConstants struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Definitions map[string]*structpb.Value `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ExportConstants) GetDefinitions ¶
func (x *ExportConstants) GetDefinitions() map[string]*structpb.Value
func (*ExportConstants) GetName ¶
func (x *ExportConstants) GetName() string
func (*ExportConstants) ProtoMessage ¶
func (*ExportConstants) ProtoMessage()
func (*ExportConstants) ProtoReflect ¶
func (x *ExportConstants) ProtoReflect() protoreflect.Message
func (*ExportConstants) Reset ¶
func (x *ExportConstants) Reset()
func (*ExportConstants) SetDefinitions ¶
func (x *ExportConstants) SetDefinitions(v map[string]*structpb.Value)
func (*ExportConstants) SetName ¶
func (x *ExportConstants) SetName(v string)
func (*ExportConstants) String ¶
func (x *ExportConstants) String() string
type ExportConstants_builder ¶
type ExportConstants_builder struct {
Name string
Definitions map[string]*structpb.Value
// contains filtered or unexported fields
}
func (ExportConstants_builder) Build ¶
func (b0 ExportConstants_builder) Build() *ExportConstants
type ExportVariables ¶
type ExportVariables struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Definitions map[string]string `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ExportVariables) GetDefinitions ¶
func (x *ExportVariables) GetDefinitions() map[string]string
func (*ExportVariables) GetName ¶
func (x *ExportVariables) GetName() string
func (*ExportVariables) ProtoMessage ¶
func (*ExportVariables) ProtoMessage()
func (*ExportVariables) ProtoReflect ¶
func (x *ExportVariables) ProtoReflect() protoreflect.Message
func (*ExportVariables) Reset ¶
func (x *ExportVariables) Reset()
func (*ExportVariables) SetDefinitions ¶
func (x *ExportVariables) SetDefinitions(v map[string]string)
func (*ExportVariables) SetName ¶
func (x *ExportVariables) SetName(v string)
func (*ExportVariables) String ¶
func (x *ExportVariables) String() string
type ExportVariables_builder ¶
type ExportVariables_builder struct {
Name string
Definitions map[string]string
// contains filtered or unexported fields
}
func (ExportVariables_builder) Build ¶
func (b0 ExportVariables_builder) Build() *ExportVariables
type Kind ¶
type Kind int32
func (Kind) Descriptor ¶
func (Kind) Descriptor() protoreflect.EnumDescriptor
func (Kind) Number ¶
func (x Kind) Number() protoreflect.EnumNumber
func (Kind) Type ¶
func (Kind) Type() protoreflect.EnumType
type Match ¶
type Match struct {
// Types that are valid to be assigned to Op:
//
// *Match_All
// *Match_Any
// *Match_None
// *Match_Expr
Op isMatch_Op `protobuf_oneof:"op"`
// contains filtered or unexported fields
}
func (*Match) GetAll ¶
func (x *Match) GetAll() *Match_ExprList
func (*Match) GetAny ¶
func (x *Match) GetAny() *Match_ExprList
func (*Match) GetNone ¶
func (x *Match) GetNone() *Match_ExprList
func (*Match) ProtoReflect ¶
func (x *Match) ProtoReflect() protoreflect.Message
func (*Match) SetAll ¶
func (x *Match) SetAll(v *Match_ExprList)
func (*Match) SetAny ¶
func (x *Match) SetAny(v *Match_ExprList)
func (*Match) SetNone ¶
func (x *Match) SetNone(v *Match_ExprList)
type Match_All ¶
type Match_All struct {
All *Match_ExprList `protobuf:"bytes,1,opt,name=all,proto3,oneof"`
}
type Match_Any ¶
type Match_Any struct {
Any *Match_ExprList `protobuf:"bytes,2,opt,name=any,proto3,oneof"`
}
type Match_Expr ¶
type Match_Expr struct {
Expr string `protobuf:"bytes,4,opt,name=expr,proto3,oneof"`
}
type Match_ExprList ¶
type Match_ExprList struct {
Of []*Match `protobuf:"bytes,1,rep,name=of,proto3" json:"of,omitempty"`
// contains filtered or unexported fields
}
func (*Match_ExprList) GetOf ¶
func (x *Match_ExprList) GetOf() []*Match
func (*Match_ExprList) ProtoMessage ¶
func (*Match_ExprList) ProtoMessage()
func (*Match_ExprList) ProtoReflect ¶
func (x *Match_ExprList) ProtoReflect() protoreflect.Message
func (*Match_ExprList) Reset ¶
func (x *Match_ExprList) Reset()
func (*Match_ExprList) SetOf ¶
func (x *Match_ExprList) SetOf(v []*Match)
func (*Match_ExprList) String ¶
func (x *Match_ExprList) String() string
type Match_ExprList_builder ¶
type Match_ExprList_builder struct {
Of []*Match
// contains filtered or unexported fields
}
func (Match_ExprList_builder) Build ¶
func (b0 Match_ExprList_builder) Build() *Match_ExprList
type Match_None ¶
type Match_None struct {
None *Match_ExprList `protobuf:"bytes,3,opt,name=none,proto3,oneof"`
}
type Match_builder ¶
type Match_builder struct {
// Fields of oneof Op:
All *Match_ExprList
Any *Match_ExprList
None *Match_ExprList
Expr *string
// contains filtered or unexported fields
}
func (Match_builder) Build ¶
func (b0 Match_builder) Build() *Match
type Metadata ¶
type Metadata struct {
SourceFile string `protobuf:"bytes,1,opt,name=source_file,json=sourceFile,proto3" json:"source_file,omitempty"`
Annotations map[string]string `` /* 149-byte string literal not displayed */
Hash *wrapperspb.UInt64Value `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
StoreIdentifer string `protobuf:"bytes,4,opt,name=store_identifer,json=storeIdentifer,proto3" json:"store_identifer,omitempty"`
StoreIdentifier string `protobuf:"bytes,5,opt,name=store_identifier,json=storeIdentifier,proto3" json:"store_identifier,omitempty"`
SourceAttributes *SourceAttributes `protobuf:"bytes,6,opt,name=source_attributes,json=sourceAttributes,proto3" json:"source_attributes,omitempty"`
// contains filtered or unexported fields
}
func (*Metadata) GetHash ¶
func (x *Metadata) GetHash() *wrapperspb.UInt64Value
func (*Metadata) GetSourceAttributes ¶
func (x *Metadata) GetSourceAttributes() *SourceAttributes
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) SetHash ¶
func (x *Metadata) SetHash(v *wrapperspb.UInt64Value)
func (*Metadata) SetSourceAttributes ¶
func (x *Metadata) SetSourceAttributes(v *SourceAttributes)
type Metadata_builder ¶
type Metadata_builder struct {
SourceFile string
Annotations map[string]string
Hash *wrapperspb.UInt64Value
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
StoreIdentifer string
StoreIdentifier string
SourceAttributes *SourceAttributes
// contains filtered or unexported fields
}
func (Metadata_builder) Build ¶
func (b0 Metadata_builder) Build() *Metadata
type Output ¶
type Output struct {
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
Expr string `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
When *Output_When `protobuf:"bytes,2,opt,name=when,proto3" json:"when,omitempty"`
// contains filtered or unexported fields
}
func (*Output) GetWhen ¶
func (x *Output) GetWhen() *Output_When
func (*Output) ProtoReflect ¶
func (x *Output) ProtoReflect() protoreflect.Message
func (*Output) SetWhen ¶
func (x *Output) SetWhen(v *Output_When)
type Output_When ¶
type Output_When struct {
RuleActivated string `protobuf:"bytes,1,opt,name=rule_activated,json=ruleActivated,proto3" json:"rule_activated,omitempty"`
ConditionNotMet string `protobuf:"bytes,2,opt,name=condition_not_met,json=conditionNotMet,proto3" json:"condition_not_met,omitempty"`
// contains filtered or unexported fields
}
func (*Output_When) GetConditionNotMet ¶
func (x *Output_When) GetConditionNotMet() string
func (*Output_When) GetRuleActivated ¶
func (x *Output_When) GetRuleActivated() string
func (*Output_When) ProtoMessage ¶
func (*Output_When) ProtoMessage()
func (*Output_When) ProtoReflect ¶
func (x *Output_When) ProtoReflect() protoreflect.Message
func (*Output_When) Reset ¶
func (x *Output_When) Reset()
func (*Output_When) SetConditionNotMet ¶
func (x *Output_When) SetConditionNotMet(v string)
func (*Output_When) SetRuleActivated ¶
func (x *Output_When) SetRuleActivated(v string)
func (*Output_When) String ¶
func (x *Output_When) String() string
type Output_When_builder ¶
type Output_When_builder struct {
RuleActivated string
ConditionNotMet string
// contains filtered or unexported fields
}
func (Output_When_builder) Build ¶
func (b0 Output_When_builder) Build() *Output_When
type Output_builder ¶
type Output_builder struct {
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
Expr string
When *Output_When
// contains filtered or unexported fields
}
func (Output_builder) Build ¶
func (b0 Output_builder) Build() *Output
type Policy ¶
type Policy struct {
ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
Disabled bool `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Metadata *Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
// Types that are valid to be assigned to PolicyType:
//
// *Policy_ResourcePolicy
// *Policy_PrincipalPolicy
// *Policy_DerivedRoles
// *Policy_ExportVariables
// *Policy_RolePolicy
// *Policy_ExportConstants
PolicyType isPolicy_PolicyType `protobuf_oneof:"policy_type"`
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
Variables map[string]string `` /* 145-byte string literal not displayed */
JsonSchema string `protobuf:"bytes,9,opt,name=json_schema,json=$schema,proto3" json:"json_schema,omitempty"`
// contains filtered or unexported fields
}
func (*Policy) GetDerivedRoles ¶
func (x *Policy) GetDerivedRoles() *DerivedRoles
func (*Policy) GetExportConstants ¶
func (x *Policy) GetExportConstants() *ExportConstants
func (*Policy) GetExportVariables ¶
func (x *Policy) GetExportVariables() *ExportVariables
func (*Policy) GetPrincipalPolicy ¶
func (x *Policy) GetPrincipalPolicy() *PrincipalPolicy
func (*Policy) GetResourcePolicy ¶
func (x *Policy) GetResourcePolicy() *ResourcePolicy
func (*Policy) GetRolePolicy ¶
func (x *Policy) GetRolePolicy() *RolePolicy
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
func (*Policy) SetDerivedRoles ¶
func (x *Policy) SetDerivedRoles(v *DerivedRoles)
func (*Policy) SetExportConstants ¶
func (x *Policy) SetExportConstants(v *ExportConstants)
func (*Policy) SetExportVariables ¶
func (x *Policy) SetExportVariables(v *ExportVariables)
func (*Policy) SetPrincipalPolicy ¶
func (x *Policy) SetPrincipalPolicy(v *PrincipalPolicy)
func (*Policy) SetResourcePolicy ¶
func (x *Policy) SetResourcePolicy(v *ResourcePolicy)
func (*Policy) SetRolePolicy ¶
func (x *Policy) SetRolePolicy(v *RolePolicy)
type Policy_DerivedRoles ¶
type Policy_DerivedRoles struct {
DerivedRoles *DerivedRoles `protobuf:"bytes,7,opt,name=derived_roles,json=derivedRoles,proto3,oneof"`
}
type Policy_ExportConstants ¶
type Policy_ExportConstants struct {
ExportConstants *ExportConstants `protobuf:"bytes,12,opt,name=export_constants,json=exportConstants,proto3,oneof"`
}
type Policy_ExportVariables ¶
type Policy_ExportVariables struct {
ExportVariables *ExportVariables `protobuf:"bytes,10,opt,name=export_variables,json=exportVariables,proto3,oneof"`
}
type Policy_PrincipalPolicy ¶
type Policy_PrincipalPolicy struct {
PrincipalPolicy *PrincipalPolicy `protobuf:"bytes,6,opt,name=principal_policy,json=principalPolicy,proto3,oneof"`
}
type Policy_ResourcePolicy ¶
type Policy_ResourcePolicy struct {
ResourcePolicy *ResourcePolicy `protobuf:"bytes,5,opt,name=resource_policy,json=resourcePolicy,proto3,oneof"`
}
type Policy_RolePolicy ¶
type Policy_RolePolicy struct {
RolePolicy *RolePolicy `protobuf:"bytes,11,opt,name=role_policy,json=rolePolicy,proto3,oneof"`
}
type Policy_builder ¶
type Policy_builder struct {
ApiVersion string
Disabled bool
Description string
Metadata *Metadata
// Fields of oneof PolicyType:
ResourcePolicy *ResourcePolicy
PrincipalPolicy *PrincipalPolicy
DerivedRoles *DerivedRoles
ExportVariables *ExportVariables
RolePolicy *RolePolicy
ExportConstants *ExportConstants
// -- end of PolicyType
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
Variables map[string]string
JsonSchema string
// contains filtered or unexported fields
}
func (Policy_builder) Build ¶
func (b0 Policy_builder) Build() *Policy
type PrincipalPolicy ¶
type PrincipalPolicy struct {
Principal string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
Rules []*PrincipalRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"`
Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"`
Variables *Variables `protobuf:"bytes,5,opt,name=variables,proto3" json:"variables,omitempty"`
ScopePermissions ScopePermissions `` /* 149-byte string literal not displayed */
Constants *Constants `protobuf:"bytes,7,opt,name=constants,proto3" json:"constants,omitempty"`
// contains filtered or unexported fields
}
func (*PrincipalPolicy) ClearConstants ¶
func (x *PrincipalPolicy) ClearConstants()
func (*PrincipalPolicy) ClearVariables ¶
func (x *PrincipalPolicy) ClearVariables()
func (*PrincipalPolicy) GetConstants ¶
func (x *PrincipalPolicy) GetConstants() *Constants
func (*PrincipalPolicy) GetPrincipal ¶
func (x *PrincipalPolicy) GetPrincipal() string
func (*PrincipalPolicy) GetRules ¶
func (x *PrincipalPolicy) GetRules() []*PrincipalRule
func (*PrincipalPolicy) GetScope ¶
func (x *PrincipalPolicy) GetScope() string
func (*PrincipalPolicy) GetScopePermissions ¶
func (x *PrincipalPolicy) GetScopePermissions() ScopePermissions
func (*PrincipalPolicy) GetVariables ¶
func (x *PrincipalPolicy) GetVariables() *Variables
func (*PrincipalPolicy) GetVersion ¶
func (x *PrincipalPolicy) GetVersion() string
func (*PrincipalPolicy) HasConstants ¶
func (x *PrincipalPolicy) HasConstants() bool
func (*PrincipalPolicy) HasVariables ¶
func (x *PrincipalPolicy) HasVariables() bool
func (*PrincipalPolicy) ProtoMessage ¶
func (*PrincipalPolicy) ProtoMessage()
func (*PrincipalPolicy) ProtoReflect ¶
func (x *PrincipalPolicy) ProtoReflect() protoreflect.Message
func (*PrincipalPolicy) Reset ¶
func (x *PrincipalPolicy) Reset()
func (*PrincipalPolicy) SetConstants ¶
func (x *PrincipalPolicy) SetConstants(v *Constants)
func (*PrincipalPolicy) SetPrincipal ¶
func (x *PrincipalPolicy) SetPrincipal(v string)
func (*PrincipalPolicy) SetRules ¶
func (x *PrincipalPolicy) SetRules(v []*PrincipalRule)
func (*PrincipalPolicy) SetScope ¶
func (x *PrincipalPolicy) SetScope(v string)
func (*PrincipalPolicy) SetScopePermissions ¶
func (x *PrincipalPolicy) SetScopePermissions(v ScopePermissions)
func (*PrincipalPolicy) SetVariables ¶
func (x *PrincipalPolicy) SetVariables(v *Variables)
func (*PrincipalPolicy) SetVersion ¶
func (x *PrincipalPolicy) SetVersion(v string)
func (*PrincipalPolicy) String ¶
func (x *PrincipalPolicy) String() string
type PrincipalPolicy_builder ¶
type PrincipalPolicy_builder struct {
Principal string
Version string
Rules []*PrincipalRule
Scope string
Variables *Variables
ScopePermissions ScopePermissions
Constants *Constants
// contains filtered or unexported fields
}
func (PrincipalPolicy_builder) Build ¶
func (b0 PrincipalPolicy_builder) Build() *PrincipalPolicy
type PrincipalRule ¶
type PrincipalRule struct {
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
Actions []*PrincipalRule_Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
// contains filtered or unexported fields
}
func (*PrincipalRule) GetActions ¶
func (x *PrincipalRule) GetActions() []*PrincipalRule_Action
func (*PrincipalRule) GetResource ¶
func (x *PrincipalRule) GetResource() string
func (*PrincipalRule) ProtoMessage ¶
func (*PrincipalRule) ProtoMessage()
func (*PrincipalRule) ProtoReflect ¶
func (x *PrincipalRule) ProtoReflect() protoreflect.Message
func (*PrincipalRule) Reset ¶
func (x *PrincipalRule) Reset()
func (*PrincipalRule) SetActions ¶
func (x *PrincipalRule) SetActions(v []*PrincipalRule_Action)
func (*PrincipalRule) SetResource ¶
func (x *PrincipalRule) SetResource(v string)
func (*PrincipalRule) String ¶
func (x *PrincipalRule) String() string
type PrincipalRule_Action ¶
type PrincipalRule_Action struct {
Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
Condition *Condition `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"`
Effect v1.Effect `protobuf:"varint,3,opt,name=effect,proto3,enum=cerbos.effect.v1.Effect" json:"effect,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Output *Output `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
// contains filtered or unexported fields
}
func (*PrincipalRule_Action) ClearCondition ¶
func (x *PrincipalRule_Action) ClearCondition()
func (*PrincipalRule_Action) ClearOutput ¶
func (x *PrincipalRule_Action) ClearOutput()
func (*PrincipalRule_Action) GetAction ¶
func (x *PrincipalRule_Action) GetAction() string
func (*PrincipalRule_Action) GetCondition ¶
func (x *PrincipalRule_Action) GetCondition() *Condition
func (*PrincipalRule_Action) GetEffect ¶
func (x *PrincipalRule_Action) GetEffect() v1.Effect
func (*PrincipalRule_Action) GetName ¶
func (x *PrincipalRule_Action) GetName() string
func (*PrincipalRule_Action) GetOutput ¶
func (x *PrincipalRule_Action) GetOutput() *Output
func (*PrincipalRule_Action) HasCondition ¶
func (x *PrincipalRule_Action) HasCondition() bool
func (*PrincipalRule_Action) HasOutput ¶
func (x *PrincipalRule_Action) HasOutput() bool
func (*PrincipalRule_Action) ProtoMessage ¶
func (*PrincipalRule_Action) ProtoMessage()
func (*PrincipalRule_Action) ProtoReflect ¶
func (x *PrincipalRule_Action) ProtoReflect() protoreflect.Message
func (*PrincipalRule_Action) Reset ¶
func (x *PrincipalRule_Action) Reset()
func (*PrincipalRule_Action) SetAction ¶
func (x *PrincipalRule_Action) SetAction(v string)
func (*PrincipalRule_Action) SetCondition ¶
func (x *PrincipalRule_Action) SetCondition(v *Condition)
func (*PrincipalRule_Action) SetEffect ¶
func (x *PrincipalRule_Action) SetEffect(v v1.Effect)
func (*PrincipalRule_Action) SetName ¶
func (x *PrincipalRule_Action) SetName(v string)
func (*PrincipalRule_Action) SetOutput ¶
func (x *PrincipalRule_Action) SetOutput(v *Output)
func (*PrincipalRule_Action) String ¶
func (x *PrincipalRule_Action) String() string
type PrincipalRule_Action_builder ¶
type PrincipalRule_Action_builder struct {
Action string
Condition *Condition
Effect v1.Effect
Name string
Output *Output
// contains filtered or unexported fields
}
func (PrincipalRule_Action_builder) Build ¶
func (b0 PrincipalRule_Action_builder) Build() *PrincipalRule_Action
type PrincipalRule_builder ¶
type PrincipalRule_builder struct {
Resource string
Actions []*PrincipalRule_Action
// contains filtered or unexported fields
}
func (PrincipalRule_builder) Build ¶
func (b0 PrincipalRule_builder) Build() *PrincipalRule
type ResourcePolicy ¶
type ResourcePolicy struct {
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
ImportDerivedRoles []string `protobuf:"bytes,3,rep,name=import_derived_roles,json=importDerivedRoles,proto3" json:"import_derived_roles,omitempty"`
Rules []*ResourceRule `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"`
Scope string `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"`
Schemas *Schemas `protobuf:"bytes,6,opt,name=schemas,proto3" json:"schemas,omitempty"`
Variables *Variables `protobuf:"bytes,7,opt,name=variables,proto3" json:"variables,omitempty"`
ScopePermissions ScopePermissions `` /* 149-byte string literal not displayed */
Constants *Constants `protobuf:"bytes,9,opt,name=constants,proto3" json:"constants,omitempty"`
// contains filtered or unexported fields
}
func (*ResourcePolicy) ClearConstants ¶
func (x *ResourcePolicy) ClearConstants()
func (*ResourcePolicy) ClearSchemas ¶
func (x *ResourcePolicy) ClearSchemas()
func (*ResourcePolicy) ClearVariables ¶
func (x *ResourcePolicy) ClearVariables()
func (*ResourcePolicy) GetConstants ¶
func (x *ResourcePolicy) GetConstants() *Constants
func (*ResourcePolicy) GetImportDerivedRoles ¶
func (x *ResourcePolicy) GetImportDerivedRoles() []string
func (*ResourcePolicy) GetResource ¶
func (x *ResourcePolicy) GetResource() string
func (*ResourcePolicy) GetRules ¶
func (x *ResourcePolicy) GetRules() []*ResourceRule
func (*ResourcePolicy) GetSchemas ¶
func (x *ResourcePolicy) GetSchemas() *Schemas
func (*ResourcePolicy) GetScope ¶
func (x *ResourcePolicy) GetScope() string
func (*ResourcePolicy) GetScopePermissions ¶
func (x *ResourcePolicy) GetScopePermissions() ScopePermissions
func (*ResourcePolicy) GetVariables ¶
func (x *ResourcePolicy) GetVariables() *Variables
func (*ResourcePolicy) GetVersion ¶
func (x *ResourcePolicy) GetVersion() string
func (*ResourcePolicy) HasConstants ¶
func (x *ResourcePolicy) HasConstants() bool
func (*ResourcePolicy) HasSchemas ¶
func (x *ResourcePolicy) HasSchemas() bool
func (*ResourcePolicy) HasVariables ¶
func (x *ResourcePolicy) HasVariables() bool
func (*ResourcePolicy) ProtoMessage ¶
func (*ResourcePolicy) ProtoMessage()
func (*ResourcePolicy) ProtoReflect ¶
func (x *ResourcePolicy) ProtoReflect() protoreflect.Message
func (*ResourcePolicy) Reset ¶
func (x *ResourcePolicy) Reset()
func (*ResourcePolicy) SetConstants ¶
func (x *ResourcePolicy) SetConstants(v *Constants)
func (*ResourcePolicy) SetImportDerivedRoles ¶
func (x *ResourcePolicy) SetImportDerivedRoles(v []string)
func (*ResourcePolicy) SetResource ¶
func (x *ResourcePolicy) SetResource(v string)
func (*ResourcePolicy) SetRules ¶
func (x *ResourcePolicy) SetRules(v []*ResourceRule)
func (*ResourcePolicy) SetSchemas ¶
func (x *ResourcePolicy) SetSchemas(v *Schemas)
func (*ResourcePolicy) SetScope ¶
func (x *ResourcePolicy) SetScope(v string)
func (*ResourcePolicy) SetScopePermissions ¶
func (x *ResourcePolicy) SetScopePermissions(v ScopePermissions)
func (*ResourcePolicy) SetVariables ¶
func (x *ResourcePolicy) SetVariables(v *Variables)
func (*ResourcePolicy) SetVersion ¶
func (x *ResourcePolicy) SetVersion(v string)
func (*ResourcePolicy) String ¶
func (x *ResourcePolicy) String() string
type ResourcePolicy_builder ¶
type ResourcePolicy_builder struct {
Resource string
Version string
ImportDerivedRoles []string
Rules []*ResourceRule
Scope string
Schemas *Schemas
Variables *Variables
ScopePermissions ScopePermissions
Constants *Constants
// contains filtered or unexported fields
}
func (ResourcePolicy_builder) Build ¶
func (b0 ResourcePolicy_builder) Build() *ResourcePolicy
type ResourceRule ¶
type ResourceRule struct {
Actions []string `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
DerivedRoles []string `protobuf:"bytes,2,rep,name=derived_roles,json=derivedRoles,proto3" json:"derived_roles,omitempty"`
Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
Condition *Condition `protobuf:"bytes,4,opt,name=condition,proto3" json:"condition,omitempty"`
Effect v1.Effect `protobuf:"varint,5,opt,name=effect,proto3,enum=cerbos.effect.v1.Effect" json:"effect,omitempty"`
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
Output *Output `protobuf:"bytes,7,opt,name=output,proto3" json:"output,omitempty"`
// contains filtered or unexported fields
}
func (*ResourceRule) ClearCondition ¶
func (x *ResourceRule) ClearCondition()
func (*ResourceRule) ClearOutput ¶
func (x *ResourceRule) ClearOutput()
func (*ResourceRule) GetActions ¶
func (x *ResourceRule) GetActions() []string
func (*ResourceRule) GetCondition ¶
func (x *ResourceRule) GetCondition() *Condition
func (*ResourceRule) GetDerivedRoles ¶
func (x *ResourceRule) GetDerivedRoles() []string
func (*ResourceRule) GetEffect ¶
func (x *ResourceRule) GetEffect() v1.Effect
func (*ResourceRule) GetName ¶
func (x *ResourceRule) GetName() string
func (*ResourceRule) GetOutput ¶
func (x *ResourceRule) GetOutput() *Output
func (*ResourceRule) GetRoles ¶
func (x *ResourceRule) GetRoles() []string
func (*ResourceRule) HasCondition ¶
func (x *ResourceRule) HasCondition() bool
func (*ResourceRule) HasOutput ¶
func (x *ResourceRule) HasOutput() bool
func (*ResourceRule) ProtoMessage ¶
func (*ResourceRule) ProtoMessage()
func (*ResourceRule) ProtoReflect ¶
func (x *ResourceRule) ProtoReflect() protoreflect.Message
func (*ResourceRule) Reset ¶
func (x *ResourceRule) Reset()
func (*ResourceRule) SetActions ¶
func (x *ResourceRule) SetActions(v []string)
func (*ResourceRule) SetCondition ¶
func (x *ResourceRule) SetCondition(v *Condition)
func (*ResourceRule) SetDerivedRoles ¶
func (x *ResourceRule) SetDerivedRoles(v []string)
func (*ResourceRule) SetEffect ¶
func (x *ResourceRule) SetEffect(v v1.Effect)
func (*ResourceRule) SetName ¶
func (x *ResourceRule) SetName(v string)
func (*ResourceRule) SetOutput ¶
func (x *ResourceRule) SetOutput(v *Output)
func (*ResourceRule) SetRoles ¶
func (x *ResourceRule) SetRoles(v []string)
func (*ResourceRule) String ¶
func (x *ResourceRule) String() string
type ResourceRule_builder ¶
type ResourceRule_builder struct {
Actions []string
DerivedRoles []string
Roles []string
Condition *Condition
Effect v1.Effect
Name string
Output *Output
// contains filtered or unexported fields
}
func (ResourceRule_builder) Build ¶
func (b0 ResourceRule_builder) Build() *ResourceRule
type RoleDef ¶
type RoleDef struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ParentRoles []string `protobuf:"bytes,2,rep,name=parent_roles,json=parentRoles,proto3" json:"parent_roles,omitempty"`
Condition *Condition `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"`
// contains filtered or unexported fields
}
func (*RoleDef) ProtoReflect ¶
func (x *RoleDef) ProtoReflect() protoreflect.Message
type RoleDef_builder ¶
type RoleDef_builder struct {
Name string
ParentRoles []string
Condition *Condition
// contains filtered or unexported fields
}
func (RoleDef_builder) Build ¶
func (b0 RoleDef_builder) Build() *RoleDef
type RolePolicy ¶
type RolePolicy struct {
// Types that are valid to be assigned to PolicyType:
//
// *RolePolicy_Role
PolicyType isRolePolicy_PolicyType `protobuf_oneof:"policy_type"`
Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
ParentRoles []string `protobuf:"bytes,5,rep,name=parent_roles,json=parentRoles,proto3" json:"parent_roles,omitempty"`
Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
Rules []*RoleRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"`
// Deprecated: no-op.
//
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
ScopePermissions ScopePermissions `` /* 149-byte string literal not displayed */
Variables *Variables `protobuf:"bytes,7,opt,name=variables,proto3" json:"variables,omitempty"`
Constants *Constants `protobuf:"bytes,8,opt,name=constants,proto3" json:"constants,omitempty"`
// contains filtered or unexported fields
}
func (*RolePolicy) ClearConstants ¶
func (x *RolePolicy) ClearConstants()
func (*RolePolicy) ClearPolicyType ¶
func (x *RolePolicy) ClearPolicyType()
func (*RolePolicy) ClearRole ¶
func (x *RolePolicy) ClearRole()
func (*RolePolicy) ClearVariables ¶
func (x *RolePolicy) ClearVariables()
func (*RolePolicy) GetConstants ¶
func (x *RolePolicy) GetConstants() *Constants
func (*RolePolicy) GetParentRoles ¶
func (x *RolePolicy) GetParentRoles() []string
func (*RolePolicy) GetPolicyType ¶
func (x *RolePolicy) GetPolicyType() isRolePolicy_PolicyType
func (*RolePolicy) GetRole ¶
func (x *RolePolicy) GetRole() string
func (*RolePolicy) GetRules ¶
func (x *RolePolicy) GetRules() []*RoleRule
func (*RolePolicy) GetScope ¶
func (x *RolePolicy) GetScope() string
func (*RolePolicy) GetScopePermissions
deprecated
func (x *RolePolicy) GetScopePermissions() ScopePermissions
Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
func (*RolePolicy) GetVariables ¶
func (x *RolePolicy) GetVariables() *Variables
func (*RolePolicy) GetVersion ¶
func (x *RolePolicy) GetVersion() string
func (*RolePolicy) HasConstants ¶
func (x *RolePolicy) HasConstants() bool
func (*RolePolicy) HasPolicyType ¶
func (x *RolePolicy) HasPolicyType() bool
func (*RolePolicy) HasRole ¶
func (x *RolePolicy) HasRole() bool
func (*RolePolicy) HasVariables ¶
func (x *RolePolicy) HasVariables() bool
func (*RolePolicy) ProtoMessage ¶
func (*RolePolicy) ProtoMessage()
func (*RolePolicy) ProtoReflect ¶
func (x *RolePolicy) ProtoReflect() protoreflect.Message
func (*RolePolicy) Reset ¶
func (x *RolePolicy) Reset()
func (*RolePolicy) SetConstants ¶
func (x *RolePolicy) SetConstants(v *Constants)
func (*RolePolicy) SetParentRoles ¶
func (x *RolePolicy) SetParentRoles(v []string)
func (*RolePolicy) SetRole ¶
func (x *RolePolicy) SetRole(v string)
func (*RolePolicy) SetRules ¶
func (x *RolePolicy) SetRules(v []*RoleRule)
func (*RolePolicy) SetScope ¶
func (x *RolePolicy) SetScope(v string)
func (*RolePolicy) SetScopePermissions
deprecated
func (x *RolePolicy) SetScopePermissions(v ScopePermissions)
Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
func (*RolePolicy) SetVariables ¶
func (x *RolePolicy) SetVariables(v *Variables)
func (*RolePolicy) SetVersion ¶
func (x *RolePolicy) SetVersion(v string)
func (*RolePolicy) String ¶
func (x *RolePolicy) String() string
func (*RolePolicy) WhichPolicyType ¶
func (x *RolePolicy) WhichPolicyType() case_RolePolicy_PolicyType
type RolePolicy_Role ¶
type RolePolicy_Role struct {
Role string `protobuf:"bytes,1,opt,name=role,proto3,oneof"`
}
type RolePolicy_builder ¶
type RolePolicy_builder struct {
// Fields of oneof PolicyType:
Role *string
// -- end of PolicyType
Version string
ParentRoles []string
Scope string
Rules []*RoleRule
// Deprecated: no-op.
//
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
ScopePermissions ScopePermissions
Variables *Variables
Constants *Constants
// contains filtered or unexported fields
}
func (RolePolicy_builder) Build ¶
func (b0 RolePolicy_builder) Build() *RolePolicy
type RoleRule ¶
type RoleRule struct {
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
AllowActions []string `protobuf:"bytes,2,rep,name=allow_actions,json=allowActions,proto3" json:"allow_actions,omitempty"`
Condition *Condition `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Output *Output `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
// contains filtered or unexported fields
}
func (*RoleRule) ProtoReflect ¶
func (x *RoleRule) ProtoReflect() protoreflect.Message
type RoleRule_builder ¶
type RoleRule_builder struct {
Resource string
AllowActions []string
Condition *Condition
Name string
Output *Output
// contains filtered or unexported fields
}
func (RoleRule_builder) Build ¶
func (b0 RoleRule_builder) Build() *RoleRule
type Schemas ¶
type Schemas struct {
PrincipalSchema *Schemas_Schema `protobuf:"bytes,1,opt,name=principal_schema,json=principalSchema,proto3" json:"principal_schema,omitempty"`
ResourceSchema *Schemas_Schema `protobuf:"bytes,2,opt,name=resource_schema,json=resourceSchema,proto3" json:"resource_schema,omitempty"`
// contains filtered or unexported fields
}
func (*Schemas) GetPrincipalSchema ¶
func (x *Schemas) GetPrincipalSchema() *Schemas_Schema
func (*Schemas) GetResourceSchema ¶
func (x *Schemas) GetResourceSchema() *Schemas_Schema
func (*Schemas) ProtoReflect ¶
func (x *Schemas) ProtoReflect() protoreflect.Message
func (*Schemas) SetPrincipalSchema ¶
func (x *Schemas) SetPrincipalSchema(v *Schemas_Schema)
func (*Schemas) SetResourceSchema ¶
func (x *Schemas) SetResourceSchema(v *Schemas_Schema)
type Schemas_IgnoreWhen ¶
type Schemas_IgnoreWhen struct {
Actions []string `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
// contains filtered or unexported fields
}
func (*Schemas_IgnoreWhen) GetActions ¶
func (x *Schemas_IgnoreWhen) GetActions() []string
func (*Schemas_IgnoreWhen) ProtoMessage ¶
func (*Schemas_IgnoreWhen) ProtoMessage()
func (*Schemas_IgnoreWhen) ProtoReflect ¶
func (x *Schemas_IgnoreWhen) ProtoReflect() protoreflect.Message
func (*Schemas_IgnoreWhen) Reset ¶
func (x *Schemas_IgnoreWhen) Reset()
func (*Schemas_IgnoreWhen) SetActions ¶
func (x *Schemas_IgnoreWhen) SetActions(v []string)
func (*Schemas_IgnoreWhen) String ¶
func (x *Schemas_IgnoreWhen) String() string
type Schemas_IgnoreWhen_builder ¶
type Schemas_IgnoreWhen_builder struct {
Actions []string
// contains filtered or unexported fields
}
func (Schemas_IgnoreWhen_builder) Build ¶
func (b0 Schemas_IgnoreWhen_builder) Build() *Schemas_IgnoreWhen
type Schemas_Schema ¶
type Schemas_Schema struct {
Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
IgnoreWhen *Schemas_IgnoreWhen `protobuf:"bytes,2,opt,name=ignore_when,json=ignoreWhen,proto3" json:"ignore_when,omitempty"`
// contains filtered or unexported fields
}
func (*Schemas_Schema) ClearIgnoreWhen ¶
func (x *Schemas_Schema) ClearIgnoreWhen()
func (*Schemas_Schema) GetIgnoreWhen ¶
func (x *Schemas_Schema) GetIgnoreWhen() *Schemas_IgnoreWhen
func (*Schemas_Schema) GetRef ¶
func (x *Schemas_Schema) GetRef() string
func (*Schemas_Schema) HasIgnoreWhen ¶
func (x *Schemas_Schema) HasIgnoreWhen() bool
func (*Schemas_Schema) ProtoMessage ¶
func (*Schemas_Schema) ProtoMessage()
func (*Schemas_Schema) ProtoReflect ¶
func (x *Schemas_Schema) ProtoReflect() protoreflect.Message
func (*Schemas_Schema) Reset ¶
func (x *Schemas_Schema) Reset()
func (*Schemas_Schema) SetIgnoreWhen ¶
func (x *Schemas_Schema) SetIgnoreWhen(v *Schemas_IgnoreWhen)
func (*Schemas_Schema) SetRef ¶
func (x *Schemas_Schema) SetRef(v string)
func (*Schemas_Schema) String ¶
func (x *Schemas_Schema) String() string
type Schemas_Schema_builder ¶
type Schemas_Schema_builder struct {
Ref string
IgnoreWhen *Schemas_IgnoreWhen
// contains filtered or unexported fields
}
func (Schemas_Schema_builder) Build ¶
func (b0 Schemas_Schema_builder) Build() *Schemas_Schema
type Schemas_builder ¶
type Schemas_builder struct {
PrincipalSchema *Schemas_Schema
ResourceSchema *Schemas_Schema
// contains filtered or unexported fields
}
func (Schemas_builder) Build ¶
func (b0 Schemas_builder) Build() *Schemas
type ScopePermissions ¶
type ScopePermissions int32
const ( ScopePermissions_SCOPE_PERMISSIONS_UNSPECIFIED ScopePermissions = 0 ScopePermissions_SCOPE_PERMISSIONS_OVERRIDE_PARENT ScopePermissions = 1 ScopePermissions_SCOPE_PERMISSIONS_REQUIRE_PARENTAL_CONSENT_FOR_ALLOWS ScopePermissions = 2 )
func (ScopePermissions) Descriptor ¶
func (ScopePermissions) Descriptor() protoreflect.EnumDescriptor
func (ScopePermissions) Enum ¶
func (x ScopePermissions) Enum() *ScopePermissions
func (ScopePermissions) Number ¶
func (x ScopePermissions) Number() protoreflect.EnumNumber
func (ScopePermissions) String ¶
func (x ScopePermissions) String() string
func (ScopePermissions) Type ¶
func (ScopePermissions) Type() protoreflect.EnumType
type SourceAttributes ¶
type SourceAttributes struct {
Attributes map[string]*structpb.Value `` /* 147-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*SourceAttributes) GetAttributes ¶
func (x *SourceAttributes) GetAttributes() map[string]*structpb.Value
func (*SourceAttributes) ProtoMessage ¶
func (*SourceAttributes) ProtoMessage()
func (*SourceAttributes) ProtoReflect ¶
func (x *SourceAttributes) ProtoReflect() protoreflect.Message
func (*SourceAttributes) Reset ¶
func (x *SourceAttributes) Reset()
func (*SourceAttributes) SetAttributes ¶
func (x *SourceAttributes) SetAttributes(v map[string]*structpb.Value)
func (*SourceAttributes) String ¶
func (x *SourceAttributes) String() string
type SourceAttributes_builder ¶
type SourceAttributes_builder struct {
Attributes map[string]*structpb.Value
// contains filtered or unexported fields
}
func (SourceAttributes_builder) Build ¶
func (b0 SourceAttributes_builder) Build() *SourceAttributes
type Test ¶
type Test struct {
Name *Test_TestName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Skip bool `protobuf:"varint,3,opt,name=skip,proto3" json:"skip,omitempty"`
SkipReason string `protobuf:"bytes,4,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"`
Input *v11.CheckInput `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"`
Expected map[string]v1.Effect `` /* 173-byte string literal not displayed */
Options *TestOptions `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"`
ExpectedOutputs map[string]*Test_OutputEntries `` /* 180-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Test) GetExpectedOutputs ¶
func (x *Test) GetExpectedOutputs() map[string]*Test_OutputEntries
func (*Test) GetInput ¶
func (x *Test) GetInput() *v11.CheckInput
func (*Test) GetName ¶
func (x *Test) GetName() *Test_TestName
func (*Test) GetOptions ¶
func (x *Test) GetOptions() *TestOptions
func (*Test) ProtoReflect ¶
func (x *Test) ProtoReflect() protoreflect.Message
func (*Test) SetExpectedOutputs ¶
func (x *Test) SetExpectedOutputs(v map[string]*Test_OutputEntries)
func (*Test) SetInput ¶
func (x *Test) SetInput(v *v11.CheckInput)
func (*Test) SetName ¶
func (x *Test) SetName(v *Test_TestName)
func (*Test) SetOptions ¶
func (x *Test) SetOptions(v *TestOptions)
type TestFixture ¶
type TestFixture struct {
// contains filtered or unexported fields
}
func (*TestFixture) ProtoMessage ¶
func (*TestFixture) ProtoMessage()
func (*TestFixture) ProtoReflect ¶
func (x *TestFixture) ProtoReflect() protoreflect.Message
func (*TestFixture) Reset ¶
func (x *TestFixture) Reset()
func (*TestFixture) String ¶
func (x *TestFixture) String() string
type TestFixtureGroup ¶
type TestFixtureGroup struct {
// contains filtered or unexported fields
}
func (*TestFixtureGroup) ProtoMessage ¶
func (*TestFixtureGroup) ProtoMessage()
func (*TestFixtureGroup) ProtoReflect ¶
func (x *TestFixtureGroup) ProtoReflect() protoreflect.Message
func (*TestFixtureGroup) Reset ¶
func (x *TestFixtureGroup) Reset()
func (*TestFixtureGroup) String ¶
func (x *TestFixtureGroup) String() string
type TestFixtureGroup_Principals ¶
type TestFixtureGroup_Principals struct {
Principals []string `protobuf:"bytes,1,rep,name=principals,proto3" json:"principals,omitempty"`
// contains filtered or unexported fields
}
func (*TestFixtureGroup_Principals) GetPrincipals ¶
func (x *TestFixtureGroup_Principals) GetPrincipals() []string
func (*TestFixtureGroup_Principals) ProtoMessage ¶
func (*TestFixtureGroup_Principals) ProtoMessage()
func (*TestFixtureGroup_Principals) ProtoReflect ¶
func (x *TestFixtureGroup_Principals) ProtoReflect() protoreflect.Message
func (*TestFixtureGroup_Principals) Reset ¶
func (x *TestFixtureGroup_Principals) Reset()
func (*TestFixtureGroup_Principals) SetPrincipals ¶
func (x *TestFixtureGroup_Principals) SetPrincipals(v []string)
func (*TestFixtureGroup_Principals) String ¶
func (x *TestFixtureGroup_Principals) String() string
type TestFixtureGroup_Principals_builder ¶
type TestFixtureGroup_Principals_builder struct {
Principals []string
// contains filtered or unexported fields
}
func (TestFixtureGroup_Principals_builder) Build ¶
func (b0 TestFixtureGroup_Principals_builder) Build() *TestFixtureGroup_Principals
type TestFixtureGroup_Resources ¶
type TestFixtureGroup_Resources struct {
Resources []string `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
// contains filtered or unexported fields
}
func (*TestFixtureGroup_Resources) GetResources ¶
func (x *TestFixtureGroup_Resources) GetResources() []string
func (*TestFixtureGroup_Resources) ProtoMessage ¶
func (*TestFixtureGroup_Resources) ProtoMessage()
func (*TestFixtureGroup_Resources) ProtoReflect ¶
func (x *TestFixtureGroup_Resources) ProtoReflect() protoreflect.Message
func (*TestFixtureGroup_Resources) Reset ¶
func (x *TestFixtureGroup_Resources) Reset()
func (*TestFixtureGroup_Resources) SetResources ¶
func (x *TestFixtureGroup_Resources) SetResources(v []string)
func (*TestFixtureGroup_Resources) String ¶
func (x *TestFixtureGroup_Resources) String() string
type TestFixtureGroup_Resources_builder ¶
type TestFixtureGroup_Resources_builder struct {
Resources []string
// contains filtered or unexported fields
}
func (TestFixtureGroup_Resources_builder) Build ¶
func (b0 TestFixtureGroup_Resources_builder) Build() *TestFixtureGroup_Resources
type TestFixtureGroup_builder ¶
type TestFixtureGroup_builder struct {
// contains filtered or unexported fields
}
func (TestFixtureGroup_builder) Build ¶
func (b0 TestFixtureGroup_builder) Build() *TestFixtureGroup
type TestFixture_AuxData ¶
type TestFixture_AuxData struct {
AuxData map[string]*v11.AuxData `` /* 156-byte string literal not displayed */
JsonSchema string `protobuf:"bytes,2,opt,name=json_schema,json=$schema,proto3" json:"json_schema,omitempty"`
// contains filtered or unexported fields
}
func (*TestFixture_AuxData) GetAuxData ¶
func (x *TestFixture_AuxData) GetAuxData() map[string]*v11.AuxData
func (*TestFixture_AuxData) GetJsonSchema ¶
func (x *TestFixture_AuxData) GetJsonSchema() string
func (*TestFixture_AuxData) ProtoMessage ¶
func (*TestFixture_AuxData) ProtoMessage()
func (*TestFixture_AuxData) ProtoReflect ¶
func (x *TestFixture_AuxData) ProtoReflect() protoreflect.Message
func (*TestFixture_AuxData) Reset ¶
func (x *TestFixture_AuxData) Reset()
func (*TestFixture_AuxData) SetAuxData ¶
func (x *TestFixture_AuxData) SetAuxData(v map[string]*v11.AuxData)
func (*TestFixture_AuxData) SetJsonSchema ¶
func (x *TestFixture_AuxData) SetJsonSchema(v string)
func (*TestFixture_AuxData) String ¶
func (x *TestFixture_AuxData) String() string
type TestFixture_AuxData_builder ¶
type TestFixture_AuxData_builder struct {
AuxData map[string]*v11.AuxData
JsonSchema string
// contains filtered or unexported fields
}
func (TestFixture_AuxData_builder) Build ¶
func (b0 TestFixture_AuxData_builder) Build() *TestFixture_AuxData
type TestFixture_Principals ¶
type TestFixture_Principals struct {
Principals map[string]*v11.Principal `` /* 147-byte string literal not displayed */
JsonSchema string `protobuf:"bytes,2,opt,name=json_schema,json=$schema,proto3" json:"json_schema,omitempty"`
PrincipalGroups map[string]*TestFixtureGroup_Principals `` /* 180-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*TestFixture_Principals) GetJsonSchema ¶
func (x *TestFixture_Principals) GetJsonSchema() string
func (*TestFixture_Principals) GetPrincipalGroups ¶
func (x *TestFixture_Principals) GetPrincipalGroups() map[string]*TestFixtureGroup_Principals
func (*TestFixture_Principals) GetPrincipals ¶
func (x *TestFixture_Principals) GetPrincipals() map[string]*v11.Principal
func (*TestFixture_Principals) ProtoMessage ¶
func (*TestFixture_Principals) ProtoMessage()
func (*TestFixture_Principals) ProtoReflect ¶
func (x *TestFixture_Principals) ProtoReflect() protoreflect.Message
func (*TestFixture_Principals) Reset ¶
func (x *TestFixture_Principals) Reset()
func (*TestFixture_Principals) SetJsonSchema ¶
func (x *TestFixture_Principals) SetJsonSchema(v string)
func (*TestFixture_Principals) SetPrincipalGroups ¶
func (x *TestFixture_Principals) SetPrincipalGroups(v map[string]*TestFixtureGroup_Principals)
func (*TestFixture_Principals) SetPrincipals ¶
func (x *TestFixture_Principals) SetPrincipals(v map[string]*v11.Principal)
func (*TestFixture_Principals) String ¶
func (x *TestFixture_Principals) String() string
type TestFixture_Principals_builder ¶
type TestFixture_Principals_builder struct {
Principals map[string]*v11.Principal
JsonSchema string
PrincipalGroups map[string]*TestFixtureGroup_Principals
// contains filtered or unexported fields
}
func (TestFixture_Principals_builder) Build ¶
func (b0 TestFixture_Principals_builder) Build() *TestFixture_Principals
type TestFixture_Resources ¶
type TestFixture_Resources struct {
Resources map[string]*v11.Resource `` /* 145-byte string literal not displayed */
JsonSchema string `protobuf:"bytes,2,opt,name=json_schema,json=$schema,proto3" json:"json_schema,omitempty"`
ResourceGroups map[string]*TestFixtureGroup_Resources `` /* 177-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*TestFixture_Resources) GetJsonSchema ¶
func (x *TestFixture_Resources) GetJsonSchema() string
func (*TestFixture_Resources) GetResourceGroups ¶
func (x *TestFixture_Resources) GetResourceGroups() map[string]*TestFixtureGroup_Resources
func (*TestFixture_Resources) GetResources ¶
func (x *TestFixture_Resources) GetResources() map[string]*v11.Resource
func (*TestFixture_Resources) ProtoMessage ¶
func (*TestFixture_Resources) ProtoMessage()
func (*TestFixture_Resources) ProtoReflect ¶
func (x *TestFixture_Resources) ProtoReflect() protoreflect.Message
func (*TestFixture_Resources) Reset ¶
func (x *TestFixture_Resources) Reset()
func (*TestFixture_Resources) SetJsonSchema ¶
func (x *TestFixture_Resources) SetJsonSchema(v string)
func (*TestFixture_Resources) SetResourceGroups ¶
func (x *TestFixture_Resources) SetResourceGroups(v map[string]*TestFixtureGroup_Resources)
func (*TestFixture_Resources) SetResources ¶
func (x *TestFixture_Resources) SetResources(v map[string]*v11.Resource)
func (*TestFixture_Resources) String ¶
func (x *TestFixture_Resources) String() string
type TestFixture_Resources_builder ¶
type TestFixture_Resources_builder struct {
Resources map[string]*v11.Resource
JsonSchema string
ResourceGroups map[string]*TestFixtureGroup_Resources
// contains filtered or unexported fields
}
func (TestFixture_Resources_builder) Build ¶
func (b0 TestFixture_Resources_builder) Build() *TestFixture_Resources
type TestFixture_builder ¶
type TestFixture_builder struct {
// contains filtered or unexported fields
}
func (TestFixture_builder) Build ¶
func (b0 TestFixture_builder) Build() *TestFixture
type TestOptions ¶
type TestOptions struct {
Now *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=now,proto3" json:"now,omitempty"`
LenientScopeSearch bool `protobuf:"varint,2,opt,name=lenient_scope_search,json=lenientScopeSearch,proto3" json:"lenient_scope_search,omitempty"`
Globals map[string]*structpb.Value `` /* 141-byte string literal not displayed */
DefaultPolicyVersion string `protobuf:"bytes,4,opt,name=default_policy_version,json=defaultPolicyVersion,proto3" json:"default_policy_version,omitempty"`
DefaultScope string `protobuf:"bytes,5,opt,name=default_scope,json=defaultScope,proto3" json:"default_scope,omitempty"`
StrictEvaluation bool `protobuf:"varint,6,opt,name=strict_evaluation,json=strictEvaluation,proto3" json:"strict_evaluation,omitempty"`
// contains filtered or unexported fields
}
func (*TestOptions) ClearNow ¶
func (x *TestOptions) ClearNow()
func (*TestOptions) GetDefaultPolicyVersion ¶
func (x *TestOptions) GetDefaultPolicyVersion() string
func (*TestOptions) GetDefaultScope ¶
func (x *TestOptions) GetDefaultScope() string
func (*TestOptions) GetGlobals ¶
func (x *TestOptions) GetGlobals() map[string]*structpb.Value
func (*TestOptions) GetLenientScopeSearch ¶
func (x *TestOptions) GetLenientScopeSearch() bool
func (*TestOptions) GetNow ¶
func (x *TestOptions) GetNow() *timestamppb.Timestamp
func (*TestOptions) GetStrictEvaluation ¶
func (x *TestOptions) GetStrictEvaluation() bool
func (*TestOptions) HasNow ¶
func (x *TestOptions) HasNow() bool
func (*TestOptions) ProtoMessage ¶
func (*TestOptions) ProtoMessage()
func (*TestOptions) ProtoReflect ¶
func (x *TestOptions) ProtoReflect() protoreflect.Message
func (*TestOptions) Reset ¶
func (x *TestOptions) Reset()
func (*TestOptions) SetDefaultPolicyVersion ¶
func (x *TestOptions) SetDefaultPolicyVersion(v string)
func (*TestOptions) SetDefaultScope ¶
func (x *TestOptions) SetDefaultScope(v string)
func (*TestOptions) SetGlobals ¶
func (x *TestOptions) SetGlobals(v map[string]*structpb.Value)
func (*TestOptions) SetLenientScopeSearch ¶
func (x *TestOptions) SetLenientScopeSearch(v bool)
func (*TestOptions) SetNow ¶
func (x *TestOptions) SetNow(v *timestamppb.Timestamp)
func (*TestOptions) SetStrictEvaluation ¶
func (x *TestOptions) SetStrictEvaluation(v bool)
func (*TestOptions) String ¶
func (x *TestOptions) String() string
type TestOptions_builder ¶
type TestOptions_builder struct {
Now *timestamppb.Timestamp
LenientScopeSearch bool
Globals map[string]*structpb.Value
DefaultPolicyVersion string
DefaultScope string
StrictEvaluation bool
// contains filtered or unexported fields
}
func (TestOptions_builder) Build ¶
func (b0 TestOptions_builder) Build() *TestOptions
type TestResults ¶
type TestResults struct {
Suites []*TestResults_Suite `protobuf:"bytes,1,rep,name=suites,proto3" json:"suites,omitempty"`
Summary *TestResults_Summary `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults) ClearSummary ¶
func (x *TestResults) ClearSummary()
func (*TestResults) GetSuites ¶
func (x *TestResults) GetSuites() []*TestResults_Suite
func (*TestResults) GetSummary ¶
func (x *TestResults) GetSummary() *TestResults_Summary
func (*TestResults) HasSummary ¶
func (x *TestResults) HasSummary() bool
func (*TestResults) ProtoMessage ¶
func (*TestResults) ProtoMessage()
func (*TestResults) ProtoReflect ¶
func (x *TestResults) ProtoReflect() protoreflect.Message
func (*TestResults) Reset ¶
func (x *TestResults) Reset()
func (*TestResults) SetSuites ¶
func (x *TestResults) SetSuites(v []*TestResults_Suite)
func (*TestResults) SetSummary ¶
func (x *TestResults) SetSummary(v *TestResults_Summary)
func (*TestResults) String ¶
func (x *TestResults) String() string
type TestResults_Action ¶
type TestResults_Action struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Details *TestResults_Details `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_Action) ClearDetails ¶
func (x *TestResults_Action) ClearDetails()
func (*TestResults_Action) GetDetails ¶
func (x *TestResults_Action) GetDetails() *TestResults_Details
func (*TestResults_Action) GetName ¶
func (x *TestResults_Action) GetName() string
func (*TestResults_Action) HasDetails ¶
func (x *TestResults_Action) HasDetails() bool
func (*TestResults_Action) ProtoMessage ¶
func (*TestResults_Action) ProtoMessage()
func (*TestResults_Action) ProtoReflect ¶
func (x *TestResults_Action) ProtoReflect() protoreflect.Message
func (*TestResults_Action) Reset ¶
func (x *TestResults_Action) Reset()
func (*TestResults_Action) SetDetails ¶
func (x *TestResults_Action) SetDetails(v *TestResults_Details)
func (*TestResults_Action) SetName ¶
func (x *TestResults_Action) SetName(v string)
func (*TestResults_Action) String ¶
func (x *TestResults_Action) String() string
type TestResults_Action_builder ¶
type TestResults_Action_builder struct {
Name string
Details *TestResults_Details
// contains filtered or unexported fields
}
func (TestResults_Action_builder) Build ¶
func (b0 TestResults_Action_builder) Build() *TestResults_Action
type TestResults_Details ¶
type TestResults_Details struct {
Result TestResults_Result `protobuf:"varint,1,opt,name=result,proto3,enum=cerbos.policy.v1.TestResults_Result" json:"result,omitempty"`
// Types that are valid to be assigned to Outcome:
//
// *TestResults_Details_Failure
// *TestResults_Details_Error
// *TestResults_Details_Success
// *TestResults_Details_SkipReason
Outcome isTestResults_Details_Outcome `protobuf_oneof:"outcome"`
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
EngineTrace []*v11.Trace `protobuf:"bytes,4,rep,name=engine_trace,json=engineTrace,proto3" json:"engine_trace,omitempty"`
EngineTraceBatch *v11.TraceBatch `protobuf:"bytes,7,opt,name=engine_trace_batch,json=engineTraceBatch,proto3" json:"engine_trace_batch,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_Details) ClearEngineTraceBatch ¶
func (x *TestResults_Details) ClearEngineTraceBatch()
func (*TestResults_Details) ClearError ¶
func (x *TestResults_Details) ClearError()
func (*TestResults_Details) ClearFailure ¶
func (x *TestResults_Details) ClearFailure()
func (*TestResults_Details) ClearOutcome ¶
func (x *TestResults_Details) ClearOutcome()
func (*TestResults_Details) ClearSkipReason ¶
func (x *TestResults_Details) ClearSkipReason()
func (*TestResults_Details) ClearSuccess ¶
func (x *TestResults_Details) ClearSuccess()
func (*TestResults_Details) GetEngineTrace
deprecated
func (x *TestResults_Details) GetEngineTrace() []*v11.Trace
Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
func (*TestResults_Details) GetEngineTraceBatch ¶
func (x *TestResults_Details) GetEngineTraceBatch() *v11.TraceBatch
func (*TestResults_Details) GetError ¶
func (x *TestResults_Details) GetError() string
func (*TestResults_Details) GetFailure ¶
func (x *TestResults_Details) GetFailure() *TestResults_Failure
func (*TestResults_Details) GetOutcome ¶
func (x *TestResults_Details) GetOutcome() isTestResults_Details_Outcome
func (*TestResults_Details) GetResult ¶
func (x *TestResults_Details) GetResult() TestResults_Result
func (*TestResults_Details) GetSkipReason ¶
func (x *TestResults_Details) GetSkipReason() string
func (*TestResults_Details) GetSuccess ¶
func (x *TestResults_Details) GetSuccess() *TestResults_Success
func (*TestResults_Details) HasEngineTraceBatch ¶
func (x *TestResults_Details) HasEngineTraceBatch() bool
func (*TestResults_Details) HasError ¶
func (x *TestResults_Details) HasError() bool
func (*TestResults_Details) HasFailure ¶
func (x *TestResults_Details) HasFailure() bool
func (*TestResults_Details) HasOutcome ¶
func (x *TestResults_Details) HasOutcome() bool
func (*TestResults_Details) HasSkipReason ¶
func (x *TestResults_Details) HasSkipReason() bool
func (*TestResults_Details) HasSuccess ¶
func (x *TestResults_Details) HasSuccess() bool
func (*TestResults_Details) ProtoMessage ¶
func (*TestResults_Details) ProtoMessage()
func (*TestResults_Details) ProtoReflect ¶
func (x *TestResults_Details) ProtoReflect() protoreflect.Message
func (*TestResults_Details) Reset ¶
func (x *TestResults_Details) Reset()
func (*TestResults_Details) SetEngineTrace
deprecated
func (x *TestResults_Details) SetEngineTrace(v []*v11.Trace)
Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
func (*TestResults_Details) SetEngineTraceBatch ¶
func (x *TestResults_Details) SetEngineTraceBatch(v *v11.TraceBatch)
func (*TestResults_Details) SetError ¶
func (x *TestResults_Details) SetError(v string)
func (*TestResults_Details) SetFailure ¶
func (x *TestResults_Details) SetFailure(v *TestResults_Failure)
func (*TestResults_Details) SetResult ¶
func (x *TestResults_Details) SetResult(v TestResults_Result)
func (*TestResults_Details) SetSkipReason ¶
func (x *TestResults_Details) SetSkipReason(v string)
func (*TestResults_Details) SetSuccess ¶
func (x *TestResults_Details) SetSuccess(v *TestResults_Success)
func (*TestResults_Details) String ¶
func (x *TestResults_Details) String() string
func (*TestResults_Details) WhichOutcome ¶
func (x *TestResults_Details) WhichOutcome() case_TestResults_Details_Outcome
type TestResults_Details_Error ¶
type TestResults_Details_Error struct {
Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}
type TestResults_Details_Failure ¶
type TestResults_Details_Failure struct {
Failure *TestResults_Failure `protobuf:"bytes,2,opt,name=failure,proto3,oneof"`
}
type TestResults_Details_SkipReason ¶
type TestResults_Details_SkipReason struct {
SkipReason string `protobuf:"bytes,6,opt,name=skip_reason,json=skipReason,proto3,oneof"`
}
type TestResults_Details_Success ¶
type TestResults_Details_Success struct {
Success *TestResults_Success `protobuf:"bytes,5,opt,name=success,proto3,oneof"`
}
type TestResults_Details_builder ¶
type TestResults_Details_builder struct {
Result TestResults_Result
// Fields of oneof Outcome:
Failure *TestResults_Failure
Error *string
Success *TestResults_Success
SkipReason *string
// -- end of Outcome
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
EngineTrace []*v11.Trace
EngineTraceBatch *v11.TraceBatch
// contains filtered or unexported fields
}
func (TestResults_Details_builder) Build ¶
func (b0 TestResults_Details_builder) Build() *TestResults_Details
type TestResults_Failure ¶
type TestResults_Failure struct {
Expected v1.Effect `protobuf:"varint,1,opt,name=expected,proto3,enum=cerbos.effect.v1.Effect" json:"expected,omitempty"`
Actual v1.Effect `protobuf:"varint,2,opt,name=actual,proto3,enum=cerbos.effect.v1.Effect" json:"actual,omitempty"`
Outputs []*TestResults_OutputFailure `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_Failure) GetActual ¶
func (x *TestResults_Failure) GetActual() v1.Effect
func (*TestResults_Failure) GetExpected ¶
func (x *TestResults_Failure) GetExpected() v1.Effect
func (*TestResults_Failure) GetOutputs ¶
func (x *TestResults_Failure) GetOutputs() []*TestResults_OutputFailure
func (*TestResults_Failure) ProtoMessage ¶
func (*TestResults_Failure) ProtoMessage()
func (*TestResults_Failure) ProtoReflect ¶
func (x *TestResults_Failure) ProtoReflect() protoreflect.Message
func (*TestResults_Failure) Reset ¶
func (x *TestResults_Failure) Reset()
func (*TestResults_Failure) SetActual ¶
func (x *TestResults_Failure) SetActual(v v1.Effect)
func (*TestResults_Failure) SetExpected ¶
func (x *TestResults_Failure) SetExpected(v v1.Effect)
func (*TestResults_Failure) SetOutputs ¶
func (x *TestResults_Failure) SetOutputs(v []*TestResults_OutputFailure)
func (*TestResults_Failure) String ¶
func (x *TestResults_Failure) String() string
type TestResults_Failure_builder ¶
type TestResults_Failure_builder struct {
Expected v1.Effect
Actual v1.Effect
Outputs []*TestResults_OutputFailure
// contains filtered or unexported fields
}
func (TestResults_Failure_builder) Build ¶
func (b0 TestResults_Failure_builder) Build() *TestResults_Failure
type TestResults_OutputFailure ¶
type TestResults_OutputFailure struct {
Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
// Types that are valid to be assigned to Outcome:
//
// *TestResults_OutputFailure_Mismatched
// *TestResults_OutputFailure_Missing
// *TestResults_OutputFailure_Errored
Outcome isTestResults_OutputFailure_Outcome `protobuf_oneof:"outcome"`
// contains filtered or unexported fields
}
func (*TestResults_OutputFailure) ClearErrored ¶
func (x *TestResults_OutputFailure) ClearErrored()
func (*TestResults_OutputFailure) ClearMismatched ¶
func (x *TestResults_OutputFailure) ClearMismatched()
func (*TestResults_OutputFailure) ClearMissing ¶
func (x *TestResults_OutputFailure) ClearMissing()
func (*TestResults_OutputFailure) ClearOutcome ¶
func (x *TestResults_OutputFailure) ClearOutcome()
func (*TestResults_OutputFailure) GetErrored ¶
func (x *TestResults_OutputFailure) GetErrored() *TestResults_OutputFailure_EvaluationError
func (*TestResults_OutputFailure) GetMismatched ¶
func (x *TestResults_OutputFailure) GetMismatched() *TestResults_OutputFailure_MismatchedValue
func (*TestResults_OutputFailure) GetMissing ¶
func (x *TestResults_OutputFailure) GetMissing() *TestResults_OutputFailure_MissingValue
func (*TestResults_OutputFailure) GetOutcome ¶
func (x *TestResults_OutputFailure) GetOutcome() isTestResults_OutputFailure_Outcome
func (*TestResults_OutputFailure) GetSrc ¶
func (x *TestResults_OutputFailure) GetSrc() string
func (*TestResults_OutputFailure) HasErrored ¶
func (x *TestResults_OutputFailure) HasErrored() bool
func (*TestResults_OutputFailure) HasMismatched ¶
func (x *TestResults_OutputFailure) HasMismatched() bool
func (*TestResults_OutputFailure) HasMissing ¶
func (x *TestResults_OutputFailure) HasMissing() bool
func (*TestResults_OutputFailure) HasOutcome ¶
func (x *TestResults_OutputFailure) HasOutcome() bool
func (*TestResults_OutputFailure) ProtoMessage ¶
func (*TestResults_OutputFailure) ProtoMessage()
func (*TestResults_OutputFailure) ProtoReflect ¶
func (x *TestResults_OutputFailure) ProtoReflect() protoreflect.Message
func (*TestResults_OutputFailure) Reset ¶
func (x *TestResults_OutputFailure) Reset()
func (*TestResults_OutputFailure) SetErrored ¶
func (x *TestResults_OutputFailure) SetErrored(v *TestResults_OutputFailure_EvaluationError)
func (*TestResults_OutputFailure) SetMismatched ¶
func (x *TestResults_OutputFailure) SetMismatched(v *TestResults_OutputFailure_MismatchedValue)
func (*TestResults_OutputFailure) SetMissing ¶
func (x *TestResults_OutputFailure) SetMissing(v *TestResults_OutputFailure_MissingValue)
func (*TestResults_OutputFailure) SetSrc ¶
func (x *TestResults_OutputFailure) SetSrc(v string)
func (*TestResults_OutputFailure) String ¶
func (x *TestResults_OutputFailure) String() string
func (*TestResults_OutputFailure) WhichOutcome ¶
func (x *TestResults_OutputFailure) WhichOutcome() case_TestResults_OutputFailure_Outcome
type TestResults_OutputFailure_Errored ¶
type TestResults_OutputFailure_Errored struct {
Errored *TestResults_OutputFailure_EvaluationError `protobuf:"bytes,4,opt,name=errored,proto3,oneof"`
}
type TestResults_OutputFailure_EvaluationError ¶
type TestResults_OutputFailure_EvaluationError struct {
Expected *structpb.Value `protobuf:"bytes,1,opt,name=expected,proto3" json:"expected,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_OutputFailure_EvaluationError) ClearExpected ¶
func (x *TestResults_OutputFailure_EvaluationError) ClearExpected()
func (*TestResults_OutputFailure_EvaluationError) GetError ¶
func (x *TestResults_OutputFailure_EvaluationError) GetError() string
func (*TestResults_OutputFailure_EvaluationError) GetExpected ¶
func (x *TestResults_OutputFailure_EvaluationError) GetExpected() *structpb.Value
func (*TestResults_OutputFailure_EvaluationError) HasExpected ¶
func (x *TestResults_OutputFailure_EvaluationError) HasExpected() bool
func (*TestResults_OutputFailure_EvaluationError) ProtoMessage ¶
func (*TestResults_OutputFailure_EvaluationError) ProtoMessage()
func (*TestResults_OutputFailure_EvaluationError) ProtoReflect ¶
func (x *TestResults_OutputFailure_EvaluationError) ProtoReflect() protoreflect.Message
func (*TestResults_OutputFailure_EvaluationError) Reset ¶
func (x *TestResults_OutputFailure_EvaluationError) Reset()
func (*TestResults_OutputFailure_EvaluationError) SetError ¶
func (x *TestResults_OutputFailure_EvaluationError) SetError(v string)
func (*TestResults_OutputFailure_EvaluationError) SetExpected ¶
func (x *TestResults_OutputFailure_EvaluationError) SetExpected(v *structpb.Value)
func (*TestResults_OutputFailure_EvaluationError) String ¶
func (x *TestResults_OutputFailure_EvaluationError) String() string
type TestResults_OutputFailure_EvaluationError_builder ¶
type TestResults_OutputFailure_EvaluationError_builder struct {
Expected *structpb.Value
Error string
// contains filtered or unexported fields
}
func (TestResults_OutputFailure_EvaluationError_builder) Build ¶
type TestResults_OutputFailure_Mismatched ¶
type TestResults_OutputFailure_Mismatched struct {
Mismatched *TestResults_OutputFailure_MismatchedValue `protobuf:"bytes,2,opt,name=mismatched,proto3,oneof"`
}
type TestResults_OutputFailure_MismatchedValue ¶
type TestResults_OutputFailure_MismatchedValue struct {
Expected *structpb.Value `protobuf:"bytes,1,opt,name=expected,proto3" json:"expected,omitempty"`
Actual *structpb.Value `protobuf:"bytes,2,opt,name=actual,proto3" json:"actual,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_OutputFailure_MismatchedValue) ClearActual ¶
func (x *TestResults_OutputFailure_MismatchedValue) ClearActual()
func (*TestResults_OutputFailure_MismatchedValue) ClearExpected ¶
func (x *TestResults_OutputFailure_MismatchedValue) ClearExpected()
func (*TestResults_OutputFailure_MismatchedValue) GetActual ¶
func (x *TestResults_OutputFailure_MismatchedValue) GetActual() *structpb.Value
func (*TestResults_OutputFailure_MismatchedValue) GetExpected ¶
func (x *TestResults_OutputFailure_MismatchedValue) GetExpected() *structpb.Value
func (*TestResults_OutputFailure_MismatchedValue) HasActual ¶
func (x *TestResults_OutputFailure_MismatchedValue) HasActual() bool
func (*TestResults_OutputFailure_MismatchedValue) HasExpected ¶
func (x *TestResults_OutputFailure_MismatchedValue) HasExpected() bool
func (*TestResults_OutputFailure_MismatchedValue) ProtoMessage ¶
func (*TestResults_OutputFailure_MismatchedValue) ProtoMessage()
func (*TestResults_OutputFailure_MismatchedValue) ProtoReflect ¶
func (x *TestResults_OutputFailure_MismatchedValue) ProtoReflect() protoreflect.Message
func (*TestResults_OutputFailure_MismatchedValue) Reset ¶
func (x *TestResults_OutputFailure_MismatchedValue) Reset()
func (*TestResults_OutputFailure_MismatchedValue) SetActual ¶
func (x *TestResults_OutputFailure_MismatchedValue) SetActual(v *structpb.Value)
func (*TestResults_OutputFailure_MismatchedValue) SetExpected ¶
func (x *TestResults_OutputFailure_MismatchedValue) SetExpected(v *structpb.Value)
func (*TestResults_OutputFailure_MismatchedValue) String ¶
func (x *TestResults_OutputFailure_MismatchedValue) String() string
type TestResults_OutputFailure_MismatchedValue_builder ¶
type TestResults_OutputFailure_MismatchedValue_builder struct {
Expected *structpb.Value
Actual *structpb.Value
// contains filtered or unexported fields
}
func (TestResults_OutputFailure_MismatchedValue_builder) Build ¶
type TestResults_OutputFailure_Missing ¶
type TestResults_OutputFailure_Missing struct {
Missing *TestResults_OutputFailure_MissingValue `protobuf:"bytes,3,opt,name=missing,proto3,oneof"`
}
type TestResults_OutputFailure_MissingValue ¶
type TestResults_OutputFailure_MissingValue struct {
Expected *structpb.Value `protobuf:"bytes,1,opt,name=expected,proto3" json:"expected,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_OutputFailure_MissingValue) ClearExpected ¶
func (x *TestResults_OutputFailure_MissingValue) ClearExpected()
func (*TestResults_OutputFailure_MissingValue) GetExpected ¶
func (x *TestResults_OutputFailure_MissingValue) GetExpected() *structpb.Value
func (*TestResults_OutputFailure_MissingValue) HasExpected ¶
func (x *TestResults_OutputFailure_MissingValue) HasExpected() bool
func (*TestResults_OutputFailure_MissingValue) ProtoMessage ¶
func (*TestResults_OutputFailure_MissingValue) ProtoMessage()
func (*TestResults_OutputFailure_MissingValue) ProtoReflect ¶
func (x *TestResults_OutputFailure_MissingValue) ProtoReflect() protoreflect.Message
func (*TestResults_OutputFailure_MissingValue) Reset ¶
func (x *TestResults_OutputFailure_MissingValue) Reset()
func (*TestResults_OutputFailure_MissingValue) SetExpected ¶
func (x *TestResults_OutputFailure_MissingValue) SetExpected(v *structpb.Value)
func (*TestResults_OutputFailure_MissingValue) String ¶
func (x *TestResults_OutputFailure_MissingValue) String() string
type TestResults_OutputFailure_MissingValue_builder ¶
type TestResults_OutputFailure_MissingValue_builder struct {
Expected *structpb.Value
// contains filtered or unexported fields
}
func (TestResults_OutputFailure_MissingValue_builder) Build ¶
type TestResults_OutputFailure_builder ¶
type TestResults_OutputFailure_builder struct {
Src string
// Fields of oneof Outcome:
Mismatched *TestResults_OutputFailure_MismatchedValue
Missing *TestResults_OutputFailure_MissingValue
Errored *TestResults_OutputFailure_EvaluationError
// contains filtered or unexported fields
}
func (TestResults_OutputFailure_builder) Build ¶
func (b0 TestResults_OutputFailure_builder) Build() *TestResults_OutputFailure
type TestResults_Principal ¶
type TestResults_Principal struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Resources []*TestResults_Resource `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_Principal) GetName ¶
func (x *TestResults_Principal) GetName() string
func (*TestResults_Principal) GetResources ¶
func (x *TestResults_Principal) GetResources() []*TestResults_Resource
func (*TestResults_Principal) ProtoMessage ¶
func (*TestResults_Principal) ProtoMessage()
func (*TestResults_Principal) ProtoReflect ¶
func (x *TestResults_Principal) ProtoReflect() protoreflect.Message
func (*TestResults_Principal) Reset ¶
func (x *TestResults_Principal) Reset()
func (*TestResults_Principal) SetName ¶
func (x *TestResults_Principal) SetName(v string)
func (*TestResults_Principal) SetResources ¶
func (x *TestResults_Principal) SetResources(v []*TestResults_Resource)
func (*TestResults_Principal) String ¶
func (x *TestResults_Principal) String() string
type TestResults_Principal_builder ¶
type TestResults_Principal_builder struct {
Name string
Resources []*TestResults_Resource
// contains filtered or unexported fields
}
func (TestResults_Principal_builder) Build ¶
func (b0 TestResults_Principal_builder) Build() *TestResults_Principal
type TestResults_Resource ¶
type TestResults_Resource struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Actions []*TestResults_Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_Resource) GetActions ¶
func (x *TestResults_Resource) GetActions() []*TestResults_Action
func (*TestResults_Resource) GetName ¶
func (x *TestResults_Resource) GetName() string
func (*TestResults_Resource) ProtoMessage ¶
func (*TestResults_Resource) ProtoMessage()
func (*TestResults_Resource) ProtoReflect ¶
func (x *TestResults_Resource) ProtoReflect() protoreflect.Message
func (*TestResults_Resource) Reset ¶
func (x *TestResults_Resource) Reset()
func (*TestResults_Resource) SetActions ¶
func (x *TestResults_Resource) SetActions(v []*TestResults_Action)
func (*TestResults_Resource) SetName ¶
func (x *TestResults_Resource) SetName(v string)
func (*TestResults_Resource) String ¶
func (x *TestResults_Resource) String() string
type TestResults_Resource_builder ¶
type TestResults_Resource_builder struct {
Name string
Actions []*TestResults_Action
// contains filtered or unexported fields
}
func (TestResults_Resource_builder) Build ¶
func (b0 TestResults_Resource_builder) Build() *TestResults_Resource
type TestResults_Result ¶
type TestResults_Result int32
const ( TestResults_RESULT_UNSPECIFIED TestResults_Result = 0 TestResults_RESULT_SKIPPED TestResults_Result = 1 TestResults_RESULT_PASSED TestResults_Result = 2 TestResults_RESULT_FAILED TestResults_Result = 3 TestResults_RESULT_ERRORED TestResults_Result = 4 )
func (TestResults_Result) Descriptor ¶
func (TestResults_Result) Descriptor() protoreflect.EnumDescriptor
func (TestResults_Result) Enum ¶
func (x TestResults_Result) Enum() *TestResults_Result
func (TestResults_Result) Number ¶
func (x TestResults_Result) Number() protoreflect.EnumNumber
func (TestResults_Result) String ¶
func (x TestResults_Result) String() string
func (TestResults_Result) Type ¶
func (TestResults_Result) Type() protoreflect.EnumType
type TestResults_Success ¶
type TestResults_Success struct {
Effect v1.Effect `protobuf:"varint,1,opt,name=effect,proto3,enum=cerbos.effect.v1.Effect" json:"effect,omitempty"`
Outputs []*v11.OutputEntry `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_Success) GetEffect ¶
func (x *TestResults_Success) GetEffect() v1.Effect
func (*TestResults_Success) GetOutputs ¶
func (x *TestResults_Success) GetOutputs() []*v11.OutputEntry
func (*TestResults_Success) ProtoMessage ¶
func (*TestResults_Success) ProtoMessage()
func (*TestResults_Success) ProtoReflect ¶
func (x *TestResults_Success) ProtoReflect() protoreflect.Message
func (*TestResults_Success) Reset ¶
func (x *TestResults_Success) Reset()
func (*TestResults_Success) SetEffect ¶
func (x *TestResults_Success) SetEffect(v v1.Effect)
func (*TestResults_Success) SetOutputs ¶
func (x *TestResults_Success) SetOutputs(v []*v11.OutputEntry)
func (*TestResults_Success) String ¶
func (x *TestResults_Success) String() string
type TestResults_Success_builder ¶
type TestResults_Success_builder struct {
Effect v1.Effect
Outputs []*v11.OutputEntry
// contains filtered or unexported fields
}
func (TestResults_Success_builder) Build ¶
func (b0 TestResults_Success_builder) Build() *TestResults_Success
type TestResults_Suite ¶
type TestResults_Suite struct {
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
Principals []*TestResults_Principal `protobuf:"bytes,3,rep,name=principals,proto3" json:"principals,omitempty"`
Summary *TestResults_Summary `protobuf:"bytes,4,opt,name=summary,proto3" json:"summary,omitempty"`
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
TestCases []*TestResults_TestCase `protobuf:"bytes,6,rep,name=test_cases,json=testCases,proto3" json:"test_cases,omitempty"`
Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
SkipReason string `protobuf:"bytes,8,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_Suite) ClearSummary ¶
func (x *TestResults_Suite) ClearSummary()
func (*TestResults_Suite) GetDescription ¶
func (x *TestResults_Suite) GetDescription() string
func (*TestResults_Suite) GetError ¶
func (x *TestResults_Suite) GetError() string
func (*TestResults_Suite) GetFile ¶
func (x *TestResults_Suite) GetFile() string
func (*TestResults_Suite) GetName ¶
func (x *TestResults_Suite) GetName() string
func (*TestResults_Suite) GetPrincipals
deprecated
func (x *TestResults_Suite) GetPrincipals() []*TestResults_Principal
Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
func (*TestResults_Suite) GetSkipReason ¶
func (x *TestResults_Suite) GetSkipReason() string
func (*TestResults_Suite) GetSummary ¶
func (x *TestResults_Suite) GetSummary() *TestResults_Summary
func (*TestResults_Suite) GetTestCases ¶
func (x *TestResults_Suite) GetTestCases() []*TestResults_TestCase
func (*TestResults_Suite) HasSummary ¶
func (x *TestResults_Suite) HasSummary() bool
func (*TestResults_Suite) ProtoMessage ¶
func (*TestResults_Suite) ProtoMessage()
func (*TestResults_Suite) ProtoReflect ¶
func (x *TestResults_Suite) ProtoReflect() protoreflect.Message
func (*TestResults_Suite) Reset ¶
func (x *TestResults_Suite) Reset()
func (*TestResults_Suite) SetDescription ¶
func (x *TestResults_Suite) SetDescription(v string)
func (*TestResults_Suite) SetError ¶
func (x *TestResults_Suite) SetError(v string)
func (*TestResults_Suite) SetFile ¶
func (x *TestResults_Suite) SetFile(v string)
func (*TestResults_Suite) SetName ¶
func (x *TestResults_Suite) SetName(v string)
func (*TestResults_Suite) SetPrincipals
deprecated
func (x *TestResults_Suite) SetPrincipals(v []*TestResults_Principal)
Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
func (*TestResults_Suite) SetSkipReason ¶
func (x *TestResults_Suite) SetSkipReason(v string)
func (*TestResults_Suite) SetSummary ¶
func (x *TestResults_Suite) SetSummary(v *TestResults_Summary)
func (*TestResults_Suite) SetTestCases ¶
func (x *TestResults_Suite) SetTestCases(v []*TestResults_TestCase)
func (*TestResults_Suite) String ¶
func (x *TestResults_Suite) String() string
type TestResults_Suite_builder ¶
type TestResults_Suite_builder struct {
File string
Name string
// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
Principals []*TestResults_Principal
Summary *TestResults_Summary
Error string
TestCases []*TestResults_TestCase
Description string
SkipReason string
// contains filtered or unexported fields
}
func (TestResults_Suite_builder) Build ¶
func (b0 TestResults_Suite_builder) Build() *TestResults_Suite
type TestResults_Summary ¶
type TestResults_Summary struct {
OverallResult TestResults_Result `` /* 142-byte string literal not displayed */
TestsCount uint32 `protobuf:"varint,2,opt,name=tests_count,json=testsCount,proto3" json:"tests_count,omitempty"`
ResultCounts []*TestResults_Tally `protobuf:"bytes,3,rep,name=result_counts,json=resultCounts,proto3" json:"result_counts,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_Summary) GetOverallResult ¶
func (x *TestResults_Summary) GetOverallResult() TestResults_Result
func (*TestResults_Summary) GetResultCounts ¶
func (x *TestResults_Summary) GetResultCounts() []*TestResults_Tally
func (*TestResults_Summary) GetTestsCount ¶
func (x *TestResults_Summary) GetTestsCount() uint32
func (*TestResults_Summary) ProtoMessage ¶
func (*TestResults_Summary) ProtoMessage()
func (*TestResults_Summary) ProtoReflect ¶
func (x *TestResults_Summary) ProtoReflect() protoreflect.Message
func (*TestResults_Summary) Reset ¶
func (x *TestResults_Summary) Reset()
func (*TestResults_Summary) SetOverallResult ¶
func (x *TestResults_Summary) SetOverallResult(v TestResults_Result)
func (*TestResults_Summary) SetResultCounts ¶
func (x *TestResults_Summary) SetResultCounts(v []*TestResults_Tally)
func (*TestResults_Summary) SetTestsCount ¶
func (x *TestResults_Summary) SetTestsCount(v uint32)
func (*TestResults_Summary) String ¶
func (x *TestResults_Summary) String() string
type TestResults_Summary_builder ¶
type TestResults_Summary_builder struct {
OverallResult TestResults_Result
TestsCount uint32
ResultCounts []*TestResults_Tally
// contains filtered or unexported fields
}
func (TestResults_Summary_builder) Build ¶
func (b0 TestResults_Summary_builder) Build() *TestResults_Summary
type TestResults_Tally ¶
type TestResults_Tally struct {
Result TestResults_Result `protobuf:"varint,1,opt,name=result,proto3,enum=cerbos.policy.v1.TestResults_Result" json:"result,omitempty"`
Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_Tally) GetCount ¶
func (x *TestResults_Tally) GetCount() uint32
func (*TestResults_Tally) GetResult ¶
func (x *TestResults_Tally) GetResult() TestResults_Result
func (*TestResults_Tally) ProtoMessage ¶
func (*TestResults_Tally) ProtoMessage()
func (*TestResults_Tally) ProtoReflect ¶
func (x *TestResults_Tally) ProtoReflect() protoreflect.Message
func (*TestResults_Tally) Reset ¶
func (x *TestResults_Tally) Reset()
func (*TestResults_Tally) SetCount ¶
func (x *TestResults_Tally) SetCount(v uint32)
func (*TestResults_Tally) SetResult ¶
func (x *TestResults_Tally) SetResult(v TestResults_Result)
func (*TestResults_Tally) String ¶
func (x *TestResults_Tally) String() string
type TestResults_Tally_builder ¶
type TestResults_Tally_builder struct {
Result TestResults_Result
Count uint32
// contains filtered or unexported fields
}
func (TestResults_Tally_builder) Build ¶
func (b0 TestResults_Tally_builder) Build() *TestResults_Tally
type TestResults_TestCase ¶
type TestResults_TestCase struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Principals []*TestResults_Principal `protobuf:"bytes,2,rep,name=principals,proto3" json:"principals,omitempty"`
// contains filtered or unexported fields
}
func (*TestResults_TestCase) GetName ¶
func (x *TestResults_TestCase) GetName() string
func (*TestResults_TestCase) GetPrincipals ¶
func (x *TestResults_TestCase) GetPrincipals() []*TestResults_Principal
func (*TestResults_TestCase) ProtoMessage ¶
func (*TestResults_TestCase) ProtoMessage()
func (*TestResults_TestCase) ProtoReflect ¶
func (x *TestResults_TestCase) ProtoReflect() protoreflect.Message
func (*TestResults_TestCase) Reset ¶
func (x *TestResults_TestCase) Reset()
func (*TestResults_TestCase) SetName ¶
func (x *TestResults_TestCase) SetName(v string)
func (*TestResults_TestCase) SetPrincipals ¶
func (x *TestResults_TestCase) SetPrincipals(v []*TestResults_Principal)
func (*TestResults_TestCase) String ¶
func (x *TestResults_TestCase) String() string
type TestResults_TestCase_builder ¶
type TestResults_TestCase_builder struct {
Name string
Principals []*TestResults_Principal
// contains filtered or unexported fields
}
func (TestResults_TestCase_builder) Build ¶
func (b0 TestResults_TestCase_builder) Build() *TestResults_TestCase
type TestResults_builder ¶
type TestResults_builder struct {
Suites []*TestResults_Suite
Summary *TestResults_Summary
// contains filtered or unexported fields
}
func (TestResults_builder) Build ¶
func (b0 TestResults_builder) Build() *TestResults
type TestSuite ¶
type TestSuite struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Skip bool `protobuf:"varint,3,opt,name=skip,proto3" json:"skip,omitempty"`
SkipReason string `protobuf:"bytes,4,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"`
Tests []*TestTable `protobuf:"bytes,5,rep,name=tests,proto3" json:"tests,omitempty"`
Principals map[string]*v11.Principal `` /* 147-byte string literal not displayed */
Resources map[string]*v11.Resource `` /* 145-byte string literal not displayed */
AuxData map[string]*v11.AuxData `` /* 156-byte string literal not displayed */
Options *TestOptions `protobuf:"bytes,9,opt,name=options,proto3" json:"options,omitempty"`
JsonSchema string `protobuf:"bytes,10,opt,name=json_schema,json=$schema,proto3" json:"json_schema,omitempty"`
PrincipalGroups map[string]*TestFixtureGroup_Principals `` /* 181-byte string literal not displayed */
ResourceGroups map[string]*TestFixtureGroup_Resources `` /* 178-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*TestSuite) GetOptions ¶
func (x *TestSuite) GetOptions() *TestOptions
func (*TestSuite) GetPrincipalGroups ¶
func (x *TestSuite) GetPrincipalGroups() map[string]*TestFixtureGroup_Principals
func (*TestSuite) GetResourceGroups ¶
func (x *TestSuite) GetResourceGroups() map[string]*TestFixtureGroup_Resources
func (*TestSuite) ProtoReflect ¶
func (x *TestSuite) ProtoReflect() protoreflect.Message
func (*TestSuite) SetOptions ¶
func (x *TestSuite) SetOptions(v *TestOptions)
func (*TestSuite) SetPrincipalGroups ¶
func (x *TestSuite) SetPrincipalGroups(v map[string]*TestFixtureGroup_Principals)
func (*TestSuite) SetResourceGroups ¶
func (x *TestSuite) SetResourceGroups(v map[string]*TestFixtureGroup_Resources)
type TestSuite_builder ¶
type TestSuite_builder struct {
Name string
Description string
Skip bool
SkipReason string
Tests []*TestTable
Principals map[string]*v11.Principal
Resources map[string]*v11.Resource
AuxData map[string]*v11.AuxData
Options *TestOptions
JsonSchema string
PrincipalGroups map[string]*TestFixtureGroup_Principals
ResourceGroups map[string]*TestFixtureGroup_Resources
// contains filtered or unexported fields
}
func (TestSuite_builder) Build ¶
func (b0 TestSuite_builder) Build() *TestSuite
type TestTable ¶
type TestTable struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Skip bool `protobuf:"varint,3,opt,name=skip,proto3" json:"skip,omitempty"`
SkipReason string `protobuf:"bytes,4,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"`
Input *TestTable_Input `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"`
Expected []*TestTable_Expectation `protobuf:"bytes,6,rep,name=expected,proto3" json:"expected,omitempty"`
Options *TestOptions `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
func (*TestTable) GetExpected ¶
func (x *TestTable) GetExpected() []*TestTable_Expectation
func (*TestTable) GetInput ¶
func (x *TestTable) GetInput() *TestTable_Input
func (*TestTable) GetOptions ¶
func (x *TestTable) GetOptions() *TestOptions
func (*TestTable) ProtoReflect ¶
func (x *TestTable) ProtoReflect() protoreflect.Message
func (*TestTable) SetExpected ¶
func (x *TestTable) SetExpected(v []*TestTable_Expectation)
func (*TestTable) SetInput ¶
func (x *TestTable) SetInput(v *TestTable_Input)
func (*TestTable) SetOptions ¶
func (x *TestTable) SetOptions(v *TestOptions)
type TestTable_Expectation ¶
type TestTable_Expectation struct {
Principal string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
Actions map[string]v1.Effect `` /* 171-byte string literal not displayed */
Outputs []*TestTable_OutputExpectations `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"`
Principals []string `protobuf:"bytes,5,rep,name=principals,proto3" json:"principals,omitempty"`
Resources []string `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"`
PrincipalGroups []string `protobuf:"bytes,7,rep,name=principal_groups,json=principalGroups,proto3" json:"principal_groups,omitempty"`
ResourceGroups []string `protobuf:"bytes,8,rep,name=resource_groups,json=resourceGroups,proto3" json:"resource_groups,omitempty"`
// contains filtered or unexported fields
}
func (*TestTable_Expectation) GetActions ¶
func (x *TestTable_Expectation) GetActions() map[string]v1.Effect
func (*TestTable_Expectation) GetOutputs ¶
func (x *TestTable_Expectation) GetOutputs() []*TestTable_OutputExpectations
func (*TestTable_Expectation) GetPrincipal ¶
func (x *TestTable_Expectation) GetPrincipal() string
func (*TestTable_Expectation) GetPrincipalGroups ¶
func (x *TestTable_Expectation) GetPrincipalGroups() []string
func (*TestTable_Expectation) GetPrincipals ¶
func (x *TestTable_Expectation) GetPrincipals() []string
func (*TestTable_Expectation) GetResource ¶
func (x *TestTable_Expectation) GetResource() string
func (*TestTable_Expectation) GetResourceGroups ¶
func (x *TestTable_Expectation) GetResourceGroups() []string
func (*TestTable_Expectation) GetResources ¶
func (x *TestTable_Expectation) GetResources() []string
func (*TestTable_Expectation) ProtoMessage ¶
func (*TestTable_Expectation) ProtoMessage()
func (*TestTable_Expectation) ProtoReflect ¶
func (x *TestTable_Expectation) ProtoReflect() protoreflect.Message
func (*TestTable_Expectation) Reset ¶
func (x *TestTable_Expectation) Reset()
func (*TestTable_Expectation) SetActions ¶
func (x *TestTable_Expectation) SetActions(v map[string]v1.Effect)
func (*TestTable_Expectation) SetOutputs ¶
func (x *TestTable_Expectation) SetOutputs(v []*TestTable_OutputExpectations)
func (*TestTable_Expectation) SetPrincipal ¶
func (x *TestTable_Expectation) SetPrincipal(v string)
func (*TestTable_Expectation) SetPrincipalGroups ¶
func (x *TestTable_Expectation) SetPrincipalGroups(v []string)
func (*TestTable_Expectation) SetPrincipals ¶
func (x *TestTable_Expectation) SetPrincipals(v []string)
func (*TestTable_Expectation) SetResource ¶
func (x *TestTable_Expectation) SetResource(v string)
func (*TestTable_Expectation) SetResourceGroups ¶
func (x *TestTable_Expectation) SetResourceGroups(v []string)
func (*TestTable_Expectation) SetResources ¶
func (x *TestTable_Expectation) SetResources(v []string)
func (*TestTable_Expectation) String ¶
func (x *TestTable_Expectation) String() string
type TestTable_Expectation_builder ¶
type TestTable_Expectation_builder struct {
Principal string
Resource string
Actions map[string]v1.Effect
Outputs []*TestTable_OutputExpectations
Principals []string
Resources []string
PrincipalGroups []string
ResourceGroups []string
// contains filtered or unexported fields
}
func (TestTable_Expectation_builder) Build ¶
func (b0 TestTable_Expectation_builder) Build() *TestTable_Expectation
type TestTable_Input ¶
type TestTable_Input struct {
Principals []string `protobuf:"bytes,1,rep,name=principals,proto3" json:"principals,omitempty"`
Resources []string `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
AuxData string `protobuf:"bytes,4,opt,name=aux_data,json=auxData,proto3" json:"aux_data,omitempty"`
PrincipalGroups []string `protobuf:"bytes,5,rep,name=principal_groups,json=principalGroups,proto3" json:"principal_groups,omitempty"`
ResourceGroups []string `protobuf:"bytes,6,rep,name=resource_groups,json=resourceGroups,proto3" json:"resource_groups,omitempty"`
// contains filtered or unexported fields
}
func (*TestTable_Input) GetActions ¶
func (x *TestTable_Input) GetActions() []string
func (*TestTable_Input) GetAuxData ¶
func (x *TestTable_Input) GetAuxData() string
func (*TestTable_Input) GetPrincipalGroups ¶
func (x *TestTable_Input) GetPrincipalGroups() []string
func (*TestTable_Input) GetPrincipals ¶
func (x *TestTable_Input) GetPrincipals() []string
func (*TestTable_Input) GetResourceGroups ¶
func (x *TestTable_Input) GetResourceGroups() []string
func (*TestTable_Input) GetResources ¶
func (x *TestTable_Input) GetResources() []string
func (*TestTable_Input) ProtoMessage ¶
func (*TestTable_Input) ProtoMessage()
func (*TestTable_Input) ProtoReflect ¶
func (x *TestTable_Input) ProtoReflect() protoreflect.Message
func (*TestTable_Input) Reset ¶
func (x *TestTable_Input) Reset()
func (*TestTable_Input) SetActions ¶
func (x *TestTable_Input) SetActions(v []string)
func (*TestTable_Input) SetAuxData ¶
func (x *TestTable_Input) SetAuxData(v string)
func (*TestTable_Input) SetPrincipalGroups ¶
func (x *TestTable_Input) SetPrincipalGroups(v []string)
func (*TestTable_Input) SetPrincipals ¶
func (x *TestTable_Input) SetPrincipals(v []string)
func (*TestTable_Input) SetResourceGroups ¶
func (x *TestTable_Input) SetResourceGroups(v []string)
func (*TestTable_Input) SetResources ¶
func (x *TestTable_Input) SetResources(v []string)
func (*TestTable_Input) String ¶
func (x *TestTable_Input) String() string
type TestTable_Input_builder ¶
type TestTable_Input_builder struct {
Principals []string
Resources []string
Actions []string
AuxData string
PrincipalGroups []string
ResourceGroups []string
// contains filtered or unexported fields
}
func (TestTable_Input_builder) Build ¶
func (b0 TestTable_Input_builder) Build() *TestTable_Input
type TestTable_OutputExpectations ¶
type TestTable_OutputExpectations struct {
Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
Expected []*v11.OutputEntry `protobuf:"bytes,2,rep,name=expected,proto3" json:"expected,omitempty"`
// contains filtered or unexported fields
}
func (*TestTable_OutputExpectations) GetAction ¶
func (x *TestTable_OutputExpectations) GetAction() string
func (*TestTable_OutputExpectations) GetExpected ¶
func (x *TestTable_OutputExpectations) GetExpected() []*v11.OutputEntry
func (*TestTable_OutputExpectations) ProtoMessage ¶
func (*TestTable_OutputExpectations) ProtoMessage()
func (*TestTable_OutputExpectations) ProtoReflect ¶
func (x *TestTable_OutputExpectations) ProtoReflect() protoreflect.Message
func (*TestTable_OutputExpectations) Reset ¶
func (x *TestTable_OutputExpectations) Reset()
func (*TestTable_OutputExpectations) SetAction ¶
func (x *TestTable_OutputExpectations) SetAction(v string)
func (*TestTable_OutputExpectations) SetExpected ¶
func (x *TestTable_OutputExpectations) SetExpected(v []*v11.OutputEntry)
func (*TestTable_OutputExpectations) String ¶
func (x *TestTable_OutputExpectations) String() string
type TestTable_OutputExpectations_builder ¶
type TestTable_OutputExpectations_builder struct {
Action string
Expected []*v11.OutputEntry
// contains filtered or unexported fields
}
func (TestTable_OutputExpectations_builder) Build ¶
func (b0 TestTable_OutputExpectations_builder) Build() *TestTable_OutputExpectations
type TestTable_builder ¶
type TestTable_builder struct {
Name string
Description string
Skip bool
SkipReason string
Input *TestTable_Input
Expected []*TestTable_Expectation
Options *TestOptions
// contains filtered or unexported fields
}
func (TestTable_builder) Build ¶
func (b0 TestTable_builder) Build() *TestTable
type Test_OutputEntries ¶
type Test_OutputEntries struct {
Entries map[string]*structpb.Value `` /* 141-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Test_OutputEntries) GetEntries ¶
func (x *Test_OutputEntries) GetEntries() map[string]*structpb.Value
func (*Test_OutputEntries) ProtoMessage ¶
func (*Test_OutputEntries) ProtoMessage()
func (*Test_OutputEntries) ProtoReflect ¶
func (x *Test_OutputEntries) ProtoReflect() protoreflect.Message
func (*Test_OutputEntries) Reset ¶
func (x *Test_OutputEntries) Reset()
func (*Test_OutputEntries) SetEntries ¶
func (x *Test_OutputEntries) SetEntries(v map[string]*structpb.Value)
func (*Test_OutputEntries) String ¶
func (x *Test_OutputEntries) String() string
type Test_OutputEntries_builder ¶
type Test_OutputEntries_builder struct {
Entries map[string]*structpb.Value
// contains filtered or unexported fields
}
func (Test_OutputEntries_builder) Build ¶
func (b0 Test_OutputEntries_builder) Build() *Test_OutputEntries
type Test_TestName ¶
type Test_TestName struct {
TestTableName string `protobuf:"bytes,1,opt,name=test_table_name,json=testTableName,proto3" json:"test_table_name,omitempty"`
PrincipalKey string `protobuf:"bytes,2,opt,name=principal_key,json=principalKey,proto3" json:"principal_key,omitempty"`
ResourceKey string `protobuf:"bytes,3,opt,name=resource_key,json=resourceKey,proto3" json:"resource_key,omitempty"`
// contains filtered or unexported fields
}
func (*Test_TestName) GetPrincipalKey ¶
func (x *Test_TestName) GetPrincipalKey() string
func (*Test_TestName) GetResourceKey ¶
func (x *Test_TestName) GetResourceKey() string
func (*Test_TestName) GetTestTableName ¶
func (x *Test_TestName) GetTestTableName() string
func (*Test_TestName) ProtoMessage ¶
func (*Test_TestName) ProtoMessage()
func (*Test_TestName) ProtoReflect ¶
func (x *Test_TestName) ProtoReflect() protoreflect.Message
func (*Test_TestName) Reset ¶
func (x *Test_TestName) Reset()
func (*Test_TestName) SetPrincipalKey ¶
func (x *Test_TestName) SetPrincipalKey(v string)
func (*Test_TestName) SetResourceKey ¶
func (x *Test_TestName) SetResourceKey(v string)
func (*Test_TestName) SetTestTableName ¶
func (x *Test_TestName) SetTestTableName(v string)
func (*Test_TestName) String ¶
func (x *Test_TestName) String() string
type Test_TestName_builder ¶
type Test_TestName_builder struct {
TestTableName string
PrincipalKey string
ResourceKey string
// contains filtered or unexported fields
}
func (Test_TestName_builder) Build ¶
func (b0 Test_TestName_builder) Build() *Test_TestName
type Test_builder ¶
type Test_builder struct {
Name *Test_TestName
Description string
Skip bool
SkipReason string
Input *v11.CheckInput
Expected map[string]v1.Effect
Options *TestOptions
ExpectedOutputs map[string]*Test_OutputEntries
// contains filtered or unexported fields
}
func (Test_builder) Build ¶
func (b0 Test_builder) Build() *Test
type Variables ¶
type Variables struct {
Import []string `protobuf:"bytes,1,rep,name=import,proto3" json:"import,omitempty"`
Local map[string]string `` /* 137-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Variables) ProtoReflect ¶
func (x *Variables) ProtoReflect() protoreflect.Message
Source Files
¶
- policy.pb.go
Click to show internal directories.
Click to hide internal directories.