Documentation ¶
Index ¶
- func ListGCPGroupsForUser(ctx context.Context, userID uuid.UUID) ([]string, error)
- func NewIdent(uid uuid.UUID) ident.Ident
- func NewLoaderContext(ctx context.Context, dbConn *pgxpool.Pool) context.Context
- type AuthenticatedUser
- type ErrNotFound
- type User
- type UserConnection
- type UserEdge
- type UserOrder
- type UserOrderField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListGCPGroupsForUser ¶
Types ¶
type AuthenticatedUser ¶
type ErrNotFound ¶
type ErrNotFound struct {
// contains filtered or unexported fields
}
func (*ErrNotFound) As ¶
func (e *ErrNotFound) As(v any) bool
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
func (ErrNotFound) GraphError ¶
func (e ErrNotFound) GraphError() string
func (*ErrNotFound) Is ¶
func (e *ErrNotFound) Is(v error) bool
type User ¶
type User struct { UUID uuid.UUID `json:"-"` Email string `json:"email"` Name string `json:"name"` ExternalID string `json:"externalId"` }
func (*User) IsServiceAccount ¶
type UserConnection ¶
type UserConnection = pagination.Connection[*User]
func List ¶
func List(ctx context.Context, page *pagination.Pagination, orderBy *UserOrder) (*UserConnection, error)
type UserEdge ¶
type UserEdge = pagination.Edge[*User]
type UserOrder ¶
type UserOrder struct { Field UserOrderField `json:"field"` Direction model.OrderDirection `json:"direction"` }
type UserOrderField ¶
type UserOrderField string
const ( UserOrderFieldName UserOrderField = "NAME" UserOrderFieldEmail UserOrderField = "EMAIL" )
func (UserOrderField) IsValid ¶
func (e UserOrderField) IsValid() bool
func (UserOrderField) MarshalGQL ¶
func (e UserOrderField) MarshalGQL(w io.Writer)
func (UserOrderField) String ¶
func (e UserOrderField) String() string
func (*UserOrderField) UnmarshalGQL ¶
func (e *UserOrderField) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.