pb

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PublicKey_Algorithm_name = map[int32]string{
		0: "Ed25519",
	}
	PublicKey_Algorithm_value = map[string]int32{
		"Ed25519": 0,
	}
)

Enum value maps for PublicKey_Algorithm.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_biscuit_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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) Descriptor() ([]byte, []int)

Deprecated: Use Biscuit.ProtoReflect.Descriptor instead.

func (*Biscuit) GetAuthority

func (x *Biscuit) GetAuthority() *SignedBlock

func (*Biscuit) GetBlocks

func (x *Biscuit) GetBlocks() []*SignedBlock

func (*Biscuit) GetProof

func (x *Biscuit) GetProof() *Proof

func (*Biscuit) GetRootKeyId

func (x *Biscuit) GetRootKeyId() uint32

func (*Biscuit) ProtoMessage

func (*Biscuit) ProtoMessage()

func (*Biscuit) ProtoReflect

func (x *Biscuit) ProtoReflect() protoreflect.Message

func (*Biscuit) Reset

func (x *Biscuit) Reset()

func (*Biscuit) String

func (x *Biscuit) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetChecksV2

func (x *Block) GetChecksV2() []*CheckV2

func (*Block) GetContext

func (x *Block) GetContext() string

func (*Block) GetFactsV2

func (x *Block) GetFactsV2() []*FactV2

func (*Block) GetRulesV2

func (x *Block) GetRulesV2() []*RuleV2

func (*Block) GetSymbols

func (x *Block) GetSymbols() []string

func (*Block) GetVersion

func (x *Block) GetVersion() uint32

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BytesConstraintV2

type BytesConstraintV2 struct {

	// Types that are assignable to Constraint:
	//	*BytesConstraintV2_Equal
	//	*BytesConstraintV2_InSet
	//	*BytesConstraintV2_NotInSet
	Constraint isBytesConstraintV2_Constraint `protobuf_oneof:"Constraint"`
	// contains filtered or unexported fields
}

func (*BytesConstraintV2) Descriptor deprecated

func (*BytesConstraintV2) Descriptor() ([]byte, []int)

Deprecated: Use BytesConstraintV2.ProtoReflect.Descriptor instead.

func (*BytesConstraintV2) GetConstraint

func (m *BytesConstraintV2) GetConstraint() isBytesConstraintV2_Constraint

func (*BytesConstraintV2) GetEqual

func (x *BytesConstraintV2) GetEqual() []byte

func (*BytesConstraintV2) GetInSet

func (x *BytesConstraintV2) GetInSet() *BytesSet

func (*BytesConstraintV2) GetNotInSet

func (x *BytesConstraintV2) GetNotInSet() *BytesSet

func (*BytesConstraintV2) ProtoMessage

func (*BytesConstraintV2) ProtoMessage()

func (*BytesConstraintV2) ProtoReflect

func (x *BytesConstraintV2) ProtoReflect() protoreflect.Message

func (*BytesConstraintV2) Reset

func (x *BytesConstraintV2) Reset()

func (*BytesConstraintV2) String

func (x *BytesConstraintV2) String() string

type BytesConstraintV2_Equal

type BytesConstraintV2_Equal struct {
	Equal []byte `protobuf:"bytes,1,opt,name=equal,oneof"`
}

type BytesConstraintV2_InSet

type BytesConstraintV2_InSet struct {
	InSet *BytesSet `protobuf:"bytes,2,opt,name=in_set,json=inSet,oneof"`
}

type BytesConstraintV2_NotInSet

type BytesConstraintV2_NotInSet struct {
	NotInSet *BytesSet `protobuf:"bytes,3,opt,name=not_in_set,json=notInSet,oneof"`
}

type BytesSet

type BytesSet struct {
	Set [][]byte `protobuf:"bytes,1,rep,name=set" json:"set,omitempty"`
	// contains filtered or unexported fields
}

func (*BytesSet) Descriptor deprecated

func (*BytesSet) Descriptor() ([]byte, []int)

Deprecated: Use BytesSet.ProtoReflect.Descriptor instead.

func (*BytesSet) GetSet

