Documentation ¶
Index ¶
- Variables
- type CheckInput
- func (*CheckInput) Descriptor() ([]byte, []int)deprecated
- func (x *CheckInput) GetActions() []string
- func (x *CheckInput) GetPrincipal() *Principal
- func (x *CheckInput) GetRequestId() string
- func (x *CheckInput) GetResource() *Resource
- func (m *CheckInput) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CheckInput) MarshalToVT(dAtA []byte) (int, error)
- func (m *CheckInput) MarshalVT() (dAtA []byte, err error)
- func (*CheckInput) ProtoMessage()
- func (x *CheckInput) ProtoReflect() protoreflect.Message
- func (x *CheckInput) Reset()
- func (m *CheckInput) SizeVT() (n int)
- func (x *CheckInput) String() string
- func (m *CheckInput) UnmarshalVT(dAtA []byte) error
- func (m *CheckInput) Validate() error
- type CheckInputValidationError
- type CheckOutput
- func (*CheckOutput) Descriptor() ([]byte, []int)deprecated
- func (x *CheckOutput) GetActions() map[string]*CheckOutput_ActionEffect
- func (x *CheckOutput) GetEffectiveDerivedRoles() []string
- func (x *CheckOutput) GetRequestId() string
- func (x *CheckOutput) GetResourceId() string
- func (m *CheckOutput) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CheckOutput) MarshalToVT(dAtA []byte) (int, error)
- func (m *CheckOutput) MarshalVT() (dAtA []byte, err error)
- func (*CheckOutput) ProtoMessage()
- func (x *CheckOutput) ProtoReflect() protoreflect.Message
- func (x *CheckOutput) Reset()
- func (m *CheckOutput) SizeVT() (n int)
- func (x *CheckOutput) String() string
- func (m *CheckOutput) UnmarshalVT(dAtA []byte) error
- func (m *CheckOutput) Validate() error
- type CheckOutputValidationError
- func (e CheckOutputValidationError) Cause() error
- func (e CheckOutputValidationError) Error() string
- func (e CheckOutputValidationError) ErrorName() string
- func (e CheckOutputValidationError) Field() string
- func (e CheckOutputValidationError) Key() bool
- func (e CheckOutputValidationError) Reason() string
- type CheckOutput_ActionEffect
- func (*CheckOutput_ActionEffect) Descriptor() ([]byte, []int)deprecated
- func (x *CheckOutput_ActionEffect) GetEffect() v1.Effect
- func (x *CheckOutput_ActionEffect) GetPolicy() string
- func (m *CheckOutput_ActionEffect) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CheckOutput_ActionEffect) MarshalToVT(dAtA []byte) (int, error)
- func (m *CheckOutput_ActionEffect) MarshalVT() (dAtA []byte, err error)
- func (*CheckOutput_ActionEffect) ProtoMessage()
- func (x *CheckOutput_ActionEffect) ProtoReflect() protoreflect.Message
- func (x *CheckOutput_ActionEffect) Reset()
- func (m *CheckOutput_ActionEffect) SizeVT() (n int)
- func (x *CheckOutput_ActionEffect) String() string
- func (m *CheckOutput_ActionEffect) UnmarshalVT(dAtA []byte) error
- func (m *CheckOutput_ActionEffect) Validate() error
- type CheckOutput_ActionEffectValidationError
- func (e CheckOutput_ActionEffectValidationError) Cause() error
- func (e CheckOutput_ActionEffectValidationError) Error() string
- func (e CheckOutput_ActionEffectValidationError) ErrorName() string
- func (e CheckOutput_ActionEffectValidationError) Field() string
- func (e CheckOutput_ActionEffectValidationError) Key() bool
- func (e CheckOutput_ActionEffectValidationError) Reason() string
- type Principal
- func (*Principal) Descriptor() ([]byte, []int)deprecated
- func (x *Principal) GetAttr() map[string]*structpb.Value
- func (x *Principal) GetId() string
- func (x *Principal) GetPolicyVersion() string
- func (x *Principal) GetRoles() []string
- func (m *Principal) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Principal) MarshalToVT(dAtA []byte) (int, error)
- func (m *Principal) MarshalVT() (dAtA []byte, err error)
- func (*Principal) ProtoMessage()
- func (x *Principal) ProtoReflect() protoreflect.Message
- func (x *Principal) Reset()
- func (m *Principal) SizeVT() (n int)
- func (x *Principal) String() string
- func (m *Principal) UnmarshalVT(dAtA []byte) error
- func (m *Principal) Validate() error
- type PrincipalValidationError
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetAttr() map[string]*structpb.Value
- func (x *Resource) GetId() string
- func (x *Resource) GetKind() string
- func (x *Resource) GetPolicyVersion() string
- func (m *Resource) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Resource) MarshalToVT(dAtA []byte) (int, error)
- func (m *Resource) MarshalVT() (dAtA []byte, err error)
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (m *Resource) SizeVT() (n int)
- func (x *Resource) String() string
- func (m *Resource) UnmarshalVT(dAtA []byte) error
- func (m *Resource) Validate() error
- type ResourceValidationError
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_engine_v1_engine_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CheckInput ¶
type CheckInput struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` Principal *Principal `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"` Actions []string `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
func (*CheckInput) Descriptor
deprecated
func (*CheckInput) Descriptor() ([]byte, []int)
Deprecated: Use CheckInput.ProtoReflect.Descriptor instead.
func (*CheckInput) GetActions ¶
func (x *CheckInput) GetActions() []string
func (*CheckInput) GetPrincipal ¶
func (x *CheckInput) GetPrincipal() *Principal
func (*CheckInput) GetRequestId ¶
func (x *CheckInput) GetRequestId() string
func (*CheckInput) GetResource ¶
func (x *CheckInput) GetResource() *Resource
func (*CheckInput) MarshalToSizedBufferVT ¶
func (m *CheckInput) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CheckInput) MarshalToVT ¶
func (m *CheckInput) MarshalToVT(dAtA []byte) (int, error)
func (*CheckInput) MarshalVT ¶
func (m *CheckInput) MarshalVT() (dAtA []byte, err error)
func (*CheckInput) ProtoMessage ¶
func (*CheckInput) ProtoMessage()
func (*CheckInput) ProtoReflect ¶
func (x *CheckInput) ProtoReflect() protoreflect.Message
func (*CheckInput) Reset ¶
func (x *CheckInput) Reset()
func (*CheckInput) SizeVT ¶
func (m *CheckInput) SizeVT() (n int)
func (*CheckInput) String ¶
func (x *CheckInput) String() string
func (*CheckInput) UnmarshalVT ¶
func (m *CheckInput) UnmarshalVT(dAtA []byte) error
func (*CheckInput) Validate ¶
func (m *CheckInput) Validate() error
Validate checks the field values on CheckInput with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CheckInputValidationError ¶
type CheckInputValidationError struct {
// contains filtered or unexported fields
}
CheckInputValidationError is the validation error returned by CheckInput.Validate if the designated constraints aren't met.
func (CheckInputValidationError) Cause ¶
func (e CheckInputValidationError) Cause() error
Cause function returns cause value.
func (CheckInputValidationError) Error ¶
func (e CheckInputValidationError) Error() string
Error satisfies the builtin error interface
func (CheckInputValidationError) ErrorName ¶
func (e CheckInputValidationError) ErrorName() string
ErrorName returns error name.
func (CheckInputValidationError) Field ¶
func (e CheckInputValidationError) Field() string
Field function returns field value.
func (CheckInputValidationError) Key ¶
func (e CheckInputValidationError) Key() bool
Key function returns key value.
func (CheckInputValidationError) Reason ¶
func (e CheckInputValidationError) Reason() string
Reason function returns reason value.
type CheckOutput ¶
type CheckOutput struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` Actions map[string]*CheckOutput_ActionEffect `` /* 155-byte string literal not displayed */ EffectiveDerivedRoles []string `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CheckOutput) Descriptor
deprecated
func (*CheckOutput) Descriptor() ([]byte, []int)
Deprecated: Use CheckOutput.ProtoReflect.Descriptor instead.
func (*CheckOutput) GetActions ¶
func (x *CheckOutput) GetActions() map[string]*CheckOutput_ActionEffect
func (*CheckOutput) GetEffectiveDerivedRoles ¶
func (x *CheckOutput) GetEffectiveDerivedRoles() []string
func (*CheckOutput) GetRequestId ¶
func (x *CheckOutput) GetRequestId() string
func (*CheckOutput) GetResourceId ¶
func (x *CheckOutput) GetResourceId() string
func (*CheckOutput) MarshalToSizedBufferVT ¶
func (m *CheckOutput) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CheckOutput) MarshalToVT ¶
func (m *CheckOutput) MarshalToVT(dAtA []byte) (int, error)
func (*CheckOutput) MarshalVT ¶
func (m *CheckOutput) MarshalVT() (dAtA []byte, err error)
func (*CheckOutput) ProtoMessage ¶
func (*CheckOutput) ProtoMessage()
func (*CheckOutput) ProtoReflect ¶
func (x *CheckOutput) ProtoReflect() protoreflect.Message
func (*CheckOutput) Reset ¶
func (x *CheckOutput) Reset()
func (*CheckOutput) SizeVT ¶
func (m *CheckOutput) SizeVT() (n int)
func (*CheckOutput) String ¶
func (x *CheckOutput) String() string
func (*CheckOutput) UnmarshalVT ¶
func (m *CheckOutput) UnmarshalVT(dAtA []byte) error
func (*CheckOutput) Validate ¶
func (m *CheckOutput) Validate() error
Validate checks the field values on CheckOutput with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CheckOutputValidationError ¶
type CheckOutputValidationError struct {
// contains filtered or unexported fields
}
CheckOutputValidationError is the validation error returned by CheckOutput.Validate if the designated constraints aren't met.
func (CheckOutputValidationError) Cause ¶
func (e CheckOutputValidationError) Cause() error
Cause function returns cause value.
func (CheckOutputValidationError) Error ¶
func (e CheckOutputValidationError) Error() string
Error satisfies the builtin error interface
func (CheckOutputValidationError) ErrorName ¶
func (e CheckOutputValidationError) ErrorName() string
ErrorName returns error name.
func (CheckOutputValidationError) Field ¶
func (e CheckOutputValidationError) Field() string
Field function returns field value.
func (CheckOutputValidationError) Key ¶
func (e CheckOutputValidationError) Key() bool
Key function returns key value.
func (CheckOutputValidationError) Reason ¶
func (e CheckOutputValidationError) Reason() string
Reason function returns reason value.
type CheckOutput_ActionEffect ¶
type CheckOutput_ActionEffect struct { Effect v1.Effect `protobuf:"varint,1,opt,name=effect,proto3,enum=cerbos.effect.v1.Effect" json:"effect,omitempty"` Policy string `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"` // contains filtered or unexported fields }
func (*CheckOutput_ActionEffect) Descriptor
deprecated
func (*CheckOutput_ActionEffect) Descriptor() ([]byte, []int)
Deprecated: Use CheckOutput_ActionEffect.ProtoReflect.Descriptor instead.
func (*CheckOutput_ActionEffect) GetEffect ¶
func (x *CheckOutput_ActionEffect) GetEffect() v1.Effect
func (*CheckOutput_ActionEffect) GetPolicy ¶
func (x *CheckOutput_ActionEffect) GetPolicy() string
func (*CheckOutput_ActionEffect) MarshalToSizedBufferVT ¶
func (m *CheckOutput_ActionEffect) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CheckOutput_ActionEffect) MarshalToVT ¶
func (m *CheckOutput_ActionEffect) MarshalToVT(dAtA []byte) (int, error)
func (*CheckOutput_ActionEffect) MarshalVT ¶
func (m *CheckOutput_ActionEffect) MarshalVT() (dAtA []byte, err error)
func (*CheckOutput_ActionEffect) ProtoMessage ¶
func (*CheckOutput_ActionEffect) ProtoMessage()
func (*CheckOutput_ActionEffect) ProtoReflect ¶
func (x *CheckOutput_ActionEffect) ProtoReflect() protoreflect.Message
func (*CheckOutput_ActionEffect) Reset ¶
func (x *CheckOutput_ActionEffect) Reset()
func (*CheckOutput_ActionEffect) SizeVT ¶
func (m *CheckOutput_ActionEffect) SizeVT() (n int)
func (*CheckOutput_ActionEffect) String ¶
func (x *CheckOutput_ActionEffect) String() string
func (*CheckOutput_ActionEffect) UnmarshalVT ¶
func (m *CheckOutput_ActionEffect) UnmarshalVT(dAtA []byte) error
func (*CheckOutput_ActionEffect) Validate ¶
func (m *CheckOutput_ActionEffect) Validate() error
Validate checks the field values on CheckOutput_ActionEffect with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CheckOutput_ActionEffectValidationError ¶
type CheckOutput_ActionEffectValidationError struct {
// contains filtered or unexported fields
}
CheckOutput_ActionEffectValidationError is the validation error returned by CheckOutput_ActionEffect.Validate if the designated constraints aren't met.
func (CheckOutput_ActionEffectValidationError) Cause ¶
func (e CheckOutput_ActionEffectValidationError) Cause() error
Cause function returns cause value.
func (CheckOutput_ActionEffectValidationError) Error ¶
func (e CheckOutput_ActionEffectValidationError) Error() string
Error satisfies the builtin error interface
func (CheckOutput_ActionEffectValidationError) ErrorName ¶
func (e CheckOutput_ActionEffectValidationError) ErrorName() string
ErrorName returns error name.
func (CheckOutput_ActionEffectValidationError) Field ¶
func (e CheckOutput_ActionEffectValidationError) Field() string
Field function returns field value.
func (CheckOutput_ActionEffectValidationError) Key ¶
func (e CheckOutput_ActionEffectValidationError) Key() bool
Key function returns key value.
func (CheckOutput_ActionEffectValidationError) Reason ¶
func (e CheckOutput_ActionEffectValidationError) Reason() string
Reason function returns reason value.
type Principal ¶
type Principal struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PolicyVersion string `protobuf:"bytes,2,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"` Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` Attr map[string]*structpb.Value `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Principal) Descriptor
deprecated
func (*Principal) GetPolicyVersion ¶
func (*Principal) MarshalToSizedBufferVT ¶
func (*Principal) ProtoMessage ¶
func (*Principal) ProtoMessage()
func (*Principal) ProtoReflect ¶
func (x *Principal) ProtoReflect() protoreflect.Message
func (*Principal) UnmarshalVT ¶
type PrincipalValidationError ¶
type PrincipalValidationError struct {
// contains filtered or unexported fields
}
PrincipalValidationError is the validation error returned by Principal.Validate if the designated constraints aren't met.
func (PrincipalValidationError) Cause ¶
func (e PrincipalValidationError) Cause() error
Cause function returns cause value.
func (PrincipalValidationError) Error ¶
func (e PrincipalValidationError) Error() string
Error satisfies the builtin error interface
func (PrincipalValidationError) ErrorName ¶
func (e PrincipalValidationError) ErrorName() string
ErrorName returns error name.
func (PrincipalValidationError) Field ¶
func (e PrincipalValidationError) Field() string
Field function returns field value.
func (PrincipalValidationError) Key ¶
func (e PrincipalValidationError) Key() bool
Key function returns key value.
func (PrincipalValidationError) Reason ¶
func (e PrincipalValidationError) Reason() string
Reason function returns reason value.
type Resource ¶
type Resource struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` PolicyVersion string `protobuf:"bytes,2,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Attr map[string]*structpb.Value `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
func (*Resource) GetPolicyVersion ¶
func (*Resource) MarshalToSizedBufferVT ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
func (*Resource) UnmarshalVT ¶
type ResourceValidationError ¶
type ResourceValidationError struct {
// contains filtered or unexported fields
}
ResourceValidationError is the validation error returned by Resource.Validate if the designated constraints aren't met.
func (ResourceValidationError) Cause ¶
func (e ResourceValidationError) Cause() error
Cause function returns cause value.
func (ResourceValidationError) Error ¶
func (e ResourceValidationError) Error() string
Error satisfies the builtin error interface
func (ResourceValidationError) ErrorName ¶
func (e ResourceValidationError) ErrorName() string
ErrorName returns error name.
func (ResourceValidationError) Field ¶
func (e ResourceValidationError) Field() string
Field function returns field value.
func (ResourceValidationError) Key ¶
func (e ResourceValidationError) Key() bool
Key function returns key value.
func (ResourceValidationError) Reason ¶
func (e ResourceValidationError) Reason() string
Reason function returns reason value.