Documentation
¶
Overview ¶
Package tuple implements `ofga tuples`: write, delete, read relationship tuples and follow the changelog.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeTuple ¶ added in v0.268.0
DecodeTuple decodes one raw JSON tuple (a tuples-file entry: user, relation, object and an optional condition, strictly) into a validated TupleKey, with the same rules `tuples write --file` applies.
func LoadTupleFile ¶ added in v0.268.0
LoadTupleFile reads tuples from path ("-" reads stdin) using the same format inference, shapes and strict decoding as `tuples write --file`. Errors keep their exit code; invalid content is also tagged as a validation error naming the source.
func OutputTypes ¶ added in v0.268.0
OutputTypes maps each tuple command's full path to what it prints under --json. Write and delete are hand-written: their output is a dry-run preview, a single-tuple count or a bulk result depending on the flags.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command is the `tuple` command group.
func (*Command) RegisterSubCommands ¶
func (c *Command) RegisterSubCommands()
RegisterSubCommands wires the tuple sub-commands.