Documentation ¶
Index ¶
- type CreateParams
- type DBTX
- type ListMembershipsParams
- type ListMembershipsRow
- type ListParams
- type NullRoleName
- type Querier
- type Queries
- func (q *Queries) Count(ctx context.Context) (int64, error)
- func (q *Queries) CountMemberships(ctx context.Context, userID uuid.UUID) (int64, error)
- func (q *Queries) Create(ctx context.Context, arg CreateParams) (*User, error)
- func (q *Queries) Delete(ctx context.Context, id uuid.UUID) error
- func (q *Queries) Get(ctx context.Context, id uuid.UUID) (*User, error)
- func (q *Queries) GetByEmail(ctx context.Context, email string) (*User, error)
- func (q *Queries) GetByExternalID(ctx context.Context, externalID string) (*User, error)
- func (q *Queries) GetByIDs(ctx context.Context, ids []uuid.UUID) ([]*User, error)
- func (q *Queries) List(ctx context.Context, arg ListParams) ([]*User, error)
- func (q *Queries) ListGCPGroupsForUser(ctx context.Context, userID uuid.UUID) ([]string, error)
- func (q *Queries) ListMemberships(ctx context.Context, arg ListMembershipsParams) ([]*ListMembershipsRow, error)
- func (q *Queries) Update(ctx context.Context, arg UpdateParams) (*User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RoleName
- type Team
- type UpdateParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateParams ¶
type ListMembershipsParams ¶
type ListMembershipsRow ¶
type ListParams ¶
type NullRoleName ¶
func (*NullRoleName) Scan ¶
func (ns *NullRoleName) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { Count(ctx context.Context) (int64, error) CountMemberships(ctx context.Context, userID uuid.UUID) (int64, error) Create(ctx context.Context, arg CreateParams) (*User, error) Delete(ctx context.Context, id uuid.UUID) error Get(ctx context.Context, id uuid.UUID) (*User, error) GetByEmail(ctx context.Context, email string) (*User, error) GetByExternalID(ctx context.Context, externalID string) (*User, error) GetByIDs(ctx context.Context, ids []uuid.UUID) ([]*User, error) List(ctx context.Context, arg ListParams) ([]*User, error) ListGCPGroupsForUser(ctx context.Context, userID uuid.UUID) ([]string, error) ListMemberships(ctx context.Context, arg ListMembershipsParams) ([]*ListMembershipsRow, error) Update(ctx context.Context, arg UpdateParams) (*User, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountMemberships ¶
func (*Queries) GetByEmail ¶
func (*Queries) GetByExternalID ¶
func (*Queries) ListGCPGroupsForUser ¶
func (*Queries) ListMemberships ¶
func (q *Queries) ListMemberships(ctx context.Context, arg ListMembershipsParams) ([]*ListMembershipsRow, error)
type RoleName ¶
type RoleName string
const ( RoleNameAdmin RoleName = "Admin" RoleNameDeploykeyviewer RoleName = "Deploy key viewer" RoleNameServiceaccountcreator RoleName = "Service account creator" RoleNameServiceaccountowner RoleName = "Service account owner" RoleNameSynchronizer RoleName = "Synchronizer" RoleNameTeamcreator RoleName = "Team creator" RoleNameTeammember RoleName = "Team member" RoleNameTeamowner RoleName = "Team owner" RoleNameTeamviewer RoleName = "Team viewer" RoleNameUseradmin RoleName = "User admin" RoleNameUserviewer RoleName = "User viewer" )
func AllRoleNameValues ¶
func AllRoleNameValues() []RoleName
type UpdateParams ¶
Click to show internal directories.
Click to hide internal directories.