pggen

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register added in v0.10.0

func Register(ctx context.Context, conn RegisterConn) error

Types

type ConfigurationVersionStatusTimestamps

type ConfigurationVersionStatusTimestamps struct {
	ConfigurationVersionID pgtype.Text        `json:"configuration_version_id"`
	Status                 pgtype.Text        `json:"status"`
	Timestamp              pgtype.Timestamptz `json:"timestamp"`
}

ConfigurationVersionStatusTimestamps represents the Postgres composite type "configuration_version_status_timestamps".

type CountRunsParams

type CountRunsParams struct {
	OrganizationNames []string    `json:"organization_names"`
	WorkspaceIds      []string    `json:"workspace_ids"`
	WorkspaceNames    []string    `json:"workspace_names"`
	Sources           []string    `json:"sources"`
	Statuses          []string    `json:"statuses"`
	PlanOnly          []string    `json:"plan_only"`
	CommitSHA         pgtype.Text `json:"commit_sha"`
	VCSUsername       pgtype.Text `json:"vcs_username"`
}

type CountWorkspacesParams

type CountWorkspacesParams struct {
	Search            pgtype.Text `json:"search"`
	OrganizationNames []string    `json:"organization_names"`
	Tags              []string    `json:"tags"`
}

type DBQuerier

type DBQuerier struct {
	// contains filtered or unexported fields
}

func NewQuerier

func NewQuerier(ctx context.Context, conn genericConn) (*DBQuerier, error)

NewQuerier creates a DBQuerier that implements Querier.

func (*DBQuerier) CountConfigurationVersionsByWorkspaceID

func (q *DBQuerier) CountConfigurationVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (pgtype.Int8, error)

CountConfigurationVersionsByWorkspaceID implements Querier.CountConfigurationVersionsByWorkspaceID.

func (*DBQuerier) CountOrganizations

func (q *DBQuerier) CountOrganizations(ctx context.Context, names []string) (pgtype.Int8, error)

CountOrganizations implements Querier.CountOrganizations.

func (*DBQuerier) CountRuns

func (q *DBQuerier) CountRuns(ctx context.Context, params CountRunsParams) (pgtype.Int8, error)

CountRuns implements Querier.CountRuns.

func (*DBQuerier) CountStateVersionsByWorkspaceID

func (q *DBQuerier) CountStateVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (pgtype.Int8, error)

CountStateVersionsByWorkspaceID implements Querier.CountStateVersionsByWorkspaceID.

func (*DBQuerier) CountTags

func (q *DBQuerier) CountTags(ctx context.Context, organizationName pgtype.Text) (pgtype.Int8, error)

CountTags implements Querier.CountTags.

func (*DBQuerier) CountWorkspaceTags

func (q *DBQuerier) CountWorkspaceTags(ctx context.Context, workspaceID pgtype.Text) (pgtype.Int8, error)

CountWorkspaceTags implements Querier.CountWorkspaceTags.

func (*DBQuerier) CountWorkspaces

func (q *DBQuerier) CountWorkspaces(ctx context.Context, params CountWorkspacesParams) (pgtype.Int8, error)

CountWorkspaces implements Querier.CountWorkspaces.

func (*DBQuerier) CountWorkspacesByUsername

func (q *DBQuerier) CountWorkspacesByUsername(ctx context.Context, organizationName pgtype.Text, username pgtype.Text) (pgtype.Int8, error)

CountWorkspacesByUsername implements Querier.CountWorkspacesByUsername.

func (*DBQuerier) DeleteAgent

func (q *DBQuerier) DeleteAgent(ctx context.Context, agentID pgtype.Text) (DeleteAgentRow, error)

DeleteAgent implements Querier.DeleteAgent.

func (*DBQuerier) DeleteAgentPool

func (q *DBQuerier) DeleteAgentPool(ctx context.Context, poolID pgtype.Text) (DeleteAgentPoolRow, error)

DeleteAgentPool implements Querier.DeleteAgentPool.

func (*DBQuerier) DeleteAgentPoolAllowedWorkspace

func (q *DBQuerier) DeleteAgentPoolAllowedWorkspace(ctx context.Context, poolID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

DeleteAgentPoolAllowedWorkspace implements Querier.DeleteAgentPoolAllowedWorkspace.

func (*DBQuerier) DeleteAgentTokenByID

func (q *DBQuerier) DeleteAgentTokenByID(ctx context.Context, agentTokenID pgtype.Text) (pgtype.Text, error)

DeleteAgentTokenByID implements Querier.DeleteAgentTokenByID.

func (*DBQuerier) DeleteConfigurationVersionByID

func (q *DBQuerier) DeleteConfigurationVersionByID(ctx context.Context, id pgtype.Text) (pgtype.Text, error)

DeleteConfigurationVersionByID implements Querier.DeleteConfigurationVersionByID.

func (*DBQuerier) DeleteGPGKey added in v0.9.0

func (q *DBQuerier) DeleteGPGKey(ctx context.Context, keyID pgtype.Text, organizationName pgtype.Text) (pgconn.CommandTag, error)

DeleteGPGKey implements Querier.DeleteGPGKey.

func (*DBQuerier) DeleteGithubApp

func (q *DBQuerier) DeleteGithubApp(ctx context.Context, githubAppID pgtype.Int8) (DeleteGithubAppRow, error)

DeleteGithubApp implements Querier.DeleteGithubApp.

func (*DBQuerier) DeleteModuleByID

func (q *DBQuerier) DeleteModuleByID(ctx context.Context, moduleID pgtype.Text) (pgtype.Text, error)

DeleteModuleByID implements Querier.DeleteModuleByID.

func (*DBQuerier) DeleteModuleConnectionByID

func (q *DBQuerier) DeleteModuleConnectionByID(ctx context.Context, moduleID pgtype.Text) (DeleteModuleConnectionByIDRow, error)

DeleteModuleConnectionByID implements Querier.DeleteModuleConnectionByID.

func (*DBQuerier) DeleteModuleVersionByID

func (q *DBQuerier) DeleteModuleVersionByID(ctx context.Context, moduleVersionID pgtype.Text) (pgtype.Text, error)

DeleteModuleVersionByID implements Querier.DeleteModuleVersionByID.

func (*DBQuerier) DeleteNotificationConfigurationByID

func (q *DBQuerier) DeleteNotificationConfigurationByID(ctx context.Context, notificationConfigurationID pgtype.Text) (pgtype.Text, error)

DeleteNotificationConfigurationByID implements Querier.DeleteNotificationConfigurationByID.

func (*DBQuerier) DeleteOrganiationTokenByName

func (q *DBQuerier) DeleteOrganiationTokenByName(ctx context.Context, organizationName pgtype.Text) (pgtype.Text, error)

DeleteOrganiationTokenByName implements Querier.DeleteOrganiationTokenByName.

func (*DBQuerier) DeleteOrganizationByName

func (q *DBQuerier) DeleteOrganizationByName(ctx context.Context, name pgtype.Text) (pgtype.Text, error)

DeleteOrganizationByName implements Querier.DeleteOrganizationByName.

func (*DBQuerier) DeleteRepohookByID

func (q *DBQuerier) DeleteRepohookByID(ctx context.Context, repohookID pgtype.UUID) (DeleteRepohookByIDRow, error)

DeleteRepohookByID implements Querier.DeleteRepohookByID.

func (*DBQuerier) DeleteRunByID

func (q *DBQuerier) DeleteRunByID(ctx context.Context, runID pgtype.Text) (pgtype.Text, error)

DeleteRunByID implements Querier.DeleteRunByID.

func (*DBQuerier) DeleteStateVersionByID

func (q *DBQuerier) DeleteStateVersionByID(ctx context.Context, stateVersionID pgtype.Text) (pgtype.Text, error)

DeleteStateVersionByID implements Querier.DeleteStateVersionByID.

func (*DBQuerier) DeleteTag

func (q *DBQuerier) DeleteTag(ctx context.Context, tagID pgtype.Text, organizationName pgtype.Text) (pgtype.Text, error)

DeleteTag implements Querier.DeleteTag.

func (*DBQuerier) DeleteTeamByID

func (q *DBQuerier) DeleteTeamByID(ctx context.Context, teamID pgtype.Text) (pgtype.Text, error)

DeleteTeamByID implements Querier.DeleteTeamByID.

func (*DBQuerier) DeleteTeamMembership

func (q *DBQuerier) DeleteTeamMembership(ctx context.Context, usernames []string, teamID pgtype.Text) ([]pgtype.Text, error)

DeleteTeamMembership implements Querier.DeleteTeamMembership.

func (*DBQuerier) DeleteTeamTokenByID

func (q *DBQuerier) DeleteTeamTokenByID(ctx context.Context, teamID pgtype.Text) (pgtype.Text, error)

DeleteTeamTokenByID implements Querier.DeleteTeamTokenByID.

func (*DBQuerier) DeleteTokenByID

func (q *DBQuerier) DeleteTokenByID(ctx context.Context, tokenID pgtype.Text) (pgtype.Text, error)

DeleteTokenByID implements Querier.DeleteTokenByID.

func (*DBQuerier) DeleteUserByID

func (q *DBQuerier) DeleteUserByID(ctx context.Context, userID pgtype.Text) (pgtype.Text, error)

DeleteUserByID implements Querier.DeleteUserByID.

func (*DBQuerier) DeleteUserByUsername

func (q *DBQuerier) DeleteUserByUsername(ctx context.Context, username pgtype.Text) (pgtype.Text, error)

DeleteUserByUsername implements Querier.DeleteUserByUsername.

func (*DBQuerier) DeleteVCSProviderByID

func (q *DBQuerier) DeleteVCSProviderByID(ctx context.Context, vcsProviderID pgtype.Text) (pgtype.Text, error)

DeleteVCSProviderByID implements Querier.DeleteVCSProviderByID.

func (*DBQuerier) DeleteVariableByID

func (q *DBQuerier) DeleteVariableByID(ctx context.Context, variableID pgtype.Text) (DeleteVariableByIDRow, error)

DeleteVariableByID implements Querier.DeleteVariableByID.

func (*DBQuerier) DeleteVariableSetByID

func (q *DBQuerier) DeleteVariableSetByID(ctx context.Context, variableSetID pgtype.Text) (DeleteVariableSetByIDRow, error)

DeleteVariableSetByID implements Querier.DeleteVariableSetByID.

func (*DBQuerier) DeleteVariableSetVariable

func (q *DBQuerier) DeleteVariableSetVariable(ctx context.Context, variableSetID pgtype.Text, variableID pgtype.Text) (DeleteVariableSetVariableRow, error)

DeleteVariableSetVariable implements Querier.DeleteVariableSetVariable.

func (*DBQuerier) DeleteVariableSetWorkspace

func (q *DBQuerier) DeleteVariableSetWorkspace(ctx context.Context, variableSetID pgtype.Text, workspaceID pgtype.Text) (DeleteVariableSetWorkspaceRow, error)

DeleteVariableSetWorkspace implements Querier.DeleteVariableSetWorkspace.

func (*DBQuerier) DeleteVariableSetWorkspaces

func (q *DBQuerier) DeleteVariableSetWorkspaces(ctx context.Context, variableSetID pgtype.Text) (pgconn.CommandTag, error)

DeleteVariableSetWorkspaces implements Querier.DeleteVariableSetWorkspaces.

func (*DBQuerier) DeleteWorkspaceByID

func (q *DBQuerier) DeleteWorkspaceByID(ctx context.Context, workspaceID pgtype.Text) (pgconn.CommandTag, error)

DeleteWorkspaceByID implements Querier.DeleteWorkspaceByID.

func (*DBQuerier) DeleteWorkspaceConnectionByID

func (q *DBQuerier) DeleteWorkspaceConnectionByID(ctx context.Context, workspaceID pgtype.Text) (DeleteWorkspaceConnectionByIDRow, error)

DeleteWorkspaceConnectionByID implements Querier.DeleteWorkspaceConnectionByID.

func (*DBQuerier) DeleteWorkspacePermissionByID

func (q *DBQuerier) DeleteWorkspacePermissionByID(ctx context.Context, workspaceID pgtype.Text, teamID pgtype.Text) (pgconn.CommandTag, error)

DeleteWorkspacePermissionByID implements Querier.DeleteWorkspacePermissionByID.

func (*DBQuerier) DeleteWorkspaceTag

func (q *DBQuerier) DeleteWorkspaceTag(ctx context.Context, workspaceID pgtype.Text, tagID pgtype.Text) (pgtype.Text, error)

DeleteWorkspaceTag implements Querier.DeleteWorkspaceTag.

func (*DBQuerier) DeleteWorkspaceVariableByID

func (q *DBQuerier) DeleteWorkspaceVariableByID(ctx context.Context, variableID pgtype.Text) (DeleteWorkspaceVariableByIDRow, error)

DeleteWorkspaceVariableByID implements Querier.DeleteWorkspaceVariableByID.

func (*DBQuerier) DiscardPendingStateVersionsByWorkspaceID

func (q *DBQuerier) DiscardPendingStateVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (pgconn.CommandTag, error)

DiscardPendingStateVersionsByWorkspaceID implements Querier.DiscardPendingStateVersionsByWorkspaceID.

func (*DBQuerier) DownloadConfigurationVersion

func (q *DBQuerier) DownloadConfigurationVersion(ctx context.Context, configurationVersionID pgtype.Text) ([]byte, error)

DownloadConfigurationVersion implements Querier.DownloadConfigurationVersion.

func (*DBQuerier) FindAgentByID

func (q *DBQuerier) FindAgentByID(ctx context.Context, agentID pgtype.Text) (FindAgentByIDRow, error)

FindAgentByID implements Querier.FindAgentByID.

func (*DBQuerier) FindAgentByIDForUpdate

func (q *DBQuerier) FindAgentByIDForUpdate(ctx context.Context, agentID pgtype.Text) (FindAgentByIDForUpdateRow, error)

FindAgentByIDForUpdate implements Querier.FindAgentByIDForUpdate.

func (*DBQuerier) FindAgentPool

func (q *DBQuerier) FindAgentPool(ctx context.Context, poolID pgtype.Text) (FindAgentPoolRow, error)

FindAgentPool implements Querier.FindAgentPool.

func (*DBQuerier) FindAgentPoolByAgentTokenID

func (q *DBQuerier) FindAgentPoolByAgentTokenID(ctx context.Context, agentTokenID pgtype.Text) (FindAgentPoolByAgentTokenIDRow, error)

FindAgentPoolByAgentTokenID implements Querier.FindAgentPoolByAgentTokenID.

func (*DBQuerier) FindAgentPools

func (q *DBQuerier) FindAgentPools(ctx context.Context) ([]FindAgentPoolsRow, error)

FindAgentPools implements Querier.FindAgentPools.

func (*DBQuerier) FindAgentPoolsByOrganization

func (q *DBQuerier) FindAgentPoolsByOrganization(ctx context.Context, params FindAgentPoolsByOrganizationParams) ([]FindAgentPoolsByOrganizationRow, error)

FindAgentPoolsByOrganization implements Querier.FindAgentPoolsByOrganization.

func (*DBQuerier) FindAgentTokenByID

func (q *DBQuerier) FindAgentTokenByID(ctx context.Context, agentTokenID pgtype.Text) (FindAgentTokenByIDRow, error)

FindAgentTokenByID implements Querier.FindAgentTokenByID.

func (*DBQuerier) FindAgentTokensByAgentPoolID

func (q *DBQuerier) FindAgentTokensByAgentPoolID(ctx context.Context, agentPoolID pgtype.Text) ([]FindAgentTokensByAgentPoolIDRow, error)

FindAgentTokensByAgentPoolID implements Querier.FindAgentTokensByAgentPoolID.

func (*DBQuerier) FindAgents

func (q *DBQuerier) FindAgents(ctx context.Context) ([]FindAgentsRow, error)

FindAgents implements Querier.FindAgents.

func (*DBQuerier) FindAgentsByOrganization

func (q *DBQuerier) FindAgentsByOrganization(ctx context.Context, organizationName pgtype.Text) ([]FindAgentsByOrganizationRow, error)

FindAgentsByOrganization implements Querier.FindAgentsByOrganization.

func (*DBQuerier) FindAgentsByPoolID

func (q *DBQuerier) FindAgentsByPoolID(ctx context.Context, agentPoolID pgtype.Text) ([]FindAgentsByPoolIDRow, error)

FindAgentsByPoolID implements Querier.FindAgentsByPoolID.

func (*DBQuerier) FindAllNotificationConfigurations

func (q *DBQuerier) FindAllNotificationConfigurations(ctx context.Context) ([]FindAllNotificationConfigurationsRow, error)

FindAllNotificationConfigurations implements Querier.FindAllNotificationConfigurations.

func (*DBQuerier) FindAllocatedJobs

func (q *DBQuerier) FindAllocatedJobs(ctx context.Context, agentID pgtype.Text) ([]FindAllocatedJobsRow, error)

FindAllocatedJobs implements Querier.FindAllocatedJobs.

func (*DBQuerier) FindAndUpdateSignaledJobs

func (q *DBQuerier) FindAndUpdateSignaledJobs(ctx context.Context, agentID pgtype.Text) ([]FindAndUpdateSignaledJobsRow, error)

FindAndUpdateSignaledJobs implements Querier.FindAndUpdateSignaledJobs.

func (*DBQuerier) FindConfigurationVersionByID

func (q *DBQuerier) FindConfigurationVersionByID(ctx context.Context, configurationVersionID pgtype.Text) (FindConfigurationVersionByIDRow, error)

FindConfigurationVersionByID implements Querier.FindConfigurationVersionByID.

func (*DBQuerier) FindConfigurationVersionByIDForUpdate

func (q *DBQuerier) FindConfigurationVersionByIDForUpdate(ctx context.Context, configurationVersionID pgtype.Text) (FindConfigurationVersionByIDForUpdateRow, error)

FindConfigurationVersionByIDForUpdate implements Querier.FindConfigurationVersionByIDForUpdate.

func (*DBQuerier) FindConfigurationVersionLatestByWorkspaceID

func (q *DBQuerier) FindConfigurationVersionLatestByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (FindConfigurationVersionLatestByWorkspaceIDRow, error)

FindConfigurationVersionLatestByWorkspaceID implements Querier.FindConfigurationVersionLatestByWorkspaceID.

func (*DBQuerier) FindConfigurationVersionsByWorkspaceID

FindConfigurationVersionsByWorkspaceID implements Querier.FindConfigurationVersionsByWorkspaceID.

func (*DBQuerier) FindCurrentStateVersionByWorkspaceID

func (q *DBQuerier) FindCurrentStateVersionByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (FindCurrentStateVersionByWorkspaceIDRow, error)

FindCurrentStateVersionByWorkspaceID implements Querier.FindCurrentStateVersionByWorkspaceID.

func (*DBQuerier) FindGithubApp

func (q *DBQuerier) FindGithubApp(ctx context.Context) (FindGithubAppRow, error)

FindGithubApp implements Querier.FindGithubApp.

func (*DBQuerier) FindJob

func (q *DBQuerier) FindJob(ctx context.Context, runID pgtype.Text, phase pgtype.Text) (FindJobRow, error)

FindJob implements Querier.FindJob.

func (*DBQuerier) FindJobForUpdate

func (q *DBQuerier) FindJobForUpdate(ctx context.Context, runID pgtype.Text, phase pgtype.Text) (FindJobForUpdateRow, error)

FindJobForUpdate implements Querier.FindJobForUpdate.

func (*DBQuerier) FindJobs

func (q *DBQuerier) FindJobs(ctx context.Context) ([]FindJobsRow, error)

FindJobs implements Querier.FindJobs.

func (*DBQuerier) FindLatestTerraformVersion

func (q *DBQuerier) FindLatestTerraformVersion(ctx context.Context) ([]FindLatestTerraformVersionRow, error)

FindLatestTerraformVersion implements Querier.FindLatestTerraformVersion.

func (*DBQuerier) FindLogChunkByID

func (q *DBQuerier) FindLogChunkByID(ctx context.Context, chunkID pgtype.Int4) (FindLogChunkByIDRow, error)

FindLogChunkByID implements Querier.FindLogChunkByID.

func (*DBQuerier) FindLogs

func (q *DBQuerier) FindLogs(ctx context.Context, runID pgtype.Text, phase pgtype.Text) ([]byte, error)

FindLogs implements Querier.FindLogs.

func (*DBQuerier) FindModuleByConnection

func (q *DBQuerier) FindModuleByConnection(ctx context.Context, vcsProviderID pgtype.Text, repoPath pgtype.Text) (FindModuleByConnectionRow, error)

FindModuleByConnection implements Querier.FindModuleByConnection.

func (*DBQuerier) FindModuleByID

func (q *DBQuerier) FindModuleByID(ctx context.Context, id pgtype.Text) (FindModuleByIDRow, error)

FindModuleByID implements Querier.FindModuleByID.

func (*DBQuerier) FindModuleByModuleVersionID

func (q *DBQuerier) FindModuleByModuleVersionID(ctx context.Context, moduleVersionID pgtype.Text) (FindModuleByModuleVersionIDRow, error)

FindModuleByModuleVersionID implements Querier.FindModuleByModuleVersionID.

func (*DBQuerier) FindModuleByName

func (q *DBQuerier) FindModuleByName(ctx context.Context, params FindModuleByNameParams) (FindModuleByNameRow, error)

FindModuleByName implements Querier.FindModuleByName.

func (*DBQuerier) FindModuleTarball

func (q *DBQuerier) FindModuleTarball(ctx context.Context, moduleVersionID pgtype.Text) ([]byte, error)

FindModuleTarball implements Querier.FindModuleTarball.

func (*DBQuerier) FindNotificationConfiguration

func (q *DBQuerier) FindNotificationConfiguration(ctx context.Context, notificationConfigurationID pgtype.Text) (FindNotificationConfigurationRow, error)

FindNotificationConfiguration implements Querier.FindNotificationConfiguration.

func (*DBQuerier) FindNotificationConfigurationForUpdate

func (q *DBQuerier) FindNotificationConfigurationForUpdate(ctx context.Context, notificationConfigurationID pgtype.Text) (FindNotificationConfigurationForUpdateRow, error)

FindNotificationConfigurationForUpdate implements Querier.FindNotificationConfigurationForUpdate.

func (*DBQuerier) FindNotificationConfigurationsByWorkspaceID

func (q *DBQuerier) FindNotificationConfigurationsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) ([]FindNotificationConfigurationsByWorkspaceIDRow, error)

FindNotificationConfigurationsByWorkspaceID implements Querier.FindNotificationConfigurationsByWorkspaceID.

func (*DBQuerier) FindOrganizationByID

func (q *DBQuerier) FindOrganizationByID(ctx context.Context, organizationID pgtype.Text) (FindOrganizationByIDRow, error)

FindOrganizationByID implements Querier.FindOrganizationByID.

func (*DBQuerier) FindOrganizationByName

func (q *DBQuerier) FindOrganizationByName(ctx context.Context, name pgtype.Text) (FindOrganizationByNameRow, error)

FindOrganizationByName implements Querier.FindOrganizationByName.

func (*DBQuerier) FindOrganizationByNameForUpdate

func (q *DBQuerier) FindOrganizationByNameForUpdate(ctx context.Context, name pgtype.Text) (FindOrganizationByNameForUpdateRow, error)

FindOrganizationByNameForUpdate implements Querier.FindOrganizationByNameForUpdate.

func (*DBQuerier) FindOrganizationNameByWorkspaceID

func (q *DBQuerier) FindOrganizationNameByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (pgtype.Text, error)

FindOrganizationNameByWorkspaceID implements Querier.FindOrganizationNameByWorkspaceID.

func (*DBQuerier) FindOrganizationTokens

func (q *DBQuerier) FindOrganizationTokens(ctx context.Context, organizationName pgtype.Text) ([]FindOrganizationTokensRow, error)

FindOrganizationTokens implements Querier.FindOrganizationTokens.

func (*DBQuerier) FindOrganizationTokensByID

func (q *DBQuerier) FindOrganizationTokensByID(ctx context.Context, organizationTokenID pgtype.Text) (FindOrganizationTokensByIDRow, error)

FindOrganizationTokensByID implements Querier.FindOrganizationTokensByID.

func (*DBQuerier) FindOrganizationTokensByName

func (q *DBQuerier) FindOrganizationTokensByName(ctx context.Context, organizationName pgtype.Text) (FindOrganizationTokensByNameRow, error)

FindOrganizationTokensByName implements Querier.FindOrganizationTokensByName.

func (*DBQuerier) FindOrganizations

func (q *DBQuerier) FindOrganizations(ctx context.Context, params FindOrganizationsParams) ([]FindOrganizationsRow, error)

FindOrganizations implements Querier.FindOrganizations.

func (*DBQuerier) FindRepohookByID

func (q *DBQuerier) FindRepohookByID(ctx context.Context, repohookID pgtype.UUID) (FindRepohookByIDRow, error)

FindRepohookByID implements Querier.FindRepohookByID.

func (*DBQuerier) FindRepohookByRepoAndProvider

func (q *DBQuerier) FindRepohookByRepoAndProvider(ctx context.Context, repoPath pgtype.Text, vcsProviderID pgtype.Text) ([]FindRepohookByRepoAndProviderRow, error)

FindRepohookByRepoAndProvider implements Querier.FindRepohookByRepoAndProvider.

func (*DBQuerier) FindRepohooks

func (q *DBQuerier) FindRepohooks(ctx context.Context) ([]FindRepohooksRow, error)

FindRepohooks implements Querier.FindRepohooks.

func (*DBQuerier) FindRunByID

func (q *DBQuerier) FindRunByID(ctx context.Context, runID pgtype.Text) (FindRunByIDRow, error)

FindRunByID implements Querier.FindRunByID.

func (*DBQuerier) FindRunByIDForUpdate

func (q *DBQuerier) FindRunByIDForUpdate(ctx context.Context, runID pgtype.Text) (FindRunByIDForUpdateRow, error)

FindRunByIDForUpdate implements Querier.FindRunByIDForUpdate.

func (*DBQuerier) FindRuns

func (q *DBQuerier) FindRuns(ctx context.Context, params FindRunsParams) ([]FindRunsRow, error)

FindRuns implements Querier.FindRuns.

func (*DBQuerier) FindServerAgents

func (q *DBQuerier) FindServerAgents(ctx context.Context) ([]FindServerAgentsRow, error)

FindServerAgents implements Querier.FindServerAgents.

func (*DBQuerier) FindStateVersionByID

func (q *DBQuerier) FindStateVersionByID(ctx context.Context, id pgtype.Text) (FindStateVersionByIDRow, error)

FindStateVersionByID implements Querier.FindStateVersionByID.

func (*DBQuerier) FindStateVersionByIDForUpdate

func (q *DBQuerier) FindStateVersionByIDForUpdate(ctx context.Context, id pgtype.Text) (FindStateVersionByIDForUpdateRow, error)

FindStateVersionByIDForUpdate implements Querier.FindStateVersionByIDForUpdate.

func (*DBQuerier) FindStateVersionOutputByID

func (q *DBQuerier) FindStateVersionOutputByID(ctx context.Context, id pgtype.Text) (FindStateVersionOutputByIDRow, error)

FindStateVersionOutputByID implements Querier.FindStateVersionOutputByID.

func (*DBQuerier) FindStateVersionStateByID

func (q *DBQuerier) FindStateVersionStateByID(ctx context.Context, id pgtype.Text) ([]byte, error)

FindStateVersionStateByID implements Querier.FindStateVersionStateByID.

func (*DBQuerier) FindStateVersionsByWorkspaceID

func (q *DBQuerier) FindStateVersionsByWorkspaceID(ctx context.Context, params FindStateVersionsByWorkspaceIDParams) ([]FindStateVersionsByWorkspaceIDRow, error)

FindStateVersionsByWorkspaceID implements Querier.FindStateVersionsByWorkspaceID.

func (*DBQuerier) FindTagByID

func (q *DBQuerier) FindTagByID(ctx context.Context, tagID pgtype.Text, organizationName pgtype.Text) (FindTagByIDRow, error)

FindTagByID implements Querier.FindTagByID.

func (*DBQuerier) FindTagByName

func (q *DBQuerier) FindTagByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindTagByNameRow, error)

FindTagByName implements Querier.FindTagByName.

func (*DBQuerier) FindTags

func (q *DBQuerier) FindTags(ctx context.Context, params FindTagsParams) ([]FindTagsRow, error)

FindTags implements Querier.FindTags.

func (*DBQuerier) FindTeamByID

func (q *DBQuerier) FindTeamByID(ctx context.Context, teamID pgtype.Text) (FindTeamByIDRow, error)

FindTeamByID implements Querier.FindTeamByID.

func (*DBQuerier) FindTeamByIDForUpdate

func (q *DBQuerier) FindTeamByIDForUpdate(ctx context.Context, teamID pgtype.Text) (FindTeamByIDForUpdateRow, error)

FindTeamByIDForUpdate implements Querier.FindTeamByIDForUpdate.

func (*DBQuerier) FindTeamByName

func (q *DBQuerier) FindTeamByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindTeamByNameRow, error)

FindTeamByName implements Querier.FindTeamByName.

func (*DBQuerier) FindTeamByTokenID

func (q *DBQuerier) FindTeamByTokenID(ctx context.Context, tokenID pgtype.Text) (FindTeamByTokenIDRow, error)

FindTeamByTokenID implements Querier.FindTeamByTokenID.

func (*DBQuerier) FindTeamTokensByID

func (q *DBQuerier) FindTeamTokensByID(ctx context.Context, teamID pgtype.Text) ([]FindTeamTokensByIDRow, error)

FindTeamTokensByID implements Querier.FindTeamTokensByID.

func (*DBQuerier) FindTeamsByOrg

func (q *DBQuerier) FindTeamsByOrg(ctx context.Context, organizationName pgtype.Text) ([]FindTeamsByOrgRow, error)

FindTeamsByOrg implements Querier.FindTeamsByOrg.

func (*DBQuerier) FindTokenByID

func (q *DBQuerier) FindTokenByID(ctx context.Context, tokenID pgtype.Text) (FindTokenByIDRow, error)

FindTokenByID implements Querier.FindTokenByID.

func (*DBQuerier) FindTokensByUsername