func (x *BytesSet) GetSet() [][]byte

func (*BytesSet) ProtoMessage

func (*BytesSet) ProtoMessage()

func (*BytesSet) ProtoReflect

func (x *BytesSet) ProtoReflect() protoreflect.Message

func (*BytesSet) Reset

func (x *BytesSet) Reset()

func (*BytesSet) String

func (x *BytesSet) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CheckV2.ProtoReflect.Descriptor instead.

func (*CheckV2) GetQueries

func (x *CheckV2) GetQueries() []*RuleV2

func (*CheckV2) ProtoMessage

func (*CheckV2) ProtoMessage()

func (*CheckV2) ProtoReflect

func (x *CheckV2) ProtoReflect() protoreflect.Message

func (*CheckV2) Reset

func (x *CheckV2) Reset()

func (*CheckV2) String

func (x *CheckV2) String() string

type ConstraintV2

type ConstraintV2 struct {
	Term *uint32 `protobuf:"varint,1,req,name=term" json:"term,omitempty"`
	// Types that are assignable to Constraint:
	//	*ConstraintV2_Int
	//	*ConstraintV2_String_
	//	*ConstraintV2_Date
	//	*ConstraintV2_Bytes
	Constraint isConstraintV2_Constraint `protobuf_oneof:"Constraint"`
	// contains filtered or unexported fields
}

func (*ConstraintV2) Descriptor deprecated

func (*ConstraintV2) Descriptor() ([]byte, []int)

Deprecated: Use ConstraintV2.ProtoReflect.Descriptor instead.

func (*ConstraintV2) GetBytes

func (x *ConstraintV2) GetBytes() *BytesConstraintV2

func (*ConstraintV2) GetConstraint

func (m *ConstraintV2) GetConstraint() isConstraintV2_Constraint

func (*ConstraintV2) GetDate

func (x *ConstraintV2) GetDate() *DateConstraintV2

func (*ConstraintV2) GetInt

func (x *ConstraintV2) GetInt() *IntConstraintV2

func (*ConstraintV2) GetString_

func (x *ConstraintV2) GetString_() *StringConstraintV2

func (*ConstraintV2) GetTerm

func (x *ConstraintV2) GetTerm() uint32

func (*ConstraintV2) ProtoMessage

func (*ConstraintV2) ProtoMessage()

func (*ConstraintV2) ProtoReflect

func (x *ConstraintV2) ProtoReflect() protoreflect.Message

func (*ConstraintV2) Reset

func (x *ConstraintV2) Reset()

func (*ConstraintV2) String

func (x *ConstraintV2) String() string

type ConstraintV2_Bytes

type ConstraintV2_Bytes struct {
	Bytes *BytesConstraintV2 `protobuf:"bytes,5,opt,name=bytes,oneof"`
}

type ConstraintV2_Date

type ConstraintV2_Date struct {
	Date *DateConstraintV2 `protobuf:"bytes,4,opt,name=date,oneof"`
}

type ConstraintV2_Int

type ConstraintV2_Int struct {
	Int *IntConstraintV2 `protobuf:"bytes,2,opt,name=int,oneof"`
}

type ConstraintV2_String_

type ConstraintV2_String_ struct {
	String_ *StringConstraintV2 `protobuf:"bytes,3,opt,name=string,oneof"`
}

type DateConstraintV2

type DateConstraintV2 struct {

	// Types that are assignable to Constraint:
	//	*DateConstraintV2_Before
	//	*DateConstraintV2_After
	Constraint isDateConstraintV2_Constraint `protobuf_oneof:"Constraint"`
	// contains filtered or unexported fields
}

func (*DateConstraintV2) Descriptor deprecated

func (*DateConstraintV2) Descriptor() ([]byte, []int)

Deprecated: Use DateConstraintV2.ProtoReflect.Descriptor instead.

func (*DateConstraintV2) GetAfter

func (x *DateConstraintV2) GetAfter() uint64

func (*DateConstraintV2) GetBefore

func (x *DateConstraintV2) GetBefore() uint64

func (*DateConstraintV2) GetConstraint

