Documentation ¶
Index ¶
- Variables
- type AuthorizerPolicies
- func (*AuthorizerPolicies) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizerPolicies) GetChecks() []*CheckV2
- func (x *AuthorizerPolicies) GetFacts() []*FactV2
- func (x *AuthorizerPolicies) GetPolicies() []*Policy
- func (x *AuthorizerPolicies) GetRules() []*RuleV2
- func (x *AuthorizerPolicies) GetSymbols() []string
- func (x *AuthorizerPolicies) GetVersion() uint32
- func (*AuthorizerPolicies) ProtoMessage()
- func (x *AuthorizerPolicies) ProtoReflect() protoreflect.Message
- func (x *AuthorizerPolicies) Reset()
- func (x *AuthorizerPolicies) String() string
- type Biscuit
- func (*Biscuit) Descriptor() ([]byte, []int)deprecated
- func (x *Biscuit) GetAuthority() *SignedBlock
- func (x *Biscuit) GetBlocks() []*SignedBlock
- func (x *Biscuit) GetProof() *Proof
- func (x *Biscuit) GetRootKeyId() uint32
- func (*Biscuit) ProtoMessage()
- func (x *Biscuit) ProtoReflect() protoreflect.Message
- func (x *Biscuit) Reset()
- func (x *Biscuit) String() string
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetChecksV2() []*CheckV2
- func (x *Block) GetContext() string
- func (x *Block) GetFactsV2() []*FactV2
- func (x *Block) GetRulesV2() []*RuleV2
- func (x *Block) GetSymbols() []string
- func (x *Block) GetVersion() uint32
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type CheckV2
- type ExpressionV2
- type FactV2
- type Op
- func (*Op) Descriptor() ([]byte, []int)deprecated
- func (x *Op) GetBinary() *OpBinary
- func (m *Op) GetContent() isOp_Content
- func (x *Op) GetUnary() *OpUnary
- func (x *Op) GetValue() *TermV2
- func (*Op) ProtoMessage()
- func (x *Op) ProtoReflect() protoreflect.Message
- func (x *Op) Reset()
- func (x *Op) String() string
- type OpBinary
- type OpBinary_Kind
- func (OpBinary_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x OpBinary_Kind) Enum() *OpBinary_Kind
- func (OpBinary_Kind) EnumDescriptor() ([]byte, []int)deprecated
- func (x OpBinary_Kind) Number() protoreflect.EnumNumber
- func (x OpBinary_Kind) String() string
- func (OpBinary_Kind) Type() protoreflect.EnumType
- func (x *OpBinary_Kind) UnmarshalJSON(b []byte) errordeprecated
- type OpUnary
- type OpUnary_Kind
- func (OpUnary_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x OpUnary_Kind) Enum() *OpUnary_Kind
- func (OpUnary_Kind) EnumDescriptor() ([]byte, []int)deprecated
- func (x OpUnary_Kind) Number() protoreflect.EnumNumber
- func (x OpUnary_Kind) String() string
- func (OpUnary_Kind) Type() protoreflect.EnumType
- func (x *OpUnary_Kind) UnmarshalJSON(b []byte) errordeprecated
- type Op_Binary
- type Op_Unary
- type Op_Value
- type Policy
- type Policy_Kind
- func (Policy_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x Policy_Kind) Enum() *Policy_Kind
- func (Policy_Kind) EnumDescriptor() ([]byte, []int)deprecated
- func (x Policy_Kind) Number() protoreflect.EnumNumber
- func (x Policy_Kind) String() string
- func (Policy_Kind) Type() protoreflect.EnumType
- func (x *Policy_Kind) UnmarshalJSON(b []byte) errordeprecated
- type PredicateV2
- func (*PredicateV2) Descriptor() ([]byte, []int)deprecated
- func (x *PredicateV2) GetName() uint64
- func (x *PredicateV2) GetTerms() []*TermV2
- func (*PredicateV2) ProtoMessage()
- func (x *PredicateV2) ProtoReflect() protoreflect.Message
- func (x *PredicateV2) Reset()
- func (x *PredicateV2) String() string
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)deprecated
- func (m *Proof) GetContent() isProof_Content
- func (x *Proof) GetFinalSignature() []byte
- func (x *Proof) GetNextSecret() []byte
- func (*Proof) ProtoMessage()
- func (x *Proof) ProtoReflect() protoreflect.Message
- func (x *Proof) Reset()
- func (x *Proof) String() string
- type Proof_FinalSignature
- type Proof_NextSecret
- type PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)deprecated
- func (x *PublicKey) GetAlgorithm() PublicKey_Algorithm
- func (x *PublicKey) GetKey() []byte
- func (*PublicKey) ProtoMessage()
- func (x *PublicKey) ProtoReflect() protoreflect.Message
- func (x *PublicKey) Reset()
- func (x *PublicKey) String() string
- type PublicKey_Algorithm
- func (PublicKey_Algorithm) Descriptor() protoreflect.EnumDescriptor
- func (x PublicKey_Algorithm) Enum() *PublicKey_Algorithm
- func (PublicKey_Algorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x PublicKey_Algorithm) Number() protoreflect.EnumNumber
- func (x PublicKey_Algorithm) String() string
- func (PublicKey_Algorithm) Type() protoreflect.EnumType
- func (x *PublicKey_Algorithm) UnmarshalJSON(b []byte) errordeprecated
- type RuleV2
- func (*RuleV2) Descriptor() ([]byte, []int)deprecated
- func (x *RuleV2) GetBody() []*PredicateV2
- func (x *RuleV2) GetExpressions() []*ExpressionV2
- func (x *RuleV2) GetHead() *PredicateV2
- func (*RuleV2) ProtoMessage()
- func (x *RuleV2) ProtoReflect() protoreflect.Message
- func (x *RuleV2) Reset()
- func (x *RuleV2) String() string
- type SignedBlock
- func (*SignedBlock) Descriptor() ([]byte, []int)deprecated
- func (x *SignedBlock) GetBlock() []byte
- func (x *SignedBlock) GetNextKey() *PublicKey
- func (x *SignedBlock) GetSignature() []byte
- func (*SignedBlock) ProtoMessage()
- func (x *SignedBlock) ProtoReflect() protoreflect.Message
- func (x *SignedBlock) Reset()
- func (x *SignedBlock) String() string
- type TermSet
- type TermV2
- func (*TermV2) Descriptor() ([]byte, []int)deprecated
- func (x *TermV2) GetBool() bool
- func (x *TermV2) GetBytes() []byte
- func (m *TermV2) GetContent() isTermV2_Content
- func (x *TermV2) GetDate() uint64
- func (x *TermV2) GetInteger() int64
- func (x *TermV2) GetSet() *TermSet
- func (x *TermV2) GetString_() uint64
- func (x *TermV2) GetVariable() uint32
- func (*TermV2) ProtoMessage()
- func (x *TermV2) ProtoReflect() protoreflect.Message
- func (x *TermV2) Reset()
- func (x *TermV2) String() string
- type TermV2_Bool
- type TermV2_Bytes
- type TermV2_Date
- type TermV2_Integer
- type TermV2_Set
- type TermV2_String_
- type TermV2_Variable
Constants ¶
This section is empty.
Variables ¶
var ( PublicKey_Algorithm_name = map[int32]string{ 0: "Ed25519", } PublicKey_Algorithm_value = map[string]int32{ "Ed25519": 0, } )
Enum value maps for PublicKey_Algorithm.
var ( OpUnary_Kind_name = map[int32]string{ 0: "Negate", 1: "Parens", 2: "Length", } OpUnary_Kind_value = map[string]int32{ "Negate": 0, "Parens": 1, "Length": 2, } )
Enum value maps for OpUnary_Kind.
var ( OpBinary_Kind_name = map[int32]string{ 0: "LessThan", 1: "GreaterThan", 2: "LessOrEqual", 3: "GreaterOrEqual", 4: "Equal", 5: "Contains", 6: "Prefix", 7: "Suffix", 8: "Regex", 9: "Add", 10: "Sub", 11: "Mul", 12: "Div", 13: "And", 14: "Or", 15: "Intersection", 16: "Union", } OpBinary_Kind_value = map[string]int32{ "LessThan": 0, "GreaterThan": 1, "LessOrEqual": 2, "GreaterOrEqual": 3, "Equal": 4, "Contains": 5, "Prefix": 6, "Suffix": 7, "Regex": 8, "Add": 9, "Sub": 10, "Mul": 11, "Div": 12, "And": 13, "Or": 14, "Intersection": 15, "Union": 16, } )
Enum value maps for OpBinary_Kind.
var ( Policy_Kind_name = map[int32]string{ 0: "Allow", 1: "Deny", } Policy_Kind_value = map[string]int32{ "Allow": 0, "Deny": 1, } )
Enum value maps for Policy_Kind.
var File_biscuit_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthorizerPolicies ¶
type AuthorizerPolicies struct { Symbols []string `protobuf:"bytes,1,rep,name=symbols" json:"symbols,omitempty"` Version *uint32 `protobuf:"varint,2,opt,name=version" json:"version,omitempty"` Facts []*FactV2 `protobuf:"bytes,3,rep,name=facts" json:"facts,omitempty"` Rules []*RuleV2 `protobuf:"bytes,4,rep,name=rules" json:"rules,omitempty"` Checks []*CheckV2 `protobuf:"bytes,5,rep,name=checks" json:"checks,omitempty"` Policies []*Policy `protobuf:"bytes,6,rep,name=policies" json:"policies,omitempty"` // contains filtered or unexported fields }
func (*AuthorizerPolicies) Descriptor
deprecated
func (*AuthorizerPolicies) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizerPolicies.ProtoReflect.Descriptor instead.
func (*AuthorizerPolicies) GetChecks ¶
func (x *AuthorizerPolicies) GetChecks() []*CheckV2
func (*AuthorizerPolicies) GetFacts ¶
func (x *AuthorizerPolicies) GetFacts() []*FactV2
func (*AuthorizerPolicies) GetPolicies ¶
func (x *AuthorizerPolicies) GetPolicies() []*Policy
func (*AuthorizerPolicies) GetRules ¶
func (x *AuthorizerPolicies) GetRules() []*RuleV2
func (*AuthorizerPolicies) GetSymbols ¶
func (x *AuthorizerPolicies) GetSymbols() []string
func (*AuthorizerPolicies) GetVersion ¶
func (x *AuthorizerPolicies) GetVersion() uint32
func (*AuthorizerPolicies) ProtoMessage ¶
func (*AuthorizerPolicies) ProtoMessage()
func (*AuthorizerPolicies) ProtoReflect ¶
func (x *AuthorizerPolicies) ProtoReflect() protoreflect.Message
func (*AuthorizerPolicies) Reset ¶
func (x *AuthorizerPolicies) Reset()
func (*AuthorizerPolicies) String ¶
func (x *AuthorizerPolicies) String() string
type Biscuit ¶
type Biscuit struct { RootKeyId *uint32 `protobuf:"varint,1,opt,name=rootKeyId" json:"rootKeyId,omitempty"` Authority *SignedBlock `protobuf:"bytes,2,req,name=authority" json:"authority,omitempty"` Blocks []*SignedBlock `protobuf:"bytes,3,rep,name=blocks" json:"blocks,omitempty"` Proof *Proof `protobuf:"bytes,4,req,name=proof" json:"proof,omitempty"` // contains filtered or unexported fields }
func (*Biscuit) Descriptor
deprecated
func (*Biscuit) GetAuthority ¶
func (x *Biscuit) GetAuthority() *SignedBlock
func (*Biscuit) GetBlocks ¶
func (x *Biscuit) GetBlocks() []*SignedBlock
func (*Biscuit) GetRootKeyId ¶
func (*Biscuit) ProtoMessage ¶
func (*Biscuit) ProtoMessage()
func (*Biscuit) ProtoReflect ¶
func (x *Biscuit) ProtoReflect() protoreflect.Message
type Block ¶
type Block struct { Symbols []string `protobuf:"bytes,1,rep,name=symbols" json:"symbols,omitempty"` Context *string `protobuf:"bytes,2,opt,name=context" json:"context,omitempty"` Version *uint32 `protobuf:"varint,3,opt,name=version" json:"version,omitempty"` FactsV2 []*FactV2 `protobuf:"bytes,4,rep,name=facts_v2,json=factsV2" json:"facts_v2,omitempty"` RulesV2 []*RuleV2 `protobuf:"bytes,5,rep,name=rules_v2,json=rulesV2" json:"rules_v2,omitempty"` ChecksV2 []*CheckV2 `protobuf:"bytes,6,rep,name=checks_v2,json=checksV2" json:"checks_v2,omitempty"` // contains filtered or unexported fields }
func (*Block) Descriptor
deprecated
func (*Block) GetChecksV2 ¶
func (*Block) GetContext ¶
func (*Block) GetFactsV2 ¶
func (*Block) GetRulesV2 ¶
func (*Block) GetSymbols ¶
func (*Block) GetVersion ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type CheckV2 ¶
type CheckV2 struct { Queries []*RuleV2 `protobuf:"bytes,1,rep,name=queries" json:"queries,omitempty"` // contains filtered or unexported fields }
func (*CheckV2) Descriptor
deprecated
func (*CheckV2) GetQueries ¶
func (*CheckV2) ProtoMessage ¶
func (*CheckV2) ProtoMessage()
func (*CheckV2) ProtoReflect ¶
func (x *CheckV2) ProtoReflect() protoreflect.Message
type ExpressionV2 ¶
type ExpressionV2 struct { Ops []*Op `protobuf:"bytes,1,rep,name=ops" json:"ops,omitempty"` // contains filtered or unexported fields }
func (*ExpressionV2) Descriptor
deprecated
func (*ExpressionV2) Descriptor() ([]byte, []int)
Deprecated: Use ExpressionV2.ProtoReflect.Descriptor instead.
func (*ExpressionV2) GetOps ¶
func (x *ExpressionV2) GetOps() []*Op
func (*ExpressionV2) ProtoMessage ¶
func (*ExpressionV2) ProtoMessage()
func (*ExpressionV2) ProtoReflect ¶
func (x *ExpressionV2) ProtoReflect() protoreflect.Message
func (*ExpressionV2) Reset ¶
func (x *ExpressionV2) Reset()
func (*ExpressionV2) String ¶
func (x *ExpressionV2) String() string
type FactV2 ¶
type FactV2 struct { Predicate *PredicateV2 `protobuf:"bytes,1,req,name=predicate" json:"predicate,omitempty"` // contains filtered or unexported fields }
func (*FactV2) Descriptor
deprecated
func (*FactV2) GetPredicate ¶
func (x *FactV2) GetPredicate() *PredicateV2
func (*FactV2) ProtoMessage ¶
func (*FactV2) ProtoMessage()
func (*FactV2) ProtoReflect ¶
func (x *FactV2) ProtoReflect() protoreflect.Message
type Op ¶
type Op struct { // Types that are assignable to Content: // *Op_Value // *Op_Unary // *Op_Binary Content isOp_Content `protobuf_oneof:"Content"` // contains filtered or unexported fields }
func (*Op) Descriptor
deprecated
func (*Op) GetContent ¶
func (m *Op) GetContent() isOp_Content
func (*Op) ProtoMessage ¶
func (*Op) ProtoMessage()
func (*Op) ProtoReflect ¶
func (x *Op) ProtoReflect() protoreflect.Message
type OpBinary ¶
type OpBinary struct { Kind *OpBinary_Kind `protobuf:"varint,1,req,name=kind,enum=OpBinary_Kind" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*OpBinary) Descriptor
deprecated
func (*OpBinary) GetKind ¶
func (x *OpBinary) GetKind() OpBinary_Kind
func (*OpBinary) ProtoMessage ¶
func (*OpBinary) ProtoMessage()
func (*OpBinary) ProtoReflect ¶
func (x *OpBinary) ProtoReflect() protoreflect.Message
type OpBinary_Kind ¶
type OpBinary_Kind int32
const ( OpBinary_LessThan OpBinary_Kind = 0 OpBinary_GreaterThan OpBinary_Kind = 1 OpBinary_LessOrEqual OpBinary_Kind = 2 OpBinary_GreaterOrEqual OpBinary_Kind = 3 OpBinary_Equal OpBinary_Kind = 4 OpBinary_Contains OpBinary_Kind = 5 OpBinary_Prefix OpBinary_Kind = 6 OpBinary_Suffix OpBinary_Kind = 7 OpBinary_Regex OpBinary_Kind = 8 OpBinary_Add OpBinary_Kind = 9 OpBinary_Sub OpBinary_Kind = 10 OpBinary_Mul OpBinary_Kind = 11 OpBinary_Div OpBinary_Kind = 12 OpBinary_And OpBinary_Kind = 13 OpBinary_Or OpBinary_Kind = 14 OpBinary_Intersection OpBinary_Kind = 15 OpBinary_Union OpBinary_Kind = 16 )
func (OpBinary_Kind) Descriptor ¶
func (OpBinary_Kind) Descriptor() protoreflect.EnumDescriptor
func (OpBinary_Kind) Enum ¶
func (x OpBinary_Kind) Enum() *OpBinary_Kind
func (OpBinary_Kind) EnumDescriptor
deprecated
func (OpBinary_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use OpBinary_Kind.Descriptor instead.
func (OpBinary_Kind) Number ¶
func (x OpBinary_Kind) Number() protoreflect.EnumNumber
func (OpBinary_Kind) String ¶
func (x OpBinary_Kind) String() string
func (OpBinary_Kind) Type ¶
func (OpBinary_Kind) Type() protoreflect.EnumType
func (*OpBinary_Kind) UnmarshalJSON
deprecated
func (x *OpBinary_Kind) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type OpUnary ¶
type OpUnary struct { Kind *OpUnary_Kind `protobuf:"varint,1,req,name=kind,enum=OpUnary_Kind" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*OpUnary) Descriptor
deprecated
func (*OpUnary) GetKind ¶
func (x *OpUnary) GetKind() OpUnary_Kind
func (*OpUnary) ProtoMessage ¶
func (*OpUnary) ProtoMessage()
func (*OpUnary) ProtoReflect ¶
func (x *OpUnary) ProtoReflect() protoreflect.Message
type OpUnary_Kind ¶
type OpUnary_Kind int32
const ( OpUnary_Negate OpUnary_Kind = 0 OpUnary_Parens OpUnary_Kind = 1 OpUnary_Length OpUnary_Kind = 2 )
func (OpUnary_Kind) Descriptor ¶
func (OpUnary_Kind) Descriptor() protoreflect.EnumDescriptor
func (OpUnary_Kind) Enum ¶
func (x OpUnary_Kind) Enum() *OpUnary_Kind
func (OpUnary_Kind) EnumDescriptor
deprecated
func (OpUnary_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use OpUnary_Kind.Descriptor instead.
func (OpUnary_Kind) Number ¶
func (x OpUnary_Kind) Number() protoreflect.EnumNumber
func (OpUnary_Kind) String ¶
func (x OpUnary_Kind) String() string
func (OpUnary_Kind) Type ¶
func (OpUnary_Kind) Type() protoreflect.EnumType
func (*OpUnary_Kind) UnmarshalJSON
deprecated
func (x *OpUnary_Kind) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Op_Binary ¶
type Op_Binary struct {
Binary *OpBinary `protobuf:"bytes,3,opt,name=Binary,oneof"`
}
type Policy ¶
type Policy struct { Queries []*RuleV2 `protobuf:"bytes,1,rep,name=queries" json:"queries,omitempty"` Kind *Policy_Kind `protobuf:"varint,2,req,name=kind,enum=Policy_Kind" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*Policy) Descriptor
deprecated
func (*Policy) GetKind ¶
func (x *Policy) GetKind() Policy_Kind
func (*Policy) GetQueries ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
type Policy_Kind ¶
type Policy_Kind int32
const ( Policy_Allow Policy_Kind = 0 Policy_Deny Policy_Kind = 1 )
func (Policy_Kind) Descriptor ¶
func (Policy_Kind) Descriptor() protoreflect.EnumDescriptor
func (Policy_Kind) Enum ¶
func (x Policy_Kind) Enum() *Policy_Kind
func (Policy_Kind) EnumDescriptor
deprecated
func (Policy_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use Policy_Kind.Descriptor instead.
func (Policy_Kind) Number ¶
func (x Policy_Kind) Number() protoreflect.EnumNumber
func (Policy_Kind) String ¶
func (x Policy_Kind) String() string
func (Policy_Kind) Type ¶
func (Policy_Kind) Type() protoreflect.EnumType
func (*Policy_Kind) UnmarshalJSON
deprecated
func (x *Policy_Kind) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type PredicateV2 ¶
type PredicateV2 struct { Name *uint64 `protobuf:"varint,1,req,name=name" json:"name,omitempty"` Terms []*TermV2 `protobuf:"bytes,2,rep,name=terms" json:"terms,omitempty"` // contains filtered or unexported fields }
func (*PredicateV2) Descriptor
deprecated
func (*PredicateV2) Descriptor() ([]byte, []int)
Deprecated: Use PredicateV2.ProtoReflect.Descriptor instead.
func (*PredicateV2) GetName ¶
func (x *PredicateV2) GetName() uint64
func (*PredicateV2) GetTerms ¶
func (x *PredicateV2) GetTerms() []*TermV2
func (*PredicateV2) ProtoMessage ¶
func (*PredicateV2) ProtoMessage()
func (*PredicateV2) ProtoReflect ¶
func (x *PredicateV2) ProtoReflect() protoreflect.Message
func (*PredicateV2) Reset ¶
func (x *PredicateV2) Reset()
func (*PredicateV2) String ¶
func (x *PredicateV2) String() string
type Proof ¶
type Proof struct { // Types that are assignable to Content: // *Proof_NextSecret // *Proof_FinalSignature Content isProof_Content `protobuf_oneof:"Content"` // contains filtered or unexported fields }
func (*Proof) Descriptor
deprecated
func (*Proof) GetContent ¶
func (m *Proof) GetContent() isProof_Content
func (*Proof) GetFinalSignature ¶
func (*Proof) GetNextSecret ¶
func (*Proof) ProtoMessage ¶
func (*Proof) ProtoMessage()
func (*Proof) ProtoReflect ¶
func (x *Proof) ProtoReflect() protoreflect.Message
type Proof_FinalSignature ¶
type Proof_FinalSignature struct {
FinalSignature []byte `protobuf:"bytes,2,opt,name=finalSignature,oneof"`
}
type Proof_NextSecret ¶
type Proof_NextSecret struct {
NextSecret []byte `protobuf:"bytes,1,opt,name=nextSecret,oneof"`
}
type PublicKey ¶
type PublicKey struct { Algorithm *PublicKey_Algorithm `protobuf:"varint,1,req,name=algorithm,enum=PublicKey_Algorithm" json:"algorithm,omitempty"` Key []byte `protobuf:"bytes,2,req,name=key" json:"key,omitempty"` // contains filtered or unexported fields }
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) GetAlgorithm ¶
func (x *PublicKey) GetAlgorithm() PublicKey_Algorithm
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
type PublicKey_Algorithm ¶
type PublicKey_Algorithm int32
const (
PublicKey_Ed25519 PublicKey_Algorithm = 0
)
func (PublicKey_Algorithm) Descriptor ¶
func (PublicKey_Algorithm) Descriptor() protoreflect.EnumDescriptor
func (PublicKey_Algorithm) Enum ¶
func (x PublicKey_Algorithm) Enum() *PublicKey_Algorithm
func (PublicKey_Algorithm) EnumDescriptor
deprecated
func (PublicKey_Algorithm) EnumDescriptor() ([]byte, []int)
Deprecated: Use PublicKey_Algorithm.Descriptor instead.
func (PublicKey_Algorithm) Number ¶
func (x PublicKey_Algorithm) Number() protoreflect.EnumNumber
func (PublicKey_Algorithm) String ¶
func (x PublicKey_Algorithm) String() string
func (PublicKey_Algorithm) Type ¶
func (PublicKey_Algorithm) Type() protoreflect.EnumType
func (*PublicKey_Algorithm) UnmarshalJSON
deprecated
func (x *PublicKey_Algorithm) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type RuleV2 ¶
type RuleV2 struct { Head *PredicateV2 `protobuf:"bytes,1,req,name=head" json:"head,omitempty"` Body []*PredicateV2 `protobuf:"bytes,2,rep,name=body" json:"body,omitempty"` Expressions []*ExpressionV2 `protobuf:"bytes,3,rep,name=expressions" json:"expressions,omitempty"` // contains filtered or unexported fields }
func (*RuleV2) Descriptor
deprecated
func (*RuleV2) GetBody ¶
func (x *RuleV2) GetBody() []*PredicateV2
func (*RuleV2) GetExpressions ¶
func (x *RuleV2) GetExpressions() []*ExpressionV2
func (*RuleV2) GetHead ¶
func (x *RuleV2) GetHead() *PredicateV2
func (*RuleV2) ProtoMessage ¶
func (*RuleV2) ProtoMessage()
func (*RuleV2) ProtoReflect ¶
func (x *RuleV2) ProtoReflect() protoreflect.Message
type SignedBlock ¶
type SignedBlock struct { Block []byte `protobuf:"bytes,1,req,name=block" json:"block,omitempty"` NextKey *PublicKey `protobuf:"bytes,2,req,name=nextKey" json:"nextKey,omitempty"` Signature []byte `protobuf:"bytes,3,req,name=signature" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*SignedBlock) Descriptor
deprecated
func (*SignedBlock) Descriptor() ([]byte, []int)
Deprecated: Use SignedBlock.ProtoReflect.Descriptor instead.
func (*SignedBlock) GetBlock ¶
func (x *SignedBlock) GetBlock() []byte
func (*SignedBlock) GetNextKey ¶
func (x *SignedBlock) GetNextKey() *PublicKey
func (*SignedBlock) GetSignature ¶
func (x *SignedBlock) GetSignature() []byte
func (*SignedBlock) ProtoMessage ¶
func (*SignedBlock) ProtoMessage()
func (*SignedBlock) ProtoReflect ¶
func (x *SignedBlock) ProtoReflect() protoreflect.Message
func (*SignedBlock) Reset ¶
func (x *SignedBlock) Reset()
func (*SignedBlock) String ¶
func (x *SignedBlock) String() string
type TermSet ¶
type TermSet struct { Set []*TermV2 `protobuf:"bytes,1,rep,name=set" json:"set,omitempty"` // contains filtered or unexported fields }
func (*TermSet) Descriptor
deprecated
func (*TermSet) ProtoMessage ¶
func (*TermSet) ProtoMessage()
func (*TermSet) ProtoReflect ¶
func (x *TermSet) ProtoReflect() protoreflect.Message
type TermV2 ¶
type TermV2 struct { // Types that are assignable to Content: // *TermV2_Variable // *TermV2_Integer // *TermV2_String_ // *TermV2_Date // *TermV2_Bytes // *TermV2_Bool // *TermV2_Set Content isTermV2_Content `protobuf_oneof:"Content"` // contains filtered or unexported fields }
func (*TermV2) Descriptor
deprecated
func (*TermV2) GetContent ¶
func (m *TermV2) GetContent() isTermV2_Content
func (*TermV2) GetInteger ¶
func (*TermV2) GetString_ ¶
func (*TermV2) GetVariable ¶
func (*TermV2) ProtoMessage ¶
func (*TermV2) ProtoMessage()
func (*TermV2) ProtoReflect ¶
func (x *TermV2) ProtoReflect() protoreflect.Message
type TermV2_Bool ¶
type TermV2_Bool struct {
Bool bool `protobuf:"varint,6,opt,name=bool,oneof"`
}
type TermV2_Bytes ¶
type TermV2_Bytes struct {
Bytes []byte `protobuf:"bytes,5,opt,name=bytes,oneof"`
}
type TermV2_Date ¶
type TermV2_Date struct {
Date uint64 `protobuf:"varint,4,opt,name=date,oneof"`
}
type TermV2_Integer ¶
type TermV2_Integer struct {
Integer int64 `protobuf:"varint,2,opt,name=integer,oneof"`
}
type TermV2_Set ¶
type TermV2_Set struct {
Set *TermSet `protobuf:"bytes,7,opt,name=set,oneof"`
}
type TermV2_String_ ¶
type TermV2_String_ struct {
String_ uint64 `protobuf:"varint,3,opt,name=string,oneof"`
}
type TermV2_Variable ¶
type TermV2_Variable struct {
Variable uint32 `protobuf:"varint,1,opt,name=variable,oneof"`
}