Documentation ¶
Index ¶
- type AssignGlobalRoleParams
- type CreateParams
- type CreateRunParams
- type DBTX
- type NullRoleName
- type Querier
- type Queries
- func (q *Queries) AssignGlobalRole(ctx context.Context, arg AssignGlobalRoleParams) error
- func (q *Queries) Create(ctx context.Context, arg CreateParams) (*User, error)
- func (q *Queries) CreateRun(ctx context.Context, arg CreateRunParams) error
- func (q *Queries) Delete(ctx context.Context, id uuid.UUID) error
- func (q *Queries) List(ctx context.Context) ([]*User, error)
- func (q *Queries) ListRoles(ctx context.Context) ([]*UserRole, error)
- func (q *Queries) RevokeGlobalRole(ctx context.Context, arg RevokeGlobalRoleParams) error
- func (q *Queries) Update(ctx context.Context, arg UpdateParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RevokeGlobalRoleParams
- type RoleName
- type UpdateParams
- type User
- type UserRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignGlobalRoleParams ¶
type CreateParams ¶
type CreateRunParams ¶
type CreateRunParams struct { ID uuid.UUID StartedAt pgtype.Timestamptz FinishedAt pgtype.Timestamptz Error *string }
type NullRoleName ¶
func (*NullRoleName) Scan ¶
func (ns *NullRoleName) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { AssignGlobalRole(ctx context.Context, arg AssignGlobalRoleParams) error Create(ctx context.Context, arg CreateParams) (*User, error) CreateRun(ctx context.Context, arg CreateRunParams) error Delete(ctx context.Context, id uuid.UUID) error List(ctx context.Context) ([]*User, error) ListRoles(ctx context.Context) ([]*UserRole, error) RevokeGlobalRole(ctx context.Context, arg RevokeGlobalRoleParams) error Update(ctx context.Context, arg UpdateParams) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AssignGlobalRole ¶
func (q *Queries) AssignGlobalRole(ctx context.Context, arg AssignGlobalRoleParams) error
func (*Queries) CreateRun ¶
func (q *Queries) CreateRun(ctx context.Context, arg CreateRunParams) error
func (*Queries) RevokeGlobalRole ¶
func (q *Queries) RevokeGlobalRole(ctx context.Context, arg RevokeGlobalRoleParams) error
type RevokeGlobalRoleParams ¶
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.