func (q *DBQuerier) FindTokensByUsername(ctx context.Context, username pgtype.Text) ([]FindTokensByUsernameRow, error)

FindTokensByUsername implements Querier.FindTokensByUsername.

func (*DBQuerier) FindUnreferencedRepohooks

func (q *DBQuerier) FindUnreferencedRepohooks(ctx context.Context) ([]FindUnreferencedRepohooksRow, error)

FindUnreferencedRepohooks implements Querier.FindUnreferencedRepohooks.

func (*DBQuerier) FindUserByAuthenticationTokenID

func (q *DBQuerier) FindUserByAuthenticationTokenID(ctx context.Context, tokenID pgtype.Text) (FindUserByAuthenticationTokenIDRow, error)

FindUserByAuthenticationTokenID implements Querier.FindUserByAuthenticationTokenID.

func (*DBQuerier) FindUserByID

func (q *DBQuerier) FindUserByID(ctx context.Context, userID pgtype.Text) (FindUserByIDRow, error)

FindUserByID implements Querier.FindUserByID.

func (*DBQuerier) FindUserByUsername

func (q *DBQuerier) FindUserByUsername(ctx context.Context, username pgtype.Text) (FindUserByUsernameRow, error)

FindUserByUsername implements Querier.FindUserByUsername.

func (*DBQuerier) FindUsers

func (q *DBQuerier) FindUsers(ctx context.Context) ([]FindUsersRow, error)

FindUsers implements Querier.FindUsers.

func (*DBQuerier) FindUsersByOrganization

func (q *DBQuerier) FindUsersByOrganization(ctx context.Context, organizationName pgtype.Text) ([]FindUsersByOrganizationRow, error)

FindUsersByOrganization implements Querier.FindUsersByOrganization.

func (*DBQuerier) FindUsersByTeamID

func (q *DBQuerier) FindUsersByTeamID(ctx context.Context, teamID pgtype.Text) ([]FindUsersByTeamIDRow, error)

FindUsersByTeamID implements Querier.FindUsersByTeamID.

func (*DBQuerier) FindVCSProvider

func (q *DBQuerier) FindVCSProvider(ctx context.Context, vcsProviderID pgtype.Text) (FindVCSProviderRow, error)

FindVCSProvider implements Querier.FindVCSProvider.

func (*DBQuerier) FindVCSProviderForUpdate

func (q *DBQuerier) FindVCSProviderForUpdate(ctx context.Context, vcsProviderID pgtype.Text) (FindVCSProviderForUpdateRow, error)

FindVCSProviderForUpdate implements Querier.FindVCSProviderForUpdate.

func (*DBQuerier) FindVCSProviders

func (q *DBQuerier) FindVCSProviders(ctx context.Context) ([]FindVCSProvidersRow, error)

FindVCSProviders implements Querier.FindVCSProviders.

func (*DBQuerier) FindVCSProvidersByGithubAppInstallID

func (q *DBQuerier) FindVCSProvidersByGithubAppInstallID(ctx context.Context, installID pgtype.Int8) ([]FindVCSProvidersByGithubAppInstallIDRow, error)

FindVCSProvidersByGithubAppInstallID implements Querier.FindVCSProvidersByGithubAppInstallID.

func (*DBQuerier) FindVCSProvidersByOrganization

func (q *DBQuerier) FindVCSProvidersByOrganization(ctx context.Context, organizationName pgtype.Text) ([]FindVCSProvidersByOrganizationRow, error)

FindVCSProvidersByOrganization implements Querier.FindVCSProvidersByOrganization.

func (*DBQuerier) FindVariable

func (q *DBQuerier) FindVariable(ctx context.Context, variableID pgtype.Text) (FindVariableRow, error)

FindVariable implements Querier.FindVariable.

func (*DBQuerier) FindVariableSetBySetID

func (q *DBQuerier) FindVariableSetBySetID(ctx context.Context, variableSetID pgtype.Text) (FindVariableSetBySetIDRow, error)

FindVariableSetBySetID implements Querier.FindVariableSetBySetID.

func (*DBQuerier) FindVariableSetByVariableID

func (q *DBQuerier) FindVariableSetByVariableID(ctx context.Context, variableID pgtype.Text) (FindVariableSetByVariableIDRow, error)

FindVariableSetByVariableID implements Querier.FindVariableSetByVariableID.

func (*DBQuerier) FindVariableSetForUpdate

func (q *DBQuerier) FindVariableSetForUpdate(ctx context.Context, variableSetID pgtype.Text) (FindVariableSetForUpdateRow, error)

FindVariableSetForUpdate implements Querier.FindVariableSetForUpdate.

func (*DBQuerier) FindVariableSetsByOrganization

func (q *DBQuerier) FindVariableSetsByOrganization(ctx context.Context, organizationName pgtype.Text) ([]FindVariableSetsByOrganizationRow, error)

FindVariableSetsByOrganization implements Querier.FindVariableSetsByOrganization.

func (*DBQuerier) FindVariableSetsByWorkspace

func (q *DBQuerier) FindVariableSetsByWorkspace(ctx context.Context, workspaceID pgtype.Text) ([]FindVariableSetsByWorkspaceRow, error)

FindVariableSetsByWorkspace implements Querier.FindVariableSetsByWorkspace.

func (*DBQuerier) FindWorkspaceByID

func (q *DBQuerier) FindWorkspaceByID(ctx context.Context, id pgtype.Text) (FindWorkspaceByIDRow, error)

FindWorkspaceByID implements Querier.FindWorkspaceByID.

func (*DBQuerier) FindWorkspaceByIDForUpdate

func (q *DBQuerier) FindWorkspaceByIDForUpdate(ctx context.Context, id pgtype.Text) (FindWorkspaceByIDForUpdateRow, error)

FindWorkspaceByIDForUpdate implements Querier.FindWorkspaceByIDForUpdate.

func (*DBQuerier) FindWorkspaceByName

func (q *DBQuerier) FindWorkspaceByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindWorkspaceByNameRow, error)

FindWorkspaceByName implements Querier.FindWorkspaceByName.

func (*DBQuerier) FindWorkspacePermissionsByWorkspaceID

func (q *DBQuerier) FindWorkspacePermissionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) ([]FindWorkspacePermissionsByWorkspaceIDRow, error)

FindWorkspacePermissionsByWorkspaceID implements Querier.FindWorkspacePermissionsByWorkspaceID.

func (*DBQuerier) FindWorkspaceTags

func (q *DBQuerier) FindWorkspaceTags(ctx context.Context, params FindWorkspaceTagsParams) ([]FindWorkspaceTagsRow, error)

FindWorkspaceTags implements Querier.FindWorkspaceTags.

func (*DBQuerier) FindWorkspaceVariableByVariableID

func (q *DBQuerier) FindWorkspaceVariableByVariableID(ctx context.Context, variableID pgtype.Text) (FindWorkspaceVariableByVariableIDRow, error)

FindWorkspaceVariableByVariableID implements Querier.FindWorkspaceVariableByVariableID.

func (*DBQuerier) FindWorkspaceVariablesByWorkspaceID

func (q *DBQuerier) FindWorkspaceVariablesByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) ([]FindWorkspaceVariablesByWorkspaceIDRow, error)

FindWorkspaceVariablesByWorkspaceID implements Querier.FindWorkspaceVariablesByWorkspaceID.

func (*DBQuerier) FindWorkspaces

func (q *DBQuerier) FindWorkspaces(ctx context.Context, params FindWorkspacesParams) ([]FindWorkspacesRow, error)

FindWorkspaces implements Querier.FindWorkspaces.

func (*DBQuerier) FindWorkspacesByConnection

func (q *DBQuerier) FindWorkspacesByConnection(ctx context.Context, vcsProviderID pgtype.Text, repoPath pgtype.Text) ([]FindWorkspacesByConnectionRow, error)

FindWorkspacesByConnection implements Querier.FindWorkspacesByConnection.

func (*DBQuerier) FindWorkspacesByUsername

func (q *DBQuerier) FindWorkspacesByUsername(ctx context.Context, params FindWorkspacesByUsernameParams) ([]FindWorkspacesByUsernameRow, error)

FindWorkspacesByUsername implements Querier.FindWorkspacesByUsername.

func (*DBQuerier) GetGPGKey added in v0.9.0

func (q *DBQuerier) GetGPGKey(ctx context.Context, keyID pgtype.Text, organizationName pgtype.Text) (GetGPGKeyRow, error)

GetGPGKey implements Querier.GetGPGKey.

func (*DBQuerier) GetLockFileByID

func (q *DBQuerier) GetLockFileByID(ctx context.Context, runID pgtype.Text) ([]byte, error)

GetLockFileByID implements Querier.GetLockFileByID.

func (*DBQuerier) GetPlanBinByID

func (q *DBQuerier) GetPlanBinByID(ctx context.Context, runID pgtype.Text) ([]byte, error)

GetPlanBinByID implements Querier.GetPlanBinByID.

func (*DBQuerier) GetPlanJSONByID

func (q *DBQuerier) GetPlanJSONByID(ctx context.Context, runID pgtype.Text) ([]byte, error)

GetPlanJSONByID implements Querier.GetPlanJSONByID.

func (*DBQuerier) InsertAgent

func (q *DBQuerier) InsertAgent(ctx context.Context, params InsertAgentParams) (pgconn.CommandTag, error)

InsertAgent implements Querier.InsertAgent.

func (*DBQuerier) InsertAgentPool

func (q *DBQuerier) InsertAgentPool(ctx context.Context, params InsertAgentPoolParams) (pgconn.CommandTag, error)

InsertAgentPool implements Querier.InsertAgentPool.

func (*DBQuerier) InsertAgentPoolAllowedWorkspace

