Documentation
¶
Index ¶
- Constants
- Variables
- func EqualsCaveatsType() ipldschema.Type
- func InclusionCaveatsType() ipldschema.Type
- func IndexCaveatsType() ipldschema.Type
- func LocationCaveatsType() ipldschema.Type
- func PartitionCaveatsType() ipldschema.Type
- func RelationCaveatsType() ipldschema.Type
- type EqualsCaveats
- type InclusionCaveats
- type IndexCaveats
- type LegacyLocationCaveats
- type LocationCaveats
- type PartitionCaveats
- type Range
- type RelationCaveats
- type RelationPart
- type RelationPartInclusion
Constants ¶
View Source
const EqualsAbility = "assert/equals"
View Source
const InclusionAbility = "assert/inclusion"
View Source
const IndexAbility = "assert/index"
View Source
const LocationAbility = "assert/location"
View Source
const PartitionAbility = "assert/partition"
View Source
const RelationAbility = "assert/relation"
Variables ¶
View Source
var Equals = validator.NewCapability( EqualsAbility, schema.DIDString(), EqualsCaveatsReader, nil, )
View Source
var EqualsCaveatsReader = schema.Struct[EqualsCaveats](EqualsCaveatsType(), nil, types.Converters...)
View Source
var Inclusion = validator.NewCapability(InclusionAbility, schema.DIDString(), InclusionCaveatsReader, nil)
View Source
var InclusionCaveatsReader = schema.Struct[InclusionCaveats](InclusionCaveatsType(), nil, types.Converters...)
View Source
var Index = validator.NewCapability(IndexAbility, schema.DIDString(), IndexCaveatsReader, nil)
View Source
var IndexCaveatsReader = schema.Struct[IndexCaveats](IndexCaveatsType(), nil, types.Converters...)
View Source
var Location = validator.NewCapability(LocationAbility, schema.DIDString(), LocationCaveatsReader, nil)
View Source
var LocationCaveatsReader = schema.Mapped(schema.Struct[LegacyLocationCaveats](LocationCaveatsType(), nil, types.Converters...), func(llc LegacyLocationCaveats) (LocationCaveats, failure.Failure) { space := did.Undef if llc.Space != nil { space = *llc.Space } return LocationCaveats{llc.Content, llc.Location, llc.Range, space}, nil })
View Source
var Partition = validator.NewCapability( PartitionAbility, schema.DIDString(), PartitionCaveatsReader, nil)
View Source
var PartitionCaveatsReader = schema.Struct[PartitionCaveats](PartitionCaveatsType(), nil, types.Converters...)
View Source
var Relation = validator.NewCapability( RelationAbility, schema.DIDString(), RelationCaveatsReader, nil, )
View Source
var RelationCaveatsReader = schema.Struct[RelationCaveats](RelationCaveatsType(), nil, types.Converters...)
Functions ¶
func EqualsCaveatsType ¶
func EqualsCaveatsType() ipldschema.Type
func InclusionCaveatsType ¶
func InclusionCaveatsType() ipldschema.Type
func IndexCaveatsType ¶
func IndexCaveatsType() ipldschema.Type
func LocationCaveatsType ¶
func LocationCaveatsType() ipldschema.Type
func PartitionCaveatsType ¶
func PartitionCaveatsType() ipldschema.Type
func RelationCaveatsType ¶
func RelationCaveatsType() ipldschema.Type
Types ¶
type EqualsCaveats ¶
type EqualsCaveats struct { Content types.HasMultihash Equals ipld.Link }
type InclusionCaveats ¶
type IndexCaveats ¶
type LegacyLocationCaveats ¶
type LegacyLocationCaveats struct { Content types.HasMultihash Location []url.URL Range *Range Space *did.DID }
Space field used to be optional, so we maintain compatibility
type LocationCaveats ¶
type PartitionCaveats ¶
type RelationCaveats ¶
type RelationCaveats struct { Content types.HasMultihash Children []ipld.Link Parts []RelationPart }
type RelationPart ¶
type RelationPart struct { Content ipld.Link Includes *RelationPartInclusion }
Click to show internal directories.
Click to hide internal directories.