Documentation
¶
Index ¶
- func AtLeastAsFresh(zedtoken string) *v1.Consistency
- func GetCaveatContext(cmd *cobra.Command) (*structpb.Struct, error)
- func ParseCaveatContext(contextString string) (*structpb.Struct, error)
- func ParseSubject(s string) (namespace, id, relation string, err error)
- func ParseType(s string) (namespace, relation string)
- func PrettyProto(m proto.Message) ([]byte, error)
- func ReadSchema(client client.Client) (string, error)
- func RegisterPermissionCmd(rootCmd *cobra.Command) *cobra.Command
- func RegisterRelationshipCmd(rootCmd *cobra.Command) *cobra.Command
- func RegisterSchemaCmd(rootCmd *cobra.Command) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtLeastAsFresh ¶
func AtLeastAsFresh(zedtoken string) *v1.Consistency
AtLeastAsFresh returns a consistency block set to AtLeastAsFresh as the specified zedtoken.
func GetCaveatContext ¶
GetCaveatContext returns the entered caveat caveat, if any.
func ParseCaveatContext ¶
ParseCaveatContext parses the given context JSON string into caveat context, if valid.
func ParseSubject ¶
ParseSubject parses the given subject string into its namespace, object ID and relation, if valid.
func PrettyProto ¶
PrettyProto returns the given protocol buffer formatted into pretty text.
func ReadSchema ¶
ReadSchema calls read schema for the client and returns the schema found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.