func (m *DateConstraintV2) GetConstraint() isDateConstraintV2_Constraint

func (*DateConstraintV2) ProtoMessage

func (*DateConstraintV2) ProtoMessage()

func (*DateConstraintV2) ProtoReflect

func (x *DateConstraintV2) ProtoReflect() protoreflect.Message

func (*DateConstraintV2) Reset

func (x *DateConstraintV2) Reset()

func (*DateConstraintV2) String

func (x *DateConstraintV2) String() string

type DateConstraintV2_After

type DateConstraintV2_After struct {
	After uint64 `protobuf:"varint,2,opt,name=after,oneof"`
}

type DateConstraintV2_Before

type DateConstraintV2_Before struct {
	Before uint64 `protobuf:"varint,1,opt,name=before,oneof"`
}

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) Descriptor() ([]byte, []int)

Deprecated: Use FactV2.ProtoReflect.Descriptor instead.

func (*FactV2) GetPredicate

func (x *FactV2) GetPredicate() *PredicateV2

func (*FactV2) ProtoMessage

func (*FactV2) ProtoMessage()

func (*FactV2) ProtoReflect

func (x *FactV2) ProtoReflect() protoreflect.Message

func (*FactV2) Reset

func (x *FactV2) Reset()

func (*FactV2) String

func (x *FactV2) String() string

type IntConstraintV2

type IntConstraintV2 struct {

	// Types that are assignable to Constraint:
	//	*IntConstraintV2_LessThan
	//	*IntConstraintV2_GreaterThan
	//	*IntConstraintV2_LessOrEqual
	//	*IntConstraintV2_GreaterOrEqual
	//	*IntConstraintV2_Equal
	//	*IntConstraintV2_InSet
	//	*IntConstraintV2_NotInSet
	Constraint isIntConstraintV2_Constraint `protobuf_oneof:"Constraint"`
	// contains filtered or unexported fields
}

func (*IntConstraintV2) Descriptor deprecated

func (*IntConstraintV2) Descriptor() ([]byte, []int)

Deprecated: Use IntConstraintV2.ProtoReflect.Descriptor instead.

func (*IntConstraintV2) GetConstraint

func (m *IntConstraintV2) GetConstraint() isIntConstraintV2_Constraint

func (*IntConstraintV2) GetEqual

func (x *IntConstraintV2) GetEqual() int64

func (*IntConstraintV2) GetGreaterOrEqual

func (x *IntConstraintV2) GetGreaterOrEqual() int64

func (*IntConstraintV2) GetGreaterThan

func (x *IntConstraintV2) GetGreaterThan() int64

func (*IntConstraintV2) GetInSet

func (x *IntConstraintV2) GetInSet() *IntSet

func (*IntConstraintV2) GetLessOrEqual

func (x *IntConstraintV2) GetLessOrEqual() int64

func (*IntConstraintV2) GetLessThan

func (x *IntConstraintV2) GetLessThan() int64

func (*IntConstraintV2) GetNotInSet

func (x *IntConstraintV2) GetNotInSet() *IntSet

func (*IntConstraintV2) ProtoMessage

func (*IntConstraintV2) ProtoMessage()

func (*IntConstraintV2) ProtoReflect

func (x *IntConstraintV2) ProtoReflect() protoreflect.Message

func (*IntConstraintV2) Reset

func (x *IntConstraintV2) Reset()

func (*IntConstraintV2) String

func (x *IntConstraintV2) String() string

type IntConstraintV2_Equal

type IntConstraintV2_Equal struct {
	Equal int64 `protobuf:"varint,5,opt,name=equal,oneof"`
}

type IntConstraintV2_GreaterOrEqual

type IntConstraintV2_GreaterOrEqual struct {
	GreaterOrEqual int64 `protobuf:"varint,4,opt,name=greater_or_equal,json=greaterOrEqual,oneof"`
}

type IntConstraintV2_GreaterThan

type IntConstraintV2_GreaterThan struct {
	GreaterThan int64 `protobuf:"varint,2,opt,name=greater_than,json=greaterThan,oneof"`
}

type IntConstraintV2_InSet