func (q *DBQuerier) InsertAgentPoolAllowedWorkspace(ctx context.Context, poolID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

InsertAgentPoolAllowedWorkspace implements Querier.InsertAgentPoolAllowedWorkspace.

func (*DBQuerier) InsertAgentToken

func (q *DBQuerier) InsertAgentToken(ctx context.Context, params InsertAgentTokenParams) (pgconn.CommandTag, error)

InsertAgentToken implements Querier.InsertAgentToken.

func (*DBQuerier) InsertApply

func (q *DBQuerier) InsertApply(ctx context.Context, runID pgtype.Text, status pgtype.Text) (pgconn.CommandTag, error)

InsertApply implements Querier.InsertApply.

func (*DBQuerier) InsertConfigurationVersion

func (q *DBQuerier) InsertConfigurationVersion(ctx context.Context, params InsertConfigurationVersionParams) (pgconn.CommandTag, error)

InsertConfigurationVersion implements Querier.InsertConfigurationVersion.

func (*DBQuerier) InsertConfigurationVersionStatusTimestamp

InsertConfigurationVersionStatusTimestamp implements Querier.InsertConfigurationVersionStatusTimestamp.

func (*DBQuerier) InsertGPGKey added in v0.9.0

func (q *DBQuerier) InsertGPGKey(ctx context.Context, params InsertGPGKeyParams) (pgconn.CommandTag, error)

InsertGPGKey implements Querier.InsertGPGKey.

func (*DBQuerier) InsertGithubApp

func (q *DBQuerier) InsertGithubApp(ctx context.Context, params InsertGithubAppParams) (pgconn.CommandTag, error)

InsertGithubApp implements Querier.InsertGithubApp.

func (*DBQuerier) InsertGithubAppInstall

func (q *DBQuerier) InsertGithubAppInstall(ctx context.Context, params InsertGithubAppInstallParams) (pgconn.CommandTag, error)

InsertGithubAppInstall implements Querier.InsertGithubAppInstall.

func (*DBQuerier) InsertIngressAttributes

func (q *DBQuerier) InsertIngressAttributes(ctx context.Context, params InsertIngressAttributesParams) (pgconn.CommandTag, error)

InsertIngressAttributes implements Querier.InsertIngressAttributes.

func (*DBQuerier) InsertJob

func (q *DBQuerier) InsertJob(ctx context.Context, params InsertJobParams) (pgconn.CommandTag, error)

InsertJob implements Querier.InsertJob.

func (*DBQuerier) InsertLatestTerraformVersion

func (q *DBQuerier) InsertLatestTerraformVersion(ctx context.Context, version pgtype.Text) (pgconn.CommandTag, error)

InsertLatestTerraformVersion implements Querier.InsertLatestTerraformVersion.

func (*DBQuerier) InsertLogChunk

func (q *DBQuerier) InsertLogChunk(ctx context.Context, params InsertLogChunkParams) (pgtype.Int4, error)

InsertLogChunk implements Querier.InsertLogChunk.

func (*DBQuerier) InsertModule

func (q *DBQuerier) InsertModule(ctx context.Context, params InsertModuleParams) (pgconn.CommandTag, error)

InsertModule implements Querier.InsertModule.

func (*DBQuerier) InsertModuleTarball

func (q *DBQuerier) InsertModuleTarball(ctx context.Context, tarball []byte, moduleVersionID pgtype.Text) (pgtype.Text, error)

InsertModuleTarball implements Querier.InsertModuleTarball.

func (*DBQuerier) InsertModuleVersion

func (q *DBQuerier) InsertModuleVersion(ctx context.Context, params InsertModuleVersionParams) (InsertModuleVersionRow, error)

InsertModuleVersion implements Querier.InsertModuleVersion.

func (*DBQuerier) InsertNotificationConfiguration

func (q *DBQuerier) InsertNotificationConfiguration(ctx context.Context, params InsertNotificationConfigurationParams) (pgconn.CommandTag, error)

InsertNotificationConfiguration implements Querier.InsertNotificationConfiguration.

func (*DBQuerier) InsertOrganization

func (q *DBQuerier) InsertOrganization(ctx context.Context, params InsertOrganizationParams) (pgconn.CommandTag, error)

InsertOrganization implements Querier.InsertOrganization.

func (*DBQuerier) InsertPhaseStatusTimestamp

func (q *DBQuerier) InsertPhaseStatusTimestamp(ctx context.Context, params InsertPhaseStatusTimestampParams) (pgconn.CommandTag, error)

InsertPhaseStatusTimestamp implements Querier.InsertPhaseStatusTimestamp.

func (*DBQuerier) InsertPlan

func (q *DBQuerier) InsertPlan(ctx context.Context, runID pgtype.Text, status pgtype.Text) (pgconn.CommandTag, error)

InsertPlan implements Querier.InsertPlan.

func (*DBQuerier) InsertRepoConnection

func (q *DBQuerier) InsertRepoConnection(ctx context.Context, params InsertRepoConnectionParams) (pgconn.CommandTag, error)

InsertRepoConnection implements Querier.InsertRepoConnection.

func (*DBQuerier) InsertRepohook

func (q *DBQuerier) InsertRepohook(ctx context.Context, params InsertRepohookParams) (InsertRepohookRow, error)

InsertRepohook implements Querier.InsertRepohook.

func (*DBQuerier) InsertRun

func (q *DBQuerier) InsertRun(ctx context.Context, params InsertRunParams) (pgconn.CommandTag, error)

InsertRun implements Querier.InsertRun.

func (*DBQuerier) InsertRunStatusTimestamp

func (q *DBQuerier) InsertRunStatusTimestamp(ctx context.Context, params InsertRunStatusTimestampParams) (pgconn.CommandTag, error)

InsertRunStatusTimestamp implements Querier.InsertRunStatusTimestamp.

func (*DBQuerier) InsertRunVariable

func (q *DBQuerier) InsertRunVariable(ctx context.Context, params InsertRunVariableParams) (pgconn.CommandTag, error)

InsertRunVariable implements Querier.InsertRunVariable.

func (*DBQuerier) InsertStateVersion

func (q *DBQuerier) InsertStateVersion(ctx context.Context, params InsertStateVersionParams) (pgconn.CommandTag, error)

InsertStateVersion implements Querier.InsertStateVersion.

func (*DBQuerier) InsertStateVersionOutput

func (q *DBQuerier) InsertStateVersionOutput(ctx context.Context, params InsertStateVersionOutputParams) (pgconn.CommandTag, error)

InsertStateVersionOutput implements Querier.InsertStateVersionOutput.

func (*DBQuerier) InsertTag

func (q *DBQuerier) InsertTag(ctx context.Context, params InsertTagParams) (pgconn.CommandTag, error)

InsertTag implements Querier.InsertTag.

func (*DBQuerier) InsertTeam

func (q *DBQuerier) InsertTeam(ctx context.Context, params InsertTeamParams) (pgconn.CommandTag, error)

InsertTeam implements Querier.InsertTeam.

func (*DBQuerier) InsertTeamMembership

func (q *DBQuerier) InsertTeamMembership(ctx context.Context, usernames []string, teamID pgtype.Text) ([]pgtype.Text, error)

InsertTeamMembership implements Querier.InsertTeamMembership.

func (*DBQuerier) InsertTeamToken

func (q *DBQuerier) InsertTeamToken(ctx context.Context, params InsertTeamTokenParams) (pgconn.CommandTag, error)

InsertTeamToken implements Querier.InsertTeamToken.

func (*DBQuerier) InsertToken

func (q *DBQuerier) InsertToken(ctx context.Context, params InsertTokenParams) (pgconn.CommandTag, error)

InsertToken implements Querier.InsertToken.

func (*DBQuerier) InsertUser

func (q *DBQuerier) InsertUser(ctx context.Context, params InsertUserParams) (pgconn.CommandTag, error)

InsertUser implements Querier.InsertUser.

func (*DBQuerier) InsertVCSProvider

func (q *DBQuerier) InsertVCSProvider(ctx context.Context, params InsertVCSProviderParams) (pgconn.CommandTag, error)

InsertVCSProvider implements Querier.InsertVCSProvider.

func (*DBQuerier) InsertVariable

func (q *DBQuerier) InsertVariable(ctx context.Context, params InsertVariableParams) (pgconn.CommandTag, error)

InsertVariable implements Querier.InsertVariable.

func (*DBQuerier) InsertVariableSet

func (q *DBQuerier) InsertVariableSet(ctx context.Context, params InsertVariableSetParams) (pgconn.CommandTag, error)

InsertVariableSet implements Querier.InsertVariableSet.

func (*DBQuerier) InsertVariableSetVariable

func (q *DBQuerier) InsertVariableSetVariable(ctx context.Context, variableSetID pgtype.Text, variableID pgtype.Text) (pgconn.CommandTag, error)

InsertVariableSetVariable implements Querier.InsertVariableSetVariable.

func (*DBQuerier) InsertVariableSetWorkspace

func (q *DBQuerier) InsertVariableSetWorkspace(ctx context.Context, variableSetID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

InsertVariableSetWorkspace implements Querier.InsertVariableSetWorkspace.

func (*DBQuerier) InsertWorkspace

func (q *DBQuerier) InsertWorkspace(ctx context.Context, params InsertWorkspaceParams) (pgconn.CommandTag, error)

InsertWorkspace implements Querier.InsertWorkspace.

func (*DBQuerier) InsertWorkspaceTag

func (q *DBQuerier) InsertWorkspaceTag(ctx context.Context, tagID pgtype.Text, workspaceID pgtype.Text) (pgtype.Text, error)

InsertWorkspaceTag implements Querier.InsertWorkspaceTag.

func (*DBQuerier) InsertWorkspaceTagByName

func (q *DBQuerier) InsertWorkspaceTagByName(ctx context.Context, workspaceID pgtype.Text, tagName pgtype.Text) (pgtype.Text, error)

InsertWorkspaceTagByName implements Querier.InsertWorkspaceTagByName.

func (*DBQuerier) InsertWorkspaceVariable

func (q *DBQuerier) InsertWorkspaceVariable(ctx context.Context, variableID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

InsertWorkspaceVariable implements Querier.InsertWorkspaceVariable.

func (*DBQuerier) ListGPGKeys added in v0.9.0

func (q *DBQuerier) ListGPGKeys(ctx context.Context, organizationNames []string) ([]ListGPGKeysRow, error)

ListGPGKeys implements Querier.ListGPGKeys.

func (*DBQuerier) ListModulesByOrganization

func (q *DBQuerier) ListModulesByOrganization(ctx context.Context, organizationName pgtype.Text) ([]ListModulesByOrganizationRow, error)

ListModulesByOrganization implements Querier.ListModulesByOrganization.

func (*DBQuerier) PutLockFile

func (q *DBQuerier) PutLockFile(ctx context.Context, lockFile []byte, runID pgtype.Text) (pgtype.Text, error)

PutLockFile implements Querier.PutLockFile.

func (*DBQuerier) ResetUserSiteAdmins

func (q *DBQuerier) ResetUserSiteAdmins(ctx context.Context) ([]pgtype.Text, error)

ResetUserSiteAdmins implements Querier.ResetUserSiteAdmins.

func (*DBQuerier) UpdateAgent

func (q *DBQuerier) UpdateAgent(ctx context.Context, params UpdateAgentParams) (UpdateAgentRow, error)

UpdateAgent implements Querier.UpdateAgent.

func (*DBQuerier) UpdateAgentPool

func (q *DBQuerier) UpdateAgentPool(ctx context.Context, params UpdateAgentPoolParams) (UpdateAgentPoolRow, error)

UpdateAgentPool implements Querier.UpdateAgentPool.

func (*DBQuerier) UpdateAppliedChangesByID

func (q *DBQuerier) UpdateAppliedChangesByID(ctx context.Context, params UpdateAppliedChangesByIDParams) (pgtype.Text, error)

UpdateAppliedChangesByID implements Querier.UpdateAppliedChangesByID.

func (*DBQuerier) UpdateApplyStatusByID

func (q *DBQuerier) UpdateApplyStatusByID(ctx context.Context, status pgtype.Text, runID pgtype.Text) (pgtype.Text, error)

UpdateApplyStatusByID implements Querier.UpdateApplyStatusByID.

func (*DBQuerier) UpdateCancelSignaledAt

func (q *DBQuerier) UpdateCancelSignaledAt(ctx context.Context, cancelSignaledAt pgtype.Timestamptz, id pgtype.Text) (pgtype.Text, error)

UpdateCancelSignaledAt implements Querier.UpdateCancelSignaledAt.

func (*DBQuerier) UpdateConfigurationVersionConfigByID

func (q *DBQuerier) UpdateConfigurationVersionConfigByID(ctx context.Context, config []byte, id pgtype.Text) (pgtype.Text, error)

UpdateConfigurationVersionConfigByID implements Querier.UpdateConfigurationVersionConfigByID.

func (*DBQuerier) UpdateConfigurationVersionErroredByID

func (q *DBQuerier) UpdateConfigurationVersionErroredByID(ctx context.Context, id pgtype.Text) (pgtype.Text, error)

UpdateConfigurationVersionErroredByID implements Querier.UpdateConfigurationVersionErroredByID.

func (*DBQuerier) UpdateGPGKey added in v0.9.0

func (q *DBQuerier) UpdateGPGKey(ctx context.Context, params UpdateGPGKeyParams) (pgconn.CommandTag, error)

UpdateGPGKey implements Querier.UpdateGPGKey.

func (*DBQuerier) UpdateJob

func (q *DBQuerier) UpdateJob(ctx context.Context, params UpdateJobParams) (UpdateJobRow, error)

UpdateJob implements Querier.UpdateJob.

func (*DBQuerier) UpdateLatestTerraformVersion

func (q *DBQuerier) UpdateLatestTerraformVersion(ctx context.Context, version pgtype.Text) (pgconn.CommandTag, error)

UpdateLatestTerraformVersion implements Querier.UpdateLatestTerraformVersion.

func (*DBQuerier) UpdateModuleStatusByID

func (q *DBQuerier) UpdateModuleStatusByID(ctx context.Context, status pgtype.Text, moduleID pgtype.Text) (pgtype.Text, error)

UpdateModuleStatusByID implements Querier.UpdateModuleStatusByID.

func (*DBQuerier) UpdateModuleVersionStatusByID

UpdateModuleVersionStatusByID implements Querier.UpdateModuleVersionStatusByID.

func (*DBQuerier) UpdateNotificationConfigurationByID

func (q *DBQuerier) UpdateNotificationConfigurationByID(ctx context.Context, params UpdateNotificationConfigurationByIDParams) (pgtype.Text, error)

UpdateNotificationConfigurationByID implements Querier.UpdateNotificationConfigurationByID.

func (*DBQuerier) UpdateOrganizationByName

func (q *DBQuerier) UpdateOrganizationByName(ctx context.Context, params UpdateOrganizationByNameParams) (pgtype.Text, error)

UpdateOrganizationByName implements Querier.UpdateOrganizationByName.

func (*DBQuerier) UpdatePlanBinByID

func (q *DBQuerier) UpdatePlanBinByID(ctx context.Context, planBin []byte, runID pgtype.Text) (pgtype.Text, error)

UpdatePlanBinByID implements Querier.UpdatePlanBinByID.

func (*DBQuerier) UpdatePlanJSONByID

func (q *DBQuerier) UpdatePlanJSONByID(ctx context.Context, planJSON []byte, runID pgtype.Text) (pgtype.Text, error)

UpdatePlanJSONByID implements Querier.UpdatePlanJSONByID.

func (*DBQuerier) UpdatePlanStatusByID

func (q *DBQuerier) UpdatePlanStatusByID(ctx context.Context, status pgtype.Text, runID pgtype.Text) (pgtype.Text, error)

UpdatePlanStatusByID implements Querier.UpdatePlanStatusByID.

func (*DBQuerier) UpdatePlannedChangesByID

func (q *DBQuerier) UpdatePlannedChangesByID(ctx context.Context, params UpdatePlannedChangesByIDParams) (pgtype.Text, error)

UpdatePlannedChangesByID implements Querier.UpdatePlannedChangesByID.

func (*DBQuerier) UpdateRepohookVCSID

func (q *DBQuerier) UpdateRepohookVCSID(ctx context.Context, vcsID pgtype.Text, repohookID pgtype.UUID) (UpdateRepohookVCSIDRow, error)

UpdateRepohookVCSID implements Querier.UpdateRepohookVCSID.

func (*DBQuerier) UpdateRunStatus

func (q *DBQuerier) UpdateRunStatus(ctx context.Context, status pgtype.Text, id pgtype.Text) (pgtype.Text, error)

UpdateRunStatus implements Querier.UpdateRunStatus.

func (*DBQuerier) UpdateState

func (q *DBQuerier) UpdateState(ctx context.Context, state []byte, stateVersionID pgtype.Text) (pgconn.CommandTag, error)

UpdateState implements Querier.UpdateState.

func (*DBQuerier) UpdateTeamByID

func (q *DBQuerier) UpdateTeamByID(ctx context.Context, params UpdateTeamByIDParams) (pgtype.Text, error)

UpdateTeamByID implements Querier.UpdateTeamByID.

func (*DBQuerier) UpdateUserSiteAdmins

func (q *DBQuerier) UpdateUserSiteAdmins(ctx context.Context, usernames []string) ([]pgtype.Text, error)

UpdateUserSiteAdmins implements Querier.UpdateUserSiteAdmins.

func (*DBQuerier) UpdateVCSProvider

func (q *DBQuerier) UpdateVCSProvider(ctx context.Context, params UpdateVCSProviderParams) (UpdateVCSProviderRow, error)

UpdateVCSProvider implements Querier.UpdateVCSProvider.

func (*DBQuerier) UpdateVariableByID

func (q *DBQuerier) UpdateVariableByID(ctx context.Context, params UpdateVariableByIDParams) (pgtype.Text, error)

UpdateVariableByID implements Querier.UpdateVariableByID.

func (*DBQuerier) UpdateVariableSetByID

func (q *DBQuerier) UpdateVariableSetByID(ctx context.Context, params UpdateVariableSetByIDParams) (pgtype.Text, error)

UpdateVariableSetByID implements Querier.UpdateVariableSetByID.

func (*DBQuerier) UpdateWorkspaceByID

func (q *DBQuerier) UpdateWorkspaceByID(ctx context.Context, params UpdateWorkspaceByIDParams) (pgtype.Text, error)

UpdateWorkspaceByID implements Querier.UpdateWorkspaceByID.

func (*DBQuerier) UpdateWorkspaceCurrentStateVersionID

func (q *DBQuerier) UpdateWorkspaceCurrentStateVersionID(ctx context.Context, stateVersionID pgtype.Text, workspaceID pgtype.Text) (pgtype.Text, error)

UpdateWorkspaceCurrentStateVersionID implements Querier.UpdateWorkspaceCurrentStateVersionID.

func (*DBQuerier) UpdateWorkspaceLatestRun

func (q *DBQuerier) UpdateWorkspaceLatestRun(ctx context.Context, runID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

UpdateWorkspaceLatestRun implements Querier.UpdateWorkspaceLatestRun.

func (*DBQuerier) UpdateWorkspaceLockByID

func (q *DBQuerier) UpdateWorkspaceLockByID(ctx context.Context, params UpdateWorkspaceLockByIDParams) (pgconn.CommandTag, error)

UpdateWorkspaceLockByID implements Querier.UpdateWorkspaceLockByID.

func (*DBQuerier) UpsertOrganizationToken

func (q *DBQuerier) UpsertOrganizationToken(ctx context.Context, params UpsertOrganizationTokenParams) (pgconn.CommandTag, error)

UpsertOrganizationToken implements Querier.UpsertOrganizationToken.

func (*DBQuerier) UpsertWorkspacePermission

func (q *DBQuerier) UpsertWorkspacePermission(ctx context.Context, params UpsertWorkspacePermissionParams) (pgconn.CommandTag, error)

UpsertWorkspacePermission implements Querier.UpsertWorkspacePermission.

type DeleteAgentPoolRow

type DeleteAgentPoolRow struct {
	AgentPoolID        pgtype.Text        `json:"agent_pool_id"`
	Name               pgtype.Text        `json:"name"`
	CreatedAt          pgtype.Timestamptz `json:"created_at"`
	OrganizationName   pgtype.Text        `json:"organization_name"`
	OrganizationScoped pgtype.Bool        `json:"organization_scoped"`
}

type DeleteAgentRow

type DeleteAgentRow struct {
	AgentID      pgtype.Text        `json:"agent_id"`
	Name         pgtype.Text        `json:"name"`
	Version      pgtype.Text        `json:"version"`
	MaxJobs      pgtype.Int4        `json:"max_jobs"`
	IPAddress    net.IPNet          `json:"ip_address"`
	LastPingAt   pgtype.Timestamptz `json:"last_ping_at"`
	LastStatusAt pgtype.Timestamptz `json:"last_status_at"`
	Status       pgtype.Text        `json:"status"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
}

type DeleteGithubAppRow

type DeleteGithubAppRow struct {
	GithubAppID   pgtype.Int8 `json:"github_app_id"`
	WebhookSecret pgtype.Text `json:"webhook_secret"`
	PrivateKey    pgtype.Text `json:"private_key"`
	Slug          pgtype.Text `json:"slug"`
	Organization  pgtype.Text `json:"organization"`
}

type DeleteModuleConnectionByIDRow

type DeleteModuleConnectionByIDRow struct {
	ModuleID      pgtype.Text `json:"module_id"`
	WorkspaceID   pgtype.Text `json:"workspace_id"`
	RepoPath      pgtype.Text `json:"repo_path"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
}

type DeleteRepohookByIDRow

type DeleteRepohookByIDRow struct {
	RepohookID    pgtype.UUID `json:"repohook_id"`
	VCSID         pgtype.Text `json:"vcs_id"`
	Secret        pgtype.Text `json:"secret"`
	RepoPath      pgtype.Text `json:"repo_path"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
}

type DeleteVariableByIDRow

type DeleteVariableByIDRow struct {
	VariableID  pgtype.Text `json:"variable_id"`
	Key         pgtype.Text `json:"key"`
	Value       pgtype.Text `json:"value"`
	Description pgtype.Text `json:"description"`
	Category    pgtype.Text `json:"category"`
	Sensitive   pgtype.Bool `json:"sensitive"`
	HCL         pgtype.Bool `json:"hcl"`
	VersionID   pgtype.Text `json:"version_id"`
}

type DeleteVariableSetByIDRow

type DeleteVariableSetByIDRow struct {
	VariableSetID    pgtype.Text `json:"variable_set_id"`
	Global           pgtype.Bool `json:"global"`
	Name             pgtype.Text `json:"name"`
	Description      pgtype.Text `json:"description"`
	OrganizationName pgtype.Text `json:"organization_name"`
}

type DeleteVariableSetVariableRow

type DeleteVariableSetVariableRow struct {
	VariableSetID pgtype.Text `json:"variable_set_id"`
	VariableID    pgtype.Text `json:"variable_id"`
}

type DeleteVariableSetWorkspaceRow

type DeleteVariableSetWorkspaceRow struct {
	VariableSetID pgtype.Text `json:"variable_set_id"`
	WorkspaceID   pgtype.Text `json:"workspace_id"`
}

type DeleteWorkspaceConnectionByIDRow

type DeleteWorkspaceConnectionByIDRow struct {
	ModuleID      pgtype.Text `json:"module_id"`
	WorkspaceID   pgtype.Text `json:"workspace_id"`
	RepoPath      pgtype.Text `json:"repo_path"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
}

type DeleteWorkspaceVariableByIDRow

type DeleteWorkspaceVariableByIDRow struct {
	WorkspaceID pgtype.Text `json:"workspace_id"`
	Variable    *Variables  `json:"variable"`
}

type FindAgentByIDForUpdateRow

type FindAgentByIDForUpdateRow struct {
	AgentID      pgtype.Text        `json:"agent_id"`
	Name         pgtype.Text        `json:"name"`
	Version      pgtype.Text        `json:"version"`
	MaxJobs      pgtype.Int4        `json:"max_jobs"`
	IPAddress    net.IPNet          `json:"ip_address"`
	LastPingAt   pgtype.Timestamptz `json:"last_ping_at"`
	LastStatusAt pgtype.Timestamptz `json:"last_status_at"`
	Status       pgtype.Text        `json:"status"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
	CurrentJobs  pgtype.Int8        `json:"current_jobs"`
}

type FindAgentByIDRow

type FindAgentByIDRow struct {
	AgentID      pgtype.Text        `json:"agent_id"`
	Name         pgtype.Text        `json:"name"`
	Version      pgtype.Text        `json:"version"`
	MaxJobs      pgtype.Int4        `json:"max_jobs"`
	IPAddress    net.IPNet          `json:"ip_address"`
	LastPingAt   pgtype.Timestamptz `json:"last_ping_at"`
	LastStatusAt pgtype.Timestamptz `json:"last_status_at"`
	Status       pgtype.Text        `json:"status"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
	CurrentJobs  pgtype.Int8        `json:"current_jobs"`
}

type FindAgentPoolByAgentTokenIDRow

type FindAgentPoolByAgentTokenIDRow struct {
	AgentPoolID         pgtype.Text        `json:"agent_pool_id"`
	Name                pgtype.Text        `json:"name"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
	OrganizationScoped  pgtype.Bool        `json:"organization_scoped"`
	WorkspaceIds        []string           `json:"workspace_ids"`
	AllowedWorkspaceIds []string           `json:"allowed_workspace_ids"`
}

type FindAgentPoolRow

type FindAgentPoolRow struct {
	AgentPoolID         pgtype.Text        `json:"agent_pool_id"`
	Name                pgtype.Text        `json:"name"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
	OrganizationScoped  pgtype.Bool        `json:"organization_scoped"`
	WorkspaceIds        []string           `json:"workspace_ids"`
	AllowedWorkspaceIds []string           `json:"allowed_workspace_ids"`
}

type FindAgentPoolsByOrganizationParams

type FindAgentPoolsByOrganizationParams struct {
	OrganizationName     pgtype.Text `json:"organization_name"`
	NameSubstring        pgtype.Text `json:"name_substring"`
	AllowedWorkspaceName pgtype.Text `json:"allowed_workspace_name"`
	AllowedWorkspaceID   pgtype.Text `json:"allowed_workspace_id"`
}

type FindAgentPoolsByOrganizationRow

type FindAgentPoolsByOrganizationRow struct {
	AgentPoolID         pgtype.Text        `json:"agent_pool_id"`
	Name                pgtype.Text        `json:"name"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
	OrganizationScoped  pgtype.Bool        `json:"organization_scoped"`
	WorkspaceIds        []string           `json:"workspace_ids"`
	AllowedWorkspaceIds []string           `json:"allowed_workspace_ids"`
}

type FindAgentPoolsRow

type FindAgentPoolsRow struct {
	AgentPoolID         pgtype.Text        `json:"agent_pool_id"`
	Name                pgtype.Text        `json:"name"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
	OrganizationScoped  pgtype.Bool        `json:"organization_scoped"`
	WorkspaceIds        []string           `json:"workspace_ids"`
	AllowedWorkspaceIds []string           `json:"allowed_workspace_ids"`
}

type FindAgentTokenByIDRow

type FindAgentTokenByIDRow struct {
	AgentTokenID pgtype.Text        `json:"agent_token_id"`
	CreatedAt    pgtype.Timestamptz `json:"created_at"`
	Description  pgtype.Text        `json:"description"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
}

type FindAgentTokensByAgentPoolIDRow

type FindAgentTokensByAgentPoolIDRow struct {
	AgentTokenID pgtype.Text        `json:"agent_token_id"`
	CreatedAt    pgtype.Timestamptz `json:"created_at"`
	Description  pgtype.Text        `json:"description"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
}

type FindAgentsByOrganizationRow

type FindAgentsByOrganizationRow struct {
	AgentID      pgtype.Text        `json:"agent_id"`
	Name         pgtype.Text        `json:"name"`
	Version      pgtype.Text        `json:"version"`
	MaxJobs      pgtype.Int4        `json:"max_jobs"`
	IPAddress    net.IPNet          `json:"ip_address"`
	LastPingAt   pgtype.Timestamptz `json:"last_ping_at"`
	LastStatusAt pgtype.Timestamptz `json:"last_status_at"`
	Status       pgtype.Text        `json:"status"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
	CurrentJobs  pgtype.Int8        `json:"current_jobs"`
}

type FindAgentsByPoolIDRow

type FindAgentsByPoolIDRow struct {
	AgentID      pgtype.Text        `json:"agent_id"`
	Name         pgtype.Text        `json:"name"`
	Version      pgtype.Text        `json:"version"`
	MaxJobs      pgtype.Int4        `json:"max_jobs"`
	IPAddress    net.IPNet          `json:"ip_address"`
	LastPingAt   pgtype.Timestamptz `json:"last_ping_at"`
	LastStatusAt pgtype.Timestamptz `json:"last_status_at"`
	Status       pgtype.Text        `json:"status"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
	CurrentJobs  pgtype.Int8        `json:"current_jobs"`
}

type FindAgentsRow

type FindAgentsRow struct {
	AgentID      pgtype.Text        `json:"agent_id"`
	Name         pgtype.Text        `json:"name"`
	Version      pgtype.Text        `json:"version"`
	MaxJobs      pgtype.Int4        `json:"max_jobs"`
	IPAddress    net.IPNet          `json:"ip_address"`
	LastPingAt   pgtype.Timestamptz `json:"last_ping_at"`
	LastStatusAt pgtype.Timestamptz `json:"last_status_at"`
	Status       pgtype.Text        `json:"status"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
	CurrentJobs  pgtype.Int8        `json:"current_jobs"`
}

type FindAllNotificationConfigurationsRow

type FindAllNotificationConfigurationsRow struct {
	NotificationConfigurationID pgtype.Text        `json:"notification_configuration_id"`
	CreatedAt                   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                   pgtype.Timestamptz `json:"updated_at"`
	Name                        pgtype.Text        `json:"name"`
	URL                         pgtype.Text        `json:"url"`
	Triggers                    []string           `json:"triggers"`
	DestinationType             pgtype.Text        `json:"destination_type"`
	WorkspaceID                 pgtype.Text        `json:"workspace_id"`
	Enabled                     pgtype.Bool        `json:"enabled"`
}

type FindAllocatedJobsRow

type FindAllocatedJobsRow struct {
	RunID            pgtype.Text `json:"run_id"`
	Phase            pgtype.Text `json:"phase"`
	Status           pgtype.Text `json:"status"`
	Signaled         pgtype.Bool `json:"signaled"`
	AgentID          pgtype.Text `json:"agent_id"`
	AgentPoolID      pgtype.Text `json:"agent_pool_id"`
	WorkspaceID      pgtype.Text `json:"workspace_id"`
	OrganizationName pgtype.Text `json:"organization_name"`
}

type FindAndUpdateSignaledJobsRow

type FindAndUpdateSignaledJobsRow struct {
	RunID            pgtype.Text `json:"run_id"`
	Phase            pgtype.Text `json:"phase"`
	Status           pgtype.Text `json:"status"`
	Signaled         pgtype.Bool `json:"signaled"`
	AgentID          pgtype.Text `json:"agent_id"`
	AgentPoolID      pgtype.Text `json:"agent_pool_id"`
	WorkspaceID      pgtype.Text `json:"workspace_id"`
	OrganizationName pgtype.Text `json:"organization_name"`
}

type FindConfigurationVersionByIDForUpdateRow

type FindConfigurationVersionByIDForUpdateRow struct {
	ConfigurationVersionID               pgtype.Text                             `json:"configuration_version_id"`
	CreatedAt                            pgtype.Timestamptz                      `json:"created_at"`
	AutoQueueRuns                        pgtype.Bool                             `json:"auto_queue_runs"`
	Source                               pgtype.Text                             `json:"source"`
	Speculative                          pgtype.Bool                             `json:"speculative"`
	Status                               pgtype.Text                             `json:"status"`
	WorkspaceID                          pgtype.Text                             `json:"workspace_id"`
	ConfigurationVersionStatusTimestamps []*ConfigurationVersionStatusTimestamps `json:"configuration_version_status_timestamps"`
	IngressAttributes                    *IngressAttributes                      `json:"ingress_attributes"`
}

type FindConfigurationVersionByIDRow

type FindConfigurationVersionByIDRow struct {
	ConfigurationVersionID               pgtype.Text                             `json:"configuration_version_id"`
	CreatedAt                            pgtype.Timestamptz                      `json:"created_at"`
	AutoQueueRuns                        pgtype.Bool                             `json:"auto_queue_runs"`
	Source                               pgtype.Text                             `json:"source"`
	Speculative                          pgtype.Bool                             `json:"speculative"`
	Status                               pgtype.Text                             `json:"status"`
	WorkspaceID                          pgtype.Text                             `json:"workspace_id"`
	ConfigurationVersionStatusTimestamps []*ConfigurationVersionStatusTimestamps `json:"configuration_version_status_timestamps"`
	IngressAttributes                    *IngressAttributes                      `json:"ingress_attributes"`
}

type FindConfigurationVersionLatestByWorkspaceIDRow

type FindConfigurationVersionLatestByWorkspaceIDRow struct {
	ConfigurationVersionID               pgtype.Text                             `json:"configuration_version_id"`
	CreatedAt                            pgtype.Timestamptz                      `json:"created_at"`
	AutoQueueRuns                        pgtype.Bool                             `json:"auto_queue_runs"`
	Source                               pgtype.Text                             `json:"source"`
	Speculative                          pgtype.Bool                             `json:"speculative"`
	Status                               pgtype.Text                             `json:"status"`
	WorkspaceID                          pgtype.Text                             `json:"workspace_id"`
	ConfigurationVersionStatusTimestamps []*ConfigurationVersionStatusTimestamps `json:"configuration_version_status_timestamps"`
	IngressAttributes                    *IngressAttributes                      `json:"ingress_attributes"`
}

type FindConfigurationVersionsByWorkspaceIDParams

type FindConfigurationVersionsByWorkspaceIDParams struct {
	WorkspaceID pgtype.Text `json:"workspace_id"`
	Limit       pgtype.Int8 `json:"limit"`
	Offset      pgtype.Int8 `json:"offset"`
}

type FindConfigurationVersionsByWorkspaceIDRow

type FindConfigurationVersionsByWorkspaceIDRow struct {
	ConfigurationVersionID               pgtype.Text                             `json:"configuration_version_id"`
	CreatedAt                            pgtype.Timestamptz                      `json:"created_at"`
	AutoQueueRuns                        pgtype.Bool                             `json:"auto_queue_runs"`
	Source                               pgtype.Text                             `json:"source"`
	Speculative                          pgtype.Bool                             `json:"speculative"`
	Status                               pgtype.Text                             `json:"status"`
	WorkspaceID                          pgtype.Text                             `json:"workspace_id"`
	ConfigurationVersionStatusTimestamps []*ConfigurationVersionStatusTimestamps `json:"configuration_version_status_timestamps"`
	IngressAttributes                    *IngressAttributes                      `json:"ingress_attributes"`
}

type FindCurrentStateVersionByWorkspaceIDRow

type FindCurrentStateVersionByWorkspaceIDRow struct {
	StateVersionID      pgtype.Text            `json:"state_version_id"`
	CreatedAt           pgtype.Timestamptz     `json:"created_at"`
	Serial              pgtype.Int4            `json:"serial"`
	State               []byte                 `json:"state"`
	WorkspaceID         pgtype.Text            `json:"workspace_id"`
	Status              pgtype.Text            `json:"status"`
	StateVersionOutputs []*StateVersionOutputs `json:"state_version_outputs"`
}

type FindGithubAppRow

type FindGithubAppRow struct {
	GithubAppID   pgtype.Int8 `json:"github_app_id"`
	WebhookSecret pgtype.Text `json:"webhook_secret"`
	PrivateKey    pgtype.Text `json:"private_key"`
	Slug          pgtype.Text `json:"slug"`
	Organization  pgtype.Text `json:"organization"`
}

type FindJobForUpdateRow

type FindJobForUpdateRow struct {
	RunID            pgtype.Text `json:"run_id"`
	Phase            pgtype.Text `json:"phase"`
	Status           pgtype.Text `json:"status"`
	Signaled         pgtype.Bool `json:"signaled"`
	AgentID          pgtype.Text `json:"agent_id"`
	AgentPoolID      pgtype.Text `json:"agent_pool_id"`
	WorkspaceID      pgtype.Text `json:"workspace_id"`
	OrganizationName pgtype.Text `json:"organization_name"`
}

type FindJobRow

type FindJobRow struct {
	RunID            pgtype.Text `json:"run_id"`
	Phase            pgtype.Text `json:"phase"`
	Status           pgtype.Text `json:"status"`
	Signaled         pgtype.Bool `json:"signaled"`
	AgentID          pgtype.Text `json:"agent_id"`
	AgentPoolID      pgtype.Text `json:"agent_pool_id"`
	WorkspaceID      pgtype.Text `json:"workspace_id"`
	OrganizationName pgtype.Text `json:"organization_name"`
}

type FindJobsRow

type FindJobsRow struct {
	RunID            pgtype.Text `json:"run_id"`
	Phase            pgtype.Text `json:"phase"`
	Status           pgtype.Text `json:"status"`
	Signaled         pgtype.Bool `json:"signaled"`
	AgentID          pgtype.Text `json:"agent_id"`
	AgentPoolID      pgtype.Text `json:"agent_pool_id"`
	WorkspaceID      pgtype.Text `json:"workspace_id"`
	OrganizationName pgtype.Text `json:"organization_name"`
}

type FindLatestTerraformVersionRow

type FindLatestTerraformVersionRow struct {
	Version    pgtype.Text        `json:"version"`
	Checkpoint pgtype.Timestamptz `json:"checkpoint"`
}

type FindLogChunkByIDRow

type FindLogChunkByIDRow struct {
	ChunkID pgtype.Int4 `json:"chunk_id"`
	RunID   pgtype.Text `json:"run_id"`
	Phase   pgtype.Text `json:"phase"`
	Chunk   []byte      `json:"chunk"`
	Offset  pgtype.Int4 `json:"offset"`
}

type FindModuleByConnectionRow

type FindModuleByConnectionRow struct {
	ModuleID         pgtype.Text        `json:"module_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
	Name             pgtype.Text        `json:"name"`
	Provider         pgtype.Text        `json:"provider"`
	Status           pgtype.Text        `json:"status"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	ModuleConnection *RepoConnections   `json:"module_connection"`
	Versions         []*ModuleVersions  `json:"versions"`
}

type FindModuleByIDRow

type FindModuleByIDRow struct {
	ModuleID         pgtype.Text        `json:"module_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
	Name             pgtype.Text        `json:"name"`
	Provider         pgtype.Text        `json:"provider"`
	Status           pgtype.Text        `json:"status"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	ModuleConnection *RepoConnections   `json:"module_connection"`
	Versions         []*ModuleVersions  `json:"versions"`
}

type FindModuleByModuleVersionIDRow

type FindModuleByModuleVersionIDRow struct {
	ModuleID         pgtype.Text        `json:"module_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
	Name             pgtype.Text        `json:"name"`
	Provider         pgtype.Text        `json:"provider"`
	Status           pgtype.Text        `json:"status"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	ModuleConnection *RepoConnections   `json:"module_connection"`
	Versions         []*ModuleVersions  `json:"versions"`
}

type FindModuleByNameParams

type FindModuleByNameParams struct {
	OrganizationName pgtype.Text `json:"organization_name"`
	Name             pgtype.Text `json:"name"`
	Provider         pgtype.Text `json:"provider"`
}

type FindModuleByNameRow

type FindModuleByNameRow struct {
	ModuleID         pgtype.Text        `json:"module_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
	Name             pgtype.Text        `json:"name"`
	Provider         pgtype.Text        `json:"provider"`
	Status           pgtype.Text        `json:"status"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	ModuleConnection *RepoConnections   `json:"module_connection"`
	Versions         []*ModuleVersions  `json:"versions"`
}

type FindNotificationConfigurationForUpdateRow

type FindNotificationConfigurationForUpdateRow struct {
	NotificationConfigurationID pgtype.Text        `json:"notification_configuration_id"`
	CreatedAt                   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                   pgtype.Timestamptz `json:"updated_at"`
	Name                        pgtype.Text        `json:"name"`
	URL                         pgtype.Text        `json:"url"`
	Triggers                    []string           `json:"triggers"`
	DestinationType             pgtype.Text        `json:"destination_type"`
	WorkspaceID                 pgtype.Text        `json:"workspace_id"`
	Enabled                     pgtype.Bool        `json:"enabled"`
}

type FindNotificationConfigurationRow

type FindNotificationConfigurationRow struct {
	NotificationConfigurationID pgtype.Text        `json:"notification_configuration_id"`
	CreatedAt                   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                   pgtype.Timestamptz `json:"updated_at"`
	Name                        pgtype.Text        `json:"name"`
	URL                         pgtype.Text        `json:"url"`
	Triggers                    []string           `json:"triggers"`
	DestinationType             pgtype.Text        `json:"destination_type"`
	WorkspaceID                 pgtype.Text        `json:"workspace_id"`
	Enabled                     pgtype.Bool        `json:"enabled"`
}

type FindNotificationConfigurationsByWorkspaceIDRow

type FindNotificationConfigurationsByWorkspaceIDRow struct {
	NotificationConfigurationID pgtype.Text        `json:"notification_configuration_id"`
	CreatedAt                   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                   pgtype.Timestamptz `json:"updated_at"`
	Name                        pgtype.Text        `json:"name"`
	URL                         pgtype.Text        `json:"url"`
	Triggers                    []string           `json:"triggers"`
	DestinationType             pgtype.Text        `json:"destination_type"`
	WorkspaceID                 pgtype.Text        `json:"workspace_id"`
	Enabled                     pgtype.Bool        `json:"enabled"`
}

type FindOrganizationByIDRow

type FindOrganizationByIDRow struct {
	OrganizationID             pgtype.Text        `json:"organization_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	Name                       pgtype.Text        `json:"name"`
	SessionRemember            pgtype.Int4        `json:"session_remember"`
	SessionTimeout             pgtype.Int4        `json:"session_timeout"`
	Email                      pgtype.Text        `json:"email"`
	CollaboratorAuthPolicy     pgtype.Text        `json:"collaborator_auth_policy"`
	AllowForceDeleteWorkspaces pgtype.Bool        `json:"allow_force_delete_workspaces"`
	CostEstimationEnabled      pgtype.Bool        `json:"cost_estimation_enabled"`
}

type FindOrganizationByNameForUpdateRow

type FindOrganizationByNameForUpdateRow struct {
	OrganizationID             pgtype.Text        `json:"organization_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	Name                       pgtype.Text        `json:"name"`
	SessionRemember            pgtype.Int4        `json:"session_remember"`
	SessionTimeout             pgtype.Int4        `json:"session_timeout"`
	Email                      pgtype.Text        `json:"email"`
	CollaboratorAuthPolicy     pgtype.Text        `json:"collaborator_auth_policy"`
	AllowForceDeleteWorkspaces pgtype.Bool        `json:"allow_force_delete_workspaces"`
	CostEstimationEnabled      pgtype.Bool        `json:"cost_estimation_enabled"`
}

type FindOrganizationByNameRow

type FindOrganizationByNameRow struct {
	OrganizationID             pgtype.Text        `json:"organization_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	Name                       pgtype.Text        `json:"name"`
	SessionRemember            pgtype.Int4        `json:"session_remember"`
	SessionTimeout             pgtype.Int4        `json:"session_timeout"`
	Email                      pgtype.Text        `json:"email"`
	CollaboratorAuthPolicy     pgtype.Text        `json:"collaborator_auth_policy"`
	AllowForceDeleteWorkspaces pgtype.Bool        `json:"allow_force_delete_workspaces"`
	CostEstimationEnabled      pgtype.Bool        `json:"cost_estimation_enabled"`
}

type FindOrganizationTokensByIDRow

type FindOrganizationTokensByIDRow struct {
	OrganizationTokenID pgtype.Text        `json:"organization_token_id"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
	Expiry              pgtype.Timestamptz `json:"expiry"`
}

type FindOrganizationTokensByNameRow

type FindOrganizationTokensByNameRow struct {
	OrganizationTokenID pgtype.Text        `json:"organization_token_id"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
	Expiry              pgtype.Timestamptz `json:"expiry"`
}

type FindOrganizationTokensRow

type FindOrganizationTokensRow struct {
	OrganizationTokenID pgtype.Text        `json:"organization_token_id"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
	Expiry              pgtype.Timestamptz `json:"expiry"`
}

type FindOrganizationsParams

type FindOrganizationsParams struct {
	Names  []string    `json:"names"`
	Limit  pgtype.Int8 `json:"limit"`
	Offset pgtype.Int8 `json:"offset"`
}

type FindOrganizationsRow

type FindOrganizationsRow struct {
	OrganizationID             pgtype.Text        `json:"organization_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	Name                       pgtype.Text        `json:"name"`
	SessionRemember            pgtype.Int4        `json:"session_remember"`
	SessionTimeout             pgtype.Int4        `json:"session_timeout"`
	Email                      pgtype.Text        `json:"email"`
	CollaboratorAuthPolicy     pgtype.Text        `json:"collaborator_auth_policy"`
	AllowForceDeleteWorkspaces pgtype.Bool        `json:"allow_force_delete_workspaces"`
	CostEstimationEnabled      pgtype.Bool        `json:"cost_estimation_enabled"`
}

type FindRepohookByIDRow

type FindRepohookByIDRow struct {
	RepohookID    pgtype.UUID `json:"repohook_id"`
	VCSID         pgtype.Text `json:"vcs_id"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
	Secret        pgtype.Text `json:"secret"`
	RepoPath      pgtype.Text `json:"repo_path"`
	VCSKind       pgtype.Text `json:"vcs_kind"`
}

type FindRepohookByRepoAndProviderRow

type FindRepohookByRepoAndProviderRow struct {
	RepohookID    pgtype.UUID `json:"repohook_id"`
	VCSID         pgtype.Text `json:"vcs_id"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
	Secret        pgtype.Text `json:"secret"`
	RepoPath      pgtype.Text `json:"repo_path"`
	VCSKind       pgtype.Text `json:"vcs_kind"`
}

type FindRepohooksRow

type FindRepohooksRow struct {
	RepohookID    pgtype.UUID `json:"repohook_id"`
	VCSID         pgtype.Text `json:"vcs_id"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
	Secret        pgtype.Text `json:"secret"`
	RepoPath      pgtype.Text `json:"repo_path"`
	VCSKind       pgtype.Text `json:"vcs_kind"`
}

type FindRunByIDForUpdateRow

type FindRunByIDForUpdateRow struct {
	RunID                  pgtype.Text              `json:"run_id"`
	CreatedAt              pgtype.Timestamptz       `json:"created_at"`
	CancelSignaledAt       pgtype.Timestamptz       `json:"cancel_signaled_at"`
	IsDestroy              pgtype.Bool              `json:"is_destroy"`
	PositionInQueue        pgtype.Int4              `json:"position_in_queue"`
	Refresh                pgtype.Bool              `json:"refresh"`
	RefreshOnly            pgtype.Bool              `json:"refresh_only"`
	Source                 pgtype.Text              `json:"source"`
	Status                 pgtype.Text              `json:"status"`
	PlanStatus             pgtype.Text              `json:"plan_status"`
	ApplyStatus            pgtype.Text              `json:"apply_status"`
	ReplaceAddrs           []string                 `json:"replace_addrs"`
	TargetAddrs            []string                 `json:"target_addrs"`
	AutoApply              pgtype.Bool              `json:"auto_apply"`
	PlanResourceReport     *Report                  `json:"plan_resource_report"`
	PlanOutputReport       *Report                  `json:"plan_output_report"`
	ApplyResourceReport    *Report                  `json:"apply_resource_report"`
	ConfigurationVersionID pgtype.Text              `json:"configuration_version_id"`
	WorkspaceID            pgtype.Text              `json:"workspace_id"`
	PlanOnly               pgtype.Bool              `json:"plan_only"`
	CreatedBy              pgtype.Text              `json:"created_by"`
	TerraformVersion       pgtype.Text              `json:"terraform_version"`
	AllowEmptyApply        pgtype.Bool              `json:"allow_empty_apply"`
	ExecutionMode          pgtype.Text              `json:"execution_mode"`
	Latest                 pgtype.Bool              `json:"latest"`
	OrganizationName       pgtype.Text              `json:"organization_name"`
	CostEstimationEnabled  pgtype.Bool              `json:"cost_estimation_enabled"`
	IngressAttributes      *IngressAttributes       `json:"ingress_attributes"`
	RunStatusTimestamps    []*RunStatusTimestamps   `json:"run_status_timestamps"`
	PlanStatusTimestamps   []*PhaseStatusTimestamps `json:"plan_status_timestamps"`
	ApplyStatusTimestamps  []*PhaseStatusTimestamps `json:"apply_status_timestamps"`
	RunVariables           []*RunVariables          `json:"run_variables"`
}

type FindRunByIDRow

type FindRunByIDRow struct {
	RunID                  pgtype.Text              `json:"run_id"`
	CreatedAt              pgtype.Timestamptz       `json:"created_at"`
	CancelSignaledAt       pgtype.Timestamptz       `json:"cancel_signaled_at"`
	IsDestroy              pgtype.Bool              `json:"is_destroy"`
	PositionInQueue        pgtype.Int4              `json:"position_in_queue"`
	Refresh                pgtype.Bool              `json:"refresh"`
	RefreshOnly            pgtype.Bool              `json:"refresh_only"`
	Source                 pgtype.Text              `json:"source"`
	Status                 pgtype.Text              `json:"status"`
	PlanStatus             pgtype.Text              `json:"plan_status"`
	ApplyStatus            pgtype.Text              `json:"apply_status"`
	ReplaceAddrs           []string                 `json:"replace_addrs"`
	TargetAddrs            []string                 `json:"target_addrs"`
	AutoApply              pgtype.Bool              `json:"auto_apply"`
	PlanResourceReport     *Report                  `json:"plan_resource_report"`
	PlanOutputReport       *Report                  `json:"plan_output_report"`
	ApplyResourceReport    *Report                  `json:"apply_resource_report"`
	ConfigurationVersionID pgtype.Text              `json:"configuration_version_id"`
	WorkspaceID            pgtype.Text              `json:"workspace_id"`
	PlanOnly               pgtype.Bool              `json:"plan_only"`
	CreatedBy              pgtype.Text              `json:"created_by"`
	TerraformVersion       pgtype.Text              `json:"terraform_version"`
	AllowEmptyApply        pgtype.Bool              `json:"allow_empty_apply"`
	ExecutionMode          pgtype.Text              `json:"execution_mode"`
	Latest                 pgtype.Bool              `json:"latest"`
	OrganizationName       pgtype.Text              `json:"organization_name"`
	CostEstimationEnabled  pgtype.Bool              `json:"cost_estimation_enabled"`
	IngressAttributes      *IngressAttributes       `json:"ingress_attributes"`
	RunStatusTimestamps    []*RunStatusTimestamps   `json:"run_status_timestamps"`
	PlanStatusTimestamps   []*PhaseStatusTimestamps `json:"plan_status_timestamps"`
	ApplyStatusTimestamps  []*PhaseStatusTimestamps `json:"apply_status_timestamps"`
	RunVariables           []*RunVariables          `json:"run_variables"`
}

type FindRunsParams

type FindRunsParams struct {
	OrganizationNames []string    `json:"organization_names"`
	WorkspaceIds      []string    `json:"workspace_ids"`
	WorkspaceNames    []string    `json:"workspace_names"`
	Sources           []string    `json:"sources"`
	Statuses          []string    `json:"statuses"`
	PlanOnly          []string    `json:"plan_only"`
	CommitSHA         pgtype.Text `json:"commit_sha"`
	VCSUsername       pgtype.Text `json:"vcs_username"`
	Limit             pgtype.Int8 `json:"limit"`
	Offset            pgtype.Int8 `json:"offset"`
}

type FindRunsRow

type FindRunsRow struct {
	RunID                  pgtype.Text              `json:"run_id"`
	CreatedAt              pgtype.Timestamptz       `json:"created_at"`
	CancelSignaledAt       pgtype.Timestamptz       `json:"cancel_signaled_at"`
	IsDestroy              pgtype.Bool              `json:"is_destroy"`
	PositionInQueue        pgtype.Int4              `json:"position_in_queue"`
	Refresh                pgtype.Bool              `json:"refresh"`
	RefreshOnly            pgtype.Bool              `json:"refresh_only"`
	Source                 pgtype.Text              `json:"source"`
	Status                 pgtype.Text              `json:"status"`
	PlanStatus             pgtype.Text              `json:"plan_status"`
	ApplyStatus            pgtype.Text              `json:"apply_status"`
	ReplaceAddrs           []string                 `json:"replace_addrs"`
	TargetAddrs            []string                 `json:"target_addrs"`
	AutoApply              pgtype.Bool              `json:"auto_apply"`
	PlanResourceReport     *Report                  `json:"plan_resource_report"`
	PlanOutputReport       *Report                  `json:"plan_output_report"`
	ApplyResourceReport    *Report                  `json:"apply_resource_report"`
	ConfigurationVersionID pgtype.Text              `json:"configuration_version_id"`
	WorkspaceID            pgtype.Text              `json:"workspace_id"`
	PlanOnly               pgtype.Bool              `json:"plan_only"`
	CreatedBy              pgtype.Text              `json:"created_by"`
	TerraformVersion       pgtype.Text              `json:"terraform_version"`
	AllowEmptyApply        pgtype.Bool              `json:"allow_empty_apply"`
	ExecutionMode          pgtype.Text              `json:"execution_mode"`
	Latest                 pgtype.Bool              `json:"latest"`
	OrganizationName       pgtype.Text              `json:"organization_name"`
	CostEstimationEnabled  pgtype.Bool              `json:"cost_estimation_enabled"`
	IngressAttributes      *IngressAttributes       `json:"ingress_attributes"`
	RunStatusTimestamps    []*RunStatusTimestamps   `json:"run_status_timestamps"`
	PlanStatusTimestamps   []*PhaseStatusTimestamps `json:"plan_status_timestamps"`
	ApplyStatusTimestamps  []*PhaseStatusTimestamps `json:"apply_status_timestamps"`
	RunVariables           []*RunVariables          `json:"run_variables"`
}

type FindServerAgentsRow

type FindServerAgentsRow struct {
	AgentID      pgtype.Text        `json:"agent_id"`
	Name         pgtype.Text        `json:"name"`
	Version      pgtype.Text        `json:"version"`
	MaxJobs      pgtype.Int4        `json:"max_jobs"`
	IPAddress    net.IPNet          `json:"ip_address"`
	LastPingAt   pgtype.Timestamptz `json:"last_ping_at"`
	LastStatusAt pgtype.Timestamptz `json:"last_status_at"`
	Status       pgtype.Text        `json:"status"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
	CurrentJobs  pgtype.Int8        `json:"current_jobs"`
}

type FindStateVersionByIDForUpdateRow

type FindStateVersionByIDForUpdateRow struct {
	StateVersionID      pgtype.Text            `json:"state_version_id"`
	CreatedAt           pgtype.Timestamptz     `json:"created_at"`
	Serial              pgtype.Int4            `json:"serial"`
	State               []byte                 `json:"state"`
	WorkspaceID         pgtype.Text            `json:"workspace_id"`
	Status              pgtype.Text            `json:"status"`
	StateVersionOutputs []*StateVersionOutputs `json:"state_version_outputs"`
}

type FindStateVersionByIDRow

type FindStateVersionByIDRow struct {
	StateVersionID      pgtype.Text            `json:"state_version_id"`
	CreatedAt           pgtype.Timestamptz     `json:"created_at"`
	Serial              pgtype.Int4            `json:"serial"`
	State               []byte                 `json:"state"`
	WorkspaceID         pgtype.Text            `json:"workspace_id"`
	Status              pgtype.Text            `json:"status"`
	StateVersionOutputs []*StateVersionOutputs `json:"state_version_outputs"`
}

type FindStateVersionOutputByIDRow

type FindStateVersionOutputByIDRow struct {
	StateVersionOutputID pgtype.Text `json:"state_version_output_id"`
	Name                 pgtype.Text `json:"name"`
	Sensitive            pgtype.Bool `json:"sensitive"`
	Type                 pgtype.Text `json:"type"`
	Value                []byte      `json:"value"`
	StateVersionID       pgtype.Text `json:"state_version_id"`
}

type FindStateVersionsByWorkspaceIDParams

type FindStateVersionsByWorkspaceIDParams struct {
	WorkspaceID pgtype.Text `json:"workspace_id"`
	Limit       pgtype.Int8 `json:"limit"`
	Offset      pgtype.Int8 `json:"offset"`
}

type FindStateVersionsByWorkspaceIDRow

type FindStateVersionsByWorkspaceIDRow struct {
	StateVersionID      pgtype.Text            `json:"state_version_id"`
	CreatedAt           pgtype.Timestamptz     `json:"created_at"`
	Serial              pgtype.Int4            `json:"serial"`
	State               []byte                 `json:"state"`
	WorkspaceID         pgtype.Text            `json:"workspace_id"`
	Status              pgtype.Text            `json:"status"`
	StateVersionOutputs []*StateVersionOutputs `json:"state_version_outputs"`
}

type FindTagByIDRow

type FindTagByIDRow struct {
	TagID            pgtype.Text `json:"tag_id"`
	Name             pgtype.Text `json:"name"`
	OrganizationName pgtype.Text `json:"organization_name"`
	InstanceCount    pgtype.Int8 `json:"instance_count"`
}

type FindTagByNameRow

type FindTagByNameRow struct {
	TagID            pgtype.Text `json:"tag_id"`
	Name             pgtype.Text `json:"name"`
	OrganizationName pgtype.Text `json:"organization_name"`
	InstanceCount    pgtype.Int8 `json:"instance_count"`
}

type FindTagsParams

type FindTagsParams struct {
	OrganizationName pgtype.Text `json:"organization_name"`
	Limit            pgtype.Int8 `json:"limit"`
	Offset           pgtype.Int8 `json:"offset"`
}

type FindTagsRow

type FindTagsRow struct {
	TagID            pgtype.Text `json:"tag_id"`
	Name             pgtype.Text `json:"name"`
	OrganizationName pgtype.Text `json:"organization_name"`
	InstanceCount    pgtype.Int8 `json:"instance_count"`
}

type FindTeamByIDForUpdateRow

type FindTeamByIDForUpdateRow struct {
	TeamID                          pgtype.Text        `json:"team_id"`
	Name                            pgtype.Text        `json:"name"`
	CreatedAt                       pgtype.Timestamptz `json:"created_at"`
	PermissionManageWorkspaces      pgtype.Bool        `json:"permission_manage_workspaces"`
	PermissionManageVCS             pgtype.Bool        `json:"permission_manage_vcs"`
	PermissionManageModules         pgtype.Bool        `json:"permission_manage_modules"`
	OrganizationName                pgtype.Text        `json:"organization_name"`
	SSOTeamID                       pgtype.Text        `json:"sso_team_id"`
	Visibility                      pgtype.Text        `json:"visibility"`
	PermissionManagePolicies        pgtype.Bool        `json:"permission_manage_policies"`
	PermissionManagePolicyOverrides pgtype.Bool        `json:"permission_manage_policy_overrides"`
	PermissionManageProviders       pgtype.Bool        `json:"permission_manage_providers"`
}

type FindTeamByIDRow

type FindTeamByIDRow struct {
	TeamID                          pgtype.Text        `json:"team_id"`
	Name                            pgtype.Text        `json:"name"`
	CreatedAt                       pgtype.Timestamptz `json:"created_at"`
	PermissionManageWorkspaces      pgtype.Bool        `json:"permission_manage_workspaces"`
	PermissionManageVCS             pgtype.Bool        `json:"permission_manage_vcs"`
	PermissionManageModules         pgtype.Bool        `json:"permission_manage_modules"`
	OrganizationName                pgtype.Text        `json:"organization_name"`
	SSOTeamID                       pgtype.Text        `json:"sso_team_id"`
	Visibility                      pgtype.Text        `json:"visibility"`
	PermissionManagePolicies        pgtype.Bool        `json:"permission_manage_policies"`
	PermissionManagePolicyOverrides pgtype.Bool        `json:"permission_manage_policy_overrides"`
	PermissionManageProviders       pgtype.Bool        `json:"permission_manage_providers"`
}

type FindTeamByNameRow

type FindTeamByNameRow struct {
	TeamID                          pgtype.Text        `json:"team_id"`
	Name                            pgtype.Text        `json:"name"`
	CreatedAt                       pgtype.Timestamptz `json:"created_at"`
	PermissionManageWorkspaces      pgtype.Bool        `json:"permission_manage_workspaces"`
	PermissionManageVCS             pgtype.Bool        `json:"permission_manage_vcs"`
	PermissionManageModules         pgtype.Bool        `json:"permission_manage_modules"`
	OrganizationName                pgtype.Text        `json:"organization_name"`
	SSOTeamID                       pgtype.Text        `json:"sso_team_id"`
	Visibility                      pgtype.Text        `json:"visibility"`
	PermissionManagePolicies        pgtype.Bool        `json:"permission_manage_policies"`
	PermissionManagePolicyOverrides pgtype.Bool        `json:"permission_manage_policy_overrides"`
	PermissionManageProviders       pgtype.Bool        `json:"permission_manage_providers"`
}

type FindTeamByTokenIDRow

type FindTeamByTokenIDRow struct {
	TeamID                          pgtype.Text        `json:"team_id"`
	Name                            pgtype.Text        `json:"name"`
	CreatedAt                       pgtype.Timestamptz `json:"created_at"`
	PermissionManageWorkspaces      pgtype.Bool        `json:"permission_manage_workspaces"`
	PermissionManageVCS             pgtype.Bool        `json:"permission_manage_vcs"`
	PermissionManageModules         pgtype.Bool        `json:"permission_manage_modules"`
	OrganizationName                pgtype.Text        `json:"organization_name"`
	SSOTeamID                       pgtype.Text        `json:"sso_team_id"`
	Visibility                      pgtype.Text        `json:"visibility"`
	PermissionManagePolicies        pgtype.Bool        `json:"permission_manage_policies"`
	PermissionManagePolicyOverrides pgtype.Bool        `json:"permission_manage_policy_overrides"`
	PermissionManageProviders       pgtype.Bool        `json:"permission_manage_providers"`
}

type FindTeamTokensByIDRow

type FindTeamTokensByIDRow struct {
	TeamTokenID pgtype.Text        `json:"team_token_id"`
	Description pgtype.Text        `json:"description"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	TeamID      pgtype.Text        `json:"team_id"`
	Expiry      pgtype.Timestamptz `json:"expiry"`
}

type FindTeamsByOrgRow

type FindTeamsByOrgRow struct {
	TeamID                          pgtype.Text        `json:"team_id"`
	Name                            pgtype.Text        `json:"name"`
	CreatedAt                       pgtype.Timestamptz `json:"created_at"`
	PermissionManageWorkspaces      pgtype.Bool        `json:"permission_manage_workspaces"`
	PermissionManageVCS             pgtype.Bool        `json:"permission_manage_vcs"`
	PermissionManageModules         pgtype.Bool        `json:"permission_manage_modules"`
	OrganizationName                pgtype.Text        `json:"organization_name"`
	SSOTeamID                       pgtype.Text        `json:"sso_team_id"`
	Visibility                      pgtype.Text        `json:"visibility"`
	PermissionManagePolicies        pgtype.Bool        `json:"permission_manage_policies"`
	PermissionManagePolicyOverrides pgtype.Bool        `json:"permission_manage_policy_overrides"`
	PermissionManageProviders       pgtype.Bool        `json:"permission_manage_providers"`
}

type FindTokenByIDRow

type FindTokenByIDRow struct {
	TokenID     pgtype.Text        `json:"token_id"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	Description pgtype.Text        `json:"description"`
	Username    pgtype.Text        `json:"username"`
}

type FindTokensByUsernameRow

type FindTokensByUsernameRow struct {
	TokenID     pgtype.Text        `json:"token_id"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	Description pgtype.Text        `json:"description"`
	Username    pgtype.Text        `json:"username"`
}

type FindUnreferencedRepohooksRow

type FindUnreferencedRepohooksRow struct {
	RepohookID    pgtype.UUID `json:"repohook_id"`
	VCSID         pgtype.Text `json:"vcs_id"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
	Secret        pgtype.Text `json:"secret"`
	RepoPath      pgtype.Text `json:"repo_path"`
	VCSKind       pgtype.Text `json:"vcs_kind"`
}

type FindUserByAuthenticationTokenIDRow

type FindUserByAuthenticationTokenIDRow struct {
	UserID    pgtype.Text        `json:"user_id"`
	Username  pgtype.Text        `json:"username"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
	SiteAdmin pgtype.Bool        `json:"site_admin"`
	Teams     []*Teams           `json:"teams"`
}

type FindUserByIDRow

type FindUserByIDRow struct {
	UserID    pgtype.Text        `json:"user_id"`
	Username  pgtype.Text        `json:"username"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
	SiteAdmin pgtype.Bool        `json:"site_admin"`
	Teams     []*Teams           `json:"teams"`
}

type FindUserByUsernameRow

type FindUserByUsernameRow struct {
	UserID    pgtype.Text        `json:"user_id"`
	Username  pgtype.Text        `json:"username"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
	SiteAdmin pgtype.Bool        `json:"site_admin"`
	Teams     []*Teams           `json:"teams"`
}

type FindUsersByOrganizationRow

type FindUsersByOrganizationRow struct {
	UserID    pgtype.Text        `json:"user_id"`
	Username  pgtype.Text        `json:"username"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
	SiteAdmin pgtype.Bool        `json:"site_admin"`
	Teams     []*Teams           `json:"teams"`
}

type FindUsersByTeamIDRow

type FindUsersByTeamIDRow struct {
	UserID    pgtype.Text        `json:"user_id"`
	Username  pgtype.Text        `json:"username"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
	SiteAdmin pgtype.Bool        `json:"site_admin"`
	Teams     []*Teams           `json:"teams"`
}

type FindUsersRow

type FindUsersRow struct {
	UserID    pgtype.Text        `json:"user_id"`
	Username  pgtype.Text        `json:"username"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
	SiteAdmin pgtype.Bool        `json:"site_admin"`
	Teams     []*Teams           `json:"teams"`
}

type FindVCSProviderForUpdateRow

type FindVCSProviderForUpdateRow struct {
	VCSProviderID    pgtype.Text        `json:"vcs_provider_id"`
	Token            pgtype.Text        `json:"token"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	Name             pgtype.Text        `json:"name"`
	VCSKind          pgtype.Text        `json:"vcs_kind"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	GithubAppID      pgtype.Int8        `json:"github_app_id"`
	GithubApp        *GithubApps        `json:"github_app"`
	GithubAppInstall *GithubAppInstalls `json:"github_app_install"`
}

type FindVCSProviderRow

type FindVCSProviderRow struct {
	VCSProviderID    pgtype.Text        `json:"vcs_provider_id"`
	Token            pgtype.Text        `json:"token"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	Name             pgtype.Text        `json:"name"`
	VCSKind          pgtype.Text        `json:"vcs_kind"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	GithubAppID      pgtype.Int8        `json:"github_app_id"`
	GithubApp        *GithubApps        `json:"github_app"`
	GithubAppInstall *GithubAppInstalls `json:"github_app_install"`
}

type FindVCSProvidersByGithubAppInstallIDRow

type FindVCSProvidersByGithubAppInstallIDRow struct {
	VCSProviderID    pgtype.Text        `json:"vcs_provider_id"`
	Token            pgtype.Text        `json:"token"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	Name             pgtype.Text        `json:"name"`
	VCSKind          pgtype.Text        `json:"vcs_kind"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	GithubAppID      pgtype.Int8        `json:"github_app_id"`
	GithubApp        *GithubApps        `json:"github_app"`
	GithubAppInstall *GithubAppInstalls `json:"github_app_install"`
}

type FindVCSProvidersByOrganizationRow

type FindVCSProvidersByOrganizationRow struct {
	VCSProviderID    pgtype.Text        `json:"vcs_provider_id"`
	Token            pgtype.Text        `json:"token"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	Name             pgtype.Text        `json:"name"`
	VCSKind          pgtype.Text        `json:"vcs_kind"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	GithubAppID      pgtype.Int8        `json:"github_app_id"`
	GithubApp        *GithubApps        `json:"github_app"`
	GithubAppInstall *GithubAppInstalls `json:"github_app_install"`
}

type FindVCSProvidersRow

type FindVCSProvidersRow struct {
	VCSProviderID    pgtype.Text        `json:"vcs_provider_id"`
	Token            pgtype.Text        `json:"token"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	Name             pgtype.Text        `json:"name"`
	VCSKind          pgtype.Text        `json:"vcs_kind"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	GithubAppID      pgtype.Int8        `json:"github_app_id"`
	GithubApp        *GithubApps        `json:"github_app"`
	GithubAppInstall *GithubAppInstalls `json:"github_app_install"`
}

type FindVariableRow

type FindVariableRow struct {
	VariableID  pgtype.Text `json:"variable_id"`
	Key         pgtype.Text `json:"key"`
	Value       pgtype.Text `json:"value"`
	Description pgtype.Text `json:"description"`
	Category    pgtype.Text `json:"category"`
	Sensitive   pgtype.Bool `json:"sensitive"`
	HCL         pgtype.Bool `json:"hcl"`
	VersionID   pgtype.Text `json:"version_id"`
}

type FindVariableSetBySetIDRow

type FindVariableSetBySetIDRow struct {
	VariableSetID    pgtype.Text  `json:"variable_set_id"`
	Global           pgtype.Bool  `json:"global"`
	Name             pgtype.Text  `json:"name"`
	Description      pgtype.Text  `json:"description"`
	OrganizationName pgtype.Text  `json:"organization_name"`
	Variables        []*Variables `json:"variables"`
	WorkspaceIds     []string     `json:"workspace_ids"`
}

type FindVariableSetByVariableIDRow

type FindVariableSetByVariableIDRow struct {
	VariableSetID    pgtype.Text  `json:"variable_set_id"`
	Global           pgtype.Bool  `json:"global"`
	Name             pgtype.Text  `json:"name"`
	Description      pgtype.Text  `json:"description"`
	OrganizationName pgtype.Text  `json:"organization_name"`
	Variables        []*Variables `json:"variables"`
	WorkspaceIds     []string     `json:"workspace_ids"`
}

type FindVariableSetForUpdateRow

type FindVariableSetForUpdateRow struct {
	VariableSetID    pgtype.Text  `json:"variable_set_id"`
	Global           pgtype.Bool  `json:"global"`
	Name             pgtype.Text  `json:"name"`
	Description      pgtype.Text  `json:"description"`
	OrganizationName pgtype.Text  `json:"organization_name"`
	Variables        []*Variables `json:"variables"`
	WorkspaceIds     []string     `json:"workspace_ids"`
}

type FindVariableSetsByOrganizationRow

type FindVariableSetsByOrganizationRow struct {
	VariableSetID    pgtype.Text  `json:"variable_set_id"`
	Global           pgtype.Bool  `json:"global"`
	Name             pgtype.Text  `json:"name"`
	Description      pgtype.Text  `json:"description"`
	OrganizationName pgtype.Text  `json:"organization_name"`
	Variables        []*Variables `json:"variables"`
	WorkspaceIds     []string     `json:"workspace_ids"`
}

type FindVariableSetsByWorkspaceRow

type FindVariableSetsByWorkspaceRow struct {
	VariableSetID    pgtype.Text  `json:"variable_set_id"`
	Global           pgtype.Bool  `json:"global"`
	Name             pgtype.Text  `json:"name"`
	Description      pgtype.Text  `json:"description"`
	OrganizationName pgtype.Text  `json:"organization_name"`
	Variables        []*Variables `json:"variables"`
	WorkspaceIds     []string     `json:"workspace_ids"`
}

type FindWorkspaceByIDForUpdateRow

type FindWorkspaceByIDForUpdateRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           pgtype.Bool        `json:"allow_destroy_plan"`
	AutoApply                  pgtype.Bool        `json:"auto_apply"`
	CanQueueDestroyPlan        pgtype.Bool        `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	GlobalRemoteState          pgtype.Bool        `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               pgtype.Bool        `json:"queue_all_runs"`
	SpeculativeEnabled         pgtype.Bool        `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled pgtype.Bool        `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	OrganizationName           pgtype.Text        `json:"organization_name"`
	Branch                     pgtype.Text        `json:"branch"`
	LockUsername               pgtype.Text        `json:"lock_username"`
	CurrentStateVersionID      pgtype.Text        `json:"current_state_version_id"`
	TriggerPatterns            []string           `json:"trigger_patterns"`
	VCSTagsRegex               pgtype.Text        `json:"vcs_tags_regex"`
	AllowCLIApply              pgtype.Bool        `json:"allow_cli_apply"`
	AgentPoolID                pgtype.Text        `json:"agent_pool_id"`
	Tags                       []string           `json:"tags"`
	LatestRunStatus            pgtype.Text        `json:"latest_run_status"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	WorkspaceConnection        *RepoConnections   `json:"workspace_connection"`
}

type FindWorkspaceByIDRow

type FindWorkspaceByIDRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           pgtype.Bool        `json:"allow_destroy_plan"`
	AutoApply                  pgtype.Bool        `json:"auto_apply"`
	CanQueueDestroyPlan        pgtype.Bool        `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	GlobalRemoteState          pgtype.Bool        `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               pgtype.Bool        `json:"queue_all_runs"`
	SpeculativeEnabled         pgtype.Bool        `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled pgtype.Bool        `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	OrganizationName           pgtype.Text        `json:"organization_name"`
	Branch                     pgtype.Text        `json:"branch"`
	LockUsername               pgtype.Text        `json:"lock_username"`
	CurrentStateVersionID      pgtype.Text        `json:"current_state_version_id"`
	TriggerPatterns            []string           `json:"trigger_patterns"`
	VCSTagsRegex               pgtype.Text        `json:"vcs_tags_regex"`
	AllowCLIApply              pgtype.Bool        `json:"allow_cli_apply"`
	AgentPoolID                pgtype.Text        `json:"agent_pool_id"`
	Tags                       []string           `json:"tags"`
	LatestRunStatus            pgtype.Text        `json:"latest_run_status"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	WorkspaceConnection        *RepoConnections   `json:"workspace_connection"`
}

type FindWorkspaceByNameRow

type FindWorkspaceByNameRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           pgtype.Bool        `json:"allow_destroy_plan"`
	AutoApply                  pgtype.Bool        `json:"auto_apply"`
	CanQueueDestroyPlan        pgtype.Bool        `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	GlobalRemoteState          pgtype.Bool        `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               pgtype.Bool        `json:"queue_all_runs"`
	SpeculativeEnabled         pgtype.Bool        `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled pgtype.Bool        `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	OrganizationName           pgtype.Text        `json:"organization_name"`
	Branch                     pgtype.Text        `json:"branch"`
	LockUsername               pgtype.Text        `json:"lock_username"`
	CurrentStateVersionID      pgtype.Text        `json:"current_state_version_id"`
	TriggerPatterns            []string           `json:"trigger_patterns"`
	VCSTagsRegex               pgtype.Text        `json:"vcs_tags_regex"`
	AllowCLIApply              pgtype.Bool        `json:"allow_cli_apply"`
	AgentPoolID                pgtype.Text        `json:"agent_pool_id"`
	Tags                       []string           `json:"tags"`
	LatestRunStatus            pgtype.Text        `json:"latest_run_status"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	WorkspaceConnection        *RepoConnections   `json:"workspace_connection"`
}

type FindWorkspacePermissionsByWorkspaceIDRow

type FindWorkspacePermissionsByWorkspaceIDRow struct {
	WorkspaceID pgtype.Text `json:"workspace_id"`
	TeamID      pgtype.Text `json:"team_id"`
	Role        pgtype.Text `json:"role"`
}

type FindWorkspaceTagsParams

type FindWorkspaceTagsParams struct {
	WorkspaceID pgtype.Text `json:"workspace_id"`
	Limit       pgtype.Int8 `json:"limit"`
	Offset      pgtype.Int8 `json:"offset"`
}

type FindWorkspaceTagsRow

type FindWorkspaceTagsRow struct {
	TagID            pgtype.Text `json:"tag_id"`
	Name             pgtype.Text `json:"name"`
	OrganizationName pgtype.Text `json:"organization_name"`
	InstanceCount    pgtype.Int8 `json:"instance_count"`
}

type FindWorkspaceVariableByVariableIDRow

type FindWorkspaceVariableByVariableIDRow struct {
	WorkspaceID pgtype.Text `json:"workspace_id"`
	Variable    *Variables  `json:"variable"`
}

type FindWorkspaceVariablesByWorkspaceIDRow

type FindWorkspaceVariablesByWorkspaceIDRow struct {
	VariableID  pgtype.Text `json:"variable_id"`
	Key         pgtype.Text `json:"key"`
	Value       pgtype.Text `json:"value"`
	Description pgtype.Text `json:"description"`
	Category    pgtype.Text `json:"category"`
	Sensitive   pgtype.Bool `json:"sensitive"`
	HCL         pgtype.Bool `json:"hcl"`
	VersionID   pgtype.Text `json:"version_id"`
}

type FindWorkspacesByConnectionRow

type FindWorkspacesByConnectionRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           pgtype.Bool        `json:"allow_destroy_plan"`
	AutoApply                  pgtype.Bool        `json:"auto_apply"`
	CanQueueDestroyPlan        pgtype.Bool        `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	GlobalRemoteState          pgtype.Bool        `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               pgtype.Bool        `json:"queue_all_runs"`
	SpeculativeEnabled         pgtype.Bool        `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled pgtype.Bool        `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	OrganizationName           pgtype.Text        `json:"organization_name"`
	Branch                     pgtype.Text        `json:"branch"`
	LockUsername               pgtype.Text        `json:"lock_username"`
	CurrentStateVersionID      pgtype.Text        `json:"current_state_version_id"`
	TriggerPatterns            []string           `json:"trigger_patterns"`
	VCSTagsRegex               pgtype.Text        `json:"vcs_tags_regex"`
	AllowCLIApply              pgtype.Bool        `json:"allow_cli_apply"`
	AgentPoolID                pgtype.Text        `json:"agent_pool_id"`
	Tags                       []string           `json:"tags"`
	LatestRunStatus            pgtype.Text        `json:"latest_run_status"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	WorkspaceConnection        *RepoConnections   `json:"workspace_connection"`
}

type FindWorkspacesByUsernameParams

type FindWorkspacesByUsernameParams struct {
	OrganizationName pgtype.Text `json:"organization_name"`
	Username         pgtype.Text `json:"username"`
	Limit            pgtype.Int8 `json:"limit"`
	Offset           pgtype.Int8 `json:"offset"`
}

type FindWorkspacesByUsernameRow

type FindWorkspacesByUsernameRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           pgtype.Bool        `json:"allow_destroy_plan"`
	AutoApply                  pgtype.Bool        `json:"auto_apply"`
	CanQueueDestroyPlan        pgtype.Bool        `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	GlobalRemoteState          pgtype.Bool        `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               pgtype.Bool        `json:"queue_all_runs"`
	SpeculativeEnabled         pgtype.Bool        `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled pgtype.Bool        `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	OrganizationName           pgtype.Text        `json:"organization_name"`
	Branch                     pgtype.Text        `json:"branch"`
	LockUsername               pgtype.Text        `json:"lock_username"`
	CurrentStateVersionID      pgtype.Text        `json:"current_state_version_id"`
	TriggerPatterns            []string           `json:"trigger_patterns"`
	VCSTagsRegex               pgtype.Text        `json:"vcs_tags_regex"`
	AllowCLIApply              pgtype.Bool        `json:"allow_cli_apply"`
	AgentPoolID                pgtype.Text        `json:"agent_pool_id"`
	Tags                       []string           `json:"tags"`
	LatestRunStatus            pgtype.Text        `json:"latest_run_status"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	WorkspaceConnection        *RepoConnections   `json:"workspace_connection"`
}

type FindWorkspacesParams

type FindWorkspacesParams struct {
	Search            pgtype.Text `json:"search"`
	OrganizationNames []string    `json:"organization_names"`
	Tags              []string    `json:"tags"`
	Limit             pgtype.Int8 `json:"limit"`
	Offset            pgtype.Int8 `json:"offset"`
}

type FindWorkspacesRow

type FindWorkspacesRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           pgtype.Bool        `json:"allow_destroy_plan"`
	AutoApply                  pgtype.Bool        `json:"auto_apply"`
	CanQueueDestroyPlan        pgtype.Bool        `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	GlobalRemoteState          pgtype.Bool        `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               pgtype.Bool        `json:"queue_all_runs"`
	SpeculativeEnabled         pgtype.Bool        `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled pgtype.Bool        `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	OrganizationName           pgtype.Text        `json:"organization_name"`
	Branch                     pgtype.Text        `json:"branch"`
	LockUsername               pgtype.Text        `json:"lock_username"`
	CurrentStateVersionID      pgtype.Text        `json:"current_state_version_id"`
	TriggerPatterns            []string           `json:"trigger_patterns"`
	VCSTagsRegex               pgtype.Text        `json:"vcs_tags_regex"`
	AllowCLIApply              pgtype.Bool        `json:"allow_cli_apply"`
	AgentPoolID                pgtype.Text        `json:"agent_pool_id"`
	Tags                       []string           `json:"tags"`
	LatestRunStatus            pgtype.Text        `json:"latest_run_status"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	WorkspaceConnection        *RepoConnections   `json:"workspace_connection"`
}

type GetGPGKeyRow added in v0.9.0

type GetGPGKeyRow struct {
	ID               pgtype.Text        `json:"id"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	AsciiArmor       pgtype.Text        `json:"ascii_armor"`
	KeyID            pgtype.Text        `json:"key_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
}

type GithubAppInstalls

type GithubAppInstalls struct {
	GithubAppID   pgtype.Int8 `json:"github_app_id"`
	InstallID     pgtype.Int8 `json:"install_id"`
	Username      pgtype.Text `json:"username"`
	Organization  pgtype.Text `json:"organization"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
}

GithubAppInstalls represents the Postgres composite type "github_app_installs".

type GithubApps

type GithubApps struct {
	GithubAppID   pgtype.Int8 `json:"github_app_id"`
	WebhookSecret pgtype.Text `json:"webhook_secret"`
	PrivateKey    pgtype.Text `json:"private_key"`
	Slug          pgtype.Text `json:"slug"`
	Organization  pgtype.Text `json:"organization"`
}

GithubApps represents the Postgres composite type "github_apps".

type IngressAttributes

type IngressAttributes struct {
	Branch                 pgtype.Text `json:"branch"`
	CommitSHA              pgtype.Text `json:"commit_sha"`
	Identifier             pgtype.Text `json:"identifier"`
	IsPullRequest          pgtype.Bool `json:"is_pull_request"`
	OnDefaultBranch        pgtype.Bool `json:"on_default_branch"`
	ConfigurationVersionID pgtype.Text `json:"configuration_version_id"`
	CommitURL              pgtype.Text `json:"commit_url"`
	PullRequestNumber      pgtype.Int4 `json:"pull_request_number"`
	PullRequestURL         pgtype.Text `json:"pull_request_url"`
	PullRequestTitle       pgtype.Text `json:"pull_request_title"`
	Tag                    pgtype.Text `json:"tag"`
	SenderUsername         pgtype.Text `json:"sender_username"`
	SenderAvatarURL        pgtype.Text `json:"sender_avatar_url"`
	SenderHTMLURL          pgtype.Text `json:"sender_html_url"`
}

IngressAttributes represents the Postgres composite type "ingress_attributes".

type InsertAgentParams

type InsertAgentParams struct {
	AgentID      pgtype.Text        `json:"agent_id"`
	Name         pgtype.Text        `json:"name"`
	Version      pgtype.Text        `json:"version"`
	MaxJobs      pgtype.Int4        `json:"max_jobs"`
	IPAddress    net.IPNet          `json:"ip_address"`
	LastPingAt   pgtype.Timestamptz `json:"last_ping_at"`
	LastStatusAt pgtype.Timestamptz `json:"last_status_at"`
	Status       pgtype.Text        `json:"status"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
}

type InsertAgentPoolParams

type InsertAgentPoolParams struct {
	AgentPoolID        pgtype.Text        `json:"agent_pool_id"`
	Name               pgtype.Text        `json:"name"`
	CreatedAt          pgtype.Timestamptz `json:"created_at"`
	OrganizationName   pgtype.Text        `json:"organization_name"`
	OrganizationScoped pgtype.Bool        `json:"organization_scoped"`
}

type InsertAgentTokenParams

type InsertAgentTokenParams struct {
	AgentTokenID pgtype.Text        `json:"agent_token_id"`
	CreatedAt    pgtype.Timestamptz `json:"created_at"`
	Description  pgtype.Text        `json:"description"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
}

type InsertConfigurationVersionParams

type InsertConfigurationVersionParams struct {
	ID            pgtype.Text        `json:"id"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	AutoQueueRuns pgtype.Bool        `json:"auto_queue_runs"`
	Source        pgtype.Text        `json:"source"`
	Speculative   pgtype.Bool        `json:"speculative"`
	Status        pgtype.Text        `json:"status"`
	WorkspaceID   pgtype.Text        `json:"workspace_id"`
}

type InsertConfigurationVersionStatusTimestampParams

type InsertConfigurationVersionStatusTimestampParams struct {
	ID        pgtype.Text        `json:"id"`
	Status    pgtype.Text        `json:"status"`
	Timestamp pgtype.Timestamptz `json:"timestamp"`
}

type InsertConfigurationVersionStatusTimestampRow

type InsertConfigurationVersionStatusTimestampRow struct {
	ConfigurationVersionID pgtype.Text        `json:"configuration_version_id"`
	Status                 pgtype.Text        `json:"status"`
	Timestamp              pgtype.Timestamptz `json:"timestamp"`
}

type InsertGPGKeyParams added in v0.9.0

type InsertGPGKeyParams struct {
	ID               pgtype.Text        `json:"id"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	AsciiArmor       pgtype.Text        `json:"ascii_armor"`
	KeyID            pgtype.Text        `json:"key_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
}

type InsertGithubAppInstallParams

type InsertGithubAppInstallParams struct {
	GithubAppID   pgtype.Int8 `json:"github_app_id"`
	InstallID     pgtype.Int8 `json:"install_id"`
	Username      pgtype.Text `json:"username"`
	Organization  pgtype.Text `json:"organization"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
}

type InsertGithubAppParams

type InsertGithubAppParams struct {
	GithubAppID   pgtype.Int8 `json:"github_app_id"`
	WebhookSecret pgtype.Text `json:"webhook_secret"`
	PrivateKey    pgtype.Text `json:"private_key"`
	Slug          pgtype.Text `json:"slug"`
	Organization  pgtype.Text `json:"organization"`
}

type InsertIngressAttributesParams

type InsertIngressAttributesParams struct {
	Branch                 pgtype.Text `json:"branch"`
	CommitSHA              pgtype.Text `json:"commit_sha"`
	CommitURL              pgtype.Text `json:"commit_url"`
	PullRequestNumber      pgtype.Int4 `json:"pull_request_number"`
	PullRequestURL         pgtype.Text `json:"pull_request_url"`
	PullRequestTitle       pgtype.Text `json:"pull_request_title"`
	SenderUsername         pgtype.Text `json:"sender_username"`
	SenderAvatarURL        pgtype.Text `json:"sender_avatar_url"`
	SenderHTMLURL          pgtype.Text `json:"sender_html_url"`
	Identifier             pgtype.Text `json:"identifier"`
	Tag                    pgtype.Text `json:"tag"`
	IsPullRequest          pgtype.Bool `json:"is_pull_request"`
	OnDefaultBranch        pgtype.Bool `json:"on_default_branch"`
	ConfigurationVersionID pgtype.Text `json:"configuration_version_id"`
}

type InsertJobParams

type InsertJobParams struct {
	RunID  pgtype.Text `json:"run_id"`
	Phase  pgtype.Text `json:"phase"`
	Status pgtype.Text `json:"status"`
}

type InsertLogChunkParams

type InsertLogChunkParams struct {
	RunID  pgtype.Text `json:"run_id"`
	Phase  pgtype.Text `json:"phase"`
	Chunk  []byte      `json:"chunk"`
	Offset pgtype.Int4 `json:"offset"`
}

type InsertModuleParams

type InsertModuleParams struct {
	ID               pgtype.Text        `json:"id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
	Name             pgtype.Text        `json:"name"`
	Provider         pgtype.Text        `json:"provider"`
	Status           pgtype.Text        `json:"status"`
	OrganizationName pgtype.Text        `json:"organization_name"`
}

type InsertModuleVersionParams

type InsertModuleVersionParams struct {
	ModuleVersionID pgtype.Text        `json:"module_version_id"`
	Version         pgtype.Text        `json:"version"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	ModuleID        pgtype.Text        `json:"module_id"`
	Status          pgtype.Text        `json:"status"`
}

type InsertModuleVersionRow

type InsertModuleVersionRow struct {
	ModuleVersionID pgtype.Text        `json:"module_version_id"`
	Version         pgtype.Text        `json:"version"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	Status          pgtype.Text        `json:"status"`
	StatusError     pgtype.Text        `json:"status_error"`
	ModuleID        pgtype.Text        `json:"module_id"`
}

type InsertNotificationConfigurationParams

type InsertNotificationConfigurationParams struct {
	NotificationConfigurationID pgtype.Text        `json:"notification_configuration_id"`
	CreatedAt                   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                   pgtype.Timestamptz `json:"updated_at"`
	Name                        pgtype.Text        `json:"name"`
	URL                         pgtype.Text        `json:"url"`
	Triggers                    []string           `json:"triggers"`
	DestinationType             pgtype.Text        `json:"destination_type"`
	Enabled                     pgtype.Bool        `json:"enabled"`
	WorkspaceID                 pgtype.Text        `json:"workspace_id"`
}

type InsertOrganizationParams

type InsertOrganizationParams struct {
	ID                         pgtype.Text        `json:"id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	Name                       pgtype.Text        `json:"name"`
	Email                      pgtype.Text        `json:"email"`
	CollaboratorAuthPolicy     pgtype.Text        `json:"collaborator_auth_policy"`
	CostEstimationEnabled      pgtype.Bool        `json:"cost_estimation_enabled"`
	SessionRemember            pgtype.Int4        `json:"session_remember"`
	SessionTimeout             pgtype.Int4        `json:"session_timeout"`
	AllowForceDeleteWorkspaces pgtype.Bool        `json:"allow_force_delete_workspaces"`
}

type InsertPhaseStatusTimestampParams

type InsertPhaseStatusTimestampParams struct {
	RunID     pgtype.Text        `json:"run_id"`
	Phase     pgtype.Text        `json:"phase"`
	Status    pgtype.Text        `json:"status"`
	Timestamp pgtype.Timestamptz `json:"timestamp"`
}

type InsertRepoConnectionParams

type InsertRepoConnectionParams struct {
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
	RepoPath      pgtype.Text `json:"repo_path"`
	WorkspaceID   pgtype.Text `json:"workspace_id"`
	ModuleID      pgtype.Text `json:"module_id"`
}

type InsertRepohookParams

type InsertRepohookParams struct {
	RepohookID    pgtype.UUID `json:"repohook_id"`
	VCSID         pgtype.Text `json:"vcs_id"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
	Secret        pgtype.Text `json:"secret"`
	RepoPath      pgtype.Text `json:"repo_path"`
}

type InsertRepohookRow

type InsertRepohookRow struct {
	RepohookID    pgtype.UUID `json:"repohook_id"`
	VCSID         pgtype.Text `json:"vcs_id"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
	Secret        pgtype.Text `json:"secret"`
	RepoPath      pgtype.Text `json:"repo_path"`
	VCSKind       pgtype.Text `json:"vcs_kind"`
}

type InsertRunParams

type InsertRunParams struct {
	ID                     pgtype.Text        `json:"id"`
	CreatedAt              pgtype.Timestamptz `json:"created_at"`
	IsDestroy              pgtype.Bool        `json:"is_destroy"`
	PositionInQueue        pgtype.Int4        `json:"position_in_queue"`
	Refresh                pgtype.Bool        `json:"refresh"`
	RefreshOnly            pgtype.Bool        `json:"refresh_only"`
	Source                 pgtype.Text        `json:"source"`
	Status                 pgtype.Text        `json:"status"`
	ReplaceAddrs           []string           `json:"replace_addrs"`
	TargetAddrs            []string           `json:"target_addrs"`
	AutoApply              pgtype.Bool        `json:"auto_apply"`
	PlanOnly               pgtype.Bool        `json:"plan_only"`
	ConfigurationVersionID pgtype.Text        `json:"configuration_version_id"`
	WorkspaceID            pgtype.Text        `json:"workspace_id"`
	CreatedBy              pgtype.Text        `json:"created_by"`
	TerraformVersion       pgtype.Text        `json:"terraform_version"`
	AllowEmptyApply        pgtype.Bool        `json:"allow_empty_apply"`
}

type InsertRunStatusTimestampParams

type InsertRunStatusTimestampParams struct {
	ID        pgtype.Text        `json:"id"`
	Status    pgtype.Text        `json:"status"`
	Timestamp pgtype.Timestamptz `json:"timestamp"`
}

type InsertRunVariableParams

type InsertRunVariableParams struct {
	RunID pgtype.Text `json:"run_id"`
	Key   pgtype.Text `json:"key"`
	Value pgtype.Text `json:"value"`
}

type InsertStateVersionOutputParams

type InsertStateVersionOutputParams struct {
	ID             pgtype.Text `json:"id"`
	Name           pgtype.Text `json:"name"`
	Sensitive      pgtype.Bool `json:"sensitive"`
	Type           pgtype.Text `json:"type"`
	Value          []byte      `json:"value"`
	StateVersionID pgtype.Text `json:"state_version_id"`
}

type InsertStateVersionParams

type InsertStateVersionParams struct {
	ID          pgtype.Text        `json:"id"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	Serial      pgtype.Int4        `json:"serial"`
	State       []byte             `json:"state"`
	Status      pgtype.Text        `json:"status"`
	WorkspaceID pgtype.Text        `json:"workspace_id"`
}

type InsertTagParams

type InsertTagParams struct {
	TagID            pgtype.Text `json:"tag_id"`
	Name             pgtype.Text `json:"name"`
	OrganizationName pgtype.Text `json:"organization_name"`
}

type InsertTeamParams

type InsertTeamParams struct {
	ID                              pgtype.Text        `json:"id"`
	Name                            pgtype.Text        `json:"name"`
	CreatedAt                       pgtype.Timestamptz `json:"created_at"`
	OrganizationName                pgtype.Text        `json:"organization_name"`
	Visibility                      pgtype.Text        `json:"visibility"`
	SSOTeamID                       pgtype.Text        `json:"sso_team_id"`
	PermissionManageWorkspaces      pgtype.Bool        `json:"permission_manage_workspaces"`
	PermissionManageVCS             pgtype.Bool        `json:"permission_manage_vcs"`
	PermissionManageModules         pgtype.Bool        `json:"permission_manage_modules"`
	PermissionManageProviders       pgtype.Bool        `json:"permission_manage_providers"`
	PermissionManagePolicies        pgtype.Bool        `json:"permission_manage_policies"`
	PermissionManagePolicyOverrides pgtype.Bool        `json:"permission_manage_policy_overrides"`
}

type InsertTeamTokenParams

type InsertTeamTokenParams struct {
	TeamTokenID pgtype.Text        `json:"team_token_id"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	TeamID      pgtype.Text        `json:"team_id"`
	Expiry      pgtype.Timestamptz `json:"expiry"`
}

type InsertTokenParams

type InsertTokenParams struct {
	TokenID     pgtype.Text        `json:"token_id"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	Description pgtype.Text        `json:"description"`
	Username    pgtype.Text        `json:"username"`
}

type InsertUserParams

type InsertUserParams struct {
	ID        pgtype.Text        `json:"id"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
	Username  pgtype.Text        `json:"username"`
}

type InsertVCSProviderParams

type InsertVCSProviderParams struct {
	VCSProviderID    pgtype.Text        `json:"vcs_provider_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	Name             pgtype.Text        `json:"name"`
	VCSKind          pgtype.Text        `json:"vcs_kind"`
	Token            pgtype.Text        `json:"token"`
	GithubAppID      pgtype.Int8        `json:"github_app_id"`
	OrganizationName pgtype.Text        `json:"organization_name"`
}

type InsertVariableParams

type InsertVariableParams struct {
	VariableID  pgtype.Text `json:"variable_id"`
	Key         pgtype.Text `json:"key"`
	Value       pgtype.Text `json:"value"`
	Description pgtype.Text `json:"description"`
	Category    pgtype.Text `json:"category"`
	Sensitive   pgtype.Bool `json:"sensitive"`
	HCL         pgtype.Bool `json:"hcl"`
	VersionID   pgtype.Text `json:"version_id"`
}

type InsertVariableSetParams

type InsertVariableSetParams struct {
	VariableSetID    pgtype.Text `json:"variable_set_id"`
	Global           pgtype.Bool `json:"global"`
	Name             pgtype.Text `json:"name"`
	Description      pgtype.Text `json:"description"`
	OrganizationName pgtype.Text `json:"organization_name"`
}

type InsertWorkspaceParams

type InsertWorkspaceParams struct {
	ID                         pgtype.Text        `json:"id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AgentPoolID                pgtype.Text        `json:"agent_pool_id"`
	AllowCLIApply              pgtype.Bool        `json:"allow_cli_apply"`
	AllowDestroyPlan           pgtype.Bool        `json:"allow_destroy_plan"`
	AutoApply                  pgtype.Bool        `json:"auto_apply"`
	Branch                     pgtype.Text        `json:"branch"`
	CanQueueDestroyPlan        pgtype.Bool        `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	GlobalRemoteState          pgtype.Bool        `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               pgtype.Bool        `json:"queue_all_runs"`
	SpeculativeEnabled         pgtype.Bool        `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled pgtype.Bool        `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	TriggerPatterns            []string           `json:"trigger_patterns"`
	VCSTagsRegex               pgtype.Text        `json:"vcs_tags_regex"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	OrganizationName           pgtype.Text        `json:"organization_name"`
}

type ListGPGKeysRow added in v0.9.0

type ListGPGKeysRow struct {
	ID               pgtype.Text        `json:"id"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	AsciiArmor       pgtype.Text        `json:"ascii_armor"`
	KeyID            pgtype.Text        `json:"key_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
}

type ListModulesByOrganizationRow

type ListModulesByOrganizationRow struct {
	ModuleID         pgtype.Text        `json:"module_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
	Name             pgtype.Text        `json:"name"`
	Provider         pgtype.Text        `json:"provider"`
	Status           pgtype.Text        `json:"status"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	ModuleConnection *RepoConnections   `json:"module_connection"`
	Versions         []*ModuleVersions  `json:"versions"`
}

type ModuleVersions

type ModuleVersions struct {
	ModuleVersionID pgtype.Text        `json:"module_version_id"`
	Version         pgtype.Text        `json:"version"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	Status          pgtype.Text        `json:"status"`
	StatusError     pgtype.Text        `json:"status_error"`
	ModuleID        pgtype.Text        `json:"module_id"`
}

ModuleVersions represents the Postgres composite type "module_versions".

type PhaseStatusTimestamps

type PhaseStatusTimestamps struct {
	RunID     pgtype.Text        `json:"run_id"`
	Phase     pgtype.Text        `json:"phase"`
	Status    pgtype.Text        `json:"status"`
	Timestamp pgtype.Timestamptz `json:"timestamp"`
}

PhaseStatusTimestamps represents the Postgres composite type "phase_status_timestamps".

type Querier

type Querier interface {
	InsertAgent(ctx context.Context, params InsertAgentParams) (pgconn.CommandTag, error)

	UpdateAgent(ctx context.Context, params UpdateAgentParams) (UpdateAgentRow, error)

	FindAgents(ctx context.Context) ([]FindAgentsRow, error)

	FindAgentsByOrganization(ctx context.Context, organizationName pgtype.Text) ([]FindAgentsByOrganizationRow, error)

	FindAgentsByPoolID(ctx context.Context, agentPoolID pgtype.Text) ([]FindAgentsByPoolIDRow, error)

	FindServerAgents(ctx context.Context) ([]FindServerAgentsRow, error)

	FindAgentByID(ctx context.Context, agentID pgtype.Text) (FindAgentByIDRow, error)

	FindAgentByIDForUpdate(ctx context.Context, agentID pgtype.Text) (FindAgentByIDForUpdateRow, error)

	DeleteAgent(ctx context.Context, agentID pgtype.Text) (DeleteAgentRow, error)

	InsertAgentPool(ctx context.Context, params InsertAgentPoolParams) (pgconn.CommandTag, error)

	FindAgentPools(ctx context.Context) ([]FindAgentPoolsRow, error)

	// Find agent pools in an organization, optionally filtering by any combination of:
	// (a) name_substring: pool name contains substring
	// (b) allowed_workspace_name: workspace with name is allowed to use pool
	// (c) allowed_workspace_id: workspace with ID is allowed to use pool
	//
	FindAgentPoolsByOrganization(ctx context.Context, params FindAgentPoolsByOrganizationParams) ([]FindAgentPoolsByOrganizationRow, error)

	FindAgentPool(ctx context.Context, poolID pgtype.Text) (FindAgentPoolRow, error)

	FindAgentPoolByAgentTokenID(ctx context.Context, agentTokenID pgtype.Text) (FindAgentPoolByAgentTokenIDRow, error)

	UpdateAgentPool(ctx context.Context, params UpdateAgentPoolParams) (UpdateAgentPoolRow, error)

	DeleteAgentPool(ctx context.Context, poolID pgtype.Text) (DeleteAgentPoolRow, error)

	InsertAgentPoolAllowedWorkspace(ctx context.Context, poolID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

	DeleteAgentPoolAllowedWorkspace(ctx context.Context, poolID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

	InsertAgentToken(ctx context.Context, params InsertAgentTokenParams) (pgconn.CommandTag, error)

	FindAgentTokenByID(ctx context.Context, agentTokenID pgtype.Text) (FindAgentTokenByIDRow, error)

	FindAgentTokensByAgentPoolID(ctx context.Context, agentPoolID pgtype.Text) ([]FindAgentTokensByAgentPoolIDRow, error)

	DeleteAgentTokenByID(ctx context.Context, agentTokenID pgtype.Text) (pgtype.Text, error)

	InsertApply(ctx context.Context, runID pgtype.Text, status pgtype.Text) (pgconn.CommandTag, error)

	UpdateAppliedChangesByID(ctx context.Context, params UpdateAppliedChangesByIDParams) (pgtype.Text, error)

	UpdateApplyStatusByID(ctx context.Context, status pgtype.Text, runID pgtype.Text) (pgtype.Text, error)

	InsertConfigurationVersion(ctx context.Context, params InsertConfigurationVersionParams) (pgconn.CommandTag, error)

	InsertConfigurationVersionStatusTimestamp(ctx context.Context, params InsertConfigurationVersionStatusTimestampParams) (InsertConfigurationVersionStatusTimestampRow, error)

	// FindConfigurationVersions finds configuration_versions for a given workspace.
	// Results are paginated with limit and offset, and total count is returned.
	//
	FindConfigurationVersionsByWorkspaceID(ctx context.Context, params FindConfigurationVersionsByWorkspaceIDParams) ([]FindConfigurationVersionsByWorkspaceIDRow, error)

	CountConfigurationVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (pgtype.Int8, error)

	// FindConfigurationVersionByID finds a configuration_version by its id.
	//
	FindConfigurationVersionByID(ctx context.Context, configurationVersionID pgtype.Text) (FindConfigurationVersionByIDRow, error)

	FindConfigurationVersionLatestByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (FindConfigurationVersionLatestByWorkspaceIDRow, error)

	FindConfigurationVersionByIDForUpdate(ctx context.Context, configurationVersionID pgtype.Text) (FindConfigurationVersionByIDForUpdateRow, error)

	// DownloadConfigurationVersion gets a configuration_version config
	// tarball.
	//
	DownloadConfigurationVersion(ctx context.Context, configurationVersionID pgtype.Text) ([]byte, error)

	UpdateConfigurationVersionErroredByID(ctx context.Context, id pgtype.Text) (pgtype.Text, error)

	UpdateConfigurationVersionConfigByID(ctx context.Context, config []byte, id pgtype.Text) (pgtype.Text, error)

	DeleteConfigurationVersionByID(ctx context.Context, id pgtype.Text) (pgtype.Text, error)

	InsertGithubApp(ctx context.Context, params InsertGithubAppParams) (pgconn.CommandTag, error)

	FindGithubApp(ctx context.Context) (FindGithubAppRow, error)

	DeleteGithubApp(ctx context.Context, githubAppID pgtype.Int8) (DeleteGithubAppRow, error)

	InsertGithubAppInstall(ctx context.Context, params InsertGithubAppInstallParams) (pgconn.CommandTag, error)

	InsertGPGKey(ctx context.Context, params InsertGPGKeyParams) (pgconn.CommandTag, error)

	UpdateGPGKey(ctx context.Context, params UpdateGPGKeyParams) (pgconn.CommandTag, error)

	DeleteGPGKey(ctx context.Context, keyID pgtype.Text, organizationName pgtype.Text) (pgconn.CommandTag, error)

	ListGPGKeys(ctx context.Context, organizationNames []string) ([]ListGPGKeysRow, error)

	GetGPGKey(ctx context.Context, keyID pgtype.Text, organizationName pgtype.Text) (GetGPGKeyRow, error)

	InsertIngressAttributes(ctx context.Context, params InsertIngressAttributesParams) (pgconn.CommandTag, error)

	InsertJob(ctx context.Context, params InsertJobParams) (pgconn.CommandTag, error)

	FindJobs(ctx context.Context) ([]FindJobsRow, error)

	FindJob(ctx context.Context, runID pgtype.Text, phase pgtype.Text) (FindJobRow, error)

	FindJobForUpdate(ctx context.Context, runID pgtype.Text, phase pgtype.Text) (FindJobForUpdateRow, error)

	FindAllocatedJobs(ctx context.Context, agentID pgtype.Text) ([]FindAllocatedJobsRow, error)

	// Find signaled jobs and then immediately update signal with null.
	//
	FindAndUpdateSignaledJobs(ctx context.Context, agentID pgtype.Text) ([]FindAndUpdateSignaledJobsRow, error)

	UpdateJob(ctx context.Context, params UpdateJobParams) (UpdateJobRow, error)

	InsertModule(ctx context.Context, params InsertModuleParams) (pgconn.CommandTag, error)

	InsertModuleVersion(ctx context.Context, params InsertModuleVersionParams) (InsertModuleVersionRow, error)

	ListModulesByOrganization(ctx context.Context, organizationName pgtype.Text) ([]ListModulesByOrganizationRow, error)

	FindModuleByName(ctx context.Context, params FindModuleByNameParams) (FindModuleByNameRow, error)

	FindModuleByID(ctx context.Context, id pgtype.Text) (FindModuleByIDRow, error)

	FindModuleByConnection(ctx context.Context, vcsProviderID pgtype.Text, repoPath pgtype.Text) (FindModuleByConnectionRow, error)

	FindModuleByModuleVersionID(ctx context.Context, moduleVersionID pgtype.Text) (FindModuleByModuleVersionIDRow, error)

	UpdateModuleStatusByID(ctx context.Context, status pgtype.Text, moduleID pgtype.Text) (pgtype.Text, error)

	InsertModuleTarball(ctx context.Context, tarball []byte, moduleVersionID pgtype.Text) (pgtype.Text, error)

	FindModuleTarball(ctx context.Context, moduleVersionID pgtype.Text) ([]byte, error)

	UpdateModuleVersionStatusByID(ctx context.Context, params UpdateModuleVersionStatusByIDParams) (UpdateModuleVersionStatusByIDRow, error)

	DeleteModuleByID(ctx context.Context, moduleID pgtype.Text) (pgtype.Text, error)

	DeleteModuleVersionByID(ctx context.Context, moduleVersionID pgtype.Text) (pgtype.Text, error)

	InsertNotificationConfiguration(ctx context.Context, params InsertNotificationConfigurationParams) (pgconn.CommandTag, error)

	FindNotificationConfigurationsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) ([]FindNotificationConfigurationsByWorkspaceIDRow, error)

	FindAllNotificationConfigurations(ctx context.Context) ([]FindAllNotificationConfigurationsRow, error)

	FindNotificationConfiguration(ctx context.Context, notificationConfigurationID pgtype.Text) (FindNotificationConfigurationRow, error)

	FindNotificationConfigurationForUpdate(ctx context.Context, notificationConfigurationID pgtype.Text) (FindNotificationConfigurationForUpdateRow, error)

	UpdateNotificationConfigurationByID(ctx context.Context, params UpdateNotificationConfigurationByIDParams) (pgtype.Text, error)

	DeleteNotificationConfigurationByID(ctx context.Context, notificationConfigurationID pgtype.Text) (pgtype.Text, error)

	InsertOrganization(ctx context.Context, params InsertOrganizationParams) (pgconn.CommandTag, error)

	FindOrganizationNameByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (pgtype.Text, error)

	FindOrganizationByName(ctx context.Context, name pgtype.Text) (FindOrganizationByNameRow, error)

	FindOrganizationByID(ctx context.Context, organizationID pgtype.Text) (FindOrganizationByIDRow, error)

	FindOrganizationByNameForUpdate(ctx context.Context, name pgtype.Text) (FindOrganizationByNameForUpdateRow, error)

	FindOrganizations(ctx context.Context, params FindOrganizationsParams) ([]FindOrganizationsRow, error)

	CountOrganizations(ctx context.Context, names []string) (pgtype.Int8, error)

	UpdateOrganizationByName(ctx context.Context, params UpdateOrganizationByNameParams) (pgtype.Text, error)

	DeleteOrganizationByName(ctx context.Context, name pgtype.Text) (pgtype.Text, error)

	UpsertOrganizationToken(ctx context.Context, params UpsertOrganizationTokenParams) (pgconn.CommandTag, error)

	FindOrganizationTokens(ctx context.Context, organizationName pgtype.Text) ([]FindOrganizationTokensRow, error)

	FindOrganizationTokensByName(ctx context.Context, organizationName pgtype.Text) (FindOrganizationTokensByNameRow, error)

	FindOrganizationTokensByID(ctx context.Context, organizationTokenID pgtype.Text) (FindOrganizationTokensByIDRow, error)

	DeleteOrganiationTokenByName(ctx context.Context, organizationName pgtype.Text) (pgtype.Text, error)

	InsertPhaseStatusTimestamp(ctx context.Context, params InsertPhaseStatusTimestampParams) (pgconn.CommandTag, error)

	InsertLogChunk(ctx context.Context, params InsertLogChunkParams) (pgtype.Int4, error)

	// FindLogs retrieves all the logs for the given run and phase.
	//
	FindLogs(ctx context.Context, runID pgtype.Text, phase pgtype.Text) ([]byte, error)

	FindLogChunkByID(ctx context.Context, chunkID pgtype.Int4) (FindLogChunkByIDRow, error)

	InsertPlan(ctx context.Context, runID pgtype.Text, status pgtype.Text) (pgconn.CommandTag, error)

	UpdatePlanStatusByID(ctx context.Context, status pgtype.Text, runID pgtype.Text) (pgtype.Text, error)

	UpdatePlannedChangesByID(ctx context.Context, params UpdatePlannedChangesByIDParams) (pgtype.Text, error)

	GetPlanBinByID(ctx context.Context, runID pgtype.Text) ([]byte, error)

	GetPlanJSONByID(ctx context.Context, runID pgtype.Text) ([]byte, error)

	UpdatePlanBinByID(ctx context.Context, planBin []byte, runID pgtype.Text) (pgtype.Text, error)

	UpdatePlanJSONByID(ctx context.Context, planJSON []byte, runID pgtype.Text) (pgtype.Text, error)

	InsertLatestTerraformVersion(ctx context.Context, version pgtype.Text) (pgconn.CommandTag, error)

	UpdateLatestTerraformVersion(ctx context.Context, version pgtype.Text) (pgconn.CommandTag, error)

	FindLatestTerraformVersion(ctx context.Context) ([]FindLatestTerraformVersionRow, error)

	InsertRepoConnection(ctx context.Context, params InsertRepoConnectionParams) (pgconn.CommandTag, error)

	DeleteWorkspaceConnectionByID(ctx context.Context, workspaceID pgtype.Text) (DeleteWorkspaceConnectionByIDRow, error)

	DeleteModuleConnectionByID(ctx context.Context, moduleID pgtype.Text) (DeleteModuleConnectionByIDRow, error)

	InsertRepohook(ctx context.Context, params InsertRepohookParams) (InsertRepohookRow, error)

	UpdateRepohookVCSID(ctx context.Context, vcsID pgtype.Text, repohookID pgtype.UUID) (UpdateRepohookVCSIDRow, error)

	FindRepohooks(ctx context.Context) ([]FindRepohooksRow, error)

	FindRepohookByID(ctx context.Context, repohookID pgtype.UUID) (FindRepohookByIDRow, error)

	FindRepohookByRepoAndProvider(ctx context.Context, repoPath pgtype.Text, vcsProviderID pgtype.Text) ([]FindRepohookByRepoAndProviderRow, error)

	FindUnreferencedRepohooks(ctx context.Context) ([]FindUnreferencedRepohooksRow, error)

	DeleteRepohookByID(ctx context.Context, repohookID pgtype.UUID) (DeleteRepohookByIDRow, error)

	InsertRun(ctx context.Context, params InsertRunParams) (pgconn.CommandTag, error)

	InsertRunStatusTimestamp(ctx context.Context, params InsertRunStatusTimestampParams) (pgconn.CommandTag, error)

	InsertRunVariable(ctx context.Context, params InsertRunVariableParams) (pgconn.CommandTag, error)

	FindRuns(ctx context.Context, params FindRunsParams) ([]FindRunsRow, error)

	CountRuns(ctx context.Context, params CountRunsParams) (pgtype.Int8, error)

	FindRunByID(ctx context.Context, runID pgtype.Text) (FindRunByIDRow, error)

	FindRunByIDForUpdate(ctx context.Context, runID pgtype.Text) (FindRunByIDForUpdateRow, error)

	PutLockFile(ctx context.Context, lockFile []byte, runID pgtype.Text) (pgtype.Text, error)

	GetLockFileByID(ctx context.Context, runID pgtype.Text) ([]byte, error)

	UpdateRunStatus(ctx context.Context, status pgtype.Text, id pgtype.Text) (pgtype.Text, error)

	UpdateCancelSignaledAt(ctx context.Context, cancelSignaledAt pgtype.Timestamptz, id pgtype.Text) (pgtype.Text, error)

	DeleteRunByID(ctx context.Context, runID pgtype.Text) (pgtype.Text, error)

	InsertStateVersion(ctx context.Context, params InsertStateVersionParams) (pgconn.CommandTag, error)

	UpdateState(ctx context.Context, state []byte, stateVersionID pgtype.Text) (pgconn.CommandTag, error)

	DiscardPendingStateVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (pgconn.CommandTag, error)

	FindStateVersionsByWorkspaceID(ctx context.Context, params FindStateVersionsByWorkspaceIDParams) ([]FindStateVersionsByWorkspaceIDRow, error)

	CountStateVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (pgtype.Int8, error)

	FindStateVersionByID(ctx context.Context, id pgtype.Text) (FindStateVersionByIDRow, error)

	FindStateVersionByIDForUpdate(ctx context.Context, id pgtype.Text) (FindStateVersionByIDForUpdateRow, error)

	FindCurrentStateVersionByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (FindCurrentStateVersionByWorkspaceIDRow, error)

	FindStateVersionStateByID(ctx context.Context, id pgtype.Text) ([]byte, error)

	DeleteStateVersionByID(ctx context.Context, stateVersionID pgtype.Text) (pgtype.Text, error)

	InsertStateVersionOutput(ctx context.Context, params InsertStateVersionOutputParams) (pgconn.CommandTag, error)

	FindStateVersionOutputByID(ctx context.Context, id pgtype.Text) (FindStateVersionOutputByIDRow, error)

	InsertTag(ctx context.Context, params InsertTagParams) (pgconn.CommandTag, error)

	InsertWorkspaceTag(ctx context.Context, tagID pgtype.Text, workspaceID pgtype.Text) (pgtype.Text, error)

	InsertWorkspaceTagByName(ctx context.Context, workspaceID pgtype.Text, tagName pgtype.Text) (pgtype.Text, error)

	FindTags(ctx context.Context, params FindTagsParams) ([]FindTagsRow, error)

	FindWorkspaceTags(ctx context.Context, params FindWorkspaceTagsParams) ([]FindWorkspaceTagsRow, error)

	FindTagByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindTagByNameRow, error)

	FindTagByID(ctx context.Context, tagID pgtype.Text, organizationName pgtype.Text) (FindTagByIDRow, error)

	CountTags(ctx context.Context, organizationName pgtype.Text) (pgtype.Int8, error)

	CountWorkspaceTags(ctx context.Context, workspaceID pgtype.Text) (pgtype.Int8, error)

	DeleteTag(ctx context.Context, tagID pgtype.Text, organizationName pgtype.Text) (pgtype.Text, error)

	DeleteWorkspaceTag(ctx context.Context, workspaceID pgtype.Text, tagID pgtype.Text) (pgtype.Text, error)

	InsertTeam(ctx context.Context, params InsertTeamParams) (pgconn.CommandTag, error)

	FindTeamsByOrg(ctx context.Context, organizationName pgtype.Text) ([]FindTeamsByOrgRow, error)

	FindTeamByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindTeamByNameRow, error)

	FindTeamByID(ctx context.Context, teamID pgtype.Text) (FindTeamByIDRow, error)

	FindTeamByTokenID(ctx context.Context, tokenID pgtype.Text) (FindTeamByTokenIDRow, error)

	FindTeamByIDForUpdate(ctx context.Context, teamID pgtype.Text) (FindTeamByIDForUpdateRow, error)

	UpdateTeamByID(ctx context.Context, params UpdateTeamByIDParams) (pgtype.Text, error)

	DeleteTeamByID(ctx context.Context, teamID pgtype.Text) (pgtype.Text, error)

	InsertTeamMembership(ctx context.Context, usernames []string, teamID pgtype.Text) ([]pgtype.Text, error)

	DeleteTeamMembership(ctx context.Context, usernames []string, teamID pgtype.Text) ([]pgtype.Text, error)

	InsertTeamToken(ctx context.Context, params InsertTeamTokenParams) (pgconn.CommandTag, error)

	FindTeamTokensByID(ctx context.Context, teamID pgtype.Text) ([]FindTeamTokensByIDRow, error)

	DeleteTeamTokenByID(ctx context.Context, teamID pgtype.Text) (pgtype.Text, error)

	InsertToken(ctx context.Context, params InsertTokenParams) (pgconn.CommandTag, error)

	FindTokensByUsername(ctx context.Context, username pgtype.Text) ([]FindTokensByUsernameRow, error)

	FindTokenByID(ctx context.Context, tokenID pgtype.Text) (FindTokenByIDRow, error)

	DeleteTokenByID(ctx context.Context, tokenID pgtype.Text) (pgtype.Text, error)

	InsertUser(ctx context.Context, params InsertUserParams) (pgconn.CommandTag, error)

	FindUsers(ctx context.Context) ([]FindUsersRow, error)

	FindUsersByOrganization(ctx context.Context, organizationName pgtype.Text) ([]FindUsersByOrganizationRow, error)

	FindUsersByTeamID(ctx context.Context, teamID pgtype.Text) ([]FindUsersByTeamIDRow, error)

	FindUserByID(ctx context.Context, userID pgtype.Text) (FindUserByIDRow, error)

	FindUserByUsername(ctx context.Context, username pgtype.Text) (FindUserByUsernameRow, error)

	FindUserByAuthenticationTokenID(ctx context.Context, tokenID pgtype.Text) (FindUserByAuthenticationTokenIDRow, error)

	UpdateUserSiteAdmins(ctx context.Context, usernames []string) ([]pgtype.Text, error)

	ResetUserSiteAdmins(ctx context.Context) ([]pgtype.Text, error)

	DeleteUserByID(ctx context.Context, userID pgtype.Text) (pgtype.Text, error)

	DeleteUserByUsername(ctx context.Context, username pgtype.Text) (pgtype.Text, error)

	InsertVariable(ctx context.Context, params InsertVariableParams) (pgconn.CommandTag, error)

	FindVariable(ctx context.Context, variableID pgtype.Text) (FindVariableRow, error)

	UpdateVariableByID(ctx context.Context, params UpdateVariableByIDParams) (pgtype.Text, error)

	DeleteVariableByID(ctx context.Context, variableID pgtype.Text) (DeleteVariableByIDRow, error)

	InsertVariableSet(ctx context.Context, params InsertVariableSetParams) (pgconn.CommandTag, error)

	FindVariableSetsByOrganization(ctx context.Context, organizationName pgtype.Text) ([]FindVariableSetsByOrganizationRow, error)

	FindVariableSetsByWorkspace(ctx context.Context, workspaceID pgtype.Text) ([]FindVariableSetsByWorkspaceRow, error)

	FindVariableSetBySetID(ctx context.Context, variableSetID pgtype.Text) (FindVariableSetBySetIDRow, error)

	FindVariableSetByVariableID(ctx context.Context, variableID pgtype.Text) (FindVariableSetByVariableIDRow, error)

	FindVariableSetForUpdate(ctx context.Context, variableSetID pgtype.Text) (FindVariableSetForUpdateRow, error)

	UpdateVariableSetByID(ctx context.Context, params UpdateVariableSetByIDParams) (pgtype.Text, error)

	DeleteVariableSetByID(ctx context.Context, variableSetID pgtype.Text) (DeleteVariableSetByIDRow, error)

	InsertVariableSetVariable(ctx context.Context, variableSetID pgtype.Text, variableID pgtype.Text) (pgconn.CommandTag, error)

	DeleteVariableSetVariable(ctx context.Context, variableSetID pgtype.Text, variableID pgtype.Text) (DeleteVariableSetVariableRow, error)

	InsertVariableSetWorkspace(ctx context.Context, variableSetID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

	DeleteVariableSetWorkspace(ctx context.Context, variableSetID pgtype.Text, workspaceID pgtype.Text) (DeleteVariableSetWorkspaceRow, error)

	DeleteVariableSetWorkspaces(ctx context.Context, variableSetID pgtype.Text) (pgconn.CommandTag, error)

	InsertVCSProvider(ctx context.Context, params InsertVCSProviderParams) (pgconn.CommandTag, error)

	FindVCSProvidersByOrganization(ctx context.Context, organizationName pgtype.Text) ([]FindVCSProvidersByOrganizationRow, error)

	FindVCSProviders(ctx context.Context) ([]FindVCSProvidersRow, error)

	FindVCSProvidersByGithubAppInstallID(ctx context.Context, installID pgtype.Int8) ([]FindVCSProvidersByGithubAppInstallIDRow, error)

	FindVCSProvider(ctx context.Context, vcsProviderID pgtype.Text) (FindVCSProviderRow, error)

	FindVCSProviderForUpdate(ctx context.Context, vcsProviderID pgtype.Text) (FindVCSProviderForUpdateRow, error)

	UpdateVCSProvider(ctx context.Context, params UpdateVCSProviderParams) (UpdateVCSProviderRow, error)

	DeleteVCSProviderByID(ctx context.Context, vcsProviderID pgtype.Text) (pgtype.Text, error)

	InsertWorkspace(ctx context.Context, params InsertWorkspaceParams) (pgconn.CommandTag, error)

	FindWorkspaces(ctx context.Context, params FindWorkspacesParams) ([]FindWorkspacesRow, error)

	CountWorkspaces(ctx context.Context, params CountWorkspacesParams) (pgtype.Int8, error)

	FindWorkspacesByConnection(ctx context.Context, vcsProviderID pgtype.Text, repoPath pgtype.Text) ([]FindWorkspacesByConnectionRow, error)

	FindWorkspacesByUsername(ctx context.Context, params FindWorkspacesByUsernameParams) ([]FindWorkspacesByUsernameRow, error)

	CountWorkspacesByUsername(ctx context.Context, organizationName pgtype.Text, username pgtype.Text) (pgtype.Int8, error)

	FindWorkspaceByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindWorkspaceByNameRow, error)

	FindWorkspaceByID(ctx context.Context, id pgtype.Text) (FindWorkspaceByIDRow, error)

	FindWorkspaceByIDForUpdate(ctx context.Context, id pgtype.Text) (FindWorkspaceByIDForUpdateRow, error)

	UpdateWorkspaceByID(ctx context.Context, params UpdateWorkspaceByIDParams) (pgtype.Text, error)

	UpdateWorkspaceLockByID(ctx context.Context, params UpdateWorkspaceLockByIDParams) (pgconn.CommandTag, error)

	UpdateWorkspaceLatestRun(ctx context.Context, runID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

	UpdateWorkspaceCurrentStateVersionID(ctx context.Context, stateVersionID pgtype.Text, workspaceID pgtype.Text) (pgtype.Text, error)

	DeleteWorkspaceByID(ctx context.Context, workspaceID pgtype.Text) (pgconn.CommandTag, error)

	UpsertWorkspacePermission(ctx context.Context, params UpsertWorkspacePermissionParams) (pgconn.CommandTag, error)

	FindWorkspacePermissionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) ([]FindWorkspacePermissionsByWorkspaceIDRow, error)

	DeleteWorkspacePermissionByID(ctx context.Context, workspaceID pgtype.Text, teamID pgtype.Text) (pgconn.CommandTag, error)

	InsertWorkspaceVariable(ctx context.Context, variableID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

	FindWorkspaceVariablesByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) ([]FindWorkspaceVariablesByWorkspaceIDRow, error)

	FindWorkspaceVariableByVariableID(ctx context.Context, variableID pgtype.Text) (FindWorkspaceVariableByVariableIDRow, error)

	DeleteWorkspaceVariableByID(ctx context.Context, variableID pgtype.Text) (DeleteWorkspaceVariableByIDRow, error)
}

Querier is a typesafe Go interface backed by SQL queries.

type QuerierWithTracing added in v0.10.0

type QuerierWithTracing struct {
	Querier
	// contains filtered or unexported fields
}

QuerierWithTracing implements Querier interface instrumented with opentracing spans

func NewQuerierWithTracing added in v0.10.0

func NewQuerierWithTracing(base Querier, instance string, spanDecorator ...func(span trace.Span, params, results map[string]interface{})) QuerierWithTracing

NewQuerierWithTracing returns QuerierWithTracing

func (QuerierWithTracing) CountConfigurationVersionsByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) CountConfigurationVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (i1 pgtype.Int8, err error)

CountConfigurationVersionsByWorkspaceID implements Querier

func (QuerierWithTracing) CountOrganizations added in v0.10.0

func (_d QuerierWithTracing) CountOrganizations(ctx context.Context, names []string) (i1 pgtype.Int8, err error)

CountOrganizations implements Querier

func (QuerierWithTracing) CountRuns added in v0.10.0

func (_d QuerierWithTracing) CountRuns(ctx context.Context, params CountRunsParams) (i1 pgtype.Int8, err error)

CountRuns implements Querier

func (QuerierWithTracing) CountStateVersionsByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) CountStateVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (i1 pgtype.Int8, err error)

CountStateVersionsByWorkspaceID implements Querier

func (QuerierWithTracing) CountTags added in v0.10.0

func (_d QuerierWithTracing) CountTags(ctx context.Context, organizationName pgtype.Text) (i1 pgtype.Int8, err error)

CountTags implements Querier

func (QuerierWithTracing) CountWorkspaceTags added in v0.10.0

func (_d QuerierWithTracing) CountWorkspaceTags(ctx context.Context, workspaceID pgtype.Text) (i1 pgtype.Int8, err error)

CountWorkspaceTags implements Querier

func (QuerierWithTracing) CountWorkspaces added in v0.10.0

func (_d QuerierWithTracing) CountWorkspaces(ctx context.Context, params CountWorkspacesParams) (i1 pgtype.Int8, err error)

CountWorkspaces implements Querier

func (QuerierWithTracing) CountWorkspacesByUsername added in v0.10.0

func (_d QuerierWithTracing) CountWorkspacesByUsername(ctx context.Context, organizationName pgtype.Text, username pgtype.Text) (i1 pgtype.Int8, err error)

CountWorkspacesByUsername implements Querier

func (QuerierWithTracing) DeleteAgent added in v0.10.0

func (_d QuerierWithTracing) DeleteAgent(ctx context.Context, agentID pgtype.Text) (d1 DeleteAgentRow, err error)

DeleteAgent implements Querier

func (QuerierWithTracing) DeleteAgentPool added in v0.10.0

func (_d QuerierWithTracing) DeleteAgentPool(ctx context.Context, poolID pgtype.Text) (d1 DeleteAgentPoolRow, err error)

DeleteAgentPool implements Querier

func (QuerierWithTracing) DeleteAgentPoolAllowedWorkspace added in v0.10.0

func (_d QuerierWithTracing) DeleteAgentPoolAllowedWorkspace(ctx context.Context, poolID pgtype.Text, workspaceID pgtype.Text) (c2 pgconn.CommandTag, err error)

DeleteAgentPoolAllowedWorkspace implements Querier

func (QuerierWithTracing) DeleteAgentTokenByID added in v0.10.0

func (_d QuerierWithTracing) DeleteAgentTokenByID(ctx context.Context, agentTokenID pgtype.Text) (t1 pgtype.Text, err error)

DeleteAgentTokenByID implements Querier

func (QuerierWithTracing) DeleteConfigurationVersionByID added in v0.10.0

func (_d QuerierWithTracing) DeleteConfigurationVersionByID(ctx context.Context, id pgtype.Text) (t1 pgtype.Text, err error)

DeleteConfigurationVersionByID implements Querier

func (QuerierWithTracing) DeleteGPGKey added in v0.10.0

func (_d QuerierWithTracing) DeleteGPGKey(ctx context.Context, keyID pgtype.Text, organizationName pgtype.Text) (c2 pgconn.CommandTag, err error)

DeleteGPGKey implements Querier

func (QuerierWithTracing) DeleteGithubApp added in v0.10.0

func (_d QuerierWithTracing) DeleteGithubApp(ctx context.Context, githubAppID pgtype.Int8) (d1 DeleteGithubAppRow, err error)

DeleteGithubApp implements Querier

func (QuerierWithTracing) DeleteModuleByID added in v0.10.0

func (_d QuerierWithTracing) DeleteModuleByID(ctx context.Context, moduleID pgtype.Text) (t1 pgtype.Text, err error)

DeleteModuleByID implements Querier

func (QuerierWithTracing) DeleteModuleConnectionByID added in v0.10.0

func (_d QuerierWithTracing) DeleteModuleConnectionByID(ctx context.Context, moduleID pgtype.Text) (d1 DeleteModuleConnectionByIDRow, err error)

DeleteModuleConnectionByID implements Querier

func (QuerierWithTracing) DeleteModuleVersionByID added in v0.10.0

func (_d QuerierWithTracing) DeleteModuleVersionByID(ctx context.Context, moduleVersionID pgtype.Text) (t1 pgtype.Text, err error)

DeleteModuleVersionByID implements Querier

func (QuerierWithTracing) DeleteNotificationConfigurationByID added in v0.10.0

func (_d QuerierWithTracing) DeleteNotificationConfigurationByID(ctx context.Context, notificationConfigurationID pgtype.Text) (t1 pgtype.Text, err error)

DeleteNotificationConfigurationByID implements Querier

func (QuerierWithTracing) DeleteOrganiationTokenByName added in v0.10.0

func (_d QuerierWithTracing) DeleteOrganiationTokenByName(ctx context.Context, organizationName pgtype.Text) (t1 pgtype.Text, err error)

DeleteOrganiationTokenByName implements Querier

func (QuerierWithTracing) DeleteOrganizationByName added in v0.10.0

func (_d QuerierWithTracing) DeleteOrganizationByName(ctx context.Context, name pgtype.Text) (t1 pgtype.Text, err error)

DeleteOrganizationByName implements Querier

func (QuerierWithTracing) DeleteRepohookByID added in v0.10.0

func (_d QuerierWithTracing) DeleteRepohookByID(ctx context.Context, repohookID pgtype.UUID) (d1 DeleteRepohookByIDRow, err error)

DeleteRepohookByID implements Querier

func (QuerierWithTracing) DeleteRunByID added in v0.10.0

func (_d QuerierWithTracing) DeleteRunByID(ctx context.Context, runID pgtype.Text) (t1 pgtype.Text, err error)

DeleteRunByID implements Querier

func (QuerierWithTracing) DeleteStateVersionByID added in v0.10.0

func (_d QuerierWithTracing) DeleteStateVersionByID(ctx context.Context, stateVersionID pgtype.Text) (t1 pgtype.Text, err error)

DeleteStateVersionByID implements Querier

func (QuerierWithTracing) DeleteTag added in v0.10.0

func (_d QuerierWithTracing) DeleteTag(ctx context.Context, tagID pgtype.Text, organizationName pgtype.Text) (t1 pgtype.Text, err error)

DeleteTag implements Querier

func (QuerierWithTracing) DeleteTeamByID added in v0.10.0

func (_d QuerierWithTracing) DeleteTeamByID(ctx context.Context, teamID pgtype.Text) (t1 pgtype.Text, err error)

DeleteTeamByID implements Querier

func (QuerierWithTracing) DeleteTeamMembership added in v0.10.0

func (_d QuerierWithTracing) DeleteTeamMembership(ctx context.Context, usernames []string, teamID pgtype.Text) (ta1 []pgtype.Text, err error)

DeleteTeamMembership implements Querier

func (QuerierWithTracing) DeleteTeamTokenByID added in v0.10.0

func (_d QuerierWithTracing) DeleteTeamTokenByID(ctx context.Context, teamID pgtype.Text) (t1 pgtype.Text, err error)

DeleteTeamTokenByID implements Querier

func (QuerierWithTracing) DeleteTokenByID added in v0.10.0

func (_d QuerierWithTracing) DeleteTokenByID(ctx context.Context, tokenID pgtype.Text) (t1 pgtype.Text, err error)

DeleteTokenByID implements Querier

func (QuerierWithTracing) DeleteUserByID added in v0.10.0

func (_d QuerierWithTracing) DeleteUserByID(ctx context.Context, userID pgtype.Text) (t1 pgtype.Text, err error)

DeleteUserByID implements Querier

func (QuerierWithTracing) DeleteUserByUsername added in v0.10.0

func (_d QuerierWithTracing) DeleteUserByUsername(ctx context.Context, username pgtype.Text) (t1 pgtype.Text, err error)

DeleteUserByUsername implements Querier

func (QuerierWithTracing) DeleteVCSProviderByID added in v0.10.0

func (_d QuerierWithTracing) DeleteVCSProviderByID(ctx context.Context, vcsProviderID pgtype.Text) (t1 pgtype.Text, err error)

DeleteVCSProviderByID implements Querier

func (QuerierWithTracing) DeleteVariableByID added in v0.10.0

func (_d QuerierWithTracing) DeleteVariableByID(ctx context.Context, variableID pgtype.Text) (d1 DeleteVariableByIDRow, err error)

DeleteVariableByID implements Querier

func (QuerierWithTracing) DeleteVariableSetByID added in v0.10.0

func (_d QuerierWithTracing) DeleteVariableSetByID(ctx context.Context, variableSetID pgtype.Text) (d1 DeleteVariableSetByIDRow, err error)

DeleteVariableSetByID implements Querier

func (QuerierWithTracing) DeleteVariableSetVariable added in v0.10.0

func (_d QuerierWithTracing) DeleteVariableSetVariable(ctx context.Context, variableSetID pgtype.Text, variableID pgtype.Text) (d1 DeleteVariableSetVariableRow, err error)

DeleteVariableSetVariable implements Querier

func (QuerierWithTracing) DeleteVariableSetWorkspace added in v0.10.0

func (_d QuerierWithTracing) DeleteVariableSetWorkspace(ctx context.Context, variableSetID pgtype.Text, workspaceID pgtype.Text) (d1 DeleteVariableSetWorkspaceRow, err error)

DeleteVariableSetWorkspace implements Querier

func (QuerierWithTracing) DeleteVariableSetWorkspaces added in v0.10.0

func (_d QuerierWithTracing) DeleteVariableSetWorkspaces(ctx context.Context, variableSetID pgtype.Text) (c2 pgconn.CommandTag, err error)

DeleteVariableSetWorkspaces implements Querier

func (QuerierWithTracing) DeleteWorkspaceByID added in v0.10.0

func (_d QuerierWithTracing) DeleteWorkspaceByID(ctx context.Context, workspaceID pgtype.Text) (c2 pgconn.CommandTag, err error)

DeleteWorkspaceByID implements Querier

func (QuerierWithTracing) DeleteWorkspaceConnectionByID added in v0.10.0

func (_d QuerierWithTracing) DeleteWorkspaceConnectionByID(ctx context.Context, workspaceID pgtype.Text) (d1 DeleteWorkspaceConnectionByIDRow, err error)

DeleteWorkspaceConnectionByID implements Querier

func (QuerierWithTracing) DeleteWorkspacePermissionByID added in v0.10.0

func (_d QuerierWithTracing) DeleteWorkspacePermissionByID(ctx context.Context, workspaceID pgtype.Text, teamID pgtype.Text) (c2 pgconn.CommandTag, err error)

DeleteWorkspacePermissionByID implements Querier

func (QuerierWithTracing) DeleteWorkspaceTag added in v0.10.0

func (_d QuerierWithTracing) DeleteWorkspaceTag(ctx context.Context, workspaceID pgtype.Text, tagID pgtype.Text) (t1 pgtype.Text, err error)

DeleteWorkspaceTag implements Querier

func (QuerierWithTracing) DeleteWorkspaceVariableByID added in v0.10.0

func (_d QuerierWithTracing) DeleteWorkspaceVariableByID(ctx context.Context, variableID pgtype.Text) (d1 DeleteWorkspaceVariableByIDRow, err error)

DeleteWorkspaceVariableByID implements Querier

func (QuerierWithTracing) DiscardPendingStateVersionsByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) DiscardPendingStateVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (c2 pgconn.CommandTag, err error)

DiscardPendingStateVersionsByWorkspaceID implements Querier

func (QuerierWithTracing) DownloadConfigurationVersion added in v0.10.0

func (_d QuerierWithTracing) DownloadConfigurationVersion(ctx context.Context, configurationVersionID pgtype.Text) (ba1 []byte, err error)

DownloadConfigurationVersion implements Querier

func (QuerierWithTracing) FindAgentByID added in v0.10.0

func (_d QuerierWithTracing) FindAgentByID(ctx context.Context, agentID pgtype.Text) (f1 FindAgentByIDRow, err error)

FindAgentByID implements Querier

func (QuerierWithTracing) FindAgentByIDForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindAgentByIDForUpdate(ctx context.Context, agentID pgtype.Text) (f1 FindAgentByIDForUpdateRow, err error)

FindAgentByIDForUpdate implements Querier

func (QuerierWithTracing) FindAgentPool added in v0.10.0

func (_d QuerierWithTracing) FindAgentPool(ctx context.Context, poolID pgtype.Text) (f1 FindAgentPoolRow, err error)

FindAgentPool implements Querier

func (QuerierWithTracing) FindAgentPoolByAgentTokenID added in v0.10.0

func (_d QuerierWithTracing) FindAgentPoolByAgentTokenID(ctx context.Context, agentTokenID pgtype.Text) (f1 FindAgentPoolByAgentTokenIDRow, err error)

FindAgentPoolByAgentTokenID implements Querier

func (QuerierWithTracing) FindAgentPools added in v0.10.0

func (_d QuerierWithTracing) FindAgentPools(ctx context.Context) (fa1 []FindAgentPoolsRow, err error)

FindAgentPools implements Querier

func (QuerierWithTracing) FindAgentPoolsByOrganization added in v0.10.0

func (_d QuerierWithTracing) FindAgentPoolsByOrganization(ctx context.Context, params FindAgentPoolsByOrganizationParams) (fa1 []FindAgentPoolsByOrganizationRow, err error)

FindAgentPoolsByOrganization implements Querier

func (QuerierWithTracing) FindAgentTokenByID added in v0.10.0

func (_d QuerierWithTracing) FindAgentTokenByID(ctx context.Context, agentTokenID pgtype.Text) (f1 FindAgentTokenByIDRow, err error)

FindAgentTokenByID implements Querier

func (QuerierWithTracing) FindAgentTokensByAgentPoolID added in v0.10.0

func (_d QuerierWithTracing) FindAgentTokensByAgentPoolID(ctx context.Context, agentPoolID pgtype.Text) (fa1 []FindAgentTokensByAgentPoolIDRow, err error)

FindAgentTokensByAgentPoolID implements Querier

func (QuerierWithTracing) FindAgents added in v0.10.0

func (_d QuerierWithTracing) FindAgents(ctx context.Context) (fa1 []FindAgentsRow, err error)

FindAgents implements Querier

func (QuerierWithTracing) FindAgentsByOrganization added in v0.10.0

func (_d QuerierWithTracing) FindAgentsByOrganization(ctx context.Context, organizationName pgtype.Text) (fa1 []FindAgentsByOrganizationRow, err error)

FindAgentsByOrganization implements Querier

func (QuerierWithTracing) FindAgentsByPoolID added in v0.10.0

func (_d QuerierWithTracing) FindAgentsByPoolID(ctx context.Context, agentPoolID pgtype.Text) (fa1 []FindAgentsByPoolIDRow, err error)

FindAgentsByPoolID implements Querier

func (QuerierWithTracing) FindAllNotificationConfigurations added in v0.10.0

func (_d QuerierWithTracing) FindAllNotificationConfigurations(ctx context.Context) (fa1 []FindAllNotificationConfigurationsRow, err error)

FindAllNotificationConfigurations implements Querier

func (QuerierWithTracing) FindAllocatedJobs added in v0.10.0

func (_d QuerierWithTracing) FindAllocatedJobs(ctx context.Context, agentID pgtype.Text) (fa1 []FindAllocatedJobsRow, err error)

FindAllocatedJobs implements Querier

func (QuerierWithTracing) FindAndUpdateSignaledJobs added in v0.10.0

func (_d QuerierWithTracing) FindAndUpdateSignaledJobs(ctx context.Context, agentID pgtype.Text) (fa1 []FindAndUpdateSignaledJobsRow, err error)

FindAndUpdateSignaledJobs implements Querier

func (QuerierWithTracing) FindConfigurationVersionByID added in v0.10.0

func (_d QuerierWithTracing) FindConfigurationVersionByID(ctx context.Context, configurationVersionID pgtype.Text) (f1 FindConfigurationVersionByIDRow, err error)

FindConfigurationVersionByID implements Querier

func (QuerierWithTracing) FindConfigurationVersionByIDForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindConfigurationVersionByIDForUpdate(ctx context.Context, configurationVersionID pgtype.Text) (f1 FindConfigurationVersionByIDForUpdateRow, err error)

FindConfigurationVersionByIDForUpdate implements Querier

func (QuerierWithTracing) FindConfigurationVersionLatestByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) FindConfigurationVersionLatestByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (f1 FindConfigurationVersionLatestByWorkspaceIDRow, err error)

FindConfigurationVersionLatestByWorkspaceID implements Querier

func (QuerierWithTracing) FindConfigurationVersionsByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) FindConfigurationVersionsByWorkspaceID(ctx context.Context, params FindConfigurationVersionsByWorkspaceIDParams) (fa1 []FindConfigurationVersionsByWorkspaceIDRow, err error)

FindConfigurationVersionsByWorkspaceID implements Querier

func (QuerierWithTracing) FindCurrentStateVersionByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) FindCurrentStateVersionByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (f1 FindCurrentStateVersionByWorkspaceIDRow, err error)

FindCurrentStateVersionByWorkspaceID implements Querier

func (QuerierWithTracing) FindGithubApp added in v0.10.0

func (_d QuerierWithTracing) FindGithubApp(ctx context.Context) (f1 FindGithubAppRow, err error)

FindGithubApp implements Querier

func (QuerierWithTracing) FindJob added in v0.10.0

func (_d QuerierWithTracing) FindJob(ctx context.Context, runID pgtype.Text, phase pgtype.Text) (f1 FindJobRow, err error)

FindJob implements Querier

func (QuerierWithTracing) FindJobForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindJobForUpdate(ctx context.Context, runID pgtype.Text, phase pgtype.Text) (f1 FindJobForUpdateRow, err error)

FindJobForUpdate implements Querier

func (QuerierWithTracing) FindJobs added in v0.10.0

func (_d QuerierWithTracing) FindJobs(ctx context.Context) (fa1 []FindJobsRow, err error)

FindJobs implements Querier

func (QuerierWithTracing) FindLatestTerraformVersion added in v0.10.0

func (_d QuerierWithTracing) FindLatestTerraformVersion(ctx context.Context) (fa1 []FindLatestTerraformVersionRow, err error)

FindLatestTerraformVersion implements Querier

func (QuerierWithTracing) FindLogChunkByID added in v0.10.0

func (_d QuerierWithTracing) FindLogChunkByID(ctx context.Context, chunkID pgtype.Int4) (f1 FindLogChunkByIDRow, err error)

FindLogChunkByID implements Querier

func (QuerierWithTracing) FindLogs added in v0.10.0

func (_d QuerierWithTracing) FindLogs(ctx context.Context, runID pgtype.Text, phase pgtype.Text) (ba1 []byte, err error)

FindLogs implements Querier

func (QuerierWithTracing) FindModuleByConnection added in v0.10.0

func (_d QuerierWithTracing) FindModuleByConnection(ctx context.Context, vcsProviderID pgtype.Text, repoPath pgtype.Text) (f1 FindModuleByConnectionRow, err error)

FindModuleByConnection implements Querier

func (QuerierWithTracing) FindModuleByID added in v0.10.0

func (_d QuerierWithTracing) FindModuleByID(ctx context.Context, id pgtype.Text) (f1 FindModuleByIDRow, err error)

FindModuleByID implements Querier

func (QuerierWithTracing) FindModuleByModuleVersionID added in v0.10.0

func (_d QuerierWithTracing) FindModuleByModuleVersionID(ctx context.Context, moduleVersionID pgtype.Text) (f1 FindModuleByModuleVersionIDRow, err error)

FindModuleByModuleVersionID implements Querier

func (QuerierWithTracing) FindModuleByName added in v0.10.0

func (_d QuerierWithTracing) FindModuleByName(ctx context.Context, params FindModuleByNameParams) (f1 FindModuleByNameRow, err error)

FindModuleByName implements Querier

func (QuerierWithTracing) FindModuleTarball added in v0.10.0

func (_d QuerierWithTracing) FindModuleTarball(ctx context.Context, moduleVersionID pgtype.Text) (ba1 []byte, err error)

FindModuleTarball implements Querier

func (QuerierWithTracing) FindNotificationConfiguration added in v0.10.0

func (_d QuerierWithTracing) FindNotificationConfiguration(ctx context.Context, notificationConfigurationID pgtype.Text) (f1 FindNotificationConfigurationRow, err error)

FindNotificationConfiguration implements Querier

func (QuerierWithTracing) FindNotificationConfigurationForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindNotificationConfigurationForUpdate(ctx context.Context, notificationConfigurationID pgtype.Text) (f1 FindNotificationConfigurationForUpdateRow, err error)

FindNotificationConfigurationForUpdate implements Querier

func (QuerierWithTracing) FindNotificationConfigurationsByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) FindNotificationConfigurationsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (fa1 []FindNotificationConfigurationsByWorkspaceIDRow, err error)

FindNotificationConfigurationsByWorkspaceID implements Querier

func (QuerierWithTracing) FindOrganizationByID added in v0.10.0

func (_d QuerierWithTracing) FindOrganizationByID(ctx context.Context, organizationID pgtype.Text) (f1 FindOrganizationByIDRow, err error)

FindOrganizationByID implements Querier

func (QuerierWithTracing) FindOrganizationByName added in v0.10.0

func (_d QuerierWithTracing) FindOrganizationByName(ctx context.Context, name pgtype.Text) (f1 FindOrganizationByNameRow, err error)

FindOrganizationByName implements Querier

func (QuerierWithTracing) FindOrganizationByNameForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindOrganizationByNameForUpdate(ctx context.Context, name pgtype.Text) (f1 FindOrganizationByNameForUpdateRow, err error)

FindOrganizationByNameForUpdate implements Querier

func (QuerierWithTracing) FindOrganizationNameByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) FindOrganizationNameByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (t1 pgtype.Text, err error)

FindOrganizationNameByWorkspaceID implements Querier

func (QuerierWithTracing) FindOrganizationTokens added in v0.10.0

func (_d QuerierWithTracing) FindOrganizationTokens(ctx context.Context, organizationName pgtype.Text) (fa1 []FindOrganizationTokensRow, err error)

FindOrganizationTokens implements Querier

func (QuerierWithTracing) FindOrganizationTokensByID added in v0.10.0

func (_d QuerierWithTracing) FindOrganizationTokensByID(ctx context.Context, organizationTokenID pgtype.Text) (f1 FindOrganizationTokensByIDRow, err error)

FindOrganizationTokensByID implements Querier

func (QuerierWithTracing) FindOrganizationTokensByName added in v0.10.0

func (_d QuerierWithTracing) FindOrganizationTokensByName(ctx context.Context, organizationName pgtype.Text) (f1 FindOrganizationTokensByNameRow, err error)

FindOrganizationTokensByName implements Querier

func (QuerierWithTracing) FindOrganizations added in v0.10.0

func (_d QuerierWithTracing) FindOrganizations(ctx context.Context, params FindOrganizationsParams) (fa1 []FindOrganizationsRow, err error)

FindOrganizations implements Querier

func (QuerierWithTracing) FindRepohookByID added in v0.10.0

func (_d QuerierWithTracing) FindRepohookByID(ctx context.Context, repohookID pgtype.UUID) (f1 FindRepohookByIDRow, err error)

FindRepohookByID implements Querier

func (QuerierWithTracing) FindRepohookByRepoAndProvider added in v0.10.0

func (_d QuerierWithTracing) FindRepohookByRepoAndProvider(ctx context.Context, repoPath pgtype.Text, vcsProviderID pgtype.Text) (fa1 []FindRepohookByRepoAndProviderRow, err error)

FindRepohookByRepoAndProvider implements Querier

func (QuerierWithTracing) FindRepohooks added in v0.10.0

func (_d QuerierWithTracing) FindRepohooks(ctx context.Context) (fa1 []FindRepohooksRow, err error)

FindRepohooks implements Querier

func (QuerierWithTracing) FindRunByID added in v0.10.0

func (_d QuerierWithTracing) FindRunByID(ctx context.Context, runID pgtype.Text) (f1 FindRunByIDRow, err error)

FindRunByID implements Querier

func (QuerierWithTracing) FindRunByIDForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindRunByIDForUpdate(ctx context.Context, runID pgtype.Text) (f1 FindRunByIDForUpdateRow, err error)

FindRunByIDForUpdate implements Querier

func (QuerierWithTracing) FindRuns added in v0.10.0

func (_d QuerierWithTracing) FindRuns(ctx context.Context, params FindRunsParams) (fa1 []FindRunsRow, err error)

FindRuns implements Querier

func (QuerierWithTracing) FindServerAgents added in v0.10.0

func (_d QuerierWithTracing) FindServerAgents(ctx context.Context) (fa1 []FindServerAgentsRow, err error)

FindServerAgents implements Querier

func (QuerierWithTracing) FindStateVersionByID added in v0.10.0

func (_d QuerierWithTracing) FindStateVersionByID(ctx context.Context, id pgtype.Text) (f1 FindStateVersionByIDRow, err error)

FindStateVersionByID implements Querier

func (QuerierWithTracing) FindStateVersionByIDForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindStateVersionByIDForUpdate(ctx context.Context, id pgtype.Text) (f1 FindStateVersionByIDForUpdateRow, err error)

FindStateVersionByIDForUpdate implements Querier

func (QuerierWithTracing) FindStateVersionOutputByID added in v0.10.0

func (_d QuerierWithTracing) FindStateVersionOutputByID(ctx context.Context, id pgtype.Text) (f1 FindStateVersionOutputByIDRow, err error)

FindStateVersionOutputByID implements Querier

func (QuerierWithTracing) FindStateVersionStateByID added in v0.10.0

func (_d QuerierWithTracing) FindStateVersionStateByID(ctx context.Context, id pgtype.Text) (ba1 []byte, err error)

FindStateVersionStateByID implements Querier

func (QuerierWithTracing) FindStateVersionsByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) FindStateVersionsByWorkspaceID(ctx context.Context, params FindStateVersionsByWorkspaceIDParams) (fa1 []FindStateVersionsByWorkspaceIDRow, err error)

FindStateVersionsByWorkspaceID implements Querier

func (QuerierWithTracing) FindTagByID added in v0.10.0

func (_d QuerierWithTracing) FindTagByID(ctx context.Context, tagID pgtype.Text, organizationName pgtype.Text) (f1 FindTagByIDRow, err error)

FindTagByID implements Querier

func (QuerierWithTracing) FindTagByName added in v0.10.0

func (_d QuerierWithTracing) FindTagByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (f1 FindTagByNameRow, err error)

FindTagByName implements Querier

func (QuerierWithTracing) FindTags added in v0.10.0

func (_d QuerierWithTracing) FindTags(ctx context.Context, params FindTagsParams) (fa1 []FindTagsRow, err error)

FindTags implements Querier

func (QuerierWithTracing) FindTeamByID added in v0.10.0

func (_d QuerierWithTracing) FindTeamByID(ctx context.Context, teamID pgtype.Text) (f1 FindTeamByIDRow, err error)

FindTeamByID implements Querier

func (QuerierWithTracing) FindTeamByIDForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindTeamByIDForUpdate(ctx context.Context, teamID pgtype.Text) (f1 FindTeamByIDForUpdateRow, err error)

FindTeamByIDForUpdate implements Querier

func (QuerierWithTracing) FindTeamByName added in v0.10.0

func (_d QuerierWithTracing) FindTeamByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (f1 FindTeamByNameRow, err error)

FindTeamByName implements Querier

func (QuerierWithTracing) FindTeamByTokenID added in v0.10.0

func (_d QuerierWithTracing) FindTeamByTokenID(ctx context.Context, tokenID pgtype.Text) (f1 FindTeamByTokenIDRow, err error)

FindTeamByTokenID implements Querier

func (QuerierWithTracing) FindTeamTokensByID added in v0.10.0

func (_d QuerierWithTracing) FindTeamTokensByID(ctx context.Context, teamID pgtype.Text) (fa1 []FindTeamTokensByIDRow, err error)

FindTeamTokensByID implements Querier

func (QuerierWithTracing) FindTeamsByOrg added in v0.10.0

func (_d QuerierWithTracing) FindTeamsByOrg(ctx context.Context, organizationName pgtype.Text) (fa1 []FindTeamsByOrgRow, err error)

FindTeamsByOrg implements Querier

func (QuerierWithTracing) FindTokenByID added in v0.10.0

func (_d QuerierWithTracing) FindTokenByID(ctx context.Context, tokenID pgtype.Text) (f1 FindTokenByIDRow, err error)

FindTokenByID implements Querier

func (QuerierWithTracing) FindTokensByUsername added in v0.10.0

func (_d QuerierWithTracing) FindTokensByUsername(ctx context.Context, username pgtype.Text) (fa1 []FindTokensByUsernameRow, err error)

FindTokensByUsername implements Querier

func (QuerierWithTracing) FindUnreferencedRepohooks added in v0.10.0

func (_d QuerierWithTracing) FindUnreferencedRepohooks(ctx context.Context) (fa1 []FindUnreferencedRepohooksRow, err error)

FindUnreferencedRepohooks implements Querier

func (QuerierWithTracing) FindUserByAuthenticationTokenID added in v0.10.0

func (_d QuerierWithTracing) FindUserByAuthenticationTokenID(ctx context.Context, tokenID pgtype.Text) (f1 FindUserByAuthenticationTokenIDRow, err error)

FindUserByAuthenticationTokenID implements Querier

func (QuerierWithTracing) FindUserByID added in v0.10.0

func (_d QuerierWithTracing) FindUserByID(ctx context.Context, userID pgtype.Text) (f1 FindUserByIDRow, err error)

FindUserByID implements Querier

func (QuerierWithTracing) FindUserByUsername added in v0.10.0

func (_d QuerierWithTracing) FindUserByUsername(ctx context.Context, username pgtype.Text) (f1 FindUserByUsernameRow, err error)

FindUserByUsername implements Querier

func (QuerierWithTracing) FindUsers added in v0.10.0

func (_d QuerierWithTracing) FindUsers(ctx context.Context) (fa1 []FindUsersRow, err error)

FindUsers implements Querier

func (QuerierWithTracing) FindUsersByOrganization added in v0.10.0

func (_d QuerierWithTracing) FindUsersByOrganization(ctx context.Context, organizationName pgtype.Text) (fa1 []FindUsersByOrganizationRow, err error)

FindUsersByOrganization implements Querier

func (QuerierWithTracing) FindUsersByTeamID added in v0.10.0

func (_d QuerierWithTracing) FindUsersByTeamID(ctx context.Context, teamID pgtype.Text) (fa1 []FindUsersByTeamIDRow, err error)

FindUsersByTeamID implements Querier

func (QuerierWithTracing) FindVCSProvider added in v0.10.0

func (_d QuerierWithTracing) FindVCSProvider(ctx context.Context, vcsProviderID pgtype.Text) (f1 FindVCSProviderRow, err error)

FindVCSProvider implements Querier

func (QuerierWithTracing) FindVCSProviderForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindVCSProviderForUpdate(ctx context.Context, vcsProviderID pgtype.Text) (f1 FindVCSProviderForUpdateRow, err error)

FindVCSProviderForUpdate implements Querier

func (QuerierWithTracing) FindVCSProviders added in v0.10.0

func (_d QuerierWithTracing) FindVCSProviders(ctx context.Context) (fa1 []FindVCSProvidersRow, err error)

FindVCSProviders implements Querier

func (QuerierWithTracing) FindVCSProvidersByGithubAppInstallID added in v0.10.0

func (_d QuerierWithTracing) FindVCSProvidersByGithubAppInstallID(ctx context.Context, installID pgtype.Int8) (fa1 []FindVCSProvidersByGithubAppInstallIDRow, err error)

FindVCSProvidersByGithubAppInstallID implements Querier

func (QuerierWithTracing) FindVCSProvidersByOrganization added in v0.10.0

func (_d QuerierWithTracing) FindVCSProvidersByOrganization(ctx context.Context, organizationName pgtype.Text) (fa1 []FindVCSProvidersByOrganizationRow, err error)

FindVCSProvidersByOrganization implements Querier

func (QuerierWithTracing) FindVariable added in v0.10.0

func (_d QuerierWithTracing) FindVariable(ctx context.Context, variableID pgtype.Text) (f1 FindVariableRow, err error)

FindVariable implements Querier

func (QuerierWithTracing) FindVariableSetBySetID added in v0.10.0

func (_d QuerierWithTracing) FindVariableSetBySetID(ctx context.Context, variableSetID pgtype.Text) (f1 FindVariableSetBySetIDRow, err error)

FindVariableSetBySetID implements Querier

func (QuerierWithTracing) FindVariableSetByVariableID added in v0.10.0

func (_d QuerierWithTracing) FindVariableSetByVariableID(ctx context.Context, variableID pgtype.Text) (f1 FindVariableSetByVariableIDRow, err error)

FindVariableSetByVariableID implements Querier

func (QuerierWithTracing) FindVariableSetForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindVariableSetForUpdate(ctx context.Context, variableSetID pgtype.Text) (f1 FindVariableSetForUpdateRow, err error)

FindVariableSetForUpdate implements Querier

func (QuerierWithTracing) FindVariableSetsByOrganization added in v0.10.0

func (_d QuerierWithTracing) FindVariableSetsByOrganization(ctx context.Context, organizationName pgtype.Text) (fa1 []FindVariableSetsByOrganizationRow, err error)

FindVariableSetsByOrganization implements Querier

func (QuerierWithTracing) FindVariableSetsByWorkspace added in v0.10.0

func (_d QuerierWithTracing) FindVariableSetsByWorkspace(ctx context.Context, workspaceID pgtype.Text) (fa1 []FindVariableSetsByWorkspaceRow, err error)

FindVariableSetsByWorkspace implements Querier

func (QuerierWithTracing) FindWorkspaceByID added in v0.10.0

func (_d QuerierWithTracing) FindWorkspaceByID(ctx context.Context, id pgtype.Text) (f1 FindWorkspaceByIDRow, err error)

FindWorkspaceByID implements Querier

func (QuerierWithTracing) FindWorkspaceByIDForUpdate added in v0.10.0

func (_d QuerierWithTracing) FindWorkspaceByIDForUpdate(ctx context.Context, id pgtype.Text) (f1 FindWorkspaceByIDForUpdateRow, err error)

FindWorkspaceByIDForUpdate implements Querier

func (QuerierWithTracing) FindWorkspaceByName added in v0.10.0

func (_d QuerierWithTracing) FindWorkspaceByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (f1 FindWorkspaceByNameRow, err error)

FindWorkspaceByName implements Querier

func (QuerierWithTracing) FindWorkspacePermissionsByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) FindWorkspacePermissionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (fa1 []FindWorkspacePermissionsByWorkspaceIDRow, err error)

FindWorkspacePermissionsByWorkspaceID implements Querier

func (QuerierWithTracing) FindWorkspaceTags added in v0.10.0

func (_d QuerierWithTracing) FindWorkspaceTags(ctx context.Context, params FindWorkspaceTagsParams) (fa1 []FindWorkspaceTagsRow, err error)

FindWorkspaceTags implements Querier

func (QuerierWithTracing) FindWorkspaceVariableByVariableID added in v0.10.0

func (_d QuerierWithTracing) FindWorkspaceVariableByVariableID(ctx context.Context, variableID pgtype.Text) (f1 FindWorkspaceVariableByVariableIDRow, err error)

FindWorkspaceVariableByVariableID implements Querier

func (QuerierWithTracing) FindWorkspaceVariablesByWorkspaceID added in v0.10.0

func (_d QuerierWithTracing) FindWorkspaceVariablesByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (fa1 []FindWorkspaceVariablesByWorkspaceIDRow, err error)

FindWorkspaceVariablesByWorkspaceID implements Querier

func (QuerierWithTracing) FindWorkspaces added in v0.10.0

func (_d QuerierWithTracing) FindWorkspaces(ctx context.Context, params FindWorkspacesParams) (fa1 []FindWorkspacesRow, err error)

FindWorkspaces implements Querier

func (QuerierWithTracing) FindWorkspacesByConnection added in v0.10.0

func (_d QuerierWithTracing) FindWorkspacesByConnection(ctx context.Context, vcsProviderID pgtype.Text, repoPath pgtype.Text) (fa1 []FindWorkspacesByConnectionRow, err error)

FindWorkspacesByConnection implements Querier

func (QuerierWithTracing) FindWorkspacesByUsername added in v0.10.0

func (_d QuerierWithTracing) FindWorkspacesByUsername(ctx context.Context, params FindWorkspacesByUsernameParams) (fa1 []FindWorkspacesByUsernameRow, err error)

FindWorkspacesByUsername implements Querier

func (QuerierWithTracing) GetGPGKey added in v0.10.0

func (_d QuerierWithTracing) GetGPGKey(ctx context.Context, keyID pgtype.Text, organizationName pgtype.Text) (g1 GetGPGKeyRow, err error)

GetGPGKey implements Querier

func (QuerierWithTracing) GetLockFileByID added in v0.10.0

func (_d QuerierWithTracing) GetLockFileByID(ctx context.Context, runID pgtype.Text) (ba1 []byte, err error)

GetLockFileByID implements Querier

func (QuerierWithTracing) GetPlanBinByID added in v0.10.0

func (_d QuerierWithTracing) GetPlanBinByID(ctx context.Context, runID pgtype.Text) (ba1 []byte, err error)

GetPlanBinByID implements Querier

func (QuerierWithTracing) GetPlanJSONByID added in v0.10.0

func (_d QuerierWithTracing) GetPlanJSONByID(ctx context.Context, runID pgtype.Text) (ba1 []byte, err error)

GetPlanJSONByID implements Querier

func (QuerierWithTracing) InsertAgent added in v0.10.0

func (_d QuerierWithTracing) InsertAgent(ctx context.Context, params InsertAgentParams) (c2 pgconn.CommandTag, err error)

InsertAgent implements Querier

func (QuerierWithTracing) InsertAgentPool added in v0.10.0

func (_d QuerierWithTracing) InsertAgentPool(ctx context.Context, params InsertAgentPoolParams) (c2 pgconn.CommandTag, err error)

InsertAgentPool implements Querier

func (QuerierWithTracing) InsertAgentPoolAllowedWorkspace added in v0.10.0

func (_d QuerierWithTracing) InsertAgentPoolAllowedWorkspace(ctx context.Context, poolID pgtype.Text, workspaceID pgtype.Text) (c2 pgconn.CommandTag, err error)

InsertAgentPoolAllowedWorkspace implements Querier

func (QuerierWithTracing) InsertAgentToken added in v0.10.0

func (_d QuerierWithTracing) InsertAgentToken(ctx context.Context, params InsertAgentTokenParams) (c2 pgconn.CommandTag, err error)

InsertAgentToken implements Querier

func (QuerierWithTracing) InsertApply added in v0.10.0

func (_d QuerierWithTracing) InsertApply(ctx context.Context, runID pgtype.Text, status pgtype.Text) (c2 pgconn.CommandTag, err error)

InsertApply implements Querier

func (QuerierWithTracing) InsertConfigurationVersion added in v0.10.0

func (_d QuerierWithTracing) InsertConfigurationVersion(ctx context.Context, params InsertConfigurationVersionParams) (c2 pgconn.CommandTag, err error)

InsertConfigurationVersion implements Querier

func (QuerierWithTracing) InsertConfigurationVersionStatusTimestamp added in v0.10.0

InsertConfigurationVersionStatusTimestamp implements Querier

func (QuerierWithTracing) InsertGPGKey added in v0.10.0

func (_d QuerierWithTracing) InsertGPGKey(ctx context.Context, params InsertGPGKeyParams) (c2 pgconn.CommandTag, err error)

InsertGPGKey implements Querier

func (QuerierWithTracing) InsertGithubApp added in v0.10.0

func (_d QuerierWithTracing) InsertGithubApp(ctx context.Context, params InsertGithubAppParams) (c2 pgconn.CommandTag, err error)

InsertGithubApp implements Querier

func (QuerierWithTracing) InsertGithubAppInstall added in v0.10.0

func (_d QuerierWithTracing) InsertGithubAppInstall(ctx context.Context, params InsertGithubAppInstallParams) (c2 pgconn.CommandTag, err error)

InsertGithubAppInstall implements Querier

func (QuerierWithTracing) InsertIngressAttributes added in v0.10.0

func (_d QuerierWithTracing) InsertIngressAttributes(ctx context.Context, params InsertIngressAttributesParams) (c2 pgconn.CommandTag, err error)

InsertIngressAttributes implements Querier

func (QuerierWithTracing) InsertJob added in v0.10.0

func (_d QuerierWithTracing) InsertJob(ctx context.Context, params InsertJobParams) (c2 pgconn.CommandTag, err error)

InsertJob implements Querier

func (QuerierWithTracing) InsertLatestTerraformVersion added in v0.10.0

func (_d QuerierWithTracing) InsertLatestTerraformVersion(ctx context.Context, version pgtype.Text) (c2 pgconn.CommandTag, err error)

InsertLatestTerraformVersion implements Querier

func (QuerierWithTracing) InsertLogChunk added in v0.10.0

func (_d QuerierWithTracing) InsertLogChunk(ctx context.Context, params InsertLogChunkParams) (i1 pgtype.Int4, err error)

InsertLogChunk implements Querier

func (QuerierWithTracing) InsertModule added in v0.10.0

func (_d QuerierWithTracing) InsertModule(ctx context.Context, params InsertModuleParams) (c2 pgconn.CommandTag, err error)

InsertModule implements Querier

func (QuerierWithTracing) InsertModuleTarball added in v0.10.0

func (_d QuerierWithTracing) InsertModuleTarball(ctx context.Context, tarball []byte, moduleVersionID pgtype.Text) (t1 pgtype.Text, err error)

InsertModuleTarball implements Querier

func (QuerierWithTracing) InsertModuleVersion added in v0.10.0

func (_d QuerierWithTracing) InsertModuleVersion(ctx context.Context, params InsertModuleVersionParams) (i1 InsertModuleVersionRow, err error)

InsertModuleVersion implements Querier

func (QuerierWithTracing) InsertNotificationConfiguration added in v0.10.0

func (_d QuerierWithTracing) InsertNotificationConfiguration(ctx context.Context, params InsertNotificationConfigurationParams) (c2 pgconn.CommandTag, err error)

InsertNotificationConfiguration implements Querier

func (QuerierWithTracing) InsertOrganization added in v0.10.0

func (_d QuerierWithTracing) InsertOrganization(ctx context.Context, params InsertOrganizationParams) (c2 pgconn.CommandTag, err error)

InsertOrganization implements Querier

func (QuerierWithTracing) InsertPhaseStatusTimestamp added in v0.10.0

func (_d QuerierWithTracing) InsertPhaseStatusTimestamp(ctx context.Context, params InsertPhaseStatusTimestampParams) (c2 pgconn.CommandTag, err error)

InsertPhaseStatusTimestamp implements Querier

func (QuerierWithTracing) InsertPlan added in v0.10.0

func (_d QuerierWithTracing) InsertPlan(ctx context.Context, runID pgtype.Text, status pgtype.Text) (c2 pgconn.CommandTag, err error)

InsertPlan implements Querier

func (QuerierWithTracing) InsertRepoConnection added in v0.10.0

func (_d QuerierWithTracing) InsertRepoConnection(ctx context.Context, params InsertRepoConnectionParams) (c2 pgconn.CommandTag, err error)

InsertRepoConnection implements Querier

func (QuerierWithTracing) InsertRepohook added in v0.10.0

func (_d QuerierWithTracing) InsertRepohook(ctx context.Context, params InsertRepohookParams) (i1 InsertRepohookRow, err error)

InsertRepohook implements Querier

func (QuerierWithTracing) InsertRun added in v0.10.0

func (_d QuerierWithTracing) InsertRun(ctx context.Context, params InsertRunParams) (c2 pgconn.CommandTag, err error)

InsertRun implements Querier

func (QuerierWithTracing) InsertRunStatusTimestamp added in v0.10.0

func (_d QuerierWithTracing) InsertRunStatusTimestamp(ctx context.Context, params InsertRunStatusTimestampParams) (c2 pgconn.CommandTag, err error)

InsertRunStatusTimestamp implements Querier

func (QuerierWithTracing) InsertRunVariable added in v0.10.0

func (_d QuerierWithTracing) InsertRunVariable(ctx context.Context, params InsertRunVariableParams) (c2 pgconn.CommandTag, err error)

InsertRunVariable implements Querier

func (QuerierWithTracing) InsertStateVersion added in v0.10.0

func (_d QuerierWithTracing) InsertStateVersion(ctx context.Context, params InsertStateVersionParams) (c2 pgconn.CommandTag, err error)

InsertStateVersion implements Querier

func (QuerierWithTracing) InsertStateVersionOutput added in v0.10.0

func (_d QuerierWithTracing) InsertStateVersionOutput(ctx context.Context, params InsertStateVersionOutputParams) (c2 pgconn.CommandTag, err error)

InsertStateVersionOutput implements Querier

func (QuerierWithTracing) InsertTag added in v0.10.0

func (_d QuerierWithTracing) InsertTag(ctx context.Context, params InsertTagParams) (c2 pgconn.CommandTag, err error)

InsertTag implements Querier

func (QuerierWithTracing) InsertTeam added in v0.10.0

func (_d QuerierWithTracing) InsertTeam(ctx context.Context, params InsertTeamParams) (c2 pgconn.CommandTag, err error)

InsertTeam implements Querier

func (QuerierWithTracing) InsertTeamMembership added in v0.10.0

func (_d QuerierWithTracing) InsertTeamMembership(ctx context.Context, usernames []string, teamID pgtype.Text) (ta1 []pgtype.Text, err error)

InsertTeamMembership implements Querier

func (QuerierWithTracing) InsertTeamToken added in v0.10.0

func (_d QuerierWithTracing) InsertTeamToken(ctx context.Context, params InsertTeamTokenParams) (c2 pgconn.CommandTag, err error)

InsertTeamToken implements Querier

func (QuerierWithTracing) InsertToken added in v0.10.0

func (_d QuerierWithTracing) InsertToken(ctx context.Context, params InsertTokenParams) (c2 pgconn.CommandTag, err error)

InsertToken implements Querier

func (QuerierWithTracing) InsertUser added in v0.10.0

func (_d QuerierWithTracing) InsertUser(ctx context.Context, params InsertUserParams) (c2 pgconn.CommandTag, err error)

InsertUser implements Querier

func (QuerierWithTracing) InsertVCSProvider added in v0.10.0

func (_d QuerierWithTracing) InsertVCSProvider(ctx context.Context, params InsertVCSProviderParams) (c2 pgconn.CommandTag, err error)

InsertVCSProvider implements Querier

func (QuerierWithTracing) InsertVariable added in v0.10.0

func (_d QuerierWithTracing) InsertVariable(ctx context.Context, params InsertVariableParams) (c2 pgconn.CommandTag, err error)

InsertVariable implements Querier

func (QuerierWithTracing) InsertVariableSet added in v0.10.0

func (_d QuerierWithTracing) InsertVariableSet(ctx context.Context, params InsertVariableSetParams) (c2 pgconn.CommandTag, err error)

InsertVariableSet implements Querier

func (QuerierWithTracing) InsertVariableSetVariable added in v0.10.0

func (_d QuerierWithTracing) InsertVariableSetVariable(ctx context.Context, variableSetID pgtype.Text, variableID pgtype.Text) (c2 pgconn.CommandTag, err error)

InsertVariableSetVariable implements Querier

func (QuerierWithTracing) InsertVariableSetWorkspace added in v0.10.0

func (_d QuerierWithTracing) InsertVariableSetWorkspace(ctx context.Context, variableSetID pgtype.Text, workspaceID pgtype.Text) (c2 pgconn.CommandTag, err error)

InsertVariableSetWorkspace implements Querier

func (QuerierWithTracing) InsertWorkspace added in v0.10.0

func (_d QuerierWithTracing) InsertWorkspace(ctx context.Context, params InsertWorkspaceParams) (c2 pgconn.CommandTag, err error)

InsertWorkspace implements Querier

func (QuerierWithTracing) InsertWorkspaceTag added in v0.10.0

func (_d QuerierWithTracing) InsertWorkspaceTag(ctx context.Context, tagID pgtype.Text, workspaceID pgtype.Text) (t1 pgtype.Text, err error)

InsertWorkspaceTag implements Querier

func (QuerierWithTracing) InsertWorkspaceTagByName added in v0.10.0

func (_d QuerierWithTracing) InsertWorkspaceTagByName(ctx context.Context, workspaceID pgtype.Text, tagName pgtype.Text) (t1 pgtype.Text, err error)

InsertWorkspaceTagByName implements Querier

func (QuerierWithTracing) InsertWorkspaceVariable added in v0.10.0

func (_d QuerierWithTracing) InsertWorkspaceVariable(ctx context.Context, variableID pgtype.Text, workspaceID pgtype.Text) (c2 pgconn.CommandTag, err error)

InsertWorkspaceVariable implements Querier

func (QuerierWithTracing) ListGPGKeys added in v0.10.0

func (_d QuerierWithTracing) ListGPGKeys(ctx context.Context, organizationNames []string) (la1 []ListGPGKeysRow, err error)

ListGPGKeys implements Querier

func (QuerierWithTracing) ListModulesByOrganization added in v0.10.0

func (_d QuerierWithTracing) ListModulesByOrganization(ctx context.Context, organizationName pgtype.Text) (la1 []ListModulesByOrganizationRow, err error)

ListModulesByOrganization implements Querier

func (QuerierWithTracing) PutLockFile added in v0.10.0

func (_d QuerierWithTracing) PutLockFile(ctx context.Context, lockFile []byte, runID pgtype.Text) (t1 pgtype.Text, err error)

PutLockFile implements Querier

func (QuerierWithTracing) ResetUserSiteAdmins added in v0.10.0

func (_d QuerierWithTracing) ResetUserSiteAdmins(ctx context.Context) (ta1 []pgtype.Text, err error)

ResetUserSiteAdmins implements Querier

func (QuerierWithTracing) UpdateAgent added in v0.10.0

func (_d QuerierWithTracing) UpdateAgent(ctx context.Context, params UpdateAgentParams) (u1 UpdateAgentRow, err error)

UpdateAgent implements Querier

func (QuerierWithTracing) UpdateAgentPool added in v0.10.0

func (_d QuerierWithTracing) UpdateAgentPool(ctx context.Context, params UpdateAgentPoolParams) (u1 UpdateAgentPoolRow, err error)

UpdateAgentPool implements Querier

func (QuerierWithTracing) UpdateAppliedChangesByID added in v0.10.0

func (_d QuerierWithTracing) UpdateAppliedChangesByID(ctx context.Context, params UpdateAppliedChangesByIDParams) (t1 pgtype.Text, err error)

UpdateAppliedChangesByID implements Querier

func (QuerierWithTracing) UpdateApplyStatusByID added in v0.10.0

func (_d QuerierWithTracing) UpdateApplyStatusByID(ctx context.Context, status pgtype.Text, runID pgtype.Text) (t1 pgtype.Text, err error)

UpdateApplyStatusByID implements Querier

func (QuerierWithTracing) UpdateCancelSignaledAt added in v0.10.0

func (_d QuerierWithTracing) UpdateCancelSignaledAt(ctx context.Context, cancelSignaledAt pgtype.Timestamptz, id pgtype.Text) (t1 pgtype.Text, err error)

UpdateCancelSignaledAt implements Querier

func (QuerierWithTracing) UpdateConfigurationVersionConfigByID added in v0.10.0

func (_d QuerierWithTracing) UpdateConfigurationVersionConfigByID(ctx context.Context, config []byte, id pgtype.Text) (t1 pgtype.Text, err error)

UpdateConfigurationVersionConfigByID implements Querier

func (QuerierWithTracing) UpdateConfigurationVersionErroredByID added in v0.10.0

func (_d QuerierWithTracing) UpdateConfigurationVersionErroredByID(ctx context.Context, id pgtype.Text) (t1 pgtype.Text, err error)

UpdateConfigurationVersionErroredByID implements Querier

func (QuerierWithTracing) UpdateGPGKey added in v0.10.0

func (_d QuerierWithTracing) UpdateGPGKey(ctx context.Context, params UpdateGPGKeyParams) (c2 pgconn.CommandTag, err error)

UpdateGPGKey implements Querier

func (QuerierWithTracing) UpdateJob added in v0.10.0

func (_d QuerierWithTracing) UpdateJob(ctx context.Context, params UpdateJobParams) (u1 UpdateJobRow, err error)

UpdateJob implements Querier

func (QuerierWithTracing) UpdateLatestTerraformVersion added in v0.10.0

func (_d QuerierWithTracing) UpdateLatestTerraformVersion(ctx context.Context, version pgtype.Text) (c2 pgconn.CommandTag, err error)

UpdateLatestTerraformVersion implements Querier

func (QuerierWithTracing) UpdateModuleStatusByID added in v0.10.0

func (_d QuerierWithTracing) UpdateModuleStatusByID(ctx context.Context, status pgtype.Text, moduleID pgtype.Text) (t1 pgtype.Text, err error)

UpdateModuleStatusByID implements Querier

func (QuerierWithTracing) UpdateModuleVersionStatusByID added in v0.10.0

func (_d QuerierWithTracing) UpdateModuleVersionStatusByID(ctx context.Context, params UpdateModuleVersionStatusByIDParams) (u1 UpdateModuleVersionStatusByIDRow, err error)

UpdateModuleVersionStatusByID implements Querier

func (QuerierWithTracing) UpdateNotificationConfigurationByID added in v0.10.0

func (_d QuerierWithTracing) UpdateNotificationConfigurationByID(ctx context.Context, params UpdateNotificationConfigurationByIDParams) (t1 pgtype.Text, err error)

UpdateNotificationConfigurationByID implements Querier

func (QuerierWithTracing) UpdateOrganizationByName added in v0.10.0

func (_d QuerierWithTracing) UpdateOrganizationByName(ctx context.Context, params UpdateOrganizationByNameParams) (t1 pgtype.Text, err error)

UpdateOrganizationByName implements Querier

func (QuerierWithTracing) UpdatePlanBinByID added in v0.10.0

func (_d QuerierWithTracing) UpdatePlanBinByID(ctx context.Context, planBin []byte, runID pgtype.Text) (t1 pgtype.Text, err error)

UpdatePlanBinByID implements Querier

func (QuerierWithTracing) UpdatePlanJSONByID added in v0.10.0

func (_d QuerierWithTracing) UpdatePlanJSONByID(ctx context.Context, planJSON []byte, runID pgtype.Text) (t1 pgtype.Text, err error)

UpdatePlanJSONByID implements Querier

func (QuerierWithTracing) UpdatePlanStatusByID added in v0.10.0

func (_d QuerierWithTracing) UpdatePlanStatusByID(ctx context.Context, status pgtype.Text, runID pgtype.Text) (t1 pgtype.Text, err error)

UpdatePlanStatusByID implements Querier

func (QuerierWithTracing) UpdatePlannedChangesByID added in v0.10.0

func (_d QuerierWithTracing) UpdatePlannedChangesByID(ctx context.Context, params UpdatePlannedChangesByIDParams) (t1 pgtype.Text, err error)

UpdatePlannedChangesByID implements Querier

func (QuerierWithTracing) UpdateRepohookVCSID added in v0.10.0

func (_d QuerierWithTracing) UpdateRepohookVCSID(ctx context.Context, vcsID pgtype.Text, repohookID pgtype.UUID) (u1 UpdateRepohookVCSIDRow, err error)

UpdateRepohookVCSID implements Querier

func (QuerierWithTracing) UpdateRunStatus added in v0.10.0

func (_d QuerierWithTracing) UpdateRunStatus(ctx context.Context, status pgtype.Text, id pgtype.Text) (t1 pgtype.Text, err error)

UpdateRunStatus implements Querier

func (QuerierWithTracing) UpdateState added in v0.10.0

func (_d QuerierWithTracing) UpdateState(ctx context.Context, state []byte, stateVersionID pgtype.Text) (c2 pgconn.CommandTag, err error)

UpdateState implements Querier

func (QuerierWithTracing) UpdateTeamByID added in v0.10.0

func (_d QuerierWithTracing) UpdateTeamByID(ctx context.Context, params UpdateTeamByIDParams) (t1 pgtype.Text, err error)

UpdateTeamByID implements Querier

func (QuerierWithTracing) UpdateUserSiteAdmins added in v0.10.0

func (_d QuerierWithTracing) UpdateUserSiteAdmins(ctx context.Context, usernames []string) (ta1 []pgtype.Text, err error)

UpdateUserSiteAdmins implements Querier

func (QuerierWithTracing) UpdateVCSProvider added in v0.10.0

func (_d QuerierWithTracing) UpdateVCSProvider(ctx context.Context, params UpdateVCSProviderParams) (u1 UpdateVCSProviderRow, err error)

UpdateVCSProvider implements Querier

func (QuerierWithTracing) UpdateVariableByID added in v0.10.0

func (_d QuerierWithTracing) UpdateVariableByID(ctx context.Context, params UpdateVariableByIDParams) (t1 pgtype.Text, err error)

UpdateVariableByID implements Querier

func (QuerierWithTracing) UpdateVariableSetByID added in v0.10.0

func (_d QuerierWithTracing) UpdateVariableSetByID(ctx context.Context, params UpdateVariableSetByIDParams) (t1 pgtype.Text, err error)

UpdateVariableSetByID implements Querier

func (QuerierWithTracing) UpdateWorkspaceByID added in v0.10.0

func (_d QuerierWithTracing) UpdateWorkspaceByID(ctx context.Context, params UpdateWorkspaceByIDParams) (t1 pgtype.Text, err error)

UpdateWorkspaceByID implements Querier

func (QuerierWithTracing) UpdateWorkspaceCurrentStateVersionID added in v0.10.0

func (_d QuerierWithTracing) UpdateWorkspaceCurrentStateVersionID(ctx context.Context, stateVersionID pgtype.Text, workspaceID pgtype.Text) (t1 pgtype.Text, err error)

UpdateWorkspaceCurrentStateVersionID implements Querier

func (QuerierWithTracing) UpdateWorkspaceLatestRun added in v0.10.0

func (_d QuerierWithTracing) UpdateWorkspaceLatestRun(ctx context.Context, runID pgtype.Text, workspaceID pgtype.Text) (c2 pgconn.CommandTag, err error)

UpdateWorkspaceLatestRun implements Querier

func (QuerierWithTracing) UpdateWorkspaceLockByID added in v0.10.0

func (_d QuerierWithTracing) UpdateWorkspaceLockByID(ctx context.Context, params UpdateWorkspaceLockByIDParams) (c2 pgconn.CommandTag, err error)

UpdateWorkspaceLockByID implements Querier

func (QuerierWithTracing) UpsertOrganizationToken added in v0.10.0

func (_d QuerierWithTracing) UpsertOrganizationToken(ctx context.Context, params UpsertOrganizationTokenParams) (c2 pgconn.CommandTag, err error)

UpsertOrganizationToken implements Querier

func (QuerierWithTracing) UpsertWorkspacePermission added in v0.10.0

func (_d QuerierWithTracing) UpsertWorkspacePermission(ctx context.Context, params UpsertWorkspacePermissionParams) (c2 pgconn.CommandTag, err error)

UpsertWorkspacePermission implements Querier

type RegisterConn added in v0.10.0

type RegisterConn interface {
	LoadType(ctx context.Context, typeName string) (*pgtype.Type, error)
	TypeMap() *pgtype.Map
}

type RepoConnections

type RepoConnections struct {
	ModuleID      pgtype.Text `json:"module_id"`
	WorkspaceID   pgtype.Text `json:"workspace_id"`
	RepoPath      pgtype.Text `json:"repo_path"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
}

RepoConnections represents the Postgres composite type "repo_connections".

type Report

type Report struct {
	Additions    pgtype.Int4 `json:"additions"`
	Changes      pgtype.Int4 `json:"changes"`
	Destructions pgtype.Int4 `json:"destructions"`
}

Report represents the Postgres composite type "report".

type RunStatusTimestamps

type RunStatusTimestamps struct {
	RunID     pgtype.Text        `json:"run_id"`
	Status    pgtype.Text        `json:"status"`
	Timestamp pgtype.Timestamptz `json:"timestamp"`
}

RunStatusTimestamps represents the Postgres composite type "run_status_timestamps".

type RunVariables

type RunVariables struct {
	RunID pgtype.Text `json:"run_id"`
	Key   pgtype.Text `json:"key"`
	Value pgtype.Text `json:"value"`
}

RunVariables represents the Postgres composite type "run_variables".

type Runs

type Runs struct {
	RunID                  pgtype.Text        `json:"run_id"`
	CreatedAt              pgtype.Timestamptz `json:"created_at"`
	CancelSignaledAt       pgtype.Timestamptz `json:"cancel_signaled_at"`
	IsDestroy              pgtype.Bool        `json:"is_destroy"`
	PositionInQueue        pgtype.Int4        `json:"position_in_queue"`
	Refresh                pgtype.Bool        `json:"refresh"`
	RefreshOnly            pgtype.Bool        `json:"refresh_only"`
	ReplaceAddrs           []string           `json:"replace_addrs"`
	TargetAddrs            []string           `json:"target_addrs"`
	LockFile               []byte             `json:"lock_file"`
	Status                 pgtype.Text        `json:"status"`
	WorkspaceID            pgtype.Text        `json:"workspace_id"`
	ConfigurationVersionID pgtype.Text        `json:"configuration_version_id"`
	AutoApply              pgtype.Bool        `json:"auto_apply"`
	PlanOnly               pgtype.Bool        `json:"plan_only"`
	CreatedBy              pgtype.Text        `json:"created_by"`
	Source                 pgtype.Text        `json:"source"`
	TerraformVersion       pgtype.Text        `json:"terraform_version"`
	AllowEmptyApply        pgtype.Bool        `json:"allow_empty_apply"`
}

Runs represents the Postgres composite type "runs".

type StateVersionOutputs

type StateVersionOutputs struct {
	StateVersionOutputID pgtype.Text `json:"state_version_output_id"`
	Name                 pgtype.Text `json:"name"`
	Sensitive            pgtype.Bool `json:"sensitive"`
	Type                 pgtype.Text `json:"type"`
	Value                []byte      `json:"value"`
	StateVersionID       pgtype.Text `json:"state_version_id"`
}

StateVersionOutputs represents the Postgres composite type "state_version_outputs".

type Teams

type Teams struct {
	TeamID                          pgtype.Text        `json:"team_id"`
	Name                            pgtype.Text        `json:"name"`
	CreatedAt                       pgtype.Timestamptz `json:"created_at"`
	PermissionManageWorkspaces      pgtype.Bool        `json:"permission_manage_workspaces"`
	PermissionManageVCS             pgtype.Bool        `json:"permission_manage_vcs"`
	PermissionManageModules         pgtype.Bool        `json:"permission_manage_modules"`
	OrganizationName                pgtype.Text        `json:"organization_name"`
	SSOTeamID                       pgtype.Text        `json:"sso_team_id"`
	Visibility                      pgtype.Text        `json:"visibility"`
	PermissionManagePolicies        pgtype.Bool        `json:"permission_manage_policies"`
	PermissionManagePolicyOverrides pgtype.Bool        `json:"permission_manage_policy_overrides"`
	PermissionManageProviders       pgtype.Bool        `json:"permission_manage_providers"`
}

Teams represents the Postgres composite type "teams".

type UpdateAgentParams

type UpdateAgentParams struct {
	Status       pgtype.Text        `json:"status"`
	LastPingAt   pgtype.Timestamptz `json:"last_ping_at"`
	LastStatusAt pgtype.Timestamptz `json:"last_status_at"`
	AgentID      pgtype.Text        `json:"agent_id"`
}

type UpdateAgentPoolParams

type UpdateAgentPoolParams struct {
	Name               pgtype.Text `json:"name"`
	OrganizationScoped pgtype.Bool `json:"organization_scoped"`
	PoolID             pgtype.Text `json:"pool_id"`
}

type UpdateAgentPoolRow

type UpdateAgentPoolRow struct {
	AgentPoolID        pgtype.Text        `json:"agent_pool_id"`
	Name               pgtype.Text        `json:"name"`
	CreatedAt          pgtype.Timestamptz `json:"created_at"`
	OrganizationName   pgtype.Text        `json:"organization_name"`
	OrganizationScoped pgtype.Bool        `json:"organization_scoped"`
}

type UpdateAgentRow

type UpdateAgentRow struct {
	AgentID      pgtype.Text        `json:"agent_id"`
	Name         pgtype.Text        `json:"name"`
	Version      pgtype.Text        `json:"version"`
	MaxJobs      pgtype.Int4        `json:"max_jobs"`
	IPAddress    net.IPNet          `json:"ip_address"`
	LastPingAt   pgtype.Timestamptz `json:"last_ping_at"`
	LastStatusAt pgtype.Timestamptz `json:"last_status_at"`
	Status       pgtype.Text        `json:"status"`
	AgentPoolID  pgtype.Text        `json:"agent_pool_id"`
}

type UpdateAppliedChangesByIDParams

type UpdateAppliedChangesByIDParams struct {
	Additions    pgtype.Int4 `json:"additions"`
	Changes      pgtype.Int4 `json:"changes"`
	Destructions pgtype.Int4 `json:"destructions"`
	RunID        pgtype.Text `json:"run_id"`
}

type UpdateGPGKeyParams added in v0.9.0

type UpdateGPGKeyParams struct {
	NewOrganizationName pgtype.Text        `json:"new_organization_name"`
	UpdatedAt           pgtype.Timestamptz `json:"updated_at"`
	KeyID               pgtype.Text        `json:"key_id"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
}

type UpdateJobParams

type UpdateJobParams struct {
	Status   pgtype.Text `json:"status"`
	Signaled pgtype.Bool `json:"signaled"`
	AgentID  pgtype.Text `json:"agent_id"`
	RunID    pgtype.Text `json:"run_id"`
	Phase    pgtype.Text `json:"phase"`
}

type UpdateJobRow

type UpdateJobRow struct {
	RunID    pgtype.Text `json:"run_id"`
	Phase    pgtype.Text `json:"phase"`
	Status   pgtype.Text `json:"status"`
	AgentID  pgtype.Text `json:"agent_id"`
	Signaled pgtype.Bool `json:"signaled"`
}

type UpdateModuleVersionStatusByIDParams

type UpdateModuleVersionStatusByIDParams struct {
	Status          pgtype.Text `json:"status"`
	StatusError     pgtype.Text `json:"status_error"`
	ModuleVersionID pgtype.Text `json:"module_version_id"`
}

type UpdateModuleVersionStatusByIDRow

type UpdateModuleVersionStatusByIDRow struct {
	ModuleVersionID pgtype.Text        `json:"module_version_id"`
	Version         pgtype.Text        `json:"version"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	Status          pgtype.Text        `json:"status"`
	StatusError     pgtype.Text        `json:"status_error"`
	ModuleID        pgtype.Text        `json:"module_id"`
}

type UpdateNotificationConfigurationByIDParams

type UpdateNotificationConfigurationByIDParams struct {
	UpdatedAt                   pgtype.Timestamptz `json:"updated_at"`
	Enabled                     pgtype.Bool        `json:"enabled"`
	Name                        pgtype.Text        `json:"name"`
	Triggers                    []string           `json:"triggers"`
	URL                         pgtype.Text        `json:"url"`
	NotificationConfigurationID pgtype.Text        `json:"notification_configuration_id"`
}

type UpdateOrganizationByNameParams

type UpdateOrganizationByNameParams struct {
	NewName                    pgtype.Text        `json:"new_name"`
	Email                      pgtype.Text        `json:"email"`
	CollaboratorAuthPolicy     pgtype.Text        `json:"collaborator_auth_policy"`
	CostEstimationEnabled      pgtype.Bool        `json:"cost_estimation_enabled"`
	SessionRemember            pgtype.Int4        `json:"session_remember"`
	SessionTimeout             pgtype.Int4        `json:"session_timeout"`
	AllowForceDeleteWorkspaces pgtype.Bool        `json:"allow_force_delete_workspaces"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	Name                       pgtype.Text        `json:"name"`
}

type UpdatePlannedChangesByIDParams

type UpdatePlannedChangesByIDParams struct {
	ResourceAdditions    pgtype.Int4 `json:"resource_additions"`
	ResourceChanges      pgtype.Int4 `json:"resource_changes"`
	ResourceDestructions pgtype.Int4 `json:"resource_destructions"`
	OutputAdditions      pgtype.Int4 `json:"output_additions"`
	OutputChanges        pgtype.Int4 `json:"output_changes"`
	OutputDestructions   pgtype.Int4 `json:"output_destructions"`
	RunID                pgtype.Text `json:"run_id"`
}

type UpdateRepohookVCSIDRow

type UpdateRepohookVCSIDRow struct {
	RepohookID    pgtype.UUID `json:"repohook_id"`
	VCSID         pgtype.Text `json:"vcs_id"`
	Secret        pgtype.Text `json:"secret"`
	RepoPath      pgtype.Text `json:"repo_path"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
}

type UpdateTeamByIDParams

type UpdateTeamByIDParams struct {
	Name                            pgtype.Text `json:"name"`
	Visibility                      pgtype.Text `json:"visibility"`
	SSOTeamID                       pgtype.Text `json:"sso_team_id"`
	PermissionManageWorkspaces      pgtype.Bool `json:"permission_manage_workspaces"`
	PermissionManageVCS             pgtype.Bool `json:"permission_manage_vcs"`
	PermissionManageModules         pgtype.Bool `json:"permission_manage_modules"`
	PermissionManageProviders       pgtype.Bool `json:"permission_manage_providers"`
	PermissionManagePolicies        pgtype.Bool `json:"permission_manage_policies"`
	PermissionManagePolicyOverrides pgtype.Bool `json:"permission_manage_policy_overrides"`
	TeamID                          pgtype.Text `json:"team_id"`
}

type UpdateVCSProviderParams

type UpdateVCSProviderParams struct {
	Name          pgtype.Text `json:"name"`
	Token         pgtype.Text `json:"token"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
}

type UpdateVCSProviderRow

type UpdateVCSProviderRow struct {
	VCSProviderID    pgtype.Text        `json:"vcs_provider_id"`
	Token            pgtype.Text        `json:"token"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	Name             pgtype.Text        `json:"name"`
	VCSKind          pgtype.Text        `json:"vcs_kind"`
	OrganizationName pgtype.Text        `json:"organization_name"`
	GithubAppID      pgtype.Int8        `json:"github_app_id"`
}

type UpdateVariableByIDParams

type UpdateVariableByIDParams struct {
	Key         pgtype.Text `json:"key"`
	Value       pgtype.Text `json:"value"`
	Description pgtype.Text `json:"description"`
	Category    pgtype.Text `json:"category"`
	Sensitive   pgtype.Bool `json:"sensitive"`
	VersionID   pgtype.Text `json:"version_id"`
	HCL         pgtype.Bool `json:"hcl"`
	VariableID  pgtype.Text `json:"variable_id"`
}

type UpdateVariableSetByIDParams

type UpdateVariableSetByIDParams struct {
	Global        pgtype.Bool `json:"global"`
	Name          pgtype.Text `json:"name"`
	Description   pgtype.Text `json:"description"`
	VariableSetID pgtype.Text `json:"variable_set_id"`
}

type UpdateWorkspaceByIDParams

type UpdateWorkspaceByIDParams struct {
	AgentPoolID                pgtype.Text        `json:"agent_pool_id"`
	AllowDestroyPlan           pgtype.Bool        `json:"allow_destroy_plan"`
	AllowCLIApply              pgtype.Bool        `json:"allow_cli_apply"`
	AutoApply                  pgtype.Bool        `json:"auto_apply"`
	Branch                     pgtype.Text        `json:"branch"`
	Description                pgtype.Text        `json:"description"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	GlobalRemoteState          pgtype.Bool        `json:"global_remote_state"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               pgtype.Bool        `json:"queue_all_runs"`
	SpeculativeEnabled         pgtype.Bool        `json:"speculative_enabled"`
	StructuredRunOutputEnabled pgtype.Bool        `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	TriggerPatterns            []string           `json:"trigger_patterns"`
	VCSTagsRegex               pgtype.Text        `json:"vcs_tags_regex"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	ID                         pgtype.Text        `json:"id"`
}

type UpdateWorkspaceLockByIDParams

type UpdateWorkspaceLockByIDParams struct {
	Username    pgtype.Text `json:"username"`
	RunID       pgtype.Text `json:"run_id"`
	WorkspaceID pgtype.Text `json:"workspace_id"`
}

type UpsertOrganizationTokenParams

type UpsertOrganizationTokenParams struct {
	OrganizationTokenID pgtype.Text        `json:"organization_token_id"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
	Expiry              pgtype.Timestamptz `json:"expiry"`
}

type UpsertWorkspacePermissionParams

type UpsertWorkspacePermissionParams struct {
	WorkspaceID pgtype.Text `json:"workspace_id"`
	TeamID      pgtype.Text `json:"team_id"`
	Role        pgtype.Text `json:"role"`
}

type Users

type Users struct {
	UserID    pgtype.Text        `json:"user_id"`
	Username  pgtype.Text        `json:"username"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
	SiteAdmin pgtype.Bool        `json:"site_admin"`
}

Users represents the Postgres composite type "users".

type Variables

type Variables struct {
	VariableID  pgtype.Text `json:"variable_id"`
	Key         pgtype.Text `json:"key"`
	Value       pgtype.Text `json:"value"`
	Description pgtype.Text `json:"description"`
	Category    pgtype.Text `json:"category"`
	Sensitive   pgtype.Bool `json:"sensitive"`
	HCL         pgtype.Bool `json:"hcl"`
	VersionID   pgtype.Text `json:"version_id"`
}

Variables represents the Postgres composite type "variables".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL