listuserstest

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromUsersProto

func FromUsersProto(r []*openfgav1.User) []string

Types

type Assertion

type Assertion struct {
	Request          *TestListUsersRequest
	ContextualTuples []*openfgav1.TupleKey `json:"contextualTuples"`
	Context          *structpb.Struct
	Expectation      []string
	ErrorCode        int `json:"errorCode"` // If ErrorCode is non-zero then we expect that the ListUsers call failed.
}

type TestListUsersRequest

type TestListUsersRequest struct {
	Object   string
	Relation string
	Filters  []string `json:"filters"`
}

func (*TestListUsersRequest) ToProtoRequest

func (t *TestListUsersRequest) ToProtoRequest() *openfgav1.ListUsersRequest

func (*TestListUsersRequest) ToString

func (t *TestListUsersRequest) ToString() string

Jump to

Keyboard shortcuts

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