type IntConstraintV2_InSet struct {
	InSet *IntSet `protobuf:"bytes,6,opt,name=in_set,json=inSet,oneof"`
}

type IntConstraintV2_LessOrEqual

type IntConstraintV2_LessOrEqual struct {
	LessOrEqual int64 `protobuf:"varint,3,opt,name=less_or_equal,json=lessOrEqual,oneof"`
}

type IntConstraintV2_LessThan

type IntConstraintV2_LessThan struct {
	LessThan int64 `protobuf:"varint,1,opt,name=less_than,json=lessThan,oneof"`
}

type IntConstraintV2_NotInSet

type IntConstraintV2_NotInSet struct {
	NotInSet *IntSet `protobuf:"bytes,7,opt,name=not_in_set,json=notInSet,oneof"`
}

type IntSet

type IntSet struct {
	Set []int64 `protobuf:"varint,7,rep,packed,name=set" json:"set,omitempty"`
	// contains filtered or unexported fields
}

func (*IntSet) Descriptor deprecated

func (*IntSet) Descriptor() ([]byte, []int)

Deprecated: Use IntSet.ProtoReflect.Descriptor instead.

func (*IntSet) GetSet

func (x *IntSet) GetSet() []int64

func (*IntSet) ProtoMessage

func (*IntSet) ProtoMessage()

func (*IntSet) ProtoReflect

func (x *IntSet) ProtoReflect() protoreflect.Message

func (*IntSet) Reset

func (x *IntSet) Reset()

func (*IntSet) String

func (x *IntSet) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Op.ProtoReflect.Descriptor instead.

func (*Op) GetBinary

func (x *Op) GetBinary() *OpBinary

func (*Op) GetContent

func (m *Op) GetContent() isOp_Content

func (*Op) GetUnary

func (x *Op) GetUnary() *OpUnary

func (*Op) GetValue

func (x *Op) GetValue() *TermV2

func (*Op) ProtoMessage

func (*Op) ProtoMessage()

func (*Op) ProtoReflect

func (x *Op) ProtoReflect() protoreflect.Message

func (*Op) Reset

func (x *Op) Reset()

func (*Op) String

func (x *Op) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use OpBinary.ProtoReflect.Descriptor instead.

func (*OpBinary) GetKind

func (x *OpBinary) GetKind() OpBinary_Kind

func (*OpBinary) ProtoMessage

func (*OpBinary) ProtoMessage()

func (*OpBinary) ProtoReflect

func (x *OpBinary) ProtoReflect() protoreflect.Message

func (*OpBinary) Reset

func (x *OpBinary) Reset()

func (*OpBinary) String

func (x *OpBinary) String() string

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) 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 (OpBinary_Kind) String

func (x OpBinary_Kind) String() string

func (OpBinary_Kind) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use OpUnary.ProtoReflect.Descriptor instead.

func (*OpUnary) GetKind

func (x *OpUnary) GetKind() OpUnary_Kind

func (*OpUnary) ProtoMessage

func (*OpUnary) ProtoMessage()

func (*OpUnary) ProtoReflect

func (x *OpUnary) ProtoReflect() protoreflect.Message

func (*OpUnary) Reset

func (x *OpUnary) Reset()

func (*OpUnary) String

func (x *OpUnary) String() string

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) 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 (OpUnary_Kind) String

func (x OpUnary_Kind) String() string

func (OpUnary_Kind) Type

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 Op_Unary

type Op_Unary struct {
	Unary *OpUnary `protobuf:"bytes,2,opt,name=unary,oneof"`
}

type Op_Value

