Documentation
¶
Index ¶
- func ConstructLineAndColumnData(lines []string, lineIndex int, symbol string) (StartEnd, StartEnd)
- func GetConditionLineNumber(conditionName string, lines []string) int
- func GetExtendedTypeLineNumber(typeName string, lines []string) int
- func GetModuleForObjectTypeRelation(typeDef *openfgav1.TypeDefinition, relation string) (string, error)
- func GetRelationLineNumber(relation string, lines []string) int
- func GetTypeLineNumber(typeName string, lines []string) int
- func IsRelationAssignable(relDef *openfgav1.Userset) bool
- type StartEnd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConditionLineNumber ¶
func GetModuleForObjectTypeRelation ¶
func GetModuleForObjectTypeRelation(typeDef *openfgav1.TypeDefinition, relation string) (string, error)
GetModuleForObjectTypeRelation returns the module for the given object type and relation in that type.
Parameters: - typeDef: A pointer to an openfgav1.TypeDefinition object which contains metadata about the type. - relation: A string representing the relation whose module is to be retrieved.
Returns: - A string representing the module for the given object type and relation. - An error if the relation does not exist.
func GetRelationLineNumber ¶
func GetTypeLineNumber ¶
func IsRelationAssignable ¶
IsRelationAssignable returns true if the relation is assignable, as in the relation definition has a key "this" or any of its children have a key "this".
Types ¶
Click to show internal directories.
Click to hide internal directories.