Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromObjectOrUsersetProto ¶
func FromObjectOrUsersetProto(u []*openfgav1.ObjectOrUserset) []string
func FromUsersProto ¶
Types ¶
type Assertion ¶
type Assertion struct {
Request *TestListUsersRequest
ContextualTuples []*openfgav1.TupleKey `json:"contextualTuples"`
Context *structpb.Struct
Expectation []string
ExpectedExcludedUsers []string `json:"expectedExcludedUsers"`
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
Click to show internal directories.
Click to hide internal directories.