type Op_Value struct {
	Value *TermV2 `protobuf:"bytes,1,opt,name=value,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) Descriptor() ([]byte, []int)

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetKind

func (x *Policy) GetKind() Policy_Kind

func (*Policy) GetQueries

func (x *Policy) GetQueries() []*RuleV2

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

func (x *Policy) ProtoReflect() protoreflect.Message

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

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) 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) 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) Descriptor() ([]byte, []int)

Deprecated: Use Proof.ProtoReflect.Descriptor instead.

func (*Proof) GetContent

func (m *Proof) GetContent() isProof_Content

func (*Proof) GetFinalSignature

func (x *Proof) GetFinalSignature() []byte

func (*Proof) GetNextSecret

func (x *Proof) GetNextSecret() []byte

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) ProtoReflect

func (x *Proof) ProtoReflect() protoreflect.Message

func (*Proof) Reset

func (x *Proof) Reset()

func (*Proof) String

func (x *Proof) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.

func (*PublicKey) GetAlgorithm

func (x *PublicKey) GetAlgorithm() PublicKey_Algorithm

func (*PublicKey) GetKey

func (x *PublicKey) GetKey() []byte

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) ProtoReflect

func (x *PublicKey) ProtoReflect() protoreflect.Message

func (*PublicKey) Reset

func (x *PublicKey) Reset()

func (*PublicKey) String

func (x *PublicKey) String() string

type PublicKey_Algorithm

type PublicKey_Algorithm int32
const (
	PublicKey_Ed25519 PublicKey_Algorithm = 0
)

func (PublicKey_Algorithm) Descriptor

func (PublicKey_Algorithm) Enum

func (PublicKey_Algorithm) EnumDescriptor deprecated

func (PublicKey_Algorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use PublicKey_Algorithm.Descriptor instead.

func (PublicKey_Algorithm) Number

func (PublicKey_Algorithm) String

func (x PublicKey_Algorithm) String() string

func (PublicKey_Algorithm) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use RuleV2.ProtoReflect.Descriptor instead.

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

func (*RuleV2) Reset

func (x *RuleV2) Reset()

func (*RuleV2) String

func (x *RuleV2) String() string

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 StringConstraintV2

type StringConstraintV2 struct {

	// Types that are assignable to Constraint:
	//	*StringConstraintV2_Prefix
	//	*StringConstraintV2_Suffix
	//	*StringConstraintV2_Equal
	//	*StringConstraintV2_InSet
	//	*StringConstraintV2_NotInSet
	//	*StringConstraintV2_Regex
	Constraint isStringConstraintV2_Constraint `protobuf_oneof:"Constraint"`
	// contains filtered or unexported fields
}

func (*StringConstraintV2) Descriptor deprecated

func (*StringConstraintV2) Descriptor() ([]byte, []int)

Deprecated: Use StringConstraintV2.ProtoReflect.Descriptor instead.

func (*StringConstraintV2) GetConstraint

func (m *StringConstraintV2) GetConstraint() isStringConstraintV2_Constraint

func (*StringConstraintV2) GetEqual

func (x *StringConstraintV2) GetEqual() string

func (*StringConstraintV2) GetInSet

func (x *StringConstraintV2) GetInSet() *StringSet

func (*StringConstraintV2) GetNotInSet

func (x *StringConstraintV2) GetNotInSet() *StringSet

func (*StringConstraintV2) GetPrefix

func (x *StringConstraintV2) GetPrefix() string

func (*StringConstraintV2) GetRegex

func (x *StringConstraintV2) GetRegex() string

func (*StringConstraintV2) GetSuffix

func (x *StringConstraintV2) GetSuffix() string

func (*StringConstraintV2) ProtoMessage

func (*StringConstraintV2) ProtoMessage()

func (*StringConstraintV2) ProtoReflect

func (x *StringConstraintV2) ProtoReflect() protoreflect.Message

func (*StringConstraintV2) Reset

func (x *StringConstraintV2) Reset()

func (*StringConstraintV2) String

func (x *StringConstraintV2) String() string

type StringConstraintV2_Equal

type StringConstraintV2_Equal struct {
	Equal string `protobuf:"bytes,3,opt,name=equal,oneof"`
}

type StringConstraintV2_InSet

type StringConstraintV2_InSet struct {
	InSet *StringSet `protobuf:"bytes,4,opt,name=in_set,json=inSet,oneof"`
}

type StringConstraintV2_NotInSet

type StringConstraintV2_NotInSet struct {
	NotInSet *StringSet `protobuf:"bytes,5,opt,name=not_in_set,json=notInSet,oneof"`
}

type StringConstraintV2_Prefix

type StringConstraintV2_Prefix struct {
	Prefix string `protobuf:"bytes,1,opt,name=prefix,oneof"`
}

type StringConstraintV2_Regex

type StringConstraintV2_Regex struct {
	Regex string `protobuf:"bytes,6,opt,name=regex,oneof"`
}

type StringConstraintV2_Suffix

type StringConstraintV2_Suffix struct {
	Suffix string `protobuf:"bytes,2,opt,name=suffix,oneof"`
}

type StringSet

type StringSet struct {
	Set []uint64 `protobuf:"varint,1,rep,packed,name=set" json:"set,omitempty"`
	// contains filtered or unexported fields
}

func (*StringSet) Descriptor deprecated

func (*StringSet) Descriptor() ([]byte, []int)

Deprecated: Use StringSet.ProtoReflect.Descriptor instead.

func (*StringSet) GetSet

func (x *StringSet) GetSet() []uint64

func (*StringSet) ProtoMessage

func (*StringSet) ProtoMessage()

func (*StringSet) ProtoReflect

func (x *StringSet) ProtoReflect() protoreflect.Message

func (*StringSet) Reset

func (x *StringSet) Reset()

func (*StringSet) String

func (x *StringSet) 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) Descriptor() ([]byte, []int)

Deprecated: Use TermSet.ProtoReflect.Descriptor instead.

func (*TermSet) GetSet

func (x *TermSet) GetSet() []*TermV2

func (*TermSet) ProtoMessage

func (*TermSet) ProtoMessage()

func (*TermSet) ProtoReflect

func (x *TermSet) ProtoReflect() protoreflect.Message

func (*TermSet) Reset

func (x *TermSet) Reset()

func (*TermSet) String

func (x *TermSet) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TermV2.ProtoReflect.Descriptor instead.

func (*TermV2) GetBool

func (x *TermV2) GetBool() bool

func (*TermV2) GetBytes

func (x *TermV2) GetBytes() []byte

func (*TermV2) GetContent

func (m *TermV2) GetContent() isTermV2_Content

func (*TermV2) GetDate

func (x *TermV2) GetDate() uint64

func (*TermV2) GetInteger

func (x *TermV2) GetInteger() int64

func (*TermV2) GetSet

func (x *TermV2) GetSet() *TermSet

func (*TermV2) GetString_

func (x *TermV2) GetString_() uint64

func (*TermV2) GetVariable

func (x *TermV2) GetVariable() uint32

func (*TermV2) ProtoMessage

func (*TermV2) ProtoMessage()

func (*TermV2) ProtoReflect

func (x *TermV2) ProtoReflect() protoreflect.Message

func (*TermV2) Reset

func (x *TermV2) Reset()

func (*TermV2) String

func (x *TermV2) String() string

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"`
}

