Documentation ¶
Index ¶
- type AddMemberParams
- type CreateDeleteKeyParams
- type CreateParams
- type DBTX
- type GetDeleteKeyParams
- type GetEnvironmentParams
- type GetMemberByEmailParams
- type GetMemberByEmailRow
- type GetMemberParams
- type GetMemberRow
- type ListEnvironmentsBySlugsAndEnvNamesParams
- type ListForUserParams
- type ListForUserRow
- type ListMembersParams
- type ListMembersRow
- type ListParams
- type NullRoleName
- type Querier
- type Queries
- func (q *Queries) AddMember(ctx context.Context, arg AddMemberParams) error
- func (q *Queries) ConfirmDeleteKey(ctx context.Context, key uuid.UUID) error
- func (q *Queries) Count(ctx context.Context) (int64, error)
- func (q *Queries) CountForUser(ctx context.Context, userID uuid.UUID) (int64, error)
- func (q *Queries) CountMembers(ctx context.Context, teamSlug *slug.Slug) (int64, error)
- func (q *Queries) Create(ctx context.Context, arg CreateParams) (*Team, error)
- func (q *Queries) CreateDeleteKey(ctx context.Context, arg CreateDeleteKeyParams) (*TeamDeleteKey, error)
- func (q *Queries) Exists(ctx context.Context, argSlug slug.Slug) (bool, error)
- func (q *Queries) Get(ctx context.Context, argSlug slug.Slug) (*Team, error)
- func (q *Queries) GetDeleteKey(ctx context.Context, arg GetDeleteKeyParams) (*TeamDeleteKey, error)
- func (q *Queries) GetEnvironment(ctx context.Context, arg GetEnvironmentParams) (*TeamAllEnvironment, error)
- func (q *Queries) GetMember(ctx context.Context, arg GetMemberParams) (*GetMemberRow, error)
- func (q *Queries) GetMemberByEmail(ctx context.Context, arg GetMemberByEmailParams) (*GetMemberByEmailRow, error)
- func (q *Queries) List(ctx context.Context, arg ListParams) ([]*Team, error)
- func (q *Queries) ListAllSlugs(ctx context.Context) ([]slug.Slug, error)
- func (q *Queries) ListBySlugs(ctx context.Context, slugs []slug.Slug) ([]*Team, error)
- func (q *Queries) ListEnvironmentsBySlug(ctx context.Context, argSlug slug.Slug) ([]*TeamAllEnvironment, error)
- func (q *Queries) ListEnvironmentsBySlugsAndEnvNames(ctx context.Context, arg ListEnvironmentsBySlugsAndEnvNamesParams) ([]*TeamAllEnvironment, error)
- func (q *Queries) ListForUser(ctx context.Context, arg ListForUserParams) ([]*ListForUserRow, error)
- func (q *Queries) ListMembers(ctx context.Context, arg ListMembersParams) ([]*ListMembersRow, error)
- func (q *Queries) RemoveMember(ctx context.Context, arg RemoveMemberParams) error
- func (q *Queries) RemoveSlackAlertsChannel(ctx context.Context, arg RemoveSlackAlertsChannelParams) error
- func (q *Queries) Search(ctx context.Context, query string) ([]*SearchRow, error)
- func (q *Queries) SetDeleteKeyConfirmedAt(ctx context.Context, argSlug slug.Slug) error
- func (q *Queries) SlugAvailable(ctx context.Context, argSlug slug.Slug) (bool, error)
- func (q *Queries) Update(ctx context.Context, arg UpdateParams) (*Team, error)
- func (q *Queries) UpdateExternalReferences(ctx context.Context, arg UpdateExternalReferencesParams) error
- func (q *Queries) UpsertEnvironment(ctx context.Context, arg UpsertEnvironmentParams) error
- func (q *Queries) UserIsMember(ctx context.Context, arg UserIsMemberParams) (bool, error)
- func (q *Queries) UserIsOwner(ctx context.Context, arg UserIsOwnerParams) (bool, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RemoveMemberParams
- type RemoveSlackAlertsChannelParams
- type RoleName
- type SearchRow
- type Team
- type TeamAllEnvironment
- type TeamDeleteKey
- type UpdateExternalReferencesParams
- type UpdateParams
- type UpsertEnvironmentParams
- type User
- type UserIsMemberParams
- type UserIsOwnerParams
- type UserRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMemberParams ¶
type CreateDeleteKeyParams ¶
type GetEnvironmentParams ¶
type GetMemberByEmailParams ¶
type GetMemberByEmailRow ¶
type GetMemberRow ¶
type ListForUserParams ¶
type ListForUserRow ¶
type ListMembersParams ¶
type ListMembersRow ¶
type ListParams ¶
type NullRoleName ¶
func (*NullRoleName) Scan ¶
func (ns *NullRoleName) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { AddMember(ctx context.Context, arg AddMemberParams) error ConfirmDeleteKey(ctx context.Context, key uuid.UUID) error Count(ctx context.Context) (int64, error) CountForUser(ctx context.Context, userID uuid.UUID) (int64, error) CountMembers(ctx context.Context, teamSlug *slug.Slug) (int64, error) Create(ctx context.Context, arg CreateParams) (*Team, error) CreateDeleteKey(ctx context.Context, arg CreateDeleteKeyParams) (*TeamDeleteKey, error) Exists(ctx context.Context, argSlug slug.Slug) (bool, error) Get(ctx context.Context, argSlug slug.Slug) (*Team, error) GetDeleteKey(ctx context.Context, arg GetDeleteKeyParams) (*TeamDeleteKey, error) GetEnvironment(ctx context.Context, arg GetEnvironmentParams) (*TeamAllEnvironment, error) GetMember(ctx context.Context, arg GetMemberParams) (*GetMemberRow, error) GetMemberByEmail(ctx context.Context, arg GetMemberByEmailParams) (*GetMemberByEmailRow, error) List(ctx context.Context, arg ListParams) ([]*Team, error) ListAllSlugs(ctx context.Context) ([]slug.Slug, error) ListBySlugs(ctx context.Context, slugs []slug.Slug) ([]*Team, error) ListEnvironmentsBySlug(ctx context.Context, argSlug slug.Slug) ([]*TeamAllEnvironment, error) // ListEnvironmentsBySlugsAndEnvNames returns a slice of team environments for a list of teams/envs, excluding // deleted teams. // Input is two arrays of equal length, one for slugs and one for names ListEnvironmentsBySlugsAndEnvNames(ctx context.Context, arg ListEnvironmentsBySlugsAndEnvNamesParams) ([]*TeamAllEnvironment, error) ListForUser(ctx context.Context, arg ListForUserParams) ([]*ListForUserRow, error) ListMembers(ctx context.Context, arg ListMembersParams) ([]*ListMembersRow, error) RemoveMember(ctx context.Context, arg RemoveMemberParams) error RemoveSlackAlertsChannel(ctx context.Context, arg RemoveSlackAlertsChannelParams) error Search(ctx context.Context, query string) ([]*SearchRow, error) SetDeleteKeyConfirmedAt(ctx context.Context, argSlug slug.Slug) error SlugAvailable(ctx context.Context, argSlug slug.Slug) (bool, error) Update(ctx context.Context, arg UpdateParams) (*Team, error) UpdateExternalReferences(ctx context.Context, arg UpdateExternalReferencesParams) error UpsertEnvironment(ctx context.Context, arg UpsertEnvironmentParams) error UserIsMember(ctx context.Context, arg UserIsMemberParams) (bool, error) UserIsOwner(ctx context.Context, arg UserIsOwnerParams) (bool, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddMember ¶
func (q *Queries) AddMember(ctx context.Context, arg AddMemberParams) error
func (*Queries) ConfirmDeleteKey ¶
func (*Queries) CountForUser ¶
func (*Queries) CountMembers ¶
func (*Queries) CreateDeleteKey ¶
func (q *Queries) CreateDeleteKey(ctx context.Context, arg CreateDeleteKeyParams) (*TeamDeleteKey, error)
func (*Queries) GetDeleteKey ¶
func (q *Queries) GetDeleteKey(ctx context.Context, arg GetDeleteKeyParams) (*TeamDeleteKey, error)
func (*Queries) GetEnvironment ¶
func (q *Queries) GetEnvironment(ctx context.Context, arg GetEnvironmentParams) (*TeamAllEnvironment, error)
func (*Queries) GetMember ¶
func (q *Queries) GetMember(ctx context.Context, arg GetMemberParams) (*GetMemberRow, error)
func (*Queries) GetMemberByEmail ¶
func (q *Queries) GetMemberByEmail(ctx context.Context, arg GetMemberByEmailParams) (*GetMemberByEmailRow, error)
func (*Queries) ListAllSlugs ¶
func (*Queries) ListBySlugs ¶
func (*Queries) ListEnvironmentsBySlug ¶
func (*Queries) ListEnvironmentsBySlugsAndEnvNames ¶
func (q *Queries) ListEnvironmentsBySlugsAndEnvNames(ctx context.Context, arg ListEnvironmentsBySlugsAndEnvNamesParams) ([]*TeamAllEnvironment, error)
ListEnvironmentsBySlugsAndEnvNames returns a slice of team environments for a list of teams/envs, excluding deleted teams. Input is two arrays of equal length, one for slugs and one for names
func (*Queries) ListForUser ¶
func (q *Queries) ListForUser(ctx context.Context, arg ListForUserParams) ([]*ListForUserRow, error)
func (*Queries) ListMembers ¶
func (q *Queries) ListMembers(ctx context.Context, arg ListMembersParams) ([]*ListMembersRow, error)
func (*Queries) RemoveMember ¶
func (q *Queries) RemoveMember(ctx context.Context, arg RemoveMemberParams) error
func (*Queries) RemoveSlackAlertsChannel ¶
func (q *Queries) RemoveSlackAlertsChannel(ctx context.Context, arg RemoveSlackAlertsChannelParams) error
func (*Queries) SetDeleteKeyConfirmedAt ¶
func (*Queries) SlugAvailable ¶
func (*Queries) UpdateExternalReferences ¶
func (q *Queries) UpdateExternalReferences(ctx context.Context, arg UpdateExternalReferencesParams) error
func (*Queries) UpsertEnvironment ¶
func (q *Queries) UpsertEnvironment(ctx context.Context, arg UpsertEnvironmentParams) error
func (*Queries) UserIsMember ¶
func (*Queries) UserIsOwner ¶
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 TeamAllEnvironment ¶
type TeamDeleteKey ¶
type TeamDeleteKey struct { Key uuid.UUID TeamSlug slug.Slug CreatedAt pgtype.Timestamptz CreatedBy uuid.UUID ConfirmedAt pgtype.Timestamptz }
type UpdateParams ¶
type UpsertEnvironmentParams ¶
Click to show internal directories.
Click to hide internal directories.