Documentation ¶
Index ¶
- Variables
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)deprecated
- func (m *Condition) GetCondition() isCondition_Condition
- func (x *Condition) GetMatch() *Match
- func (x *Condition) GetScript() string
- func (m *Condition) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Condition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Condition) MarshalToVT(dAtA []byte) (int, error)
- func (m *Condition) MarshalVT() (dAtA []byte, err error)
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (m *Condition) SizeVT() (n int)
- func (x *Condition) String() string
- func (m *Condition) UnmarshalVT(dAtA []byte) error
- func (m *Condition) Validate() error
- func (m *Condition) ValidateAll() error
- type ConditionMultiError
- type ConditionValidationError
- type Condition_Match
- type Condition_Script
- type DerivedRoles
- func (*DerivedRoles) Descriptor() ([]byte, []int)deprecated
- func (x *DerivedRoles) GetDefinitions() []*RoleDef
- func (x *DerivedRoles) GetName() string
- func (m *DerivedRoles) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *DerivedRoles) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DerivedRoles) MarshalToVT(dAtA []byte) (int, error)
- func (m *DerivedRoles) MarshalVT() (dAtA []byte, err error)
- func (*DerivedRoles) ProtoMessage()
- func (x *DerivedRoles) ProtoReflect() protoreflect.Message
- func (x *DerivedRoles) Reset()
- func (m *DerivedRoles) SizeVT() (n int)
- func (x *DerivedRoles) String() string
- func (m *DerivedRoles) UnmarshalVT(dAtA []byte) error
- func (m *DerivedRoles) Validate() error
- func (m *DerivedRoles) ValidateAll() error
- type DerivedRolesMultiError
- type DerivedRolesValidationError
- func (e DerivedRolesValidationError) Cause() error
- func (e DerivedRolesValidationError) Error() string
- func (e DerivedRolesValidationError) ErrorName() string
- func (e DerivedRolesValidationError) Field() string
- func (e DerivedRolesValidationError) Key() bool
- func (e DerivedRolesValidationError) Reason() string
- type Match
- func (*Match) Descriptor() ([]byte, []int)deprecated
- func (x *Match) GetAll() *Match_ExprList
- func (x *Match) GetAny() *Match_ExprList
- func (x *Match) GetExpr() string
- func (x *Match) GetNone() *Match_ExprList
- func (m *Match) GetOp() isMatch_Op
- func (m *Match) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Match) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Match) MarshalToVT(dAtA []byte) (int, error)
- func (m *Match) MarshalVT() (dAtA []byte, err error)
- func (*Match) ProtoMessage()
- func (x *Match) ProtoReflect() protoreflect.Message
- func (x *Match) Reset()
- func (m *Match) SizeVT() (n int)
- func (x *Match) String() string
- func (m *Match) UnmarshalVT(dAtA []byte) error
- func (m *Match) Validate() error
- func (m *Match) ValidateAll() error
- type MatchMultiError
- type MatchValidationError
- type Match_All
- type Match_Any
- type Match_Expr
- type Match_ExprList
- func (*Match_ExprList) Descriptor() ([]byte, []int)deprecated
- func (x *Match_ExprList) GetOf() []*Match
- func (m *Match_ExprList) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Match_ExprList) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Match_ExprList) MarshalToVT(dAtA []byte) (int, error)
- func (m *Match_ExprList) MarshalVT() (dAtA []byte, err error)
- func (*Match_ExprList) ProtoMessage()
- func (x *Match_ExprList) ProtoReflect() protoreflect.Message
- func (x *Match_ExprList) Reset()
- func (m *Match_ExprList) SizeVT() (n int)
- func (x *Match_ExprList) String() string
- func (m *Match_ExprList) UnmarshalVT(dAtA []byte) error
- func (m *Match_ExprList) Validate() error
- func (m *Match_ExprList) ValidateAll() error
- type Match_ExprListMultiError
- type Match_ExprListValidationError
- func (e Match_ExprListValidationError) Cause() error
- func (e Match_ExprListValidationError) Error() string
- func (e Match_ExprListValidationError) ErrorName() string
- func (e Match_ExprListValidationError) Field() string
- func (e Match_ExprListValidationError) Key() bool
- func (e Match_ExprListValidationError) Reason() string
- type Match_None
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetAnnotations() map[string]string
- func (x *Metadata) GetHash() *wrapperspb.UInt64Value
- func (x *Metadata) GetSourceFile() string
- func (x *Metadata) GetStoreIdentifer() string
- func (m *Metadata) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Metadata) MarshalToVT(dAtA []byte) (int, error)
- func (m *Metadata) MarshalVT() (dAtA []byte, err error)
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (m *Metadata) SizeVT() (n int)
- func (x *Metadata) String() string
- func (m *Metadata) UnmarshalVT(dAtA []byte) error
- func (m *Metadata) Validate() error
- func (m *Metadata) ValidateAll() error
- type MetadataMultiError
- type MetadataValidationError
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)deprecated
- func (x *Policy) GetApiVersion() string
- func (x *Policy) GetDerivedRoles() *DerivedRoles
- func (x *Policy) GetDescription() string
- func (x *Policy) GetDisabled() bool
- func (x *Policy) GetMetadata() *Metadata
- func (m *Policy) GetPolicyType() isPolicy_PolicyType
- func (x *Policy) GetPrincipalPolicy() *PrincipalPolicy
- func (x *Policy) GetResourcePolicy() *ResourcePolicy
- func (x *Policy) GetVariables() map[string]string
- func (m *Policy) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Policy) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Policy) MarshalToVT(dAtA []byte) (int, error)
- func (m *Policy) MarshalVT() (dAtA []byte, err error)
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (m *Policy) SizeVT() (n int)
- func (x *Policy) String() string
- func (m *Policy) UnmarshalVT(dAtA []byte) error
- func (m *Policy) Validate() error
- func (m *Policy) ValidateAll() error
- type PolicyMultiError
- type PolicyValidationError
- type Policy_DerivedRoles
- type Policy_PrincipalPolicy
- type Policy_ResourcePolicy
- type PrincipalPolicy
- func (*PrincipalPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *PrincipalPolicy) GetPrincipal() string
- func (x *PrincipalPolicy) GetRules() []*PrincipalRule
- func (x *PrincipalPolicy) GetScope() string
- func (x *PrincipalPolicy) GetVersion() string
- func (m *PrincipalPolicy) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *PrincipalPolicy) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PrincipalPolicy) MarshalToVT(dAtA []byte) (int, error)
- func (m *PrincipalPolicy) MarshalVT() (dAtA []byte, err error)
- func (*PrincipalPolicy) ProtoMessage()
- func (x *PrincipalPolicy) ProtoReflect() protoreflect.Message
- func (x *PrincipalPolicy) Reset()
- func (m *PrincipalPolicy) SizeVT() (n int)
- func (x *PrincipalPolicy) String() string
- func (m *PrincipalPolicy) UnmarshalVT(dAtA []byte) error
- func (m *PrincipalPolicy) Validate() error
- func (m *PrincipalPolicy) ValidateAll() error
- type PrincipalPolicyMultiError
- type PrincipalPolicyValidationError
- func (e PrincipalPolicyValidationError) Cause() error
- func (e PrincipalPolicyValidationError) Error() string
- func (e PrincipalPolicyValidationError) ErrorName() string
- func (e PrincipalPolicyValidationError) Field() string
- func (e PrincipalPolicyValidationError) Key() bool
- func (e PrincipalPolicyValidationError) Reason() string
- type PrincipalRule
- func (*PrincipalRule) Descriptor() ([]byte, []int)deprecated
- func (x *PrincipalRule) GetActions() []*PrincipalRule_Action
- func (x *PrincipalRule) GetResource() string
- func (m *PrincipalRule) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *PrincipalRule) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PrincipalRule) MarshalToVT(dAtA []byte) (int, error)
- func (m *PrincipalRule) MarshalVT() (dAtA []byte, err error)
- func (*PrincipalRule) ProtoMessage()
- func (x *PrincipalRule) ProtoReflect() protoreflect.Message
- func (x *PrincipalRule) Reset()
- func (m *PrincipalRule) SizeVT() (n int)
- func (x *PrincipalRule) String() string
- func (m *PrincipalRule) UnmarshalVT(dAtA []byte) error
- func (m *PrincipalRule) Validate() error
- func (m *PrincipalRule) ValidateAll() error
- type PrincipalRuleMultiError
- type PrincipalRuleValidationError
- func (e PrincipalRuleValidationError) Cause() error
- func (e PrincipalRuleValidationError) Error() string
- func (e PrincipalRuleValidationError) ErrorName() string
- func (e PrincipalRuleValidationError) Field() string
- func (e PrincipalRuleValidationError) Key() bool
- func (e PrincipalRuleValidationError) Reason() string
- type PrincipalRule_Action
- func (*PrincipalRule_Action) Descriptor() ([]byte, []int)deprecated
- 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 (m *PrincipalRule_Action) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *PrincipalRule_Action) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PrincipalRule_Action) MarshalToVT(dAtA []byte) (int, error)
- func (m *PrincipalRule_Action) MarshalVT() (dAtA []byte, err error)
- func (*PrincipalRule_Action) ProtoMessage()
- func (x *PrincipalRule_Action) ProtoReflect() protoreflect.Message
- func (x *PrincipalRule_Action) Reset()
- func (m *PrincipalRule_Action) SizeVT() (n int)
- func (x *PrincipalRule_Action) String() string
- func (m *PrincipalRule_Action) UnmarshalVT(dAtA []byte) error
- func (m *PrincipalRule_Action) Validate() error
- func (m *PrincipalRule_Action) ValidateAll() error
- type PrincipalRule_ActionMultiError
- type PrincipalRule_ActionValidationError
- func (e PrincipalRule_ActionValidationError) Cause() error
- func (e PrincipalRule_ActionValidationError) Error() string
- func (e PrincipalRule_ActionValidationError) ErrorName() string
- func (e PrincipalRule_ActionValidationError) Field() string
- func (e PrincipalRule_ActionValidationError) Key() bool
- func (e PrincipalRule_ActionValidationError) Reason() string
- type ResourcePolicy
- func (*ResourcePolicy) Descriptor() ([]byte, []int)deprecated
- 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) GetVersion() string
- func (m *ResourcePolicy) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *ResourcePolicy) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ResourcePolicy) MarshalToVT(dAtA []byte) (int, error)
- func (m *ResourcePolicy) MarshalVT() (dAtA []byte, err error)
- func (*ResourcePolicy) ProtoMessage()
- func (x *ResourcePolicy) ProtoReflect() protoreflect.Message
- func (x *ResourcePolicy) Reset()
- func (m *ResourcePolicy) SizeVT() (n int)
- func (x *ResourcePolicy) String() string
- func (m *ResourcePolicy) UnmarshalVT(dAtA []byte) error
- func (m *ResourcePolicy) Validate() error
- func (m *ResourcePolicy) ValidateAll() error
- type ResourcePolicyMultiError
- type ResourcePolicyValidationError
- func (e ResourcePolicyValidationError) Cause() error
- func (e ResourcePolicyValidationError) Error() string
- func (e ResourcePolicyValidationError) ErrorName() string
- func (e ResourcePolicyValidationError) Field() string
- func (e ResourcePolicyValidationError) Key() bool
- func (e ResourcePolicyValidationError) Reason() string
- type ResourceRule
- func (*ResourceRule) Descriptor() ([]byte, []int)deprecated
- 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) GetRoles() []string
- func (m *ResourceRule) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *ResourceRule) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ResourceRule) MarshalToVT(dAtA []byte) (int, error)
- func (m *ResourceRule) MarshalVT() (dAtA []byte, err error)
- func (*ResourceRule) ProtoMessage()
- func (x *ResourceRule) ProtoReflect() protoreflect.Message
- func (x *ResourceRule) Reset()
- func (m *ResourceRule) SizeVT() (n int)
- func (x *ResourceRule) String() string
- func (m *ResourceRule) UnmarshalVT(dAtA []byte) error
- func (m *ResourceRule) Validate() error
- func (m *ResourceRule) ValidateAll() error
- type ResourceRuleMultiError
- type ResourceRuleValidationError
- func (e ResourceRuleValidationError) Cause() error
- func (e ResourceRuleValidationError) Error() string
- func (e ResourceRuleValidationError) ErrorName() string
- func (e ResourceRuleValidationError) Field() string
- func (e ResourceRuleValidationError) Key() bool
- func (e ResourceRuleValidationError) Reason() string
- type RoleDef
- func (*RoleDef) Descriptor() ([]byte, []int)deprecated
- func (x *RoleDef) GetCondition() *Condition
- func (x *RoleDef) GetName() string
- func (x *RoleDef) GetParentRoles() []string
- func (m *RoleDef) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *RoleDef) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RoleDef) MarshalToVT(dAtA []byte) (int, error)
- func (m *RoleDef) MarshalVT() (dAtA []byte, err error)
- func (*RoleDef) ProtoMessage()
- func (x *RoleDef) ProtoReflect() protoreflect.Message
- func (x *RoleDef) Reset()
- func (m *RoleDef) SizeVT() (n int)
- func (x *RoleDef) String() string
- func (m *RoleDef) UnmarshalVT(dAtA []byte) error
- func (m *RoleDef) Validate() error
- func (m *RoleDef) ValidateAll() error
- type RoleDefMultiError
- type RoleDefValidationError
- type Schemas
- func (*Schemas) Descriptor() ([]byte, []int)deprecated
- func (x *Schemas) GetPrincipalSchema() *Schemas_Schema
- func (x *Schemas) GetResourceSchema() *Schemas_Schema
- func (m *Schemas) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Schemas) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Schemas) MarshalToVT(dAtA []byte) (int, error)
- func (m *Schemas) MarshalVT() (dAtA []byte, err error)
- func (*Schemas) ProtoMessage()
- func (x *Schemas) ProtoReflect() protoreflect.Message
- func (x *Schemas) Reset()
- func (m *Schemas) SizeVT() (n int)
- func (x *Schemas) String() string
- func (m *Schemas) UnmarshalVT(dAtA []byte) error
- func (m *Schemas) Validate() error
- func (m *Schemas) ValidateAll() error
- type SchemasMultiError
- type SchemasValidationError
- type Schemas_IgnoreWhen
- func (*Schemas_IgnoreWhen) Descriptor() ([]byte, []int)deprecated
- func (x *Schemas_IgnoreWhen) GetActions() []string
- func (m *Schemas_IgnoreWhen) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Schemas_IgnoreWhen) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Schemas_IgnoreWhen) MarshalToVT(dAtA []byte) (int, error)
- func (m *Schemas_IgnoreWhen) MarshalVT() (dAtA []byte, err error)
- func (*Schemas_IgnoreWhen) ProtoMessage()
- func (x *Schemas_IgnoreWhen) ProtoReflect() protoreflect.Message
- func (x *Schemas_IgnoreWhen) Reset()
- func (m *Schemas_IgnoreWhen) SizeVT() (n int)
- func (x *Schemas_IgnoreWhen) String() string
- func (m *Schemas_IgnoreWhen) UnmarshalVT(dAtA []byte) error
- func (m *Schemas_IgnoreWhen) Validate() error
- func (m *Schemas_IgnoreWhen) ValidateAll() error
- type Schemas_IgnoreWhenMultiError
- type Schemas_IgnoreWhenValidationError
- func (e Schemas_IgnoreWhenValidationError) Cause() error
- func (e Schemas_IgnoreWhenValidationError) Error() string
- func (e Schemas_IgnoreWhenValidationError) ErrorName() string
- func (e Schemas_IgnoreWhenValidationError) Field() string
- func (e Schemas_IgnoreWhenValidationError) Key() bool
- func (e Schemas_IgnoreWhenValidationError) Reason() string
- type Schemas_Schema
- func (*Schemas_Schema) Descriptor() ([]byte, []int)deprecated
- func (x *Schemas_Schema) GetIgnoreWhen() *Schemas_IgnoreWhen
- func (x *Schemas_Schema) GetRef() string
- func (m *Schemas_Schema) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Schemas_Schema) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Schemas_Schema) MarshalToVT(dAtA []byte) (int, error)
- func (m *Schemas_Schema) MarshalVT() (dAtA []byte, err error)
- func (*Schemas_Schema) ProtoMessage()
- func (x *Schemas_Schema) ProtoReflect() protoreflect.Message
- func (x *Schemas_Schema) Reset()
- func (m *Schemas_Schema) SizeVT() (n int)
- func (x *Schemas_Schema) String() string
- func (m *Schemas_Schema) UnmarshalVT(dAtA []byte) error
- func (m *Schemas_Schema) Validate() error
- func (m *Schemas_Schema) ValidateAll() error
- type Schemas_SchemaMultiError
- type Schemas_SchemaValidationError
- func (e Schemas_SchemaValidationError) Cause() error
- func (e Schemas_SchemaValidationError) Error() string
- func (e Schemas_SchemaValidationError) ErrorName() string
- func (e Schemas_SchemaValidationError) Field() string
- func (e Schemas_SchemaValidationError) Key() bool
- func (e Schemas_SchemaValidationError) Reason() string
- type Test
- func (*Test) Descriptor() ([]byte, []int)deprecated
- func (x *Test) GetDescription() string
- func (x *Test) GetExpected() map[string]v1.Effect
- func (x *Test) GetInput() *v11.CheckInput
- func (x *Test) GetName() *Test_TestName
- func (x *Test) GetSkip() bool
- func (x *Test) GetSkipReason() string
- func (m *Test) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Test) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Test) MarshalToVT(dAtA []byte) (int, error)
- func (m *Test) MarshalVT() (dAtA []byte, err error)
- func (*Test) ProtoMessage()
- func (x *Test) ProtoReflect() protoreflect.Message
- func (x *Test) Reset()
- func (m *Test) SizeVT() (n int)
- func (x *Test) String() string
- func (m *Test) UnmarshalVT(dAtA []byte) error
- func (m *Test) Validate() error
- func (m *Test) ValidateAll() error
- type TestFixture
- func (*TestFixture) Descriptor() ([]byte, []int)deprecated
- func (m *TestFixture) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestFixture) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestFixture) MarshalVT() (dAtA []byte, err error)
- func (*TestFixture) ProtoMessage()
- func (x *TestFixture) ProtoReflect() protoreflect.Message
- func (x *TestFixture) Reset()
- func (m *TestFixture) SizeVT() (n int)
- func (x *TestFixture) String() string
- func (m *TestFixture) UnmarshalVT(dAtA []byte) error
- func (m *TestFixture) Validate() error
- func (m *TestFixture) ValidateAll() error
- type TestFixtureMultiError
- type TestFixtureValidationError
- func (e TestFixtureValidationError) Cause() error
- func (e TestFixtureValidationError) Error() string
- func (e TestFixtureValidationError) ErrorName() string
- func (e TestFixtureValidationError) Field() string
- func (e TestFixtureValidationError) Key() bool
- func (e TestFixtureValidationError) Reason() string
- type TestFixture_AuxData
- func (*TestFixture_AuxData) Descriptor() ([]byte, []int)deprecated
- func (x *TestFixture_AuxData) GetAuxData() map[string]*v11.AuxData
- func (m *TestFixture_AuxData) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestFixture_AuxData) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestFixture_AuxData) MarshalVT() (dAtA []byte, err error)
- func (*TestFixture_AuxData) ProtoMessage()
- func (x *TestFixture_AuxData) ProtoReflect() protoreflect.Message
- func (x *TestFixture_AuxData) Reset()
- func (m *TestFixture_AuxData) SizeVT() (n int)
- func (x *TestFixture_AuxData) String() string
- func (m *TestFixture_AuxData) UnmarshalVT(dAtA []byte) error
- func (m *TestFixture_AuxData) Validate() error
- func (m *TestFixture_AuxData) ValidateAll() error
- type TestFixture_AuxDataMultiError
- type TestFixture_AuxDataValidationError
- func (e TestFixture_AuxDataValidationError) Cause() error
- func (e TestFixture_AuxDataValidationError) Error() string
- func (e TestFixture_AuxDataValidationError) ErrorName() string
- func (e TestFixture_AuxDataValidationError) Field() string
- func (e TestFixture_AuxDataValidationError) Key() bool
- func (e TestFixture_AuxDataValidationError) Reason() string
- type TestFixture_Principals
- func (*TestFixture_Principals) Descriptor() ([]byte, []int)deprecated
- func (x *TestFixture_Principals) GetPrincipals() map[string]*v11.Principal
- func (m *TestFixture_Principals) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestFixture_Principals) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestFixture_Principals) MarshalVT() (dAtA []byte, err error)
- func (*TestFixture_Principals) ProtoMessage()
- func (x *TestFixture_Principals) ProtoReflect() protoreflect.Message
- func (x *TestFixture_Principals) Reset()
- func (m *TestFixture_Principals) SizeVT() (n int)
- func (x *TestFixture_Principals) String() string
- func (m *TestFixture_Principals) UnmarshalVT(dAtA []byte) error
- func (m *TestFixture_Principals) Validate() error
- func (m *TestFixture_Principals) ValidateAll() error
- type TestFixture_PrincipalsMultiError
- type TestFixture_PrincipalsValidationError
- func (e TestFixture_PrincipalsValidationError) Cause() error
- func (e TestFixture_PrincipalsValidationError) Error() string
- func (e TestFixture_PrincipalsValidationError) ErrorName() string
- func (e TestFixture_PrincipalsValidationError) Field() string
- func (e TestFixture_PrincipalsValidationError) Key() bool
- func (e TestFixture_PrincipalsValidationError) Reason() string
- type TestFixture_Resources
- func (*TestFixture_Resources) Descriptor() ([]byte, []int)deprecated
- func (x *TestFixture_Resources) GetResources() map[string]*v11.Resource
- func (m *TestFixture_Resources) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestFixture_Resources) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestFixture_Resources) MarshalVT() (dAtA []byte, err error)
- func (*TestFixture_Resources) ProtoMessage()
- func (x *TestFixture_Resources) ProtoReflect() protoreflect.Message
- func (x *TestFixture_Resources) Reset()
- func (m *TestFixture_Resources) SizeVT() (n int)
- func (x *TestFixture_Resources) String() string
- func (m *TestFixture_Resources) UnmarshalVT(dAtA []byte) error
- func (m *TestFixture_Resources) Validate() error
- func (m *TestFixture_Resources) ValidateAll() error
- type TestFixture_ResourcesMultiError
- type TestFixture_ResourcesValidationError
- func (e TestFixture_ResourcesValidationError) Cause() error
- func (e TestFixture_ResourcesValidationError) Error() string
- func (e TestFixture_ResourcesValidationError) ErrorName() string
- func (e TestFixture_ResourcesValidationError) Field() string
- func (e TestFixture_ResourcesValidationError) Key() bool
- func (e TestFixture_ResourcesValidationError) Reason() string
- type TestMultiError
- type TestSuite
- func (*TestSuite) Descriptor() ([]byte, []int)deprecated
- func (x *TestSuite) GetAuxData() map[string]*v11.AuxData
- func (x *TestSuite) GetDescription() string
- func (x *TestSuite) GetName() string
- func (x *TestSuite) GetPrincipals() map[string]*v11.Principal
- func (x *TestSuite) GetResources() map[string]*v11.Resource
- func (x *TestSuite) GetSkip() bool
- func (x *TestSuite) GetSkipReason() string
- func (x *TestSuite) GetTests() []*TestTable
- func (m *TestSuite) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *TestSuite) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestSuite) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestSuite) MarshalVT() (dAtA []byte, err error)
- func (*TestSuite) ProtoMessage()
- func (x *TestSuite) ProtoReflect() protoreflect.Message
- func (x *TestSuite) Reset()
- func (m *TestSuite) SizeVT() (n int)
- func (x *TestSuite) String() string
- func (m *TestSuite) UnmarshalVT(dAtA []byte) error
- func (m *TestSuite) Validate() error
- func (m *TestSuite) ValidateAll() error
- type TestSuiteMultiError
- type TestSuiteValidationError
- type TestTable
- func (*TestTable) Descriptor() ([]byte, []int)deprecated
- func (x *TestTable) GetDescription() string
- func (x *TestTable) GetExpected() []*TestTable_ExpectedItem
- func (x *TestTable) GetInput() *TestTable_CheckInput
- func (x *TestTable) GetName() string
- func (x *TestTable) GetSkip() bool
- func (x *TestTable) GetSkipReason() string
- func (m *TestTable) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *TestTable) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestTable) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestTable) MarshalVT() (dAtA []byte, err error)
- func (*TestTable) ProtoMessage()
- func (x *TestTable) ProtoReflect() protoreflect.Message
- func (x *TestTable) Reset()
- func (m *TestTable) SizeVT() (n int)
- func (x *TestTable) String() string
- func (m *TestTable) UnmarshalVT(dAtA []byte) error
- func (m *TestTable) Validate() error
- func (m *TestTable) ValidateAll() error
- type TestTableMultiError
- type TestTableValidationError
- type TestTable_CheckInput
- func (*TestTable_CheckInput) Descriptor() ([]byte, []int)deprecated
- func (x *TestTable_CheckInput) GetActions() []string
- func (x *TestTable_CheckInput) GetAuxData() string
- func (x *TestTable_CheckInput) GetRequestId() string
- func (x *TestTable_CheckInput) GetResource() string
- func (m *TestTable_CheckInput) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *TestTable_CheckInput) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestTable_CheckInput) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestTable_CheckInput) MarshalVT() (dAtA []byte, err error)
- func (*TestTable_CheckInput) ProtoMessage()
- func (x *TestTable_CheckInput) ProtoReflect() protoreflect.Message
- func (x *TestTable_CheckInput) Reset()
- func (m *TestTable_CheckInput) SizeVT() (n int)
- func (x *TestTable_CheckInput) String() string
- func (m *TestTable_CheckInput) UnmarshalVT(dAtA []byte) error
- func (m *TestTable_CheckInput) Validate() error
- func (m *TestTable_CheckInput) ValidateAll() error
- type TestTable_CheckInputMultiError
- type TestTable_CheckInputValidationError
- func (e TestTable_CheckInputValidationError) Cause() error
- func (e TestTable_CheckInputValidationError) Error() string
- func (e TestTable_CheckInputValidationError) ErrorName() string
- func (e TestTable_CheckInputValidationError) Field() string
- func (e TestTable_CheckInputValidationError) Key() bool
- func (e TestTable_CheckInputValidationError) Reason() string
- type TestTable_ExpectedItem
- func (*TestTable_ExpectedItem) Descriptor() ([]byte, []int)deprecated
- func (x *TestTable_ExpectedItem) GetActions() map[string]v1.Effect
- func (x *TestTable_ExpectedItem) GetPrincipal() string
- func (m *TestTable_ExpectedItem) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *TestTable_ExpectedItem) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestTable_ExpectedItem) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestTable_ExpectedItem) MarshalVT() (dAtA []byte, err error)
- func (*TestTable_ExpectedItem) ProtoMessage()
- func (x *TestTable_ExpectedItem) ProtoReflect() protoreflect.Message
- func (x *TestTable_ExpectedItem) Reset()
- func (m *TestTable_ExpectedItem) SizeVT() (n int)
- func (x *TestTable_ExpectedItem) String() string
- func (m *TestTable_ExpectedItem) UnmarshalVT(dAtA []byte) error
- func (m *TestTable_ExpectedItem) Validate() error
- func (m *TestTable_ExpectedItem) ValidateAll() error
- type TestTable_ExpectedItemMultiError
- type TestTable_ExpectedItemValidationError
- func (e TestTable_ExpectedItemValidationError) Cause() error
- func (e TestTable_ExpectedItemValidationError) Error() string
- func (e TestTable_ExpectedItemValidationError) ErrorName() string
- func (e TestTable_ExpectedItemValidationError) Field() string
- func (e TestTable_ExpectedItemValidationError) Key() bool
- func (e TestTable_ExpectedItemValidationError) Reason() string
- type TestValidationError
- type Test_TestName
- func (*Test_TestName) Descriptor() ([]byte, []int)deprecated
- func (x *Test_TestName) GetPrincipalKey() string
- func (x *Test_TestName) GetTestTableName() string
- func (m *Test_TestName) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Test_TestName) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Test_TestName) MarshalToVT(dAtA []byte) (int, error)
- func (m *Test_TestName) MarshalVT() (dAtA []byte, err error)
- func (*Test_TestName) ProtoMessage()
- func (x *Test_TestName) ProtoReflect() protoreflect.Message
- func (x *Test_TestName) Reset()
- func (m *Test_TestName) SizeVT() (n int)
- func (x *Test_TestName) String() string
- func (m *Test_TestName) UnmarshalVT(dAtA []byte) error
- func (m *Test_TestName) Validate() error
- func (m *Test_TestName) ValidateAll() error
- type Test_TestNameMultiError
- type Test_TestNameValidationError
- func (e Test_TestNameValidationError) Cause() error
- func (e Test_TestNameValidationError) Error() string
- func (e Test_TestNameValidationError) ErrorName() string
- func (e Test_TestNameValidationError) Field() string
- func (e Test_TestNameValidationError) Key() bool
- func (e Test_TestNameValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_cerbos_policy_v1_policy_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct { // Types that are assignable to Condition: // *Condition_Match // *Condition_Script Condition isCondition_Condition `protobuf_oneof:"condition"` // contains filtered or unexported fields }
func (*Condition) Descriptor
deprecated
func (*Condition) GetCondition ¶
func (m *Condition) GetCondition() isCondition_Condition
func (*Condition) HashPB ¶ added in v0.13.0
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Condition) MarshalToSizedBufferVT ¶
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶
func (x *Condition) ProtoReflect() protoreflect.Message
func (*Condition) UnmarshalVT ¶
func (*Condition) Validate ¶
Validate checks the field values on Condition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Condition) ValidateAll ¶ added in v0.12.0
ValidateAll checks the field values on Condition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConditionMultiError, or nil if none found.
type ConditionMultiError ¶ added in v0.12.0
type ConditionMultiError []error
ConditionMultiError is an error wrapping multiple validation errors returned by Condition.ValidateAll() if the designated constraints aren't met.
func (ConditionMultiError) AllErrors ¶ added in v0.12.0
func (m ConditionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConditionMultiError) Error ¶ added in v0.12.0
func (m ConditionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConditionValidationError ¶
type ConditionValidationError struct {
// contains filtered or unexported fields
}
ConditionValidationError is the validation error returned by Condition.Validate if the designated constraints aren't met.
func (ConditionValidationError) Cause ¶
func (e ConditionValidationError) Cause() error
Cause function returns cause value.
func (ConditionValidationError) Error ¶
func (e ConditionValidationError) Error() string
Error satisfies the builtin error interface
func (ConditionValidationError) ErrorName ¶
func (e ConditionValidationError) ErrorName() string
ErrorName returns error name.
func (ConditionValidationError) Field ¶
func (e ConditionValidationError) Field() string
Field function returns field value.
func (ConditionValidationError) Key ¶
func (e ConditionValidationError) Key() bool
Key function returns key value.
func (ConditionValidationError) Reason ¶
func (e ConditionValidationError) Reason() string
Reason function returns reason value.
type Condition_Match ¶
type Condition_Match struct {
Match *Match `protobuf:"bytes,1,opt,name=match,proto3,oneof"`
}
func (*Condition_Match) MarshalToSizedBufferVT ¶
func (m *Condition_Match) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Condition_Match) MarshalToVT ¶
func (m *Condition_Match) MarshalToVT(dAtA []byte) (int, error)
func (*Condition_Match) SizeVT ¶
func (m *Condition_Match) SizeVT() (n int)
type Condition_Script ¶
type Condition_Script struct {
Script string `protobuf:"bytes,2,opt,name=script,proto3,oneof"`
}
func (*Condition_Script) MarshalToSizedBufferVT ¶
func (m *Condition_Script) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Condition_Script) MarshalToVT ¶
func (m *Condition_Script) MarshalToVT(dAtA []byte) (int, error)
func (*Condition_Script) SizeVT ¶
func (m *Condition_Script) SizeVT() (n int)
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"` // contains filtered or unexported fields }
func (*DerivedRoles) Descriptor
deprecated
func (*DerivedRoles) Descriptor() ([]byte, []int)
Deprecated: Use DerivedRoles.ProtoReflect.Descriptor instead.
func (*DerivedRoles) GetDefinitions ¶
func (x *DerivedRoles) GetDefinitions() []*RoleDef
func (*DerivedRoles) GetName ¶
func (x *DerivedRoles) GetName() string
func (*DerivedRoles) HashPB ¶ added in v0.13.0
func (m *DerivedRoles) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*DerivedRoles) MarshalToSizedBufferVT ¶
func (m *DerivedRoles) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DerivedRoles) MarshalToVT ¶
func (m *DerivedRoles) MarshalToVT(dAtA []byte) (int, error)
func (*DerivedRoles) MarshalVT ¶
func (m *DerivedRoles) MarshalVT() (dAtA []byte, err error)
func (*DerivedRoles) ProtoMessage ¶
func (*DerivedRoles) ProtoMessage()
func (*DerivedRoles) ProtoReflect ¶
func (x *DerivedRoles) ProtoReflect() protoreflect.Message
func (*DerivedRoles) Reset ¶
func (x *DerivedRoles) Reset()
func (*DerivedRoles) SizeVT ¶
func (m *DerivedRoles) SizeVT() (n int)
func (*DerivedRoles) String ¶
func (x *DerivedRoles) String() string
func (*DerivedRoles) UnmarshalVT ¶
func (m *DerivedRoles) UnmarshalVT(dAtA []byte) error
func (*DerivedRoles) Validate ¶
func (m *DerivedRoles) Validate() error
Validate checks the field values on DerivedRoles with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DerivedRoles) ValidateAll ¶ added in v0.12.0
func (m *DerivedRoles) ValidateAll() error
ValidateAll checks the field values on DerivedRoles with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DerivedRolesMultiError, or nil if none found.
type DerivedRolesMultiError ¶ added in v0.12.0
type DerivedRolesMultiError []error
DerivedRolesMultiError is an error wrapping multiple validation errors returned by DerivedRoles.ValidateAll() if the designated constraints aren't met.
func (DerivedRolesMultiError) AllErrors ¶ added in v0.12.0
func (m DerivedRolesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DerivedRolesMultiError) Error ¶ added in v0.12.0
func (m DerivedRolesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DerivedRolesValidationError ¶
type DerivedRolesValidationError struct {
// contains filtered or unexported fields
}
DerivedRolesValidationError is the validation error returned by DerivedRoles.Validate if the designated constraints aren't met.
func (DerivedRolesValidationError) Cause ¶
func (e DerivedRolesValidationError) Cause() error
Cause function returns cause value.
func (DerivedRolesValidationError) Error ¶
func (e DerivedRolesValidationError) Error() string
Error satisfies the builtin error interface
func (DerivedRolesValidationError) ErrorName ¶
func (e DerivedRolesValidationError) ErrorName() string
ErrorName returns error name.
func (DerivedRolesValidationError) Field ¶
func (e DerivedRolesValidationError) Field() string
Field function returns field value.
func (DerivedRolesValidationError) Key ¶
func (e DerivedRolesValidationError) Key() bool
Key function returns key value.
func (DerivedRolesValidationError) Reason ¶
func (e DerivedRolesValidationError) Reason() string
Reason function returns reason value.
type Match ¶
type Match struct { // Types that are assignable to Op: // *Match_All // *Match_Any // *Match_None // *Match_Expr Op isMatch_Op `protobuf_oneof:"op"` // contains filtered or unexported fields }
func (*Match) Descriptor
deprecated
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) HashPB ¶ added in v0.13.0
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Match) MarshalToSizedBufferVT ¶
func (*Match) ProtoMessage ¶
func (*Match) ProtoMessage()
func (*Match) ProtoReflect ¶
func (x *Match) ProtoReflect() protoreflect.Message
func (*Match) UnmarshalVT ¶
func (*Match) Validate ¶
Validate checks the field values on Match with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Match) ValidateAll ¶ added in v0.12.0
ValidateAll checks the field values on Match with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MatchMultiError, or nil if none found.
type MatchMultiError ¶ added in v0.12.0
type MatchMultiError []error
MatchMultiError is an error wrapping multiple validation errors returned by Match.ValidateAll() if the designated constraints aren't met.
func (MatchMultiError) AllErrors ¶ added in v0.12.0
func (m MatchMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MatchMultiError) Error ¶ added in v0.12.0
func (m MatchMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MatchValidationError ¶
type MatchValidationError struct {
// contains filtered or unexported fields
}
MatchValidationError is the validation error returned by Match.Validate if the designated constraints aren't met.
func (MatchValidationError) Cause ¶
func (e MatchValidationError) Cause() error
Cause function returns cause value.
func (MatchValidationError) Error ¶
func (e MatchValidationError) Error() string
Error satisfies the builtin error interface
func (MatchValidationError) ErrorName ¶
func (e MatchValidationError) ErrorName() string
ErrorName returns error name.
func (MatchValidationError) Field ¶
func (e MatchValidationError) Field() string
Field function returns field value.
func (MatchValidationError) Key ¶
func (e MatchValidationError) Key() bool
Key function returns key value.
func (MatchValidationError) Reason ¶
func (e MatchValidationError) Reason() string
Reason function returns reason value.
type Match_All ¶
type Match_All struct {
All *Match_ExprList `protobuf:"bytes,1,opt,name=all,proto3,oneof"`
}
func (*Match_All) MarshalToSizedBufferVT ¶
type Match_Any ¶
type Match_Any struct {
Any *Match_ExprList `protobuf:"bytes,2,opt,name=any,proto3,oneof"`
}
func (*Match_Any) MarshalToSizedBufferVT ¶
type Match_Expr ¶
type Match_Expr struct {
Expr string `protobuf:"bytes,4,opt,name=expr,proto3,oneof"`
}
func (*Match_Expr) MarshalToSizedBufferVT ¶
func (m *Match_Expr) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Match_Expr) MarshalToVT ¶
func (m *Match_Expr) MarshalToVT(dAtA []byte) (int, error)
func (*Match_Expr) SizeVT ¶
func (m *Match_Expr) SizeVT() (n int)
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) Descriptor
deprecated
func (*Match_ExprList) Descriptor() ([]byte, []int)
Deprecated: Use Match_ExprList.ProtoReflect.Descriptor instead.
func (*Match_ExprList) GetOf ¶
func (x *Match_ExprList) GetOf() []*Match
func (*Match_ExprList) HashPB ¶ added in v0.13.0
func (m *Match_ExprList) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Match_ExprList) MarshalToSizedBufferVT ¶
func (m *Match_ExprList) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Match_ExprList) MarshalToVT ¶
func (m *Match_ExprList) MarshalToVT(dAtA []byte) (int, error)
func (*Match_ExprList) MarshalVT ¶
func (m *Match_ExprList) MarshalVT() (dAtA []byte, err error)
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) SizeVT ¶
func (m *Match_ExprList) SizeVT() (n int)
func (*Match_ExprList) String ¶
func (x *Match_ExprList) String() string
func (*Match_ExprList) UnmarshalVT ¶
func (m *Match_ExprList) UnmarshalVT(dAtA []byte) error
func (*Match_ExprList) Validate ¶
func (m *Match_ExprList) Validate() error
Validate checks the field values on Match_ExprList with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Match_ExprList) ValidateAll ¶ added in v0.12.0
func (m *Match_ExprList) ValidateAll() error
ValidateAll checks the field values on Match_ExprList with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Match_ExprListMultiError, or nil if none found.
type Match_ExprListMultiError ¶ added in v0.12.0
type Match_ExprListMultiError []error
Match_ExprListMultiError is an error wrapping multiple validation errors returned by Match_ExprList.ValidateAll() if the designated constraints aren't met.
func (Match_ExprListMultiError) AllErrors ¶ added in v0.12.0
func (m Match_ExprListMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Match_ExprListMultiError) Error ¶ added in v0.12.0
func (m Match_ExprListMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Match_ExprListValidationError ¶
type Match_ExprListValidationError struct {
// contains filtered or unexported fields
}
Match_ExprListValidationError is the validation error returned by Match_ExprList.Validate if the designated constraints aren't met.
func (Match_ExprListValidationError) Cause ¶
func (e Match_ExprListValidationError) Cause() error
Cause function returns cause value.
func (Match_ExprListValidationError) Error ¶
func (e Match_ExprListValidationError) Error() string
Error satisfies the builtin error interface
func (Match_ExprListValidationError) ErrorName ¶
func (e Match_ExprListValidationError) ErrorName() string
ErrorName returns error name.
func (Match_ExprListValidationError) Field ¶
func (e Match_ExprListValidationError) Field() string
Field function returns field value.
func (Match_ExprListValidationError) Key ¶
func (e Match_ExprListValidationError) Key() bool
Key function returns key value.
func (Match_ExprListValidationError) Reason ¶
func (e Match_ExprListValidationError) Reason() string
Reason function returns reason value.
type Match_None ¶
type Match_None struct {
None *Match_ExprList `protobuf:"bytes,3,opt,name=none,proto3,oneof"`
}
func (*Match_None) MarshalToSizedBufferVT ¶
func (m *Match_None) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Match_None) MarshalToVT ¶
func (m *Match_None) MarshalToVT(dAtA []byte) (int, error)
func (*Match_None) SizeVT ¶
func (m *Match_None) SizeVT() (n int)
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 `` /* 163-byte string literal not displayed */ Hash *wrapperspb.UInt64Value `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` StoreIdentifer string `protobuf:"bytes,4,opt,name=store_identifer,json=storeIdentifer,proto3" json:"store_identifer,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetAnnotations ¶
func (*Metadata) GetHash ¶ added in v0.13.0
func (x *Metadata) GetHash() *wrapperspb.UInt64Value
func (*Metadata) GetSourceFile ¶
func (*Metadata) GetStoreIdentifer ¶ added in v0.13.0
func (*Metadata) HashPB ¶ added in v0.13.0
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Metadata) MarshalToSizedBufferVT ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) UnmarshalVT ¶
func (*Metadata) Validate ¶
Validate checks the field values on Metadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Metadata) ValidateAll ¶ added in v0.12.0
ValidateAll checks the field values on Metadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MetadataMultiError, or nil if none found.
type MetadataMultiError ¶ added in v0.12.0
type MetadataMultiError []error
MetadataMultiError is an error wrapping multiple validation errors returned by Metadata.ValidateAll() if the designated constraints aren't met.
func (MetadataMultiError) AllErrors ¶ added in v0.12.0
func (m MetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MetadataMultiError) Error ¶ added in v0.12.0
func (m MetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MetadataValidationError ¶
type MetadataValidationError struct {
// contains filtered or unexported fields
}
MetadataValidationError is the validation error returned by Metadata.Validate if the designated constraints aren't met.
func (MetadataValidationError) Cause ¶
func (e MetadataValidationError) Cause() error
Cause function returns cause value.
func (MetadataValidationError) Error ¶
func (e MetadataValidationError) Error() string
Error satisfies the builtin error interface
func (MetadataValidationError) ErrorName ¶
func (e MetadataValidationError) ErrorName() string
ErrorName returns error name.
func (MetadataValidationError) Field ¶
func (e MetadataValidationError) Field() string
Field function returns field value.
func (MetadataValidationError) Key ¶
func (e MetadataValidationError) Key() bool
Key function returns key value.
func (MetadataValidationError) Reason ¶
func (e MetadataValidationError) Reason() string
Reason function returns reason value.
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 assignable to PolicyType: // *Policy_ResourcePolicy // *Policy_PrincipalPolicy // *Policy_DerivedRoles PolicyType isPolicy_PolicyType `protobuf_oneof:"policy_type"` Variables map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Policy) Descriptor
deprecated
func (*Policy) GetApiVersion ¶
func (*Policy) GetDerivedRoles ¶
func (x *Policy) GetDerivedRoles() *DerivedRoles
func (*Policy) GetDescription ¶
func (*Policy) GetDisabled ¶
func (*Policy) GetMetadata ¶
func (*Policy) GetPolicyType ¶
func (m *Policy) GetPolicyType() isPolicy_PolicyType
func (*Policy) GetPrincipalPolicy ¶
func (x *Policy) GetPrincipalPolicy() *PrincipalPolicy
func (*Policy) GetResourcePolicy ¶
func (x *Policy) GetResourcePolicy() *ResourcePolicy
func (*Policy) GetVariables ¶ added in v0.9.0
func (*Policy) HashPB ¶ added in v0.13.0
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Policy) MarshalToSizedBufferVT ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
func (*Policy) UnmarshalVT ¶
func (*Policy) Validate ¶
Validate checks the field values on Policy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Policy) ValidateAll ¶ added in v0.12.0
ValidateAll checks the field values on Policy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PolicyMultiError, or nil if none found.
type PolicyMultiError ¶ added in v0.12.0
type PolicyMultiError []error
PolicyMultiError is an error wrapping multiple validation errors returned by Policy.ValidateAll() if the designated constraints aren't met.
func (PolicyMultiError) AllErrors ¶ added in v0.12.0
func (m PolicyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PolicyMultiError) Error ¶ added in v0.12.0
func (m PolicyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PolicyValidationError ¶
type PolicyValidationError struct {
// contains filtered or unexported fields
}
PolicyValidationError is the validation error returned by Policy.Validate if the designated constraints aren't met.
func (PolicyValidationError) Cause ¶
func (e PolicyValidationError) Cause() error
Cause function returns cause value.
func (PolicyValidationError) Error ¶
func (e PolicyValidationError) Error() string
Error satisfies the builtin error interface
func (PolicyValidationError) ErrorName ¶
func (e PolicyValidationError) ErrorName() string
ErrorName returns error name.
func (PolicyValidationError) Field ¶
func (e PolicyValidationError) Field() string
Field function returns field value.
func (PolicyValidationError) Key ¶
func (e PolicyValidationError) Key() bool
Key function returns key value.
func (PolicyValidationError) Reason ¶
func (e PolicyValidationError) Reason() string
Reason function returns reason value.
type Policy_DerivedRoles ¶
type Policy_DerivedRoles struct {
DerivedRoles *DerivedRoles `protobuf:"bytes,7,opt,name=derived_roles,json=derivedRoles,proto3,oneof"`
}
func (*Policy_DerivedRoles) MarshalToSizedBufferVT ¶
func (m *Policy_DerivedRoles) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Policy_DerivedRoles) MarshalToVT ¶
func (m *Policy_DerivedRoles) MarshalToVT(dAtA []byte) (int, error)
func (*Policy_DerivedRoles) SizeVT ¶
func (m *Policy_DerivedRoles) SizeVT() (n int)
type Policy_PrincipalPolicy ¶
type Policy_PrincipalPolicy struct {
PrincipalPolicy *PrincipalPolicy `protobuf:"bytes,6,opt,name=principal_policy,json=principalPolicy,proto3,oneof"`
}
func (*Policy_PrincipalPolicy) MarshalToSizedBufferVT ¶
func (m *Policy_PrincipalPolicy) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Policy_PrincipalPolicy) MarshalToVT ¶
func (m *Policy_PrincipalPolicy) MarshalToVT(dAtA []byte) (int, error)
func (*Policy_PrincipalPolicy) SizeVT ¶
func (m *Policy_PrincipalPolicy) SizeVT() (n int)
type Policy_ResourcePolicy ¶
type Policy_ResourcePolicy struct {
ResourcePolicy *ResourcePolicy `protobuf:"bytes,5,opt,name=resource_policy,json=resourcePolicy,proto3,oneof"`
}
func (*Policy_ResourcePolicy) MarshalToSizedBufferVT ¶
func (m *Policy_ResourcePolicy) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Policy_ResourcePolicy) MarshalToVT ¶
func (m *Policy_ResourcePolicy) MarshalToVT(dAtA []byte) (int, error)
func (*Policy_ResourcePolicy) SizeVT ¶
func (m *Policy_ResourcePolicy) SizeVT() (n int)
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"` // contains filtered or unexported fields }
func (*PrincipalPolicy) Descriptor
deprecated
func (*PrincipalPolicy) Descriptor() ([]byte, []int)
Deprecated: Use PrincipalPolicy.ProtoReflect.Descriptor instead.
func (*PrincipalPolicy) GetPrincipal ¶
func (x *PrincipalPolicy) GetPrincipal() string
func (*PrincipalPolicy) GetRules ¶
func (x *PrincipalPolicy) GetRules() []*PrincipalRule
func (*PrincipalPolicy) GetScope ¶ added in v0.9.0
func (x *PrincipalPolicy) GetScope() string
func (*PrincipalPolicy) GetVersion ¶
func (x *PrincipalPolicy) GetVersion() string
func (*PrincipalPolicy) HashPB ¶ added in v0.13.0
func (m *PrincipalPolicy) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*PrincipalPolicy) MarshalToSizedBufferVT ¶
func (m *PrincipalPolicy) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PrincipalPolicy) MarshalToVT ¶
func (m *PrincipalPolicy) MarshalToVT(dAtA []byte) (int, error)
func (*PrincipalPolicy) MarshalVT ¶
func (m *PrincipalPolicy) MarshalVT() (dAtA []byte, err error)
func (*PrincipalPolicy) ProtoMessage ¶
func (*PrincipalPolicy) ProtoMessage()
func (*PrincipalPolicy) ProtoReflect ¶
func (x *PrincipalPolicy) ProtoReflect() protoreflect.Message
func (*PrincipalPolicy) Reset ¶
func (x *PrincipalPolicy) Reset()
func (*PrincipalPolicy) SizeVT ¶
func (m *PrincipalPolicy) SizeVT() (n int)
func (*PrincipalPolicy) String ¶
func (x *PrincipalPolicy) String() string
func (*PrincipalPolicy) UnmarshalVT ¶
func (m *PrincipalPolicy) UnmarshalVT(dAtA []byte) error
func (*PrincipalPolicy) Validate ¶
func (m *PrincipalPolicy) Validate() error
Validate checks the field values on PrincipalPolicy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PrincipalPolicy) ValidateAll ¶ added in v0.12.0
func (m *PrincipalPolicy) ValidateAll() error
ValidateAll checks the field values on PrincipalPolicy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrincipalPolicyMultiError, or nil if none found.
type PrincipalPolicyMultiError ¶ added in v0.12.0
type PrincipalPolicyMultiError []error
PrincipalPolicyMultiError is an error wrapping multiple validation errors returned by PrincipalPolicy.ValidateAll() if the designated constraints aren't met.
func (PrincipalPolicyMultiError) AllErrors ¶ added in v0.12.0
func (m PrincipalPolicyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrincipalPolicyMultiError) Error ¶ added in v0.12.0
func (m PrincipalPolicyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrincipalPolicyValidationError ¶
type PrincipalPolicyValidationError struct {
// contains filtered or unexported fields
}
PrincipalPolicyValidationError is the validation error returned by PrincipalPolicy.Validate if the designated constraints aren't met.
func (PrincipalPolicyValidationError) Cause ¶
func (e PrincipalPolicyValidationError) Cause() error
Cause function returns cause value.
func (PrincipalPolicyValidationError) Error ¶
func (e PrincipalPolicyValidationError) Error() string
Error satisfies the builtin error interface
func (PrincipalPolicyValidationError) ErrorName ¶
func (e PrincipalPolicyValidationError) ErrorName() string
ErrorName returns error name.
func (PrincipalPolicyValidationError) Field ¶
func (e PrincipalPolicyValidationError) Field() string
Field function returns field value.
func (PrincipalPolicyValidationError) Key ¶
func (e PrincipalPolicyValidationError) Key() bool
Key function returns key value.
func (PrincipalPolicyValidationError) Reason ¶
func (e PrincipalPolicyValidationError) Reason() string
Reason function returns reason value.
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) Descriptor
deprecated
func (*PrincipalRule) Descriptor() ([]byte, []int)
Deprecated: Use PrincipalRule.ProtoReflect.Descriptor instead.
func (*PrincipalRule) GetActions ¶
func (x *PrincipalRule) GetActions() []*PrincipalRule_Action
func (*PrincipalRule) GetResource ¶
func (x *PrincipalRule) GetResource() string
func (*PrincipalRule) HashPB ¶ added in v0.13.0
func (m *PrincipalRule) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*PrincipalRule) MarshalToSizedBufferVT ¶
func (m *PrincipalRule) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PrincipalRule) MarshalToVT ¶
func (m *PrincipalRule) MarshalToVT(dAtA []byte) (int, error)
func (*PrincipalRule) MarshalVT ¶
func (m *PrincipalRule) MarshalVT() (dAtA []byte, err error)
func (*PrincipalRule) ProtoMessage ¶
func (*PrincipalRule) ProtoMessage()
func (*PrincipalRule) ProtoReflect ¶
func (x *PrincipalRule) ProtoReflect() protoreflect.Message
func (*PrincipalRule) Reset ¶
func (x *PrincipalRule) Reset()
func (*PrincipalRule) SizeVT ¶
func (m *PrincipalRule) SizeVT() (n int)
func (*PrincipalRule) String ¶
func (x *PrincipalRule) String() string
func (*PrincipalRule) UnmarshalVT ¶
func (m *PrincipalRule) UnmarshalVT(dAtA []byte) error
func (*PrincipalRule) Validate ¶
func (m *PrincipalRule) Validate() error
Validate checks the field values on PrincipalRule with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PrincipalRule) ValidateAll ¶ added in v0.12.0
func (m *PrincipalRule) ValidateAll() error
ValidateAll checks the field values on PrincipalRule with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrincipalRuleMultiError, or nil if none found.
type PrincipalRuleMultiError ¶ added in v0.12.0
type PrincipalRuleMultiError []error
PrincipalRuleMultiError is an error wrapping multiple validation errors returned by PrincipalRule.ValidateAll() if the designated constraints aren't met.
func (PrincipalRuleMultiError) AllErrors ¶ added in v0.12.0
func (m PrincipalRuleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrincipalRuleMultiError) Error ¶ added in v0.12.0
func (m PrincipalRuleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrincipalRuleValidationError ¶
type PrincipalRuleValidationError struct {
// contains filtered or unexported fields
}
PrincipalRuleValidationError is the validation error returned by PrincipalRule.Validate if the designated constraints aren't met.
func (PrincipalRuleValidationError) Cause ¶
func (e PrincipalRuleValidationError) Cause() error
Cause function returns cause value.
func (PrincipalRuleValidationError) Error ¶
func (e PrincipalRuleValidationError) Error() string
Error satisfies the builtin error interface
func (PrincipalRuleValidationError) ErrorName ¶
func (e PrincipalRuleValidationError) ErrorName() string
ErrorName returns error name.
func (PrincipalRuleValidationError) Field ¶
func (e PrincipalRuleValidationError) Field() string
Field function returns field value.
func (PrincipalRuleValidationError) Key ¶
func (e PrincipalRuleValidationError) Key() bool
Key function returns key value.
func (PrincipalRuleValidationError) Reason ¶
func (e PrincipalRuleValidationError) Reason() string
Reason function returns reason value.
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"` // contains filtered or unexported fields }
func (*PrincipalRule_Action) Descriptor
deprecated
func (*PrincipalRule_Action) Descriptor() ([]byte, []int)
Deprecated: Use PrincipalRule_Action.ProtoReflect.Descriptor instead.
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 ¶ added in v0.8.0
func (x *PrincipalRule_Action) GetName() string
func (*PrincipalRule_Action) HashPB ¶ added in v0.13.0
func (m *PrincipalRule_Action) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*PrincipalRule_Action) MarshalToSizedBufferVT ¶
func (m *PrincipalRule_Action) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PrincipalRule_Action) MarshalToVT ¶
func (m *PrincipalRule_Action) MarshalToVT(dAtA []byte) (int, error)
func (*PrincipalRule_Action) MarshalVT ¶
func (m *PrincipalRule_Action) MarshalVT() (dAtA []byte, err error)
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) SizeVT ¶
func (m *PrincipalRule_Action) SizeVT() (n int)
func (*PrincipalRule_Action) String ¶
func (x *PrincipalRule_Action) String() string
func (*PrincipalRule_Action) UnmarshalVT ¶
func (m *PrincipalRule_Action) UnmarshalVT(dAtA []byte) error
func (*PrincipalRule_Action) Validate ¶
func (m *PrincipalRule_Action) Validate() error
Validate checks the field values on PrincipalRule_Action with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PrincipalRule_Action) ValidateAll ¶ added in v0.12.0
func (m *PrincipalRule_Action) ValidateAll() error
ValidateAll checks the field values on PrincipalRule_Action with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrincipalRule_ActionMultiError, or nil if none found.
type PrincipalRule_ActionMultiError ¶ added in v0.12.0
type PrincipalRule_ActionMultiError []error
PrincipalRule_ActionMultiError is an error wrapping multiple validation errors returned by PrincipalRule_Action.ValidateAll() if the designated constraints aren't met.
func (PrincipalRule_ActionMultiError) AllErrors ¶ added in v0.12.0
func (m PrincipalRule_ActionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrincipalRule_ActionMultiError) Error ¶ added in v0.12.0
func (m PrincipalRule_ActionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrincipalRule_ActionValidationError ¶
type PrincipalRule_ActionValidationError struct {
// contains filtered or unexported fields
}
PrincipalRule_ActionValidationError is the validation error returned by PrincipalRule_Action.Validate if the designated constraints aren't met.
func (PrincipalRule_ActionValidationError) Cause ¶
func (e PrincipalRule_ActionValidationError) Cause() error
Cause function returns cause value.
func (PrincipalRule_ActionValidationError) Error ¶
func (e PrincipalRule_ActionValidationError) Error() string
Error satisfies the builtin error interface
func (PrincipalRule_ActionValidationError) ErrorName ¶
func (e PrincipalRule_ActionValidationError) ErrorName() string
ErrorName returns error name.
func (PrincipalRule_ActionValidationError) Field ¶
func (e PrincipalRule_ActionValidationError) Field() string
Field function returns field value.
func (PrincipalRule_ActionValidationError) Key ¶
func (e PrincipalRule_ActionValidationError) Key() bool
Key function returns key value.
func (PrincipalRule_ActionValidationError) Reason ¶
func (e PrincipalRule_ActionValidationError) Reason() string
Reason function returns reason value.
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"` // contains filtered or unexported fields }
func (*ResourcePolicy) Descriptor
deprecated
func (*ResourcePolicy) Descriptor() ([]byte, []int)
Deprecated: Use ResourcePolicy.ProtoReflect.Descriptor instead.
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 ¶ added in v0.11.0
func (x *ResourcePolicy) GetSchemas() *Schemas
func (*ResourcePolicy) GetScope ¶ added in v0.9.0
func (x *ResourcePolicy) GetScope() string
func (*ResourcePolicy) GetVersion ¶
func (x *ResourcePolicy) GetVersion() string
func (*ResourcePolicy) HashPB ¶ added in v0.13.0
func (m *ResourcePolicy) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*ResourcePolicy) MarshalToSizedBufferVT ¶
func (m *ResourcePolicy) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ResourcePolicy) MarshalToVT ¶
func (m *ResourcePolicy) MarshalToVT(dAtA []byte) (int, error)
func (*ResourcePolicy) MarshalVT ¶
func (m *ResourcePolicy) MarshalVT() (dAtA []byte, err error)
func (*ResourcePolicy) ProtoMessage ¶
func (*ResourcePolicy) ProtoMessage()
func (*ResourcePolicy) ProtoReflect ¶
func (x *ResourcePolicy) ProtoReflect() protoreflect.Message
func (*ResourcePolicy) Reset ¶
func (x *ResourcePolicy) Reset()
func (*ResourcePolicy) SizeVT ¶
func (m *ResourcePolicy) SizeVT() (n int)
func (*ResourcePolicy) String ¶
func (x *ResourcePolicy) String() string
func (*ResourcePolicy) UnmarshalVT ¶
func (m *ResourcePolicy) UnmarshalVT(dAtA []byte) error
func (*ResourcePolicy) Validate ¶
func (m *ResourcePolicy) Validate() error
Validate checks the field values on ResourcePolicy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ResourcePolicy) ValidateAll ¶ added in v0.12.0
func (m *ResourcePolicy) ValidateAll() error
ValidateAll checks the field values on ResourcePolicy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResourcePolicyMultiError, or nil if none found.
type ResourcePolicyMultiError ¶ added in v0.12.0
type ResourcePolicyMultiError []error
ResourcePolicyMultiError is an error wrapping multiple validation errors returned by ResourcePolicy.ValidateAll() if the designated constraints aren't met.
func (ResourcePolicyMultiError) AllErrors ¶ added in v0.12.0
func (m ResourcePolicyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResourcePolicyMultiError) Error ¶ added in v0.12.0
func (m ResourcePolicyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResourcePolicyValidationError ¶
type ResourcePolicyValidationError struct {
// contains filtered or unexported fields
}
ResourcePolicyValidationError is the validation error returned by ResourcePolicy.Validate if the designated constraints aren't met.
func (ResourcePolicyValidationError) Cause ¶
func (e ResourcePolicyValidationError) Cause() error
Cause function returns cause value.
func (ResourcePolicyValidationError) Error ¶
func (e ResourcePolicyValidationError) Error() string
Error satisfies the builtin error interface
func (ResourcePolicyValidationError) ErrorName ¶
func (e ResourcePolicyValidationError) ErrorName() string
ErrorName returns error name.
func (ResourcePolicyValidationError) Field ¶
func (e ResourcePolicyValidationError) Field() string
Field function returns field value.
func (ResourcePolicyValidationError) Key ¶
func (e ResourcePolicyValidationError) Key() bool
Key function returns key value.
func (ResourcePolicyValidationError) Reason ¶
func (e ResourcePolicyValidationError) Reason() string
Reason function returns reason value.
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"` // contains filtered or unexported fields }
func (*ResourceRule) Descriptor
deprecated
func (*ResourceRule) Descriptor() ([]byte, []int)
Deprecated: Use ResourceRule.ProtoReflect.Descriptor instead.
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 ¶ added in v0.8.0
func (x *ResourceRule) GetName() string
func (*ResourceRule) GetRoles ¶
func (x *ResourceRule) GetRoles() []string
func (*ResourceRule) HashPB ¶ added in v0.13.0
func (m *ResourceRule) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*ResourceRule) MarshalToSizedBufferVT ¶
func (m *ResourceRule) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ResourceRule) MarshalToVT ¶
func (m *ResourceRule) MarshalToVT(dAtA []byte) (int, error)
func (*ResourceRule) MarshalVT ¶
func (m *ResourceRule) MarshalVT() (dAtA []byte, err error)
func (*ResourceRule) ProtoMessage ¶
func (*ResourceRule) ProtoMessage()
func (*ResourceRule) ProtoReflect ¶
func (x *ResourceRule) ProtoReflect() protoreflect.Message
func (*ResourceRule) Reset ¶
func (x *ResourceRule) Reset()
func (*ResourceRule) SizeVT ¶
func (m *ResourceRule) SizeVT() (n int)
func (*ResourceRule) String ¶
func (x *ResourceRule) String() string
func (*ResourceRule) UnmarshalVT ¶
func (m *ResourceRule) UnmarshalVT(dAtA []byte) error
func (*ResourceRule) Validate ¶
func (m *ResourceRule) Validate() error
Validate checks the field values on ResourceRule with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ResourceRule) ValidateAll ¶ added in v0.12.0
func (m *ResourceRule) ValidateAll() error
ValidateAll checks the field values on ResourceRule with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResourceRuleMultiError, or nil if none found.
type ResourceRuleMultiError ¶ added in v0.12.0
type ResourceRuleMultiError []error
ResourceRuleMultiError is an error wrapping multiple validation errors returned by ResourceRule.ValidateAll() if the designated constraints aren't met.
func (ResourceRuleMultiError) AllErrors ¶ added in v0.12.0
func (m ResourceRuleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResourceRuleMultiError) Error ¶ added in v0.12.0
func (m ResourceRuleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResourceRuleValidationError ¶
type ResourceRuleValidationError struct {
// contains filtered or unexported fields
}
ResourceRuleValidationError is the validation error returned by ResourceRule.Validate if the designated constraints aren't met.
func (ResourceRuleValidationError) Cause ¶
func (e ResourceRuleValidationError) Cause() error
Cause function returns cause value.
func (ResourceRuleValidationError) Error ¶
func (e ResourceRuleValidationError) Error() string
Error satisfies the builtin error interface
func (ResourceRuleValidationError) ErrorName ¶
func (e ResourceRuleValidationError) ErrorName() string
ErrorName returns error name.
func (ResourceRuleValidationError) Field ¶
func (e ResourceRuleValidationError) Field() string
Field function returns field value.
func (ResourceRuleValidationError) Key ¶
func (e ResourceRuleValidationError) Key() bool
Key function returns key value.
func (ResourceRuleValidationError) Reason ¶
func (e ResourceRuleValidationError) Reason() string
Reason function returns reason value.
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) Descriptor
deprecated
func (*RoleDef) GetCondition ¶
func (*RoleDef) GetParentRoles ¶
func (*RoleDef) HashPB ¶ added in v0.13.0
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*RoleDef) MarshalToSizedBufferVT ¶
func (*RoleDef) ProtoMessage ¶
func (*RoleDef) ProtoMessage()
func (*RoleDef) ProtoReflect ¶
func (x *RoleDef) ProtoReflect() protoreflect.Message
func (*RoleDef) UnmarshalVT ¶
func (*RoleDef) Validate ¶
Validate checks the field values on RoleDef with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RoleDef) ValidateAll ¶ added in v0.12.0
ValidateAll checks the field values on RoleDef with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleDefMultiError, or nil if none found.
type RoleDefMultiError ¶ added in v0.12.0
type RoleDefMultiError []error
RoleDefMultiError is an error wrapping multiple validation errors returned by RoleDef.ValidateAll() if the designated constraints aren't met.
func (RoleDefMultiError) AllErrors ¶ added in v0.12.0
func (m RoleDefMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleDefMultiError) Error ¶ added in v0.12.0
func (m RoleDefMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleDefValidationError ¶
type RoleDefValidationError struct {
// contains filtered or unexported fields
}
RoleDefValidationError is the validation error returned by RoleDef.Validate if the designated constraints aren't met.
func (RoleDefValidationError) Cause ¶
func (e RoleDefValidationError) Cause() error
Cause function returns cause value.
func (RoleDefValidationError) Error ¶
func (e RoleDefValidationError) Error() string
Error satisfies the builtin error interface
func (RoleDefValidationError) ErrorName ¶
func (e RoleDefValidationError) ErrorName() string
ErrorName returns error name.
func (RoleDefValidationError) Field ¶
func (e RoleDefValidationError) Field() string
Field function returns field value.
func (RoleDefValidationError) Key ¶
func (e RoleDefValidationError) Key() bool
Key function returns key value.
func (RoleDefValidationError) Reason ¶
func (e RoleDefValidationError) Reason() string
Reason function returns reason value.
type Schemas ¶ added in v0.11.0
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) Descriptor
deprecated
added in
v0.11.0
func (*Schemas) GetPrincipalSchema ¶ added in v0.11.0
func (x *Schemas) GetPrincipalSchema() *Schemas_Schema
func (*Schemas) GetResourceSchema ¶ added in v0.11.0
func (x *Schemas) GetResourceSchema() *Schemas_Schema
func (*Schemas) HashPB ¶ added in v0.13.0
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Schemas) MarshalToSizedBufferVT ¶ added in v0.11.0
func (*Schemas) MarshalToVT ¶ added in v0.11.0
func (*Schemas) ProtoMessage ¶ added in v0.11.0
func (*Schemas) ProtoMessage()
func (*Schemas) ProtoReflect ¶ added in v0.11.0
func (x *Schemas) ProtoReflect() protoreflect.Message
func (*Schemas) UnmarshalVT ¶ added in v0.11.0
func (*Schemas) Validate ¶ added in v0.11.0
Validate checks the field values on Schemas with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Schemas) ValidateAll ¶ added in v0.12.0
ValidateAll checks the field values on Schemas with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SchemasMultiError, or nil if none found.
type SchemasMultiError ¶ added in v0.12.0
type SchemasMultiError []error
SchemasMultiError is an error wrapping multiple validation errors returned by Schemas.ValidateAll() if the designated constraints aren't met.
func (SchemasMultiError) AllErrors ¶ added in v0.12.0
func (m SchemasMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SchemasMultiError) Error ¶ added in v0.12.0
func (m SchemasMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SchemasValidationError ¶ added in v0.11.0
type SchemasValidationError struct {
// contains filtered or unexported fields
}
SchemasValidationError is the validation error returned by Schemas.Validate if the designated constraints aren't met.
func (SchemasValidationError) Cause ¶ added in v0.11.0
func (e SchemasValidationError) Cause() error
Cause function returns cause value.
func (SchemasValidationError) Error ¶ added in v0.11.0
func (e SchemasValidationError) Error() string
Error satisfies the builtin error interface
func (SchemasValidationError) ErrorName ¶ added in v0.11.0
func (e SchemasValidationError) ErrorName() string
ErrorName returns error name.
func (SchemasValidationError) Field ¶ added in v0.11.0
func (e SchemasValidationError) Field() string
Field function returns field value.
func (SchemasValidationError) Key ¶ added in v0.11.0
func (e SchemasValidationError) Key() bool
Key function returns key value.
func (SchemasValidationError) Reason ¶ added in v0.11.0
func (e SchemasValidationError) Reason() string
Reason function returns reason value.
type Schemas_IgnoreWhen ¶ added in v0.12.0
type Schemas_IgnoreWhen struct { Actions []string `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
func (*Schemas_IgnoreWhen) Descriptor
deprecated
added in
v0.12.0
func (*Schemas_IgnoreWhen) Descriptor() ([]byte, []int)
Deprecated: Use Schemas_IgnoreWhen.ProtoReflect.Descriptor instead.
func (*Schemas_IgnoreWhen) GetActions ¶ added in v0.12.0
func (x *Schemas_IgnoreWhen) GetActions() []string
func (*Schemas_IgnoreWhen) HashPB ¶ added in v0.13.0
func (m *Schemas_IgnoreWhen) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Schemas_IgnoreWhen) MarshalToSizedBufferVT ¶ added in v0.12.0
func (m *Schemas_IgnoreWhen) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Schemas_IgnoreWhen) MarshalToVT ¶ added in v0.12.0
func (m *Schemas_IgnoreWhen) MarshalToVT(dAtA []byte) (int, error)
func (*Schemas_IgnoreWhen) MarshalVT ¶ added in v0.12.0
func (m *Schemas_IgnoreWhen) MarshalVT() (dAtA []byte, err error)
func (*Schemas_IgnoreWhen) ProtoMessage ¶ added in v0.12.0
func (*Schemas_IgnoreWhen) ProtoMessage()
func (*Schemas_IgnoreWhen) ProtoReflect ¶ added in v0.12.0
func (x *Schemas_IgnoreWhen) ProtoReflect() protoreflect.Message
func (*Schemas_IgnoreWhen) Reset ¶ added in v0.12.0
func (x *Schemas_IgnoreWhen) Reset()
func (*Schemas_IgnoreWhen) SizeVT ¶ added in v0.12.0
func (m *Schemas_IgnoreWhen) SizeVT() (n int)
func (*Schemas_IgnoreWhen) String ¶ added in v0.12.0
func (x *Schemas_IgnoreWhen) String() string
func (*Schemas_IgnoreWhen) UnmarshalVT ¶ added in v0.12.0
func (m *Schemas_IgnoreWhen) UnmarshalVT(dAtA []byte) error
func (*Schemas_IgnoreWhen) Validate ¶ added in v0.12.0
func (m *Schemas_IgnoreWhen) Validate() error
Validate checks the field values on Schemas_IgnoreWhen with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Schemas_IgnoreWhen) ValidateAll ¶ added in v0.12.0
func (m *Schemas_IgnoreWhen) ValidateAll() error
ValidateAll checks the field values on Schemas_IgnoreWhen with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Schemas_IgnoreWhenMultiError, or nil if none found.
type Schemas_IgnoreWhenMultiError ¶ added in v0.12.0
type Schemas_IgnoreWhenMultiError []error
Schemas_IgnoreWhenMultiError is an error wrapping multiple validation errors returned by Schemas_IgnoreWhen.ValidateAll() if the designated constraints aren't met.
func (Schemas_IgnoreWhenMultiError) AllErrors ¶ added in v0.12.0
func (m Schemas_IgnoreWhenMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Schemas_IgnoreWhenMultiError) Error ¶ added in v0.12.0
func (m Schemas_IgnoreWhenMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Schemas_IgnoreWhenValidationError ¶ added in v0.12.0
type Schemas_IgnoreWhenValidationError struct {
// contains filtered or unexported fields
}
Schemas_IgnoreWhenValidationError is the validation error returned by Schemas_IgnoreWhen.Validate if the designated constraints aren't met.
func (Schemas_IgnoreWhenValidationError) Cause ¶ added in v0.12.0
func (e Schemas_IgnoreWhenValidationError) Cause() error
Cause function returns cause value.
func (Schemas_IgnoreWhenValidationError) Error ¶ added in v0.12.0
func (e Schemas_IgnoreWhenValidationError) Error() string
Error satisfies the builtin error interface
func (Schemas_IgnoreWhenValidationError) ErrorName ¶ added in v0.12.0
func (e Schemas_IgnoreWhenValidationError) ErrorName() string
ErrorName returns error name.
func (Schemas_IgnoreWhenValidationError) Field ¶ added in v0.12.0
func (e Schemas_IgnoreWhenValidationError) Field() string
Field function returns field value.
func (Schemas_IgnoreWhenValidationError) Key ¶ added in v0.12.0
func (e Schemas_IgnoreWhenValidationError) Key() bool
Key function returns key value.
func (Schemas_IgnoreWhenValidationError) Reason ¶ added in v0.12.0
func (e Schemas_IgnoreWhenValidationError) Reason() string
Reason function returns reason value.
type Schemas_Schema ¶ added in v0.11.0
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) Descriptor
deprecated
added in
v0.11.0
func (*Schemas_Schema) Descriptor() ([]byte, []int)
Deprecated: Use Schemas_Schema.ProtoReflect.Descriptor instead.
func (*Schemas_Schema) GetIgnoreWhen ¶ added in v0.12.0
func (x *Schemas_Schema) GetIgnoreWhen() *Schemas_IgnoreWhen
func (*Schemas_Schema) GetRef ¶ added in v0.11.0
func (x *Schemas_Schema) GetRef() string
func (*Schemas_Schema) HashPB ¶ added in v0.13.0
func (m *Schemas_Schema) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Schemas_Schema) MarshalToSizedBufferVT ¶ added in v0.11.0
func (m *Schemas_Schema) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Schemas_Schema) MarshalToVT ¶ added in v0.11.0
func (m *Schemas_Schema) MarshalToVT(dAtA []byte) (int, error)
func (*Schemas_Schema) MarshalVT ¶ added in v0.11.0
func (m *Schemas_Schema) MarshalVT() (dAtA []byte, err error)
func (*Schemas_Schema) ProtoMessage ¶ added in v0.11.0
func (*Schemas_Schema) ProtoMessage()
func (*Schemas_Schema) ProtoReflect ¶ added in v0.11.0
func (x *Schemas_Schema) ProtoReflect() protoreflect.Message
func (*Schemas_Schema) Reset ¶ added in v0.11.0
func (x *Schemas_Schema) Reset()
func (*Schemas_Schema) SizeVT ¶ added in v0.11.0
func (m *Schemas_Schema) SizeVT() (n int)
func (*Schemas_Schema) String ¶ added in v0.11.0
func (x *Schemas_Schema) String() string
func (*Schemas_Schema) UnmarshalVT ¶ added in v0.11.0
func (m *Schemas_Schema) UnmarshalVT(dAtA []byte) error
func (*Schemas_Schema) Validate ¶ added in v0.11.0
func (m *Schemas_Schema) Validate() error
Validate checks the field values on Schemas_Schema with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Schemas_Schema) ValidateAll ¶ added in v0.12.0
func (m *Schemas_Schema) ValidateAll() error
ValidateAll checks the field values on Schemas_Schema with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Schemas_SchemaMultiError, or nil if none found.
type Schemas_SchemaMultiError ¶ added in v0.12.0
type Schemas_SchemaMultiError []error
Schemas_SchemaMultiError is an error wrapping multiple validation errors returned by Schemas_Schema.ValidateAll() if the designated constraints aren't met.
func (Schemas_SchemaMultiError) AllErrors ¶ added in v0.12.0
func (m Schemas_SchemaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Schemas_SchemaMultiError) Error ¶ added in v0.12.0
func (m Schemas_SchemaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Schemas_SchemaValidationError ¶ added in v0.11.0
type Schemas_SchemaValidationError struct {
// contains filtered or unexported fields
}
Schemas_SchemaValidationError is the validation error returned by Schemas_Schema.Validate if the designated constraints aren't met.
func (Schemas_SchemaValidationError) Cause ¶ added in v0.11.0
func (e Schemas_SchemaValidationError) Cause() error
Cause function returns cause value.
func (Schemas_SchemaValidationError) Error ¶ added in v0.11.0
func (e Schemas_SchemaValidationError) Error() string
Error satisfies the builtin error interface
func (Schemas_SchemaValidationError) ErrorName ¶ added in v0.11.0
func (e Schemas_SchemaValidationError) ErrorName() string
ErrorName returns error name.
func (Schemas_SchemaValidationError) Field ¶ added in v0.11.0
func (e Schemas_SchemaValidationError) Field() string
Field function returns field value.
func (Schemas_SchemaValidationError) Key ¶ added in v0.11.0
func (e Schemas_SchemaValidationError) Key() bool
Key function returns key value.
func (Schemas_SchemaValidationError) Reason ¶ added in v0.11.0
func (e Schemas_SchemaValidationError) Reason() string
Reason function returns reason value.
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 `` /* 187-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Test) Descriptor
deprecated
func (*Test) GetDescription ¶
func (*Test) GetInput ¶
func (x *Test) GetInput() *v11.CheckInput
func (*Test) GetName ¶
func (x *Test) GetName() *Test_TestName
func (*Test) GetSkipReason ¶
func (*Test) HashPB ¶ added in v0.13.0
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Test) MarshalToSizedBufferVT ¶
func (*Test) ProtoMessage ¶
func (*Test) ProtoMessage()
func (*Test) ProtoReflect ¶
func (x *Test) ProtoReflect() protoreflect.Message
func (*Test) UnmarshalVT ¶
func (*Test) Validate ¶
Validate checks the field values on Test with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Test) ValidateAll ¶ added in v0.12.0
ValidateAll checks the field values on Test with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestMultiError, or nil if none found.
type TestFixture ¶ added in v0.7.0
type TestFixture struct {
// contains filtered or unexported fields
}
func (*TestFixture) Descriptor
deprecated
added in
v0.7.0
func (*TestFixture) Descriptor() ([]byte, []int)
Deprecated: Use TestFixture.ProtoReflect.Descriptor instead.
func (*TestFixture) MarshalToSizedBufferVT ¶ added in v0.7.0
func (m *TestFixture) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TestFixture) MarshalToVT ¶ added in v0.7.0
func (m *TestFixture) MarshalToVT(dAtA []byte) (int, error)
func (*TestFixture) MarshalVT ¶ added in v0.7.0
func (m *TestFixture) MarshalVT() (dAtA []byte, err error)
func (*TestFixture) ProtoMessage ¶ added in v0.7.0
func (*TestFixture) ProtoMessage()
func (*TestFixture) ProtoReflect ¶ added in v0.7.0
func (x *TestFixture) ProtoReflect() protoreflect.Message
func (*TestFixture) Reset ¶ added in v0.7.0
func (x *TestFixture) Reset()
func (*TestFixture) SizeVT ¶ added in v0.7.0
func (m *TestFixture) SizeVT() (n int)
func (*TestFixture) String ¶ added in v0.7.0
func (x *TestFixture) String() string
func (*TestFixture) UnmarshalVT ¶ added in v0.7.0
func (m *TestFixture) UnmarshalVT(dAtA []byte) error
func (*TestFixture) Validate ¶ added in v0.7.0
func (m *TestFixture) Validate() error
Validate checks the field values on TestFixture with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestFixture) ValidateAll ¶ added in v0.12.0
func (m *TestFixture) ValidateAll() error
ValidateAll checks the field values on TestFixture with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestFixtureMultiError, or nil if none found.
type TestFixtureMultiError ¶ added in v0.12.0
type TestFixtureMultiError []error
TestFixtureMultiError is an error wrapping multiple validation errors returned by TestFixture.ValidateAll() if the designated constraints aren't met.
func (TestFixtureMultiError) AllErrors ¶ added in v0.12.0
func (m TestFixtureMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestFixtureMultiError) Error ¶ added in v0.12.0
func (m TestFixtureMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestFixtureValidationError ¶ added in v0.7.0
type TestFixtureValidationError struct {
// contains filtered or unexported fields
}
TestFixtureValidationError is the validation error returned by TestFixture.Validate if the designated constraints aren't met.
func (TestFixtureValidationError) Cause ¶ added in v0.7.0
func (e TestFixtureValidationError) Cause() error
Cause function returns cause value.
func (TestFixtureValidationError) Error ¶ added in v0.7.0
func (e TestFixtureValidationError) Error() string
Error satisfies the builtin error interface
func (TestFixtureValidationError) ErrorName ¶ added in v0.7.0
func (e TestFixtureValidationError) ErrorName() string
ErrorName returns error name.
func (TestFixtureValidationError) Field ¶ added in v0.7.0
func (e TestFixtureValidationError) Field() string
Field function returns field value.
func (TestFixtureValidationError) Key ¶ added in v0.7.0
func (e TestFixtureValidationError) Key() bool
Key function returns key value.
func (TestFixtureValidationError) Reason ¶ added in v0.7.0
func (e TestFixtureValidationError) Reason() string
Reason function returns reason value.
type TestFixture_AuxData ¶ added in v0.12.0
type TestFixture_AuxData struct { AuxData map[string]*v11.AuxData `` /* 170-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TestFixture_AuxData) Descriptor
deprecated
added in
v0.12.0
func (*TestFixture_AuxData) Descriptor() ([]byte, []int)
Deprecated: Use TestFixture_AuxData.ProtoReflect.Descriptor instead.
func (*TestFixture_AuxData) GetAuxData ¶ added in v0.12.0
func (x *TestFixture_AuxData) GetAuxData() map[string]*v11.AuxData
func (*TestFixture_AuxData) MarshalToSizedBufferVT ¶ added in v0.12.0
func (m *TestFixture_AuxData) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TestFixture_AuxData) MarshalToVT ¶ added in v0.12.0
func (m *TestFixture_AuxData) MarshalToVT(dAtA []byte) (int, error)
func (*TestFixture_AuxData) MarshalVT ¶ added in v0.12.0
func (m *TestFixture_AuxData) MarshalVT() (dAtA []byte, err error)
func (*TestFixture_AuxData) ProtoMessage ¶ added in v0.12.0
func (*TestFixture_AuxData) ProtoMessage()
func (*TestFixture_AuxData) ProtoReflect ¶ added in v0.12.0
func (x *TestFixture_AuxData) ProtoReflect() protoreflect.Message
func (*TestFixture_AuxData) Reset ¶ added in v0.12.0
func (x *TestFixture_AuxData) Reset()
func (*TestFixture_AuxData) SizeVT ¶ added in v0.12.0
func (m *TestFixture_AuxData) SizeVT() (n int)
func (*TestFixture_AuxData) String ¶ added in v0.12.0
func (x *TestFixture_AuxData) String() string
func (*TestFixture_AuxData) UnmarshalVT ¶ added in v0.12.0
func (m *TestFixture_AuxData) UnmarshalVT(dAtA []byte) error
func (*TestFixture_AuxData) Validate ¶ added in v0.12.0
func (m *TestFixture_AuxData) Validate() error
Validate checks the field values on TestFixture_AuxData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestFixture_AuxData) ValidateAll ¶ added in v0.12.0
func (m *TestFixture_AuxData) ValidateAll() error
ValidateAll checks the field values on TestFixture_AuxData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestFixture_AuxDataMultiError, or nil if none found.
type TestFixture_AuxDataMultiError ¶ added in v0.12.0
type TestFixture_AuxDataMultiError []error
TestFixture_AuxDataMultiError is an error wrapping multiple validation errors returned by TestFixture_AuxData.ValidateAll() if the designated constraints aren't met.
func (TestFixture_AuxDataMultiError) AllErrors ¶ added in v0.12.0
func (m TestFixture_AuxDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestFixture_AuxDataMultiError) Error ¶ added in v0.12.0
func (m TestFixture_AuxDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestFixture_AuxDataValidationError ¶ added in v0.12.0
type TestFixture_AuxDataValidationError struct {
// contains filtered or unexported fields
}
TestFixture_AuxDataValidationError is the validation error returned by TestFixture_AuxData.Validate if the designated constraints aren't met.
func (TestFixture_AuxDataValidationError) Cause ¶ added in v0.12.0
func (e TestFixture_AuxDataValidationError) Cause() error
Cause function returns cause value.
func (TestFixture_AuxDataValidationError) Error ¶ added in v0.12.0
func (e TestFixture_AuxDataValidationError) Error() string
Error satisfies the builtin error interface
func (TestFixture_AuxDataValidationError) ErrorName ¶ added in v0.12.0
func (e TestFixture_AuxDataValidationError) ErrorName() string
ErrorName returns error name.
func (TestFixture_AuxDataValidationError) Field ¶ added in v0.12.0
func (e TestFixture_AuxDataValidationError) Field() string
Field function returns field value.
func (TestFixture_AuxDataValidationError) Key ¶ added in v0.12.0
func (e TestFixture_AuxDataValidationError) Key() bool
Key function returns key value.
func (TestFixture_AuxDataValidationError) Reason ¶ added in v0.12.0
func (e TestFixture_AuxDataValidationError) Reason() string
Reason function returns reason value.
type TestFixture_Principals ¶ added in v0.7.0
type TestFixture_Principals struct { Principals map[string]*v11.Principal `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TestFixture_Principals) Descriptor
deprecated
added in
v0.7.0
func (*TestFixture_Principals) Descriptor() ([]byte, []int)
Deprecated: Use TestFixture_Principals.ProtoReflect.Descriptor instead.
func (*TestFixture_Principals) GetPrincipals ¶ added in v0.7.0
func (x *TestFixture_Principals) GetPrincipals() map[string]*v11.Principal
func (*TestFixture_Principals) MarshalToSizedBufferVT ¶ added in v0.7.0
func (m *TestFixture_Principals) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TestFixture_Principals) MarshalToVT ¶ added in v0.7.0
func (m *TestFixture_Principals) MarshalToVT(dAtA []byte) (int, error)
func (*TestFixture_Principals) MarshalVT ¶ added in v0.7.0
func (m *TestFixture_Principals) MarshalVT() (dAtA []byte, err error)
func (*TestFixture_Principals) ProtoMessage ¶ added in v0.7.0
func (*TestFixture_Principals) ProtoMessage()
func (*TestFixture_Principals) ProtoReflect ¶ added in v0.7.0
func (x *TestFixture_Principals) ProtoReflect() protoreflect.Message
func (*TestFixture_Principals) Reset ¶ added in v0.7.0
func (x *TestFixture_Principals) Reset()
func (*TestFixture_Principals) SizeVT ¶ added in v0.7.0
func (m *TestFixture_Principals) SizeVT() (n int)
func (*TestFixture_Principals) String ¶ added in v0.7.0
func (x *TestFixture_Principals) String() string
func (*TestFixture_Principals) UnmarshalVT ¶ added in v0.7.0
func (m *TestFixture_Principals) UnmarshalVT(dAtA []byte) error
func (*TestFixture_Principals) Validate ¶ added in v0.7.0
func (m *TestFixture_Principals) Validate() error
Validate checks the field values on TestFixture_Principals with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestFixture_Principals) ValidateAll ¶ added in v0.12.0
func (m *TestFixture_Principals) ValidateAll() error
ValidateAll checks the field values on TestFixture_Principals with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestFixture_PrincipalsMultiError, or nil if none found.
type TestFixture_PrincipalsMultiError ¶ added in v0.12.0
type TestFixture_PrincipalsMultiError []error
TestFixture_PrincipalsMultiError is an error wrapping multiple validation errors returned by TestFixture_Principals.ValidateAll() if the designated constraints aren't met.
func (TestFixture_PrincipalsMultiError) AllErrors ¶ added in v0.12.0
func (m TestFixture_PrincipalsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestFixture_PrincipalsMultiError) Error ¶ added in v0.12.0
func (m TestFixture_PrincipalsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestFixture_PrincipalsValidationError ¶ added in v0.7.0
type TestFixture_PrincipalsValidationError struct {
// contains filtered or unexported fields
}
TestFixture_PrincipalsValidationError is the validation error returned by TestFixture_Principals.Validate if the designated constraints aren't met.
func (TestFixture_PrincipalsValidationError) Cause ¶ added in v0.7.0
func (e TestFixture_PrincipalsValidationError) Cause() error
Cause function returns cause value.
func (TestFixture_PrincipalsValidationError) Error ¶ added in v0.7.0
func (e TestFixture_PrincipalsValidationError) Error() string
Error satisfies the builtin error interface
func (TestFixture_PrincipalsValidationError) ErrorName ¶ added in v0.7.0
func (e TestFixture_PrincipalsValidationError) ErrorName() string
ErrorName returns error name.
func (TestFixture_PrincipalsValidationError) Field ¶ added in v0.7.0
func (e TestFixture_PrincipalsValidationError) Field() string
Field function returns field value.
func (TestFixture_PrincipalsValidationError) Key ¶ added in v0.7.0
func (e TestFixture_PrincipalsValidationError) Key() bool
Key function returns key value.
func (TestFixture_PrincipalsValidationError) Reason ¶ added in v0.7.0
func (e TestFixture_PrincipalsValidationError) Reason() string
Reason function returns reason value.
type TestFixture_Resources ¶ added in v0.7.0
type TestFixture_Resources struct { Resources map[string]*v11.Resource `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TestFixture_Resources) Descriptor
deprecated
added in
v0.7.0
func (*TestFixture_Resources) Descriptor() ([]byte, []int)
Deprecated: Use TestFixture_Resources.ProtoReflect.Descriptor instead.
func (*TestFixture_Resources) GetResources ¶ added in v0.7.0
func (x *TestFixture_Resources) GetResources() map[string]*v11.Resource
func (*TestFixture_Resources) MarshalToSizedBufferVT ¶ added in v0.7.0
func (m *TestFixture_Resources) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TestFixture_Resources) MarshalToVT ¶ added in v0.7.0
func (m *TestFixture_Resources) MarshalToVT(dAtA []byte) (int, error)
func (*TestFixture_Resources) MarshalVT ¶ added in v0.7.0
func (m *TestFixture_Resources) MarshalVT() (dAtA []byte, err error)
func (*TestFixture_Resources) ProtoMessage ¶ added in v0.7.0
func (*TestFixture_Resources) ProtoMessage()
func (*TestFixture_Resources) ProtoReflect ¶ added in v0.7.0
func (x *TestFixture_Resources) ProtoReflect() protoreflect.Message
func (*TestFixture_Resources) Reset ¶ added in v0.7.0
func (x *TestFixture_Resources) Reset()
func (*TestFixture_Resources) SizeVT ¶ added in v0.7.0
func (m *TestFixture_Resources) SizeVT() (n int)
func (*TestFixture_Resources) String ¶ added in v0.7.0
func (x *TestFixture_Resources) String() string
func (*TestFixture_Resources) UnmarshalVT ¶ added in v0.7.0
func (m *TestFixture_Resources) UnmarshalVT(dAtA []byte) error
func (*TestFixture_Resources) Validate ¶ added in v0.7.0
func (m *TestFixture_Resources) Validate() error
Validate checks the field values on TestFixture_Resources with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestFixture_Resources) ValidateAll ¶ added in v0.12.0
func (m *TestFixture_Resources) ValidateAll() error
ValidateAll checks the field values on TestFixture_Resources with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestFixture_ResourcesMultiError, or nil if none found.
type TestFixture_ResourcesMultiError ¶ added in v0.12.0
type TestFixture_ResourcesMultiError []error
TestFixture_ResourcesMultiError is an error wrapping multiple validation errors returned by TestFixture_Resources.ValidateAll() if the designated constraints aren't met.
func (TestFixture_ResourcesMultiError) AllErrors ¶ added in v0.12.0
func (m TestFixture_ResourcesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestFixture_ResourcesMultiError) Error ¶ added in v0.12.0
func (m TestFixture_ResourcesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestFixture_ResourcesValidationError ¶ added in v0.7.0
type TestFixture_ResourcesValidationError struct {
// contains filtered or unexported fields
}
TestFixture_ResourcesValidationError is the validation error returned by TestFixture_Resources.Validate if the designated constraints aren't met.
func (TestFixture_ResourcesValidationError) Cause ¶ added in v0.7.0
func (e TestFixture_ResourcesValidationError) Cause() error
Cause function returns cause value.
func (TestFixture_ResourcesValidationError) Error ¶ added in v0.7.0
func (e TestFixture_ResourcesValidationError) Error() string
Error satisfies the builtin error interface
func (TestFixture_ResourcesValidationError) ErrorName ¶ added in v0.7.0
func (e TestFixture_ResourcesValidationError) ErrorName() string
ErrorName returns error name.
func (TestFixture_ResourcesValidationError) Field ¶ added in v0.7.0
func (e TestFixture_ResourcesValidationError) Field() string
Field function returns field value.
func (TestFixture_ResourcesValidationError) Key ¶ added in v0.7.0
func (e TestFixture_ResourcesValidationError) Key() bool
Key function returns key value.
func (TestFixture_ResourcesValidationError) Reason ¶ added in v0.7.0
func (e TestFixture_ResourcesValidationError) Reason() string
Reason function returns reason value.
type TestMultiError ¶ added in v0.12.0
type TestMultiError []error
TestMultiError is an error wrapping multiple validation errors returned by Test.ValidateAll() if the designated constraints aren't met.
func (TestMultiError) AllErrors ¶ added in v0.12.0
func (m TestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestMultiError) Error ¶ added in v0.12.0
func (m TestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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 `` /* 161-byte string literal not displayed */ Resources map[string]*v11.Resource `` /* 159-byte string literal not displayed */ AuxData map[string]*v11.AuxData `` /* 170-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TestSuite) Descriptor
deprecated
func (*TestSuite) GetAuxData ¶ added in v0.12.0
func (*TestSuite) GetDescription ¶
func (*TestSuite) GetPrincipals ¶ added in v0.7.0
func (*TestSuite) GetResources ¶ added in v0.7.0
func (*TestSuite) GetSkipReason ¶
func (*TestSuite) HashPB ¶ added in v0.13.0
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*TestSuite) MarshalToSizedBufferVT ¶
func (*TestSuite) ProtoMessage ¶
func (*TestSuite) ProtoMessage()
func (*TestSuite) ProtoReflect ¶
func (x *TestSuite) ProtoReflect() protoreflect.Message
func (*TestSuite) UnmarshalVT ¶
func (*TestSuite) Validate ¶
Validate checks the field values on TestSuite with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestSuite) ValidateAll ¶ added in v0.12.0
ValidateAll checks the field values on TestSuite with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestSuiteMultiError, or nil if none found.
type TestSuiteMultiError ¶ added in v0.12.0
type TestSuiteMultiError []error
TestSuiteMultiError is an error wrapping multiple validation errors returned by TestSuite.ValidateAll() if the designated constraints aren't met.
func (TestSuiteMultiError) AllErrors ¶ added in v0.12.0
func (m TestSuiteMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestSuiteMultiError) Error ¶ added in v0.12.0
func (m TestSuiteMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestSuiteValidationError ¶
type TestSuiteValidationError struct {
// contains filtered or unexported fields
}
TestSuiteValidationError is the validation error returned by TestSuite.Validate if the designated constraints aren't met.
func (TestSuiteValidationError) Cause ¶
func (e TestSuiteValidationError) Cause() error
Cause function returns cause value.
func (TestSuiteValidationError) Error ¶
func (e TestSuiteValidationError) Error() string
Error satisfies the builtin error interface
func (TestSuiteValidationError) ErrorName ¶
func (e TestSuiteValidationError) ErrorName() string
ErrorName returns error name.
func (TestSuiteValidationError) Field ¶
func (e TestSuiteValidationError) Field() string
Field function returns field value.
func (TestSuiteValidationError) Key ¶
func (e TestSuiteValidationError) Key() bool
Key function returns key value.
func (TestSuiteValidationError) Reason ¶
func (e TestSuiteValidationError) Reason() string
Reason function returns reason value.
type TestTable ¶ added in v0.7.0
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_CheckInput `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` Expected []*TestTable_ExpectedItem `protobuf:"bytes,6,rep,name=expected,proto3" json:"expected,omitempty"` // contains filtered or unexported fields }
func (*TestTable) Descriptor
deprecated
added in
v0.7.0
func (*TestTable) GetDescription ¶ added in v0.7.0
func (*TestTable) GetExpected ¶ added in v0.7.0
func (x *TestTable) GetExpected() []*TestTable_ExpectedItem
func (*TestTable) GetInput ¶ added in v0.7.0
func (x *TestTable) GetInput() *TestTable_CheckInput
func (*TestTable) GetSkipReason ¶ added in v0.7.0
func (*TestTable) HashPB ¶ added in v0.13.0
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*TestTable) MarshalToSizedBufferVT ¶ added in v0.7.0
func (*TestTable) MarshalToVT ¶ added in v0.7.0
func (*TestTable) ProtoMessage ¶ added in v0.7.0
func (*TestTable) ProtoMessage()
func (*TestTable) ProtoReflect ¶ added in v0.7.0
func (x *TestTable) ProtoReflect() protoreflect.Message
func (*TestTable) UnmarshalVT ¶ added in v0.7.0
func (*TestTable) Validate ¶ added in v0.7.0
Validate checks the field values on TestTable with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestTable) ValidateAll ¶ added in v0.12.0
ValidateAll checks the field values on TestTable with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestTableMultiError, or nil if none found.
type TestTableMultiError ¶ added in v0.12.0
type TestTableMultiError []error
TestTableMultiError is an error wrapping multiple validation errors returned by TestTable.ValidateAll() if the designated constraints aren't met.
func (TestTableMultiError) AllErrors ¶ added in v0.12.0
func (m TestTableMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestTableMultiError) Error ¶ added in v0.12.0
func (m TestTableMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestTableValidationError ¶ added in v0.7.0
type TestTableValidationError struct {
// contains filtered or unexported fields
}
TestTableValidationError is the validation error returned by TestTable.Validate if the designated constraints aren't met.
func (TestTableValidationError) Cause ¶ added in v0.7.0
func (e TestTableValidationError) Cause() error
Cause function returns cause value.
func (TestTableValidationError) Error ¶ added in v0.7.0
func (e TestTableValidationError) Error() string
Error satisfies the builtin error interface
func (TestTableValidationError) ErrorName ¶ added in v0.7.0
func (e TestTableValidationError) ErrorName() string
ErrorName returns error name.
func (TestTableValidationError) Field ¶ added in v0.7.0
func (e TestTableValidationError) Field() string
Field function returns field value.
func (TestTableValidationError) Key ¶ added in v0.7.0
func (e TestTableValidationError) Key() bool
Key function returns key value.
func (TestTableValidationError) Reason ¶ added in v0.7.0
func (e TestTableValidationError) Reason() string
Reason function returns reason value.
type TestTable_CheckInput ¶ added in v0.7.0
type TestTable_CheckInput struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,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"` // contains filtered or unexported fields }
func (*TestTable_CheckInput) Descriptor
deprecated
added in
v0.7.0
func (*TestTable_CheckInput) Descriptor() ([]byte, []int)
Deprecated: Use TestTable_CheckInput.ProtoReflect.Descriptor instead.
func (*TestTable_CheckInput) GetActions ¶ added in v0.7.0
func (x *TestTable_CheckInput) GetActions() []string
func (*TestTable_CheckInput) GetAuxData ¶ added in v0.12.0
func (x *TestTable_CheckInput) GetAuxData() string
func (*TestTable_CheckInput) GetRequestId ¶ added in v0.7.0
func (x *TestTable_CheckInput) GetRequestId() string
func (*TestTable_CheckInput) GetResource ¶ added in v0.7.0
func (x *TestTable_CheckInput) GetResource() string
func (*TestTable_CheckInput) HashPB ¶ added in v0.13.0
func (m *TestTable_CheckInput) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*TestTable_CheckInput) MarshalToSizedBufferVT ¶ added in v0.7.0
func (m *TestTable_CheckInput) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TestTable_CheckInput) MarshalToVT ¶ added in v0.7.0
func (m *TestTable_CheckInput) MarshalToVT(dAtA []byte) (int, error)
func (*TestTable_CheckInput) MarshalVT ¶ added in v0.7.0
func (m *TestTable_CheckInput) MarshalVT() (dAtA []byte, err error)
func (*TestTable_CheckInput) ProtoMessage ¶ added in v0.7.0
func (*TestTable_CheckInput) ProtoMessage()
func (*TestTable_CheckInput) ProtoReflect ¶ added in v0.7.0
func (x *TestTable_CheckInput) ProtoReflect() protoreflect.Message
func (*TestTable_CheckInput) Reset ¶ added in v0.7.0
func (x *TestTable_CheckInput) Reset()
func (*TestTable_CheckInput) SizeVT ¶ added in v0.7.0
func (m *TestTable_CheckInput) SizeVT() (n int)
func (*TestTable_CheckInput) String ¶ added in v0.7.0
func (x *TestTable_CheckInput) String() string
func (*TestTable_CheckInput) UnmarshalVT ¶ added in v0.7.0
func (m *TestTable_CheckInput) UnmarshalVT(dAtA []byte) error
func (*TestTable_CheckInput) Validate ¶ added in v0.7.0
func (m *TestTable_CheckInput) Validate() error
Validate checks the field values on TestTable_CheckInput with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestTable_CheckInput) ValidateAll ¶ added in v0.12.0
func (m *TestTable_CheckInput) ValidateAll() error
ValidateAll checks the field values on TestTable_CheckInput with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestTable_CheckInputMultiError, or nil if none found.
type TestTable_CheckInputMultiError ¶ added in v0.12.0
type TestTable_CheckInputMultiError []error
TestTable_CheckInputMultiError is an error wrapping multiple validation errors returned by TestTable_CheckInput.ValidateAll() if the designated constraints aren't met.
func (TestTable_CheckInputMultiError) AllErrors ¶ added in v0.12.0
func (m TestTable_CheckInputMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestTable_CheckInputMultiError) Error ¶ added in v0.12.0
func (m TestTable_CheckInputMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestTable_CheckInputValidationError ¶ added in v0.7.0
type TestTable_CheckInputValidationError struct {
// contains filtered or unexported fields
}
TestTable_CheckInputValidationError is the validation error returned by TestTable_CheckInput.Validate if the designated constraints aren't met.
func (TestTable_CheckInputValidationError) Cause ¶ added in v0.7.0
func (e TestTable_CheckInputValidationError) Cause() error
Cause function returns cause value.
func (TestTable_CheckInputValidationError) Error ¶ added in v0.7.0
func (e TestTable_CheckInputValidationError) Error() string
Error satisfies the builtin error interface
func (TestTable_CheckInputValidationError) ErrorName ¶ added in v0.7.0
func (e TestTable_CheckInputValidationError) ErrorName() string
ErrorName returns error name.
func (TestTable_CheckInputValidationError) Field ¶ added in v0.7.0
func (e TestTable_CheckInputValidationError) Field() string
Field function returns field value.
func (TestTable_CheckInputValidationError) Key ¶ added in v0.7.0
func (e TestTable_CheckInputValidationError) Key() bool
Key function returns key value.
func (TestTable_CheckInputValidationError) Reason ¶ added in v0.7.0
func (e TestTable_CheckInputValidationError) Reason() string
Reason function returns reason value.
type TestTable_ExpectedItem ¶ added in v0.7.0
type TestTable_ExpectedItem struct { Principal string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"` Actions map[string]v1.Effect `` /* 185-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TestTable_ExpectedItem) Descriptor
deprecated
added in
v0.7.0
func (*TestTable_ExpectedItem) Descriptor() ([]byte, []int)
Deprecated: Use TestTable_ExpectedItem.ProtoReflect.Descriptor instead.
func (*TestTable_ExpectedItem) GetActions ¶ added in v0.7.0
func (x *TestTable_ExpectedItem) GetActions() map[string]v1.Effect
func (*TestTable_ExpectedItem) GetPrincipal ¶ added in v0.7.0
func (x *TestTable_ExpectedItem) GetPrincipal() string
func (*TestTable_ExpectedItem) HashPB ¶ added in v0.13.0
func (m *TestTable_ExpectedItem) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*TestTable_ExpectedItem) MarshalToSizedBufferVT ¶ added in v0.7.0
func (m *TestTable_ExpectedItem) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TestTable_ExpectedItem) MarshalToVT ¶ added in v0.7.0
func (m *TestTable_ExpectedItem) MarshalToVT(dAtA []byte) (int, error)
func (*TestTable_ExpectedItem) MarshalVT ¶ added in v0.7.0
func (m *TestTable_ExpectedItem) MarshalVT() (dAtA []byte, err error)
func (*TestTable_ExpectedItem) ProtoMessage ¶ added in v0.7.0
func (*TestTable_ExpectedItem) ProtoMessage()
func (*TestTable_ExpectedItem) ProtoReflect ¶ added in v0.7.0
func (x *TestTable_ExpectedItem) ProtoReflect() protoreflect.Message
func (*TestTable_ExpectedItem) Reset ¶ added in v0.7.0
func (x *TestTable_ExpectedItem) Reset()
func (*TestTable_ExpectedItem) SizeVT ¶ added in v0.7.0
func (m *TestTable_ExpectedItem) SizeVT() (n int)
func (*TestTable_ExpectedItem) String ¶ added in v0.7.0
func (x *TestTable_ExpectedItem) String() string
func (*TestTable_ExpectedItem) UnmarshalVT ¶ added in v0.7.0
func (m *TestTable_ExpectedItem) UnmarshalVT(dAtA []byte) error
func (*TestTable_ExpectedItem) Validate ¶ added in v0.7.0
func (m *TestTable_ExpectedItem) Validate() error
Validate checks the field values on TestTable_ExpectedItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestTable_ExpectedItem) ValidateAll ¶ added in v0.12.0
func (m *TestTable_ExpectedItem) ValidateAll() error
ValidateAll checks the field values on TestTable_ExpectedItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestTable_ExpectedItemMultiError, or nil if none found.
type TestTable_ExpectedItemMultiError ¶ added in v0.12.0
type TestTable_ExpectedItemMultiError []error
TestTable_ExpectedItemMultiError is an error wrapping multiple validation errors returned by TestTable_ExpectedItem.ValidateAll() if the designated constraints aren't met.
func (TestTable_ExpectedItemMultiError) AllErrors ¶ added in v0.12.0
func (m TestTable_ExpectedItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestTable_ExpectedItemMultiError) Error ¶ added in v0.12.0
func (m TestTable_ExpectedItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestTable_ExpectedItemValidationError ¶ added in v0.7.0
type TestTable_ExpectedItemValidationError struct {
// contains filtered or unexported fields
}
TestTable_ExpectedItemValidationError is the validation error returned by TestTable_ExpectedItem.Validate if the designated constraints aren't met.
func (TestTable_ExpectedItemValidationError) Cause ¶ added in v0.7.0
func (e TestTable_ExpectedItemValidationError) Cause() error
Cause function returns cause value.
func (TestTable_ExpectedItemValidationError) Error ¶ added in v0.7.0
func (e TestTable_ExpectedItemValidationError) Error() string
Error satisfies the builtin error interface
func (TestTable_ExpectedItemValidationError) ErrorName ¶ added in v0.7.0
func (e TestTable_ExpectedItemValidationError) ErrorName() string
ErrorName returns error name.
func (TestTable_ExpectedItemValidationError) Field ¶ added in v0.7.0
func (e TestTable_ExpectedItemValidationError) Field() string
Field function returns field value.
func (TestTable_ExpectedItemValidationError) Key ¶ added in v0.7.0
func (e TestTable_ExpectedItemValidationError) Key() bool
Key function returns key value.
func (TestTable_ExpectedItemValidationError) Reason ¶ added in v0.7.0
func (e TestTable_ExpectedItemValidationError) Reason() string
Reason function returns reason value.
type TestValidationError ¶
type TestValidationError struct {
// contains filtered or unexported fields
}
TestValidationError is the validation error returned by Test.Validate if the designated constraints aren't met.
func (TestValidationError) Cause ¶
func (e TestValidationError) Cause() error
Cause function returns cause value.
func (TestValidationError) Error ¶
func (e TestValidationError) Error() string
Error satisfies the builtin error interface
func (TestValidationError) ErrorName ¶
func (e TestValidationError) ErrorName() string
ErrorName returns error name.
func (TestValidationError) Field ¶
func (e TestValidationError) Field() string
Field function returns field value.
func (TestValidationError) Key ¶
func (e TestValidationError) Key() bool
Key function returns key value.
func (TestValidationError) Reason ¶
func (e TestValidationError) Reason() string
Reason function returns reason value.
type Test_TestName ¶ added in v0.7.0
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"` // contains filtered or unexported fields }
func (*Test_TestName) Descriptor
deprecated
added in
v0.7.0
func (*Test_TestName) Descriptor() ([]byte, []int)
Deprecated: Use Test_TestName.ProtoReflect.Descriptor instead.
func (*Test_TestName) GetPrincipalKey ¶ added in v0.7.0
func (x *Test_TestName) GetPrincipalKey() string
func (*Test_TestName) GetTestTableName ¶ added in v0.7.0
func (x *Test_TestName) GetTestTableName() string
func (*Test_TestName) HashPB ¶ added in v0.13.0
func (m *Test_TestName) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Test_TestName) MarshalToSizedBufferVT ¶ added in v0.7.0
func (m *Test_TestName) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Test_TestName) MarshalToVT ¶ added in v0.7.0
func (m *Test_TestName) MarshalToVT(dAtA []byte) (int, error)
func (*Test_TestName) MarshalVT ¶ added in v0.7.0
func (m *Test_TestName) MarshalVT() (dAtA []byte, err error)
func (*Test_TestName) ProtoMessage ¶ added in v0.7.0
func (*Test_TestName) ProtoMessage()
func (*Test_TestName) ProtoReflect ¶ added in v0.7.0
func (x *Test_TestName) ProtoReflect() protoreflect.Message
func (*Test_TestName) Reset ¶ added in v0.7.0
func (x *Test_TestName) Reset()
func (*Test_TestName) SizeVT ¶ added in v0.7.0
func (m *Test_TestName) SizeVT() (n int)
func (*Test_TestName) String ¶ added in v0.7.0
func (x *Test_TestName) String() string
func (*Test_TestName) UnmarshalVT ¶ added in v0.7.0
func (m *Test_TestName) UnmarshalVT(dAtA []byte) error
func (*Test_TestName) Validate ¶ added in v0.7.0
func (m *Test_TestName) Validate() error
Validate checks the field values on Test_TestName with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Test_TestName) ValidateAll ¶ added in v0.12.0
func (m *Test_TestName) ValidateAll() error
ValidateAll checks the field values on Test_TestName with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Test_TestNameMultiError, or nil if none found.
type Test_TestNameMultiError ¶ added in v0.12.0
type Test_TestNameMultiError []error
Test_TestNameMultiError is an error wrapping multiple validation errors returned by Test_TestName.ValidateAll() if the designated constraints aren't met.
func (Test_TestNameMultiError) AllErrors ¶ added in v0.12.0
func (m Test_TestNameMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Test_TestNameMultiError) Error ¶ added in v0.12.0
func (m Test_TestNameMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Test_TestNameValidationError ¶ added in v0.7.0
type Test_TestNameValidationError struct {
// contains filtered or unexported fields
}
Test_TestNameValidationError is the validation error returned by Test_TestName.Validate if the designated constraints aren't met.
func (Test_TestNameValidationError) Cause ¶ added in v0.7.0
func (e Test_TestNameValidationError) Cause() error
Cause function returns cause value.
func (Test_TestNameValidationError) Error ¶ added in v0.7.0
func (e Test_TestNameValidationError) Error() string
Error satisfies the builtin error interface
func (Test_TestNameValidationError) ErrorName ¶ added in v0.7.0
func (e Test_TestNameValidationError) ErrorName() string
ErrorName returns error name.
func (Test_TestNameValidationError) Field ¶ added in v0.7.0
func (e Test_TestNameValidationError) Field() string
Field function returns field value.
func (Test_TestNameValidationError) Key ¶ added in v0.7.0
func (e Test_TestNameValidationError) Key() bool
Key function returns key value.
func (Test_TestNameValidationError) Reason ¶ added in v0.7.0
func (e Test_TestNameValidationError) Reason() string
Reason function returns reason value.