type VerifierPolicies

type VerifierPolicies 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 (*VerifierPolicies) Descriptor deprecated

func (*VerifierPolicies) Descriptor() ([]byte, []int)

Deprecated: Use VerifierPolicies.ProtoReflect.Descriptor instead.

func (*VerifierPolicies) GetChecks

func (x *VerifierPolicies) GetChecks() []*CheckV2

func (*VerifierPolicies) GetFacts

func (x *VerifierPolicies) GetFacts() []*FactV2

func (*VerifierPolicies) GetPolicies

func (x *VerifierPolicies) GetPolicies() []*Policy

func (*VerifierPolicies) GetRules

func (x *VerifierPolicies) GetRules() []*RuleV2

func (*VerifierPolicies) GetSymbols

func (x *VerifierPolicies) GetSymbols() []string

func (*VerifierPolicies) GetVersion

func (x *VerifierPolicies) GetVersion() uint32

func (*VerifierPolicies) ProtoMessage

func (*VerifierPolicies) ProtoMessage()

func (*VerifierPolicies) ProtoReflect

func (x *VerifierPolicies) ProtoReflect() protoreflect.Message

func (*VerifierPolicies) Reset

func (x *VerifierPolicies) Reset()

func (*VerifierPolicies) String

func (x *VerifierPolicies) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL