relationtuple

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FlagNamespace  = "namespace"
	FlagSubject    = "subject"
	FlagSubjectID  = "subject-id"
	FlagSubjectSet = "subject-set"
	FlagRelation   = "relation"
	FlagObject     = "object"
	FlagPageSize   = "page-size"
	FlagPageToken  = "page-token"
)
View Source
const (
	FlagForce = "force"
)

Variables

This section is empty.

Functions

func NewCreateCmd

func NewCreateCmd() *cobra.Command

func NewDeleteAllCmd

func NewDeleteAllCmd() *cobra.Command

func NewDeleteCmd

func NewDeleteCmd() *cobra.Command

func NewGetCmd

func NewGetCmd() *cobra.Command

func NewParseCmd

func NewParseCmd() *cobra.Command

func RegisterCommandsRecursive

func RegisterCommandsRecursive(parent *cobra.Command)

Types

type Collection

type Collection struct {
	// contains filtered or unexported fields
}

func MustNewProtoCollection

func MustNewProtoCollection(rels []*rts.RelationTuple) *Collection

func NewAPICollection

func NewAPICollection(rels []*ketoapi.RelationTuple) *Collection

func NewProtoCollection

func NewProtoCollection(rels []*rts.RelationTuple) (*Collection, error)

func (*Collection) Header

func (r *Collection) Header() []string

func (*Collection) IDs

func (r *Collection) IDs() []string

func (*Collection) Interface

func (r *Collection) Interface() interface{}

func (*Collection) Len

func (r *Collection) Len() int

func (*Collection) MarshalJSON

func (r *Collection) MarshalJSON() ([]byte, error)

func (*Collection) Table

func (r *Collection) Table() [][]string

func (*Collection) UnmarshalJSON

func (r *Collection) UnmarshalJSON(raw []byte) error

type OutputTuple

type OutputTuple struct {
	*ketoapi.RelationTuple
}

func (*OutputTuple) Columns

func (r *OutputTuple) Columns() []string

func (*OutputTuple) Header

func (r *OutputTuple) Header() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL