# Functions
CanonicalBytes converts a tuple to a canonical set of bytes.
CopyToV1Relationship copies a Relationship into a v1.Relationship.
CoreONR creates a core ObjectAndRelation from the string pieces.
CoreRelationToString creates a string from a core.RelationTuple.
CoreRelationToStringWithoutCaveatOrExpiration creates a string from a core.RelationTuple without stringifying the caveat.
CoreRR creates a core RelationReference from the string pieces.
No description provided by the author
No description provided by the author
Equal returns true if the two relationships are exactly the same.
FromCoreObjectAndRelation creates an ObjectAndRelation from a core.ObjectAndRelation.
FromCoreRelationshipReference creates a RelationshipReference from a core.RelationshipReference.
FromCoreRelationTuple creates a Relationship from a core.RelationTuple.
FromV1Relationship converts a v1.Relationship into a Relationship.
JoinObject joins the namespace and the objectId together into the standard format.
JoinRelRef joins the namespace and relation together into the same format as `StringRR()`.
MustCoreRelationToString creates a string from a core.RelationTuple and panics if it can't.
MustParse wraps Parse such that any failures panic rather than returning an error.
MustParseONR converts a string representation of an ONR to an ObjectAndRelation object.
MustParseSubjectONR converts a string representation of a Subject ONR to an ObjectAndRelation.
Same as above, but panics if it cannot be parsed.
MustSplitRelRef splits a string produced by `JoinRelRef()` and panics if it fails.
MustString converts a relationship to a string.
No description provided by the author
MustUpdateToV1RelationshipUpdate converts a RelationshipUpdate into a v1.RelationshipUpdate.
MustV1RelString converts a relationship into a string.
MustV1StringRelationship converts a v1.Relationship to a string.
MustWithCaveat adds the given caveat name to the relationship.
MustWithExpiration adds the given expiration to the relationship.
ONR creates an ObjectAndRelation.
ONREqual checks if two ObjectAndRelation instances are equal.
ONREqualOrWildcard checks if an ObjectAndRelation matches another ObjectAndRelation or is a wildcard.
ONRRef creates an ObjectAndRelation reference.
ONRStringToCore creates an ONR from string pieces.
Parse unmarshals the string form of a Tuple and returns an error on failure,
This function treats both missing and Ellipsis relations equally.
ParseONR converts a string representation of an ONR to an ObjectAndRelation object.
ParseSubjectONR converts a string representation of a Subject ONR to an ObjectAndRelation.
ParseV1Rel parses a string representation of a relationship into a v1.Relationship object.
RelToFilter converts a Relationship into a RelationshipFilter.
RR creates a RelationReference.
RRStringToCore creates a RelationReference from the string pieces.
String converts a relationship to a string.
StringCaveat converts a contextualized caveat to a string.
StringCaveatContext converts the context of a caveat to a string.
StringCoreONR converts a core ONR object to a string.
No description provided by the author
No description provided by the author
StringONR converts an ONR object to a string.
StringONRStrings converts ONR strings to a string.
StringRR converts a RR object to a string.
StringsONRs converts ONR objects to a string slice, sorted.
StringToONR creates an ONR from string pieces.
StringWithoutCaveatOrExpiration converts a relationship to a string, without its caveat or expiration included.
SubjectONRToSubjectFilter converts a userset to the equivalent exact SubjectFilter.
No description provided by the author
ToV1Filter converts a RelationTuple into a RelationshipFilter.
ToV1Relationship converts a Relationship into a v1.Relationship.
UpdateFromV1RelationshipUpdate converts a RelationshipUpdate into a RelationTupleUpdate.
UpdatesFromV1RelationshipUpdates converts a slice of v1.RelationshipUpdate into a slice of RelationshipUpdate.
UpdatesToV1RelationshipUpdates converts a slice of RelationshipUpdate into a slice of v1.RelationshipUpdate.
UpdateToV1RelationshipUpdate converts a RelationshipUpdate into a v1.RelationshipUpdate.
V1StringCaveatRef converts a v1.ContextualizedCaveat to a string.
No description provided by the author
StringObjectRef marshals a *v1.ObjectReference into a string.
V1StringRelationship converts a v1.Relationship to a string.
V1StringRelationshipWithoutCaveatOrExpiration converts a v1.Relationship to a string, excluding any caveat.
StringSubjectRef marshals a *v1.SubjectReference into a string.
ValidateResourceID ensures that the given resource ID is valid.
ValidateSubjectID ensures that the given object ID (under a subject reference) is valid.
WithCaveat adds the given caveat name to the relationship.
# Constants
Ellipsis is the Ellipsis relation in v0 style subjects.
PublicWildcard is the wildcard value for subject object IDs that indicates public access for the subject type.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ObjectAndRelation represents an object and its relation.
RelationReference represents a reference to a relation.
Relationship represents a relationship between two objects.
RelationshipReference represents a reference to a relationship, i.e.
RelationshipUpdate represents an update to a relationship.
# Type aliases
UpdateOperation represents the type of update to a relationship.