Documentation ¶
Index ¶
- type AddReconcilerOptOutParams
- type ApiKey
- type AssignGlobalRoleToServiceAccountParams
- type AssignGlobalRoleToUserParams
- type AssignTeamRoleToServiceAccountParams
- type AssignTeamRoleToUserParams
- type AuditLog
- type ClearReconcilerErrorsForTeamParams
- type ConfigureReconcilerParams
- type CreateAPIKeyParams
- type CreateAuditLogParams
- type CreateRepositoryAuthorizationParams
- type CreateSessionParams
- type CreateTeamDeleteKeyParams
- type CreateTeamParams
- type CreateUserParams
- type DBTX
- type DangerousGetReconcilerConfigValuesRow
- type FirstRun
- type GetReconcilerConfigRow
- type GetReconcilerStateForTeamParams
- type GetRepositoryAuthorizationsParams
- type GetTeamMemberOptOutsParams
- type GetTeamMemberOptOutsRow
- type GetTeamMemberParams
- type GetTeamMembersForReconcilerParams
- type NullReconcilerConfigKey
- type NullReconcilerName
- type NullRepositoryAuthorizationEnum
- type NullRoleName
- type Querier
- type Queries
- func (q *Queries) AddReconcilerOptOut(ctx context.Context, arg AddReconcilerOptOutParams) error
- func (q *Queries) AssignGlobalRoleToServiceAccount(ctx context.Context, arg AssignGlobalRoleToServiceAccountParams) error
- func (q *Queries) AssignGlobalRoleToUser(ctx context.Context, arg AssignGlobalRoleToUserParams) error
- func (q *Queries) AssignTeamRoleToServiceAccount(ctx context.Context, arg AssignTeamRoleToServiceAccountParams) error
- func (q *Queries) AssignTeamRoleToUser(ctx context.Context, arg AssignTeamRoleToUserParams) error
- func (q *Queries) ClearReconcilerErrorsForTeam(ctx context.Context, arg ClearReconcilerErrorsForTeamParams) error
- func (q *Queries) ConfigureReconciler(ctx context.Context, arg ConfigureReconcilerParams) error
- func (q *Queries) ConfirmTeamDeleteKey(ctx context.Context, key uuid.UUID) error
- func (q *Queries) CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) error
- func (q *Queries) CreateAuditLog(ctx context.Context, arg CreateAuditLogParams) error
- func (q *Queries) CreateRepositoryAuthorization(ctx context.Context, arg CreateRepositoryAuthorizationParams) error
- func (q *Queries) CreateServiceAccount(ctx context.Context, name string) (*ServiceAccount, error)
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (*Session, error)
- func (q *Queries) CreateTeam(ctx context.Context, arg CreateTeamParams) (*Team, error)
- func (q *Queries) CreateTeamDeleteKey(ctx context.Context, arg CreateTeamDeleteKeyParams) (*TeamDeleteKey, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (*User, error)
- func (q *Queries) DangerousGetReconcilerConfigValues(ctx context.Context, reconciler ReconcilerName) ([]*DangerousGetReconcilerConfigValuesRow, error)
- func (q *Queries) DeleteServiceAccount(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeleteSession(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeleteTeam(ctx context.Context, argSlug slug.Slug) error
- func (q *Queries) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DisableReconciler(ctx context.Context, name ReconcilerName) (*Reconciler, error)
- func (q *Queries) EnableReconciler(ctx context.Context, name ReconcilerName) (*Reconciler, error)
- func (q *Queries) FirstRunComplete(ctx context.Context) error
- func (q *Queries) GetActiveTeamBySlug(ctx context.Context, argSlug slug.Slug) (*Team, error)
- func (q *Queries) GetActiveTeams(ctx context.Context) ([]*Team, error)
- func (q *Queries) GetAllUserRoles(ctx context.Context) ([]*UserRole, error)
- func (q *Queries) GetAuditLogsForCorrelationID(ctx context.Context, correlationID uuid.UUID) ([]*AuditLog, error)
- func (q *Queries) GetAuditLogsForReconciler(ctx context.Context, targetIdentifier string) ([]*AuditLog, error)
- func (q *Queries) GetAuditLogsForTeam(ctx context.Context, targetIdentifier string) ([]*AuditLog, error)
- func (q *Queries) GetEnabledReconcilers(ctx context.Context) ([]*Reconciler, error)
- func (q *Queries) GetReconciler(ctx context.Context, name ReconcilerName) (*Reconciler, error)
- func (q *Queries) GetReconcilerConfig(ctx context.Context, reconciler ReconcilerName) ([]*GetReconcilerConfigRow, error)
- func (q *Queries) GetReconcilerStateForTeam(ctx context.Context, arg GetReconcilerStateForTeamParams) (*ReconcilerState, error)
- func (q *Queries) GetReconcilers(ctx context.Context) ([]*Reconciler, error)
- func (q *Queries) GetRepositoryAuthorizations(ctx context.Context, arg GetRepositoryAuthorizationsParams) ([]RepositoryAuthorizationEnum, error)
- func (q *Queries) GetServiceAccountByApiKey(ctx context.Context, apiKey string) (*ServiceAccount, error)
- func (q *Queries) GetServiceAccountByName(ctx context.Context, name string) (*ServiceAccount, error)
- func (q *Queries) GetServiceAccountRoles(ctx context.Context, serviceAccountID uuid.UUID) ([]*ServiceAccountRole, error)
- func (q *Queries) GetServiceAccounts(ctx context.Context) ([]*ServiceAccount, error)
- func (q *Queries) GetSessionByID(ctx context.Context, id uuid.UUID) (*Session, error)
- func (q *Queries) GetSlackAlertsChannels(ctx context.Context, teamSlug slug.Slug) ([]*SlackAlertsChannel, error)
- func (q *Queries) GetTeamBySlug(ctx context.Context, argSlug slug.Slug) (*Team, error)
- func (q *Queries) GetTeamDeleteKey(ctx context.Context, key uuid.UUID) (*TeamDeleteKey, error)
- func (q *Queries) GetTeamMember(ctx context.Context, arg GetTeamMemberParams) (*User, error)
- func (q *Queries) GetTeamMemberOptOuts(ctx context.Context, arg GetTeamMemberOptOutsParams) ([]*GetTeamMemberOptOutsRow, error)
- func (q *Queries) GetTeamMembers(ctx context.Context, targetTeamSlug *slug.Slug) ([]*User, error)
- func (q *Queries) GetTeamMembersForReconciler(ctx context.Context, arg GetTeamMembersForReconcilerParams) ([]*User, error)
- func (q *Queries) GetTeamReconcilerErrors(ctx context.Context, teamSlug slug.Slug) ([]*ReconcilerError, error)
- func (q *Queries) GetTeams(ctx context.Context) ([]*Team, error)
- func (q *Queries) GetTeamsWithPermissionInGitHubRepo(ctx context.Context, state pgtype.JSONB) ([]*Team, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (*User, error)
- func (q *Queries) GetUserByExternalID(ctx context.Context, externalID string) (*User, error)
- func (q *Queries) GetUserByID(ctx context.Context, id uuid.UUID) (*User, error)
- func (q *Queries) GetUserRoles(ctx context.Context, userID uuid.UUID) ([]*UserRole, error)
- func (q *Queries) GetUserTeams(ctx context.Context, userID uuid.UUID) ([]*Team, error)
- func (q *Queries) GetUsers(ctx context.Context) ([]*User, error)
- func (q *Queries) GetUsersWithGloballyAssignedRole(ctx context.Context, roleName RoleName) ([]*User, error)
- func (q *Queries) IsFirstRun(ctx context.Context) (bool, error)
- func (q *Queries) RemoveAllServiceAccountRoles(ctx context.Context, serviceAccountID uuid.UUID) error
- func (q *Queries) RemoveApiKeysFromServiceAccount(ctx context.Context, serviceAccountID uuid.UUID) error
- func (q *Queries) RemoveReconcilerOptOut(ctx context.Context, arg RemoveReconcilerOptOutParams) error
- func (q *Queries) RemoveReconcilerStateForTeam(ctx context.Context, arg RemoveReconcilerStateForTeamParams) error
- func (q *Queries) RemoveRepositoryAuthorization(ctx context.Context, arg RemoveRepositoryAuthorizationParams) error
- func (q *Queries) RemoveSlackAlertsChannel(ctx context.Context, arg RemoveSlackAlertsChannelParams) error
- func (q *Queries) RemoveUserFromTeam(ctx context.Context, arg RemoveUserFromTeamParams) error
- func (q *Queries) ResetReconcilerConfig(ctx context.Context, reconciler ReconcilerName) error
- func (q *Queries) RevokeGlobalUserRole(ctx context.Context, arg RevokeGlobalUserRoleParams) error
- func (q *Queries) SetLastSuccessfulSyncForTeam(ctx context.Context, argSlug slug.Slug) error
- func (q *Queries) SetReconcilerErrorForTeam(ctx context.Context, arg SetReconcilerErrorForTeamParams) error
- func (q *Queries) SetReconcilerStateForTeam(ctx context.Context, arg SetReconcilerStateForTeamParams) error
- func (q *Queries) SetSessionExpires(ctx context.Context, arg SetSessionExpiresParams) (*Session, error)
- func (q *Queries) SetSlackAlertsChannel(ctx context.Context, arg SetSlackAlertsChannelParams) error
- func (q *Queries) UpdateTeam(ctx context.Context, arg UpdateTeamParams) (*Team, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (*User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Reconciler
- type ReconcilerConfig
- type ReconcilerConfigKey
- type ReconcilerError
- type ReconcilerName
- type ReconcilerOptOut
- type ReconcilerState
- type RemoveReconcilerOptOutParams
- type RemoveReconcilerStateForTeamParams
- type RemoveRepositoryAuthorizationParams
- type RemoveSlackAlertsChannelParams
- type RemoveUserFromTeamParams
- type RepositoryAuthorization
- type RepositoryAuthorizationEnum
- type RevokeGlobalUserRoleParams
- type RoleName
- type ServiceAccount
- type ServiceAccountRole
- type Session
- type SetReconcilerErrorForTeamParams
- type SetReconcilerStateForTeamParams
- type SetSessionExpiresParams
- type SetSlackAlertsChannelParams
- type SlackAlertsChannel
- type Team
- type TeamDeleteKey
- type UpdateTeamParams
- type UpdateUserParams
- type User
- type UserRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddReconcilerOptOutParams ¶
type AddReconcilerOptOutParams struct { TeamSlug slug.Slug UserID uuid.UUID ReconcilerName ReconcilerName }
type ClearReconcilerErrorsForTeamParams ¶
type ClearReconcilerErrorsForTeamParams struct { TeamSlug slug.Slug Reconciler ReconcilerName }
type ConfigureReconcilerParams ¶
type ConfigureReconcilerParams struct { Reconciler ReconcilerName Key ReconcilerConfigKey Value string }
type CreateAPIKeyParams ¶
type CreateAuditLogParams ¶
type CreateRepositoryAuthorizationParams ¶
type CreateRepositoryAuthorizationParams struct { TeamSlug string GithubRepository string RepositoryAuthorization RepositoryAuthorizationEnum }
type CreateTeamParams ¶
type CreateUserParams ¶
type DangerousGetReconcilerConfigValuesRow ¶
type DangerousGetReconcilerConfigValuesRow struct { Key ReconcilerConfigKey Value string }
type GetReconcilerConfigRow ¶
type GetReconcilerConfigRow struct { Reconciler ReconcilerName Key ReconcilerConfigKey DisplayName string Description string Configured bool Value *string Secret bool }
type GetReconcilerStateForTeamParams ¶
type GetReconcilerStateForTeamParams struct { Reconciler ReconcilerName TeamSlug slug.Slug }
type GetTeamMemberOptOutsRow ¶
type GetTeamMemberOptOutsRow struct { Name ReconcilerName Enabled bool }
type GetTeamMemberParams ¶
type GetTeamMembersForReconcilerParams ¶
type GetTeamMembersForReconcilerParams struct { TargetTeamSlug *slug.Slug ReconcilerName ReconcilerName }
type NullReconcilerConfigKey ¶
type NullReconcilerConfigKey struct { ReconcilerConfigKey ReconcilerConfigKey Valid bool // Valid is true if ReconcilerConfigKey is not NULL }
func (*NullReconcilerConfigKey) Scan ¶
func (ns *NullReconcilerConfigKey) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullReconcilerName ¶
type NullReconcilerName struct { ReconcilerName ReconcilerName Valid bool // Valid is true if ReconcilerName is not NULL }
func (*NullReconcilerName) Scan ¶
func (ns *NullReconcilerName) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullRepositoryAuthorizationEnum ¶
type NullRepositoryAuthorizationEnum struct { RepositoryAuthorizationEnum RepositoryAuthorizationEnum Valid bool // Valid is true if RepositoryAuthorizationEnum is not NULL }
func (*NullRepositoryAuthorizationEnum) Scan ¶
func (ns *NullRepositoryAuthorizationEnum) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullRoleName ¶
func (*NullRoleName) Scan ¶
func (ns *NullRoleName) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { AddReconcilerOptOut(ctx context.Context, arg AddReconcilerOptOutParams) error AssignGlobalRoleToServiceAccount(ctx context.Context, arg AssignGlobalRoleToServiceAccountParams) error AssignGlobalRoleToUser(ctx context.Context, arg AssignGlobalRoleToUserParams) error AssignTeamRoleToServiceAccount(ctx context.Context, arg AssignTeamRoleToServiceAccountParams) error AssignTeamRoleToUser(ctx context.Context, arg AssignTeamRoleToUserParams) error ClearReconcilerErrorsForTeam(ctx context.Context, arg ClearReconcilerErrorsForTeamParams) error ConfigureReconciler(ctx context.Context, arg ConfigureReconcilerParams) error ConfirmTeamDeleteKey(ctx context.Context, key uuid.UUID) error CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) error CreateAuditLog(ctx context.Context, arg CreateAuditLogParams) error CreateRepositoryAuthorization(ctx context.Context, arg CreateRepositoryAuthorizationParams) error CreateServiceAccount(ctx context.Context, name string) (*ServiceAccount, error) CreateSession(ctx context.Context, arg CreateSessionParams) (*Session, error) CreateTeam(ctx context.Context, arg CreateTeamParams) (*Team, error) CreateTeamDeleteKey(ctx context.Context, arg CreateTeamDeleteKeyParams) (*TeamDeleteKey, error) CreateUser(ctx context.Context, arg CreateUserParams) (*User, error) DangerousGetReconcilerConfigValues(ctx context.Context, reconciler ReconcilerName) ([]*DangerousGetReconcilerConfigValuesRow, error) DeleteServiceAccount(ctx context.Context, id uuid.UUID) error DeleteSession(ctx context.Context, id uuid.UUID) error DeleteTeam(ctx context.Context, argSlug slug.Slug) error DeleteUser(ctx context.Context, id uuid.UUID) error DisableReconciler(ctx context.Context, name ReconcilerName) (*Reconciler, error) EnableReconciler(ctx context.Context, name ReconcilerName) (*Reconciler, error) FirstRunComplete(ctx context.Context) error GetActiveTeamBySlug(ctx context.Context, argSlug slug.Slug) (*Team, error) GetActiveTeams(ctx context.Context) ([]*Team, error) GetAllUserRoles(ctx context.Context) ([]*UserRole, error) GetAuditLogsForCorrelationID(ctx context.Context, correlationID uuid.UUID) ([]*AuditLog, error) GetAuditLogsForReconciler(ctx context.Context, targetIdentifier string) ([]*AuditLog, error) GetAuditLogsForTeam(ctx context.Context, targetIdentifier string) ([]*AuditLog, error) GetEnabledReconcilers(ctx context.Context) ([]*Reconciler, error) GetReconciler(ctx context.Context, name ReconcilerName) (*Reconciler, error) GetReconcilerConfig(ctx context.Context, reconciler ReconcilerName) ([]*GetReconcilerConfigRow, error) GetReconcilerStateForTeam(ctx context.Context, arg GetReconcilerStateForTeamParams) (*ReconcilerState, error) GetReconcilers(ctx context.Context) ([]*Reconciler, error) GetRepositoryAuthorizations(ctx context.Context, arg GetRepositoryAuthorizationsParams) ([]RepositoryAuthorizationEnum, error) GetServiceAccountByApiKey(ctx context.Context, apiKey string) (*ServiceAccount, error) GetServiceAccountByName(ctx context.Context, name string) (*ServiceAccount, error) GetServiceAccountRoles(ctx context.Context, serviceAccountID uuid.UUID) ([]*ServiceAccountRole, error) GetServiceAccounts(ctx context.Context) ([]*ServiceAccount, error) GetSessionByID(ctx context.Context, id uuid.UUID) (*Session, error) GetSlackAlertsChannels(ctx context.Context, teamSlug slug.Slug) ([]*SlackAlertsChannel, error) GetTeamBySlug(ctx context.Context, argSlug slug.Slug) (*Team, error) GetTeamDeleteKey(ctx context.Context, key uuid.UUID) (*TeamDeleteKey, error) GetTeamMember(ctx context.Context, arg GetTeamMemberParams) (*User, error) GetTeamMemberOptOuts(ctx context.Context, arg GetTeamMemberOptOutsParams) ([]*GetTeamMemberOptOutsRow, error) GetTeamMembers(ctx context.Context, targetTeamSlug *slug.Slug) ([]*User, error) GetTeamMembersForReconciler(ctx context.Context, arg GetTeamMembersForReconcilerParams) ([]*User, error) GetTeamReconcilerErrors(ctx context.Context, teamSlug slug.Slug) ([]*ReconcilerError, error) GetTeams(ctx context.Context) ([]*Team, error) GetTeamsWithPermissionInGitHubRepo(ctx context.Context, state pgtype.JSONB) ([]*Team, error) GetUserByEmail(ctx context.Context, email string) (*User, error) GetUserByExternalID(ctx context.Context, externalID string) (*User, error) GetUserByID(ctx context.Context, id uuid.UUID) (*User, error) GetUserRoles(ctx context.Context, userID uuid.UUID) ([]*UserRole, error) GetUserTeams(ctx context.Context, userID uuid.UUID) ([]*Team, error) GetUsers(ctx context.Context) ([]*User, error) GetUsersWithGloballyAssignedRole(ctx context.Context, roleName RoleName) ([]*User, error) IsFirstRun(ctx context.Context) (bool, error) RemoveAllServiceAccountRoles(ctx context.Context, serviceAccountID uuid.UUID) error RemoveApiKeysFromServiceAccount(ctx context.Context, serviceAccountID uuid.UUID) error RemoveReconcilerOptOut(ctx context.Context, arg RemoveReconcilerOptOutParams) error RemoveReconcilerStateForTeam(ctx context.Context, arg RemoveReconcilerStateForTeamParams) error RemoveRepositoryAuthorization(ctx context.Context, arg RemoveRepositoryAuthorizationParams) error RemoveSlackAlertsChannel(ctx context.Context, arg RemoveSlackAlertsChannelParams) error RemoveUserFromTeam(ctx context.Context, arg RemoveUserFromTeamParams) error ResetReconcilerConfig(ctx context.Context, reconciler ReconcilerName) error RevokeGlobalUserRole(ctx context.Context, arg RevokeGlobalUserRoleParams) error SetLastSuccessfulSyncForTeam(ctx context.Context, argSlug slug.Slug) error SetReconcilerErrorForTeam(ctx context.Context, arg SetReconcilerErrorForTeamParams) error SetReconcilerStateForTeam(ctx context.Context, arg SetReconcilerStateForTeamParams) error SetSessionExpires(ctx context.Context, arg SetSessionExpiresParams) (*Session, error) SetSlackAlertsChannel(ctx context.Context, arg SetSlackAlertsChannelParams) error UpdateTeam(ctx context.Context, arg UpdateTeamParams) (*Team, error) UpdateUser(ctx context.Context, arg UpdateUserParams) (*User, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddReconcilerOptOut ¶
func (q *Queries) AddReconcilerOptOut(ctx context.Context, arg AddReconcilerOptOutParams) error
func (*Queries) AssignGlobalRoleToServiceAccount ¶
func (q *Queries) AssignGlobalRoleToServiceAccount(ctx context.Context, arg AssignGlobalRoleToServiceAccountParams) error
func (*Queries) AssignGlobalRoleToUser ¶
func (q *Queries) AssignGlobalRoleToUser(ctx context.Context, arg AssignGlobalRoleToUserParams) error
func (*Queries) AssignTeamRoleToServiceAccount ¶
func (q *Queries) AssignTeamRoleToServiceAccount(ctx context.Context, arg AssignTeamRoleToServiceAccountParams) error
func (*Queries) AssignTeamRoleToUser ¶
func (q *Queries) AssignTeamRoleToUser(ctx context.Context, arg AssignTeamRoleToUserParams) error
func (*Queries) ClearReconcilerErrorsForTeam ¶
func (q *Queries) ClearReconcilerErrorsForTeam(ctx context.Context, arg ClearReconcilerErrorsForTeamParams) error
func (*Queries) ConfigureReconciler ¶
func (q *Queries) ConfigureReconciler(ctx context.Context, arg ConfigureReconcilerParams) error
func (*Queries) ConfirmTeamDeleteKey ¶
func (*Queries) CreateAPIKey ¶
func (q *Queries) CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) error
func (*Queries) CreateAuditLog ¶
func (q *Queries) CreateAuditLog(ctx context.Context, arg CreateAuditLogParams) error
func (*Queries) CreateRepositoryAuthorization ¶
func (q *Queries) CreateRepositoryAuthorization(ctx context.Context, arg CreateRepositoryAuthorizationParams) error
func (*Queries) CreateServiceAccount ¶
func (*Queries) CreateSession ¶
func (*Queries) CreateTeam ¶
func (*Queries) CreateTeamDeleteKey ¶
func (q *Queries) CreateTeamDeleteKey(ctx context.Context, arg CreateTeamDeleteKeyParams) (*TeamDeleteKey, error)
func (*Queries) CreateUser ¶
func (*Queries) DangerousGetReconcilerConfigValues ¶
func (q *Queries) DangerousGetReconcilerConfigValues(ctx context.Context, reconciler ReconcilerName) ([]*DangerousGetReconcilerConfigValuesRow, error)
func (*Queries) DeleteServiceAccount ¶
func (*Queries) DeleteSession ¶
func (*Queries) DeleteTeam ¶
func (*Queries) DisableReconciler ¶
func (q *Queries) DisableReconciler(ctx context.Context, name ReconcilerName) (*Reconciler, error)
func (*Queries) EnableReconciler ¶
func (q *Queries) EnableReconciler(ctx context.Context, name ReconcilerName) (*Reconciler, error)
func (*Queries) GetActiveTeamBySlug ¶
func (*Queries) GetActiveTeams ¶
func (*Queries) GetAllUserRoles ¶
func (*Queries) GetAuditLogsForCorrelationID ¶
func (*Queries) GetAuditLogsForReconciler ¶
func (*Queries) GetAuditLogsForTeam ¶
func (*Queries) GetEnabledReconcilers ¶
func (q *Queries) GetEnabledReconcilers(ctx context.Context) ([]*Reconciler, error)
func (*Queries) GetReconciler ¶
func (q *Queries) GetReconciler(ctx context.Context, name ReconcilerName) (*Reconciler, error)
func (*Queries) GetReconcilerConfig ¶
func (q *Queries) GetReconcilerConfig(ctx context.Context, reconciler ReconcilerName) ([]*GetReconcilerConfigRow, error)
func (*Queries) GetReconcilerStateForTeam ¶
func (q *Queries) GetReconcilerStateForTeam(ctx context.Context, arg GetReconcilerStateForTeamParams) (*ReconcilerState, error)
func (*Queries) GetReconcilers ¶
func (q *Queries) GetReconcilers(ctx context.Context) ([]*Reconciler, error)
func (*Queries) GetRepositoryAuthorizations ¶
func (q *Queries) GetRepositoryAuthorizations(ctx context.Context, arg GetRepositoryAuthorizationsParams) ([]RepositoryAuthorizationEnum, error)
func (*Queries) GetServiceAccountByApiKey ¶
func (*Queries) GetServiceAccountByName ¶
func (*Queries) GetServiceAccountRoles ¶
func (*Queries) GetServiceAccounts ¶
func (q *Queries) GetServiceAccounts(ctx context.Context) ([]*ServiceAccount, error)
func (*Queries) GetSessionByID ¶
func (*Queries) GetSlackAlertsChannels ¶
func (*Queries) GetTeamBySlug ¶
func (*Queries) GetTeamDeleteKey ¶
func (*Queries) GetTeamMember ¶
func (*Queries) GetTeamMemberOptOuts ¶
func (q *Queries) GetTeamMemberOptOuts(ctx context.Context, arg GetTeamMemberOptOutsParams) ([]*GetTeamMemberOptOutsRow, error)
func (*Queries) GetTeamMembers ¶
func (*Queries) GetTeamMembersForReconciler ¶
func (*Queries) GetTeamReconcilerErrors ¶
func (*Queries) GetTeamsWithPermissionInGitHubRepo ¶
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserByExternalID ¶
func (*Queries) GetUserByID ¶
func (*Queries) GetUserRoles ¶
func (*Queries) GetUserTeams ¶
func (*Queries) GetUsersWithGloballyAssignedRole ¶
func (*Queries) RemoveAllServiceAccountRoles ¶
func (*Queries) RemoveApiKeysFromServiceAccount ¶
func (*Queries) RemoveReconcilerOptOut ¶
func (q *Queries) RemoveReconcilerOptOut(ctx context.Context, arg RemoveReconcilerOptOutParams) error
func (*Queries) RemoveReconcilerStateForTeam ¶
func (q *Queries) RemoveReconcilerStateForTeam(ctx context.Context, arg RemoveReconcilerStateForTeamParams) error
func (*Queries) RemoveRepositoryAuthorization ¶
func (q *Queries) RemoveRepositoryAuthorization(ctx context.Context, arg RemoveRepositoryAuthorizationParams) error
func (*Queries) RemoveSlackAlertsChannel ¶
func (q *Queries) RemoveSlackAlertsChannel(ctx context.Context, arg RemoveSlackAlertsChannelParams) error
func (*Queries) RemoveUserFromTeam ¶
func (q *Queries) RemoveUserFromTeam(ctx context.Context, arg RemoveUserFromTeamParams) error
func (*Queries) ResetReconcilerConfig ¶
func (q *Queries) ResetReconcilerConfig(ctx context.Context, reconciler ReconcilerName) error
func (*Queries) RevokeGlobalUserRole ¶
func (q *Queries) RevokeGlobalUserRole(ctx context.Context, arg RevokeGlobalUserRoleParams) error
func (*Queries) SetLastSuccessfulSyncForTeam ¶
func (*Queries) SetReconcilerErrorForTeam ¶
func (q *Queries) SetReconcilerErrorForTeam(ctx context.Context, arg SetReconcilerErrorForTeamParams) error
func (*Queries) SetReconcilerStateForTeam ¶
func (q *Queries) SetReconcilerStateForTeam(ctx context.Context, arg SetReconcilerStateForTeamParams) error
func (*Queries) SetSessionExpires ¶
func (*Queries) SetSlackAlertsChannel ¶
func (q *Queries) SetSlackAlertsChannel(ctx context.Context, arg SetSlackAlertsChannelParams) error
func (*Queries) UpdateTeam ¶
func (*Queries) UpdateUser ¶
type Reconciler ¶
type Reconciler struct { Name ReconcilerName DisplayName string Description string Enabled bool RunOrder int32 }
type ReconcilerConfig ¶
type ReconcilerConfig struct { Reconciler ReconcilerName Key ReconcilerConfigKey DisplayName string Description string Value *string Secret bool }
type ReconcilerConfigKey ¶
type ReconcilerConfigKey string
const ( ReconcilerConfigKeyAzureClientID ReconcilerConfigKey = "azure:client_id" ReconcilerConfigKeyAzureClientSecret ReconcilerConfigKey = "azure:client_secret" ReconcilerConfigKeyAzureTenantID ReconcilerConfigKey = "azure:tenant_id" )
func AllReconcilerConfigKeyValues ¶
func AllReconcilerConfigKeyValues() []ReconcilerConfigKey
func (*ReconcilerConfigKey) Scan ¶
func (e *ReconcilerConfigKey) Scan(src interface{}) error
func (ReconcilerConfigKey) Valid ¶
func (e ReconcilerConfigKey) Valid() bool
type ReconcilerError ¶
type ReconcilerName ¶
type ReconcilerName string
const ( ReconcilerNameAzureGroup ReconcilerName = "azure:group" ReconcilerNameGithubTeam ReconcilerName = "github:team" ReconcilerNameGoogleGcpGar ReconcilerName = "google:gcp:gar" ReconcilerNameGoogleGcpProject ReconcilerName = "google:gcp:project" ReconcilerNameGoogleWorkspaceAdmin ReconcilerName = "google:workspace-admin" ReconcilerNameNaisDependencytrack ReconcilerName = "nais:dependencytrack" ReconcilerNameNaisDeploy ReconcilerName = "nais:deploy" ReconcilerNameNaisNamespace ReconcilerName = "nais:namespace" )
func AllReconcilerNameValues ¶
func AllReconcilerNameValues() []ReconcilerName
func (*ReconcilerName) Scan ¶
func (e *ReconcilerName) Scan(src interface{}) error
func (ReconcilerName) Valid ¶
func (e ReconcilerName) Valid() bool
type ReconcilerOptOut ¶
type ReconcilerOptOut struct { TeamSlug slug.Slug UserID uuid.UUID ReconcilerName ReconcilerName }
type ReconcilerState ¶
type ReconcilerState struct { Reconciler ReconcilerName State pgtype.JSONB TeamSlug slug.Slug }
type RemoveReconcilerOptOutParams ¶
type RemoveReconcilerOptOutParams struct { TeamSlug slug.Slug UserID uuid.UUID ReconcilerName ReconcilerName }
type RemoveReconcilerStateForTeamParams ¶
type RemoveReconcilerStateForTeamParams struct { Reconciler ReconcilerName TeamSlug slug.Slug }
type RemoveRepositoryAuthorizationParams ¶
type RemoveRepositoryAuthorizationParams struct { TeamSlug string GithubRepository string RepositoryAuthorization RepositoryAuthorizationEnum }
type RepositoryAuthorization ¶
type RepositoryAuthorization struct { TeamSlug string GithubRepository string RepositoryAuthorization RepositoryAuthorizationEnum }
type RepositoryAuthorizationEnum ¶
type RepositoryAuthorizationEnum string
const (
RepositoryAuthorizationEnumDeploy RepositoryAuthorizationEnum = "deploy"
)
func AllRepositoryAuthorizationEnumValues ¶
func AllRepositoryAuthorizationEnumValues() []RepositoryAuthorizationEnum
func (*RepositoryAuthorizationEnum) Scan ¶
func (e *RepositoryAuthorizationEnum) Scan(src interface{}) error
func (RepositoryAuthorizationEnum) Valid ¶
func (e RepositoryAuthorizationEnum) Valid() bool
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 ServiceAccount ¶
type ServiceAccountRole ¶
type SetReconcilerStateForTeamParams ¶
type SetReconcilerStateForTeamParams struct { Reconciler ReconcilerName TeamSlug slug.Slug State pgtype.JSONB }
type SetSessionExpiresParams ¶
type SlackAlertsChannel ¶
type TeamDeleteKey ¶
type UpdateTeamParams ¶
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.