sqlc

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sqlc is mostly auto-generated by the sqlc tool

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	AgentID      pgtype.Text
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  pgtype.Text
}

type AgentPool

type AgentPool struct {
	AgentPoolID        pgtype.Text
	Name               pgtype.Text
	CreatedAt          pgtype.Timestamptz
	OrganizationName   pgtype.Text
	OrganizationScoped pgtype.Bool
}

type AgentPoolAllowedWorkspace

type AgentPoolAllowedWorkspace struct {
	AgentPoolID pgtype.Text
	WorkspaceID pgtype.Text
}

type AgentStatus

type AgentStatus struct {
	Status pgtype.Text
}

type AgentToken

type AgentToken struct {
	AgentTokenID pgtype.Text
	CreatedAt    pgtype.Timestamptz
	Description  pgtype.Text
	AgentPoolID  pgtype.Text
}

type Apply

type Apply struct {
	RunID          pgtype.Text
	Status         pgtype.Text
	ResourceReport interface{}
}

type ConfigurationVersion

type ConfigurationVersion struct {
	ConfigurationVersionID pgtype.Text
	CreatedAt              pgtype.Timestamptz
	AutoQueueRuns          pgtype.Bool
	Source                 pgtype.Text
	Speculative            pgtype.Bool
	Status                 pgtype.Text
	Config                 []byte
	WorkspaceID            pgtype.Text
}

type ConfigurationVersionStatusTimestamp

type ConfigurationVersionStatusTimestamp struct {
	ConfigurationVersionID pgtype.Text
	Status                 pgtype.Text
	Timestamp              pgtype.Timestamptz
}

type CountRunsParams

type CountRunsParams struct {
	OrganizationNames []pgtype.Text
	WorkspaceIds      []pgtype.Text
	WorkspaceNames    []pgtype.Text
	Sources           []pgtype.Text
	Statuses          []pgtype.Text
	PlanOnly          []pgtype.Text
	CommitSHA         pgtype.Text
	VCSUsername       pgtype.Text
}

type CountWorkspacesByUsernameParams

type CountWorkspacesByUsernameParams struct {
	OrganizationName pgtype.Text
	Username         pgtype.Text
}

type CountWorkspacesParams

type CountWorkspacesParams struct {
	Search            pgtype.Text
	OrganizationNames []pgtype.Text
	Tags              []pgtype.Text
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type DeleteAgentPoolAllowedWorkspaceParams

type DeleteAgentPoolAllowedWorkspaceParams struct {
	PoolID      pgtype.Text
	WorkspaceID pgtype.Text
}

type DeleteTagParams

type DeleteTagParams struct {
	TagID            pgtype.Text
	OrganizationName pgtype.Text
}

type DeleteTeamMembershipParams

type DeleteTeamMembershipParams struct {
	TeamID    pgtype.Text
	Usernames []pgtype.Text
}

type DeleteVariableSetVariableParams

type DeleteVariableSetVariableParams struct {
	VariableSetID pgtype.Text
	VariableID    pgtype.Text
}

type DeleteVariableSetWorkspaceParams

type DeleteVariableSetWorkspaceParams struct {
	VariableSetID pgtype.Text
	WorkspaceID   pgtype.Text
}

type DeleteWorkspacePermissionByIDParams

type DeleteWorkspacePermissionByIDParams struct {
	WorkspaceID pgtype.Text
	TeamID      pgtype.Text
}

type DeleteWorkspaceTagParams

type DeleteWorkspaceTagParams struct {
	WorkspaceID pgtype.Text
	TagID       pgtype.Text
}

type DeleteWorkspaceVariableByIDRow

type DeleteWorkspaceVariableByIDRow struct {
	WorkspaceID pgtype.Text
	Variable    Variable
}

type DestinationType

type DestinationType struct {
	Name pgtype.Text
}

type FindAgentByIDForUpdateRow

type FindAgentByIDForUpdateRow struct {
	AgentID      pgtype.Text
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  pgtype.Text
	CurrentJobs  int64
}

type FindAgentByIDRow

type FindAgentByIDRow struct {
	AgentID      pgtype.Text
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  pgtype.Text
	CurrentJobs  int64
}

type FindAgentPoolByAgentTokenIDRow

type FindAgentPoolByAgentTokenIDRow struct {
	AgentPoolID         pgtype.Text
	Name                pgtype.Text
	CreatedAt           pgtype.Timestamptz
	OrganizationName    pgtype.Text
	OrganizationScoped  pgtype.Bool
	WorkspaceIds        []pgtype.Text
	AllowedWorkspaceIds []pgtype.Text
}

type FindAgentPoolRow

type FindAgentPoolRow struct {
	AgentPoolID         pgtype.Text
	Name                pgtype.Text
	CreatedAt           pgtype.Timestamptz
	OrganizationName    pgtype.Text
	OrganizationScoped  pgtype.Bool
	WorkspaceIds        []pgtype.Text
	AllowedWorkspaceIds []pgtype.Text
}

type FindAgentPoolsByOrganizationParams

type FindAgentPoolsByOrganizationParams struct {
	OrganizationName     pgtype.Text
	NameSubstring        pgtype.Text
	AllowedWorkspaceName pgtype.Text
	AllowedWorkspaceID   pgtype.Text
}

type FindAgentPoolsByOrganizationRow

type FindAgentPoolsByOrganizationRow struct {
	AgentPoolID         pgtype.Text
	Name                pgtype.Text
	CreatedAt           pgtype.Timestamptz
	OrganizationName    pgtype.Text
	OrganizationScoped  pgtype.Bool
	WorkspaceIds        []pgtype.Text
	AllowedWorkspaceIds []pgtype.Text
}

type FindAgentPoolsRow

type FindAgentPoolsRow struct {
	AgentPoolID         pgtype.Text
	Name                pgtype.Text
	CreatedAt           pgtype.Timestamptz
	OrganizationName    pgtype.Text
	OrganizationScoped  pgtype.Bool
	WorkspaceIds        []pgtype.Text
	AllowedWorkspaceIds []pgtype.Text
}

type FindAgentsByOrganizationRow

type FindAgentsByOrganizationRow struct {
	AgentID      pgtype.Text
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  pgtype.Text
	CurrentJobs  int64
}

type FindAgentsByPoolIDRow

type FindAgentsByPoolIDRow struct {
	AgentID      pgtype.Text
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  pgtype.Text
	CurrentJobs  int64
}

type FindAgentsRow

type FindAgentsRow struct {
	AgentID      pgtype.Text
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  pgtype.Text
	CurrentJobs  int64
}

type FindAllocatedJobsRow

type FindAllocatedJobsRow struct {
	RunID            pgtype.Text
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	AgentID          pgtype.Text
	AgentPoolID      pgtype.Text
	WorkspaceID      pgtype.Text
	OrganizationName pgtype.Text
}

type FindAndUpdateSignaledJobsRow

type FindAndUpdateSignaledJobsRow struct {
	RunID            pgtype.Text
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	AgentID          pgtype.Text
	AgentPoolID      pgtype.Text
	WorkspaceID      pgtype.Text
	OrganizationName pgtype.Text
}

type FindConfigurationVersionByIDForUpdateRow

type FindConfigurationVersionByIDForUpdateRow struct {
	ConfigurationVersionID pgtype.Text
	CreatedAt              pgtype.Timestamptz
	AutoQueueRuns          pgtype.Bool
	Source                 pgtype.Text
	Speculative            pgtype.Bool
	Status                 pgtype.Text
	WorkspaceID            pgtype.Text
	StatusTimestamps       []ConfigurationVersionStatusTimestamp
	IngressAttributes      *IngressAttribute
}

type FindConfigurationVersionByIDRow

type FindConfigurationVersionByIDRow struct {
	ConfigurationVersionID pgtype.Text
	CreatedAt              pgtype.Timestamptz
	AutoQueueRuns          pgtype.Bool
	Source                 pgtype.Text
	Speculative            pgtype.Bool
	Status                 pgtype.Text
	WorkspaceID            pgtype.Text
	StatusTimestamps       []ConfigurationVersionStatusTimestamp
	IngressAttributes      *IngressAttribute
}

type FindConfigurationVersionLatestByWorkspaceIDRow

type FindConfigurationVersionLatestByWorkspaceIDRow struct {
	ConfigurationVersionID pgtype.Text
	CreatedAt              pgtype.Timestamptz
	AutoQueueRuns          pgtype.Bool
	Source                 pgtype.Text
	Speculative            pgtype.Bool
	Status                 pgtype.Text
	WorkspaceID            pgtype.Text
	StatusTimestamps       []ConfigurationVersionStatusTimestamp
	IngressAttributes      *IngressAttribute
}

type FindConfigurationVersionsByWorkspaceIDParams

type FindConfigurationVersionsByWorkspaceIDParams struct {
	WorkspaceID pgtype.Text
	Offset      pgtype.Int4
	Limit       pgtype.Int4
}

type FindConfigurationVersionsByWorkspaceIDRow

type FindConfigurationVersionsByWorkspaceIDRow struct {
	ConfigurationVersionID pgtype.Text
	CreatedAt              pgtype.Timestamptz
	AutoQueueRuns          pgtype.Bool
	Source                 pgtype.Text
	Speculative            pgtype.Bool
	Status                 pgtype.Text
	WorkspaceID            pgtype.Text
	StatusTimestamps       []ConfigurationVersionStatusTimestamp
	IngressAttributes      *IngressAttribute
}

type FindCurrentStateVersionByWorkspaceIDRow

type FindCurrentStateVersionByWorkspaceIDRow struct {
	StateVersionID      pgtype.Text
	CreatedAt           pgtype.Timestamptz
	Serial              pgtype.Int4
	State               []byte
	WorkspaceID         pgtype.Text
	Status              pgtype.Text
	StateVersionOutputs []StateVersionOutput
}

type FindJobForUpdateParams

type FindJobForUpdateParams struct {
	RunID pgtype.Text
	Phase pgtype.Text
}

type FindJobForUpdateRow

type FindJobForUpdateRow struct {
	RunID            pgtype.Text
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	AgentID          pgtype.Text
	AgentPoolID      pgtype.Text
	WorkspaceID      pgtype.Text
	OrganizationName pgtype.Text
}

type FindJobParams

type FindJobParams struct {
	RunID pgtype.Text
	Phase pgtype.Text
}

type FindJobRow

type FindJobRow struct {
	RunID            pgtype.Text
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	AgentID          pgtype.Text
	AgentPoolID      pgtype.Text
	WorkspaceID      pgtype.Text
	OrganizationName pgtype.Text
}

type FindJobsRow

type FindJobsRow struct {
	RunID            pgtype.Text
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	AgentID          pgtype.Text
	AgentPoolID      pgtype.Text
	WorkspaceID      pgtype.Text
	OrganizationName pgtype.Text
}

type FindLogChunkByIDRow

type FindLogChunkByIDRow struct {
	ChunkID pgtype.Int4
	RunID   pgtype.Text
	Phase   pgtype.Text
	Chunk   []byte
	Offset  pgtype.Int4
}

type FindLogsParams

type FindLogsParams struct {
	RunID pgtype.Text
	Phase pgtype.Text
}

type FindModuleByConnectionParams

type FindModuleByConnectionParams struct {
	VCSProviderID pgtype.Text
	RepoPath      pgtype.Text
}

type FindModuleByConnectionRow

type FindModuleByConnectionRow struct {
	ModuleID         pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	Provider         pgtype.Text
	Status           pgtype.Text
	OrganizationName pgtype.Text
	VCSProviderID    pgtype.Text
	RepoPath         pgtype.Text
	ModuleVersions   []ModuleVersion
}

type FindModuleByIDRow

type FindModuleByIDRow struct {
	ModuleID         pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	Provider         pgtype.Text
	Status           pgtype.Text
	OrganizationName pgtype.Text
	VCSProviderID    pgtype.Text
	RepoPath         pgtype.Text
	ModuleVersions   []ModuleVersion
}

type FindModuleByModuleVersionIDRow

type FindModuleByModuleVersionIDRow struct {
	ModuleID         pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	Provider         pgtype.Text
	Status           pgtype.Text
	OrganizationName pgtype.Text
	VCSProviderID    pgtype.Text
	RepoPath         pgtype.Text
	ModuleVersions   []ModuleVersion
}

type FindModuleByNameParams

type FindModuleByNameParams struct {
	OrganizationName pgtype.Text
	Name             pgtype.Text
	Provider         pgtype.Text
}

type FindModuleByNameRow

type FindModuleByNameRow struct {
	ModuleID         pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	Provider         pgtype.Text
	Status           pgtype.Text
	OrganizationName pgtype.Text
	VCSProviderID    pgtype.Text
	RepoPath         pgtype.Text
	ModuleVersions   []ModuleVersion
}

type FindOrganizationsParams

type FindOrganizationsParams struct {
	Names  []pgtype.Text
	Offset pgtype.Int4
	Limit  pgtype.Int4
}

type FindRepohookByIDRow

type FindRepohookByIDRow struct {
	RepohookID    pgtype.UUID
	VCSID         pgtype.Text
	VCSProviderID pgtype.Text
	Secret        pgtype.Text
	RepoPath      pgtype.Text
	VCSKind       pgtype.Text
}

type FindRepohookByRepoAndProviderParams

type FindRepohookByRepoAndProviderParams struct {
	RepoPath      pgtype.Text
	VCSProviderID pgtype.Text
}

type FindRepohookByRepoAndProviderRow

type FindRepohookByRepoAndProviderRow struct {
	RepohookID    pgtype.UUID
	VCSID         pgtype.Text
	VCSProviderID pgtype.Text
	Secret        pgtype.Text
	RepoPath      pgtype.Text
	VCSKind       pgtype.Text
}

type FindRepohooksRow

type FindRepohooksRow struct {
	RepohookID    pgtype.UUID
	VCSID         pgtype.Text
	VCSProviderID pgtype.Text
	Secret        pgtype.Text
	RepoPath      pgtype.Text
	VCSKind       pgtype.Text
}

type FindRunByIDForUpdateRow

type FindRunByIDForUpdateRow struct {
	RunID                  pgtype.Text
	CreatedAt              pgtype.Timestamptz
	CancelSignaledAt       pgtype.Timestamptz
	IsDestroy              pgtype.Bool
	PositionInQueue        pgtype.Int4
	Refresh                pgtype.Bool
	RefreshOnly            pgtype.Bool
	Source                 pgtype.Text
	Status                 pgtype.Text
	PlanStatus             pgtype.Text
	ApplyStatus            pgtype.Text
	ReplaceAddrs           []pgtype.Text
	TargetAddrs            []pgtype.Text
	AutoApply              pgtype.Bool
	PlanResourceReport     *Report
	PlanOutputReport       *Report
	ApplyResourceReport    *Report
	ConfigurationVersionID pgtype.Text
	WorkspaceID            pgtype.Text
	PlanOnly               pgtype.Bool
	CreatedBy              pgtype.Text
	TerraformVersion       pgtype.Text
	AllowEmptyApply        pgtype.Bool
	ExecutionMode          pgtype.Text
	Latest                 pgtype.Bool
	OrganizationName       pgtype.Text
	CostEstimationEnabled  pgtype.Bool
	RunStatusTimestamps    []RunStatusTimestamp
	PlanStatusTimestamps   []PhaseStatusTimestamp
	ApplyStatusTimestamps  []PhaseStatusTimestamp
	RunVariables           []RunVariable
	IngressAttributes      *IngressAttribute
}

type FindRunByIDRow

type FindRunByIDRow struct {
	RunID                  pgtype.Text
	CreatedAt              pgtype.Timestamptz
	CancelSignaledAt       pgtype.Timestamptz
	IsDestroy              pgtype.Bool
	PositionInQueue        pgtype.Int4
	Refresh                pgtype.Bool
	RefreshOnly            pgtype.Bool
	Source                 pgtype.Text
	Status                 pgtype.Text
	PlanStatus             pgtype.Text
	ApplyStatus            pgtype.Text
	ReplaceAddrs           []pgtype.Text
	TargetAddrs            []pgtype.Text
	AutoApply              pgtype.Bool
	PlanResourceReport     *Report
	PlanOutputReport       *Report
	ApplyResourceReport    *Report
	ConfigurationVersionID pgtype.Text
	WorkspaceID            pgtype.Text
	PlanOnly               pgtype.Bool
	CreatedBy              pgtype.Text
	TerraformVersion       pgtype.Text
	AllowEmptyApply        pgtype.Bool
	ExecutionMode          pgtype.Text
	Latest                 pgtype.Bool
	OrganizationName       pgtype.Text
	CostEstimationEnabled  pgtype.Bool
	RunStatusTimestamps    []RunStatusTimestamp
	PlanStatusTimestamps   []PhaseStatusTimestamp
	ApplyStatusTimestamps  []PhaseStatusTimestamp
	RunVariables           []RunVariable
	IngressAttributes      *IngressAttribute
}

type FindRunsParams

type FindRunsParams struct {
	OrganizationNames []pgtype.Text
	WorkspaceIds      []pgtype.Text
	WorkspaceNames    []pgtype.Text
	Sources           []pgtype.Text
	Statuses          []pgtype.Text
	PlanOnly          []pgtype.Text
	CommitSHA         pgtype.Text
	VCSUsername       pgtype.Text
	Offset            pgtype.Int4
	Limit             pgtype.Int4
}

type FindRunsRow

type FindRunsRow struct {
	RunID                  pgtype.Text
	CreatedAt              pgtype.Timestamptz
	CancelSignaledAt       pgtype.Timestamptz
	IsDestroy              pgtype.Bool
	PositionInQueue        pgtype.Int4
	Refresh                pgtype.Bool
	RefreshOnly            pgtype.Bool
	Source                 pgtype.Text
	Status                 pgtype.Text
	PlanStatus             pgtype.Text
	ApplyStatus            pgtype.Text
	ReplaceAddrs           []pgtype.Text
	TargetAddrs            []pgtype.Text
	AutoApply              pgtype.Bool
	PlanResourceReport     *Report
	PlanOutputReport       *Report
	ApplyResourceReport    *Report
	ConfigurationVersionID pgtype.Text
	WorkspaceID            pgtype.Text
	PlanOnly               pgtype.Bool
	CreatedBy              pgtype.Text
	TerraformVersion       pgtype.Text
	AllowEmptyApply        pgtype.Bool
	ExecutionMode          pgtype.Text
	Latest                 pgtype.Bool
	OrganizationName       pgtype.Text
	CostEstimationEnabled  pgtype.Bool
	RunStatusTimestamps    []RunStatusTimestamp
	PlanStatusTimestamps   []PhaseStatusTimestamp
	ApplyStatusTimestamps  []PhaseStatusTimestamp
	RunVariables           []RunVariable
	IngressAttributes      *IngressAttribute
}

type FindServerAgentsRow

type FindServerAgentsRow struct {
	AgentID      pgtype.Text
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  pgtype.Text
	CurrentJobs  int64
}

type FindStateVersionByIDForUpdateRow

type FindStateVersionByIDForUpdateRow struct {
	StateVersionID      pgtype.Text
	CreatedAt           pgtype.Timestamptz
	Serial              pgtype.Int4
	State               []byte
	WorkspaceID         pgtype.Text
	Status              pgtype.Text
	StateVersionOutputs []StateVersionOutput
}

type FindStateVersionByIDRow

type FindStateVersionByIDRow struct {
	StateVersionID      pgtype.Text
	CreatedAt           pgtype.Timestamptz
	Serial              pgtype.Int4
	State               []byte
	WorkspaceID         pgtype.Text
	Status              pgtype.Text
	StateVersionOutputs []StateVersionOutput
}

type FindStateVersionsByWorkspaceIDParams

type FindStateVersionsByWorkspaceIDParams struct {
	WorkspaceID pgtype.Text
	Offset      pgtype.Int4
	Limit       pgtype.Int4
}

type FindStateVersionsByWorkspaceIDRow

type FindStateVersionsByWorkspaceIDRow struct {
	StateVersionID      pgtype.Text
	CreatedAt           pgtype.Timestamptz
	Serial              pgtype.Int4
	State               []byte
	WorkspaceID         pgtype.Text
	Status              pgtype.Text
	StateVersionOutputs []StateVersionOutput
}

type FindTagByIDParams

type FindTagByIDParams struct {
	TagID            pgtype.Text
	OrganizationName pgtype.Text
}

type FindTagByIDRow

type FindTagByIDRow struct {
	TagID            pgtype.Text
	Name             pgtype.Text
	OrganizationName pgtype.Text
	InstanceCount    int64
}

type FindTagByNameParams

type FindTagByNameParams struct {
	Name             pgtype.Text
	OrganizationName pgtype.Text
}

type FindTagByNameRow

type FindTagByNameRow struct {
	TagID            pgtype.Text
	Name             pgtype.Text
	OrganizationName pgtype.Text
	InstanceCount    int64
}

type FindTagsParams

type FindTagsParams struct {
	OrganizationName pgtype.Text
	Offset           pgtype.Int4
	Limit            pgtype.Int4
}

type FindTagsRow

type FindTagsRow struct {
	TagID            pgtype.Text
	Name             pgtype.Text
	OrganizationName pgtype.Text
	InstanceCount    int64
}

type FindTeamByNameParams

type FindTeamByNameParams struct {
	Name             pgtype.Text
	OrganizationName pgtype.Text
}

type FindUnreferencedRepohooksRow

type FindUnreferencedRepohooksRow struct {
	RepohookID    pgtype.UUID
	VCSID         pgtype.Text
	VCSProviderID pgtype.Text
	Secret        pgtype.Text
	RepoPath      pgtype.Text
	VCSKind       pgtype.Text
}

type FindUserByAuthenticationTokenIDRow

type FindUserByAuthenticationTokenIDRow struct {
	UserID    pgtype.Text
	Username  pgtype.Text
	CreatedAt pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
	SiteAdmin pgtype.Bool
	Teams     []Team
}

type FindUserByIDRow

type FindUserByIDRow struct {
	UserID    pgtype.Text
	Username  pgtype.Text
	CreatedAt pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
	SiteAdmin pgtype.Bool
	Teams     []Team
}

type FindUserByUsernameRow

type FindUserByUsernameRow struct {
	UserID    pgtype.Text
	Username  pgtype.Text
	CreatedAt pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
	SiteAdmin pgtype.Bool
	Teams     []Team
}

type FindUsersByOrganizationRow

type FindUsersByOrganizationRow struct {
	UserID    pgtype.Text
	Username  pgtype.Text
	CreatedAt pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
	SiteAdmin pgtype.Bool
	Teams     []Team
}

type FindUsersByTeamIDRow

type FindUsersByTeamIDRow struct {
	UserID    pgtype.Text
	Username  pgtype.Text
	CreatedAt pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
	SiteAdmin pgtype.Bool
	Teams     []Team
}

type FindUsersRow

type FindUsersRow struct {
	UserID    pgtype.Text
	Username  pgtype.Text
	CreatedAt pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
	SiteAdmin pgtype.Bool
	Teams     []Team
}

type FindVCSProviderForUpdateRow

type FindVCSProviderForUpdateRow struct {
	VCSProviderID    pgtype.Text
	Token            pgtype.Text
	CreatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	VCSKind          pgtype.Text
	OrganizationName pgtype.Text
	GithubAppID      pgtype.Int8
	GithubApp        *GithubApp
	GithubAppInstall *GithubAppInstall
}

type FindVCSProviderRow

type FindVCSProviderRow struct {
	VCSProviderID    pgtype.Text
	Token            pgtype.Text
	CreatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	VCSKind          pgtype.Text
	OrganizationName pgtype.Text
	GithubAppID      pgtype.Int8
	GithubApp        *GithubApp
	GithubAppInstall *GithubAppInstall
}

type FindVCSProvidersByGithubAppInstallIDRow

type FindVCSProvidersByGithubAppInstallIDRow struct {
	VCSProviderID    pgtype.Text
	Token            pgtype.Text
	CreatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	VCSKind          pgtype.Text
	OrganizationName pgtype.Text
	GithubAppID      pgtype.Int8
	GithubApp        *GithubApp
	GithubAppInstall *GithubAppInstall
}

type FindVCSProvidersByOrganizationRow

type FindVCSProvidersByOrganizationRow struct {
	VCSProviderID    pgtype.Text
	Token            pgtype.Text
	CreatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	VCSKind          pgtype.Text
	OrganizationName pgtype.Text
	GithubAppID      pgtype.Int8
	GithubApp        *GithubApp
	GithubAppInstall *GithubAppInstall
}

type FindVCSProvidersRow

type FindVCSProvidersRow struct {
	VCSProviderID    pgtype.Text
	Token            pgtype.Text
	CreatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	VCSKind          pgtype.Text
	OrganizationName pgtype.Text
	GithubAppID      pgtype.Int8
	GithubApp        *GithubApp
	GithubAppInstall *GithubAppInstall
}

type FindVariableSetBySetIDRow

type FindVariableSetBySetIDRow struct {
	VariableSetID    pgtype.Text
	Global           pgtype.Bool
	Name             pgtype.Text
	Description      pgtype.Text
	OrganizationName pgtype.Text
	Variables        []Variable
	WorkspaceIds     []pgtype.Text
}

type FindVariableSetByVariableIDRow

type FindVariableSetByVariableIDRow struct {
	VariableSetID    pgtype.Text
	Global           pgtype.Bool
	Name             pgtype.Text
	Description      pgtype.Text
	OrganizationName pgtype.Text
	Variables        []Variable
	WorkspaceIds     []pgtype.Text
}

type FindVariableSetForUpdateRow

type FindVariableSetForUpdateRow struct {
	VariableSetID    pgtype.Text
	Global           pgtype.Bool
	Name             pgtype.Text
	Description      pgtype.Text
	OrganizationName pgtype.Text
	Variables        []Variable
	WorkspaceIds     []pgtype.Text
}

type FindVariableSetsByOrganizationRow

type FindVariableSetsByOrganizationRow struct {
	VariableSetID    pgtype.Text
	Global           pgtype.Bool
	Name             pgtype.Text
	Description      pgtype.Text
	OrganizationName pgtype.Text
	Variables        []Variable
	WorkspaceIds     []pgtype.Text
}

type FindVariableSetsByWorkspaceRow

type FindVariableSetsByWorkspaceRow struct {
	VariableSetID    pgtype.Text
	Global           pgtype.Bool
	Name             pgtype.Text
	Description      pgtype.Text
	OrganizationName pgtype.Text
	Variables        []Variable
	WorkspaceIds     []pgtype.Text
}

type FindWorkspaceByIDForUpdateRow

type FindWorkspaceByIDForUpdateRow struct {
	WorkspaceID                pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	AllowDestroyPlan           pgtype.Bool
	AutoApply                  pgtype.Bool
	CanQueueDestroyPlan        pgtype.Bool
	Description                pgtype.Text
	Environment                pgtype.Text
	ExecutionMode              pgtype.Text
	GlobalRemoteState          pgtype.Bool
	MigrationEnvironment       pgtype.Text
	Name                       pgtype.Text
	QueueAllRuns               pgtype.Bool
	SpeculativeEnabled         pgtype.Bool
	SourceName                 pgtype.Text
	SourceURL                  pgtype.Text
	StructuredRunOutputEnabled pgtype.Bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []pgtype.Text
	WorkingDirectory           pgtype.Text
	LockRunID                  pgtype.Text
	LatestRunID                pgtype.Text
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	LockUsername               pgtype.Text
	CurrentStateVersionID      pgtype.Text
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                pgtype.Text
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              pgtype.Text
	RepoPath                   pgtype.Text
}

type FindWorkspaceByIDRow

type FindWorkspaceByIDRow struct {
	WorkspaceID                pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	AllowDestroyPlan           pgtype.Bool
	AutoApply                  pgtype.Bool
	CanQueueDestroyPlan        pgtype.Bool
	Description                pgtype.Text
	Environment                pgtype.Text
	ExecutionMode              pgtype.Text
	GlobalRemoteState          pgtype.Bool
	MigrationEnvironment       pgtype.Text
	Name                       pgtype.Text
	QueueAllRuns               pgtype.Bool
	SpeculativeEnabled         pgtype.Bool
	SourceName                 pgtype.Text
	SourceURL                  pgtype.Text
	StructuredRunOutputEnabled pgtype.Bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []pgtype.Text
	WorkingDirectory           pgtype.Text
	LockRunID                  pgtype.Text
	LatestRunID                pgtype.Text
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	LockUsername               pgtype.Text
	CurrentStateVersionID      pgtype.Text
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                pgtype.Text
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              pgtype.Text
	RepoPath                   pgtype.Text
}

type FindWorkspaceByNameParams

type FindWorkspaceByNameParams struct {
	Name             pgtype.Text
	OrganizationName pgtype.Text
}

type FindWorkspaceByNameRow

type FindWorkspaceByNameRow struct {
	WorkspaceID                pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	AllowDestroyPlan           pgtype.Bool
	AutoApply                  pgtype.Bool
	CanQueueDestroyPlan        pgtype.Bool
	Description                pgtype.Text
	Environment                pgtype.Text
	ExecutionMode              pgtype.Text
	GlobalRemoteState          pgtype.Bool
	MigrationEnvironment       pgtype.Text
	Name                       pgtype.Text
	QueueAllRuns               pgtype.Bool
	SpeculativeEnabled         pgtype.Bool
	SourceName                 pgtype.Text
	SourceURL                  pgtype.Text
	StructuredRunOutputEnabled pgtype.Bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []pgtype.Text
	WorkingDirectory           pgtype.Text
	LockRunID                  pgtype.Text
	LatestRunID                pgtype.Text
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	LockUsername               pgtype.Text
	CurrentStateVersionID      pgtype.Text
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                pgtype.Text
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              pgtype.Text
	RepoPath                   pgtype.Text
}

type FindWorkspaceTagsParams

type FindWorkspaceTagsParams struct {
	WorkspaceID pgtype.Text
	Offset      pgtype.Int4
	Limit       pgtype.Int4
}

type FindWorkspaceTagsRow

type FindWorkspaceTagsRow struct {
	TagID            pgtype.Text
	Name             pgtype.Text
	OrganizationName pgtype.Text
	InstanceCount    int64
}

type FindWorkspaceVariableByVariableIDRow

type FindWorkspaceVariableByVariableIDRow struct {
	WorkspaceID pgtype.Text
	Variable    Variable
}

type FindWorkspacesByConnectionParams

type FindWorkspacesByConnectionParams struct {
	VCSProviderID pgtype.Text
	RepoPath      pgtype.Text
}

type FindWorkspacesByConnectionRow

type FindWorkspacesByConnectionRow struct {
	WorkspaceID                pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	AllowDestroyPlan           pgtype.Bool
	AutoApply                  pgtype.Bool
	CanQueueDestroyPlan        pgtype.Bool
	Description                pgtype.Text
	Environment                pgtype.Text
	ExecutionMode              pgtype.Text
	GlobalRemoteState          pgtype.Bool
	MigrationEnvironment       pgtype.Text
	Name                       pgtype.Text
	QueueAllRuns               pgtype.Bool
	SpeculativeEnabled         pgtype.Bool
	SourceName                 pgtype.Text
	SourceURL                  pgtype.Text
	StructuredRunOutputEnabled pgtype.Bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []pgtype.Text
	WorkingDirectory           pgtype.Text
	LockRunID                  pgtype.Text
	LatestRunID                pgtype.Text
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	LockUsername               pgtype.Text
	CurrentStateVersionID      pgtype.Text
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                pgtype.Text
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              pgtype.Text
	RepoPath                   pgtype.Text
}

type FindWorkspacesByUsernameParams

type FindWorkspacesByUsernameParams struct {
	OrganizationName pgtype.Text
	Username         pgtype.Text
	Offset           pgtype.Int4
	Limit            pgtype.Int4
}

type FindWorkspacesByUsernameRow

type FindWorkspacesByUsernameRow struct {
	WorkspaceID                pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	AllowDestroyPlan           pgtype.Bool
	AutoApply                  pgtype.Bool
	CanQueueDestroyPlan        pgtype.Bool
	Description                pgtype.Text
	Environment                pgtype.Text
	ExecutionMode              pgtype.Text
	GlobalRemoteState          pgtype.Bool
	MigrationEnvironment       pgtype.Text
	Name                       pgtype.Text
	QueueAllRuns               pgtype.Bool
	SpeculativeEnabled         pgtype.Bool
	SourceName                 pgtype.Text
	SourceURL                  pgtype.Text
	StructuredRunOutputEnabled pgtype.Bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []pgtype.Text
	WorkingDirectory           pgtype.Text
	LockRunID                  pgtype.Text
	LatestRunID                pgtype.Text
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	LockUsername               pgtype.Text
	CurrentStateVersionID      pgtype.Text
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                pgtype.Text
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              pgtype.Text
	RepoPath                   pgtype.Text
}

type FindWorkspacesParams

type FindWorkspacesParams struct {
	Search            pgtype.Text
	OrganizationNames []pgtype.Text
	Tags              []pgtype.Text
	Offset            pgtype.Int4
	Limit             pgtype.Int4
}

type FindWorkspacesRow

type FindWorkspacesRow struct {
	WorkspaceID                pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	AllowDestroyPlan           pgtype.Bool
	AutoApply                  pgtype.Bool
	CanQueueDestroyPlan        pgtype.Bool
	Description                pgtype.Text
	Environment                pgtype.Text
	ExecutionMode              pgtype.Text
	GlobalRemoteState          pgtype.Bool
	MigrationEnvironment       pgtype.Text
	Name                       pgtype.Text
	QueueAllRuns               pgtype.Bool
	SpeculativeEnabled         pgtype.Bool
	SourceName                 pgtype.Text
	SourceURL                  pgtype.Text
	StructuredRunOutputEnabled pgtype.Bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []pgtype.Text
	WorkingDirectory           pgtype.Text
	LockRunID                  pgtype.Text
	LatestRunID                pgtype.Text
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	LockUsername               pgtype.Text
	CurrentStateVersionID      pgtype.Text
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                pgtype.Text
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              pgtype.Text
	RepoPath                   pgtype.Text
}

type GithubApp

type GithubApp struct {
	GithubAppID   pgtype.Int8
	WebhookSecret pgtype.Text
	PrivateKey    pgtype.Text
	Slug          pgtype.Text
	Organization  pgtype.Text
}

type GithubAppInstall

type GithubAppInstall struct {
	GithubAppID   pgtype.Int8
	InstallID     pgtype.Int8
	Username      pgtype.Text
	Organization  pgtype.Text
	VCSProviderID pgtype.Text
}

type IngressAttribute

type IngressAttribute struct {
	Branch                 pgtype.Text
	CommitSHA              pgtype.Text
	Identifier             pgtype.Text
	IsPullRequest          pgtype.Bool
	OnDefaultBranch        pgtype.Bool
	ConfigurationVersionID pgtype.Text
	CommitURL              pgtype.Text
	PullRequestNumber      pgtype.Int4
	PullRequestURL         pgtype.Text
	PullRequestTitle       pgtype.Text
	Tag                    pgtype.Text
	SenderUsername         pgtype.Text
	SenderAvatarURL        pgtype.Text
	SenderHTMLURL          pgtype.Text
}

type InsertAgentParams

type InsertAgentParams struct {
	AgentID      pgtype.Text
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  pgtype.Text
}

type InsertAgentPoolAllowedWorkspaceParams

type InsertAgentPoolAllowedWorkspaceParams struct {
	PoolID      pgtype.Text
	WorkspaceID pgtype.Text
}

type InsertAgentPoolParams

type InsertAgentPoolParams struct {
	AgentPoolID        pgtype.Text
	Name               pgtype.Text
	CreatedAt          pgtype.Timestamptz
	OrganizationName   pgtype.Text
	OrganizationScoped pgtype.Bool
}

type InsertAgentTokenParams

type InsertAgentTokenParams struct {
	AgentTokenID pgtype.Text
	CreatedAt    pgtype.Timestamptz
	Description  pgtype.Text
	AgentPoolID  pgtype.Text
}

type InsertApplyParams

type InsertApplyParams struct {
	RunID  pgtype.Text
	Status pgtype.Text
}

type InsertConfigurationVersionParams

type InsertConfigurationVersionParams struct {
	ID            pgtype.Text
	CreatedAt     pgtype.Timestamptz
	AutoQueueRuns pgtype.Bool
	Source        pgtype.Text
	Speculative   pgtype.Bool
	Status        pgtype.Text
	WorkspaceID   pgtype.Text
}

type InsertConfigurationVersionStatusTimestampParams

type InsertConfigurationVersionStatusTimestampParams struct {
	ID        pgtype.Text
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type InsertGithubAppInstallParams

type InsertGithubAppInstallParams struct {
	GithubAppID   pgtype.Int8
	InstallID     pgtype.Int8
	Username      pgtype.Text
	Organization  pgtype.Text
	VCSProviderID pgtype.Text
}

type InsertGithubAppParams

type InsertGithubAppParams struct {
	GithubAppID   pgtype.Int8
	WebhookSecret pgtype.Text
	PrivateKey    pgtype.Text
	Slug          pgtype.Text
	Organization  pgtype.Text
}

type InsertIngressAttributesParams

type InsertIngressAttributesParams struct {
	Branch                 pgtype.Text
	CommitSHA              pgtype.Text
	CommitURL              pgtype.Text
	PullRequestNumber      pgtype.Int4
	PullRequestURL         pgtype.Text
	PullRequestTitle       pgtype.Text
	SenderUsername         pgtype.Text
	SenderAvatarURL        pgtype.Text
	SenderHTMLURL          pgtype.Text
	Identifier             pgtype.Text
	Tag                    pgtype.Text
	IsPullRequest          pgtype.Bool
	OnDefaultBranch        pgtype.Bool
	ConfigurationVersionID pgtype.Text
}

type InsertJobParams

type InsertJobParams struct {
	RunID  pgtype.Text
	Phase  pgtype.Text
	Status pgtype.Text
}

type InsertLogChunkParams

type InsertLogChunkParams struct {
	RunID  pgtype.Text
	Phase  pgtype.Text
	Chunk  []byte
	Offset pgtype.Int4
}

type InsertModuleParams

type InsertModuleParams struct {
	ID               pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	Provider         pgtype.Text
	Status           pgtype.Text
	OrganizationName pgtype.Text
}

type InsertModuleTarballParams

type InsertModuleTarballParams struct {
	Tarball         []byte
	ModuleVersionID pgtype.Text
}

type InsertModuleVersionParams

type InsertModuleVersionParams struct {
	ModuleVersionID pgtype.Text
	Version         pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	ModuleID        pgtype.Text
	Status          pgtype.Text
}

type InsertNotificationConfigurationParams

type InsertNotificationConfigurationParams struct {
	NotificationConfigurationID pgtype.Text
	CreatedAt                   pgtype.Timestamptz
	UpdatedAt                   pgtype.Timestamptz
	Name                        pgtype.Text
	URL                         pgtype.Text
	Triggers                    []pgtype.Text
	DestinationType             pgtype.Text
	Enabled                     pgtype.Bool
	WorkspaceID                 pgtype.Text
}

type InsertOrganizationParams

type InsertOrganizationParams struct {
	ID                         pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	Name                       pgtype.Text
	Email                      pgtype.Text
	CollaboratorAuthPolicy     pgtype.Text
	CostEstimationEnabled      pgtype.Bool
	SessionRemember            pgtype.Int4
	SessionTimeout             pgtype.Int4
	AllowForceDeleteWorkspaces pgtype.Bool
}

type InsertPhaseStatusTimestampParams

type InsertPhaseStatusTimestampParams struct {
	RunID     pgtype.Text
	Phase     pgtype.Text
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type InsertPlanParams

type InsertPlanParams struct {
	RunID  pgtype.Text
	Status pgtype.Text
}

type InsertRepoConnectionParams

type InsertRepoConnectionParams struct {
	VCSProviderID pgtype.Text
	RepoPath      pgtype.Text
	WorkspaceID   pgtype.Text
	ModuleID      pgtype.Text
}

type InsertRepohookParams

type InsertRepohookParams struct {
	RepohookID    pgtype.UUID
	VCSID         pgtype.Text
	VCSProviderID pgtype.Text
	Secret        pgtype.Text
	RepoPath      pgtype.Text
}

type InsertRepohookRow

type InsertRepohookRow struct {
	RepohookID    pgtype.UUID
	VCSID         pgtype.Text
	VCSProviderID pgtype.Text
	Secret        pgtype.Text
	RepoPath      pgtype.Text
	VCSKind       pgtype.Text
}

type InsertRunParams

type InsertRunParams struct {
	ID                     pgtype.Text
	CreatedAt              pgtype.Timestamptz
	IsDestroy              pgtype.Bool
	PositionInQueue        pgtype.Int4
	Refresh                pgtype.Bool
	RefreshOnly            pgtype.Bool
	Source                 pgtype.Text
	Status                 pgtype.Text
	ReplaceAddrs           []pgtype.Text
	TargetAddrs            []pgtype.Text
	AutoApply              pgtype.Bool
	PlanOnly               pgtype.Bool
	ConfigurationVersionID pgtype.Text
	WorkspaceID            pgtype.Text
	CreatedBy              pgtype.Text
	TerraformVersion       pgtype.Text
	AllowEmptyApply        pgtype.Bool
}

type InsertRunStatusTimestampParams

type InsertRunStatusTimestampParams struct {
	ID        pgtype.Text
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type InsertRunVariableParams

type InsertRunVariableParams struct {
	RunID pgtype.Text
	Key   pgtype.Text
	Value pgtype.Text
}

type InsertStateVersionOutputParams

type InsertStateVersionOutputParams struct {
	ID             pgtype.Text
	Name           pgtype.Text
	Sensitive      pgtype.Bool
	Type           pgtype.Text
	Value          []byte
	StateVersionID pgtype.Text
}

type InsertStateVersionParams

type InsertStateVersionParams struct {
	ID          pgtype.Text
	CreatedAt   pgtype.Timestamptz
	Serial      pgtype.Int4
	State       []byte
	Status      pgtype.Text
	WorkspaceID pgtype.Text
}

type InsertTagParams

type InsertTagParams struct {
	TagID            pgtype.Text
	Name             pgtype.Text
	OrganizationName pgtype.Text
}

type InsertTeamMembershipParams

type InsertTeamMembershipParams struct {
	TeamID    pgtype.Text
	Usernames []pgtype.Text
}

type InsertTeamParams

type InsertTeamParams struct {
	ID                              pgtype.Text
	Name                            pgtype.Text
	CreatedAt                       pgtype.Timestamptz
	OrganizationName                pgtype.Text
	Visibility                      pgtype.Text
	SSOTeamID                       pgtype.Text
	PermissionManageWorkspaces      pgtype.Bool
	PermissionManageVCS             pgtype.Bool
	PermissionManageModules         pgtype.Bool
	PermissionManageProviders       pgtype.Bool
	PermissionManagePolicies        pgtype.Bool
	PermissionManagePolicyOverrides pgtype.Bool
}

type InsertTeamTokenParams

type InsertTeamTokenParams struct {
	TeamTokenID pgtype.Text
	CreatedAt   pgtype.Timestamptz
	TeamID      pgtype.Text
	Expiry      pgtype.Timestamptz
}

type InsertTokenParams

type InsertTokenParams struct {
	TokenID     pgtype.Text
	CreatedAt   pgtype.Timestamptz
	Description pgtype.Text
	Username    pgtype.Text
}

type InsertUserParams

type InsertUserParams struct {
	ID        pgtype.Text
	CreatedAt pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
	Username  pgtype.Text
}

type InsertVCSProviderParams

type InsertVCSProviderParams struct {
	VCSProviderID    pgtype.Text
	CreatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	VCSKind          pgtype.Text
	Token            pgtype.Text
	GithubAppID      pgtype.Int8
	OrganizationName pgtype.Text
}

type InsertVariableParams

type InsertVariableParams struct {
	VariableID  pgtype.Text
	Key         pgtype.Text
	Value       pgtype.Text
	Description pgtype.Text
	Category    pgtype.Text
	Sensitive   pgtype.Bool
	HCL         pgtype.Bool
	VersionID   pgtype.Text
}

type InsertVariableSetParams

type InsertVariableSetParams struct {
	VariableSetID    pgtype.Text
	Global           pgtype.Bool
	Name             pgtype.Text
	Description      pgtype.Text
	OrganizationName pgtype.Text
}

type InsertVariableSetVariableParams

type InsertVariableSetVariableParams struct {
	VariableSetID pgtype.Text
	VariableID    pgtype.Text
}

type InsertVariableSetWorkspaceParams

type InsertVariableSetWorkspaceParams struct {
	VariableSetID pgtype.Text
	WorkspaceID   pgtype.Text
}

type InsertWorkspaceParams

type InsertWorkspaceParams struct {
	ID                         pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	AgentPoolID                pgtype.Text
	AllowCLIApply              pgtype.Bool
	AllowDestroyPlan           pgtype.Bool
	AutoApply                  pgtype.Bool
	Branch                     pgtype.Text
	CanQueueDestroyPlan        pgtype.Bool
	Description                pgtype.Text
	Environment                pgtype.Text
	ExecutionMode              pgtype.Text
	GlobalRemoteState          pgtype.Bool
	MigrationEnvironment       pgtype.Text
	Name                       pgtype.Text
	QueueAllRuns               pgtype.Bool
	SpeculativeEnabled         pgtype.Bool
	SourceName                 pgtype.Text
	SourceURL                  pgtype.Text
	StructuredRunOutputEnabled pgtype.Bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []pgtype.Text
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	WorkingDirectory           pgtype.Text
	OrganizationName           pgtype.Text
}

type InsertWorkspaceTagByNameParams

type InsertWorkspaceTagByNameParams struct {
	WorkspaceID pgtype.Text
	TagName     pgtype.Text
}

type InsertWorkspaceTagParams

type InsertWorkspaceTagParams struct {
	TagID       pgtype.Text
	WorkspaceID pgtype.Text
}

type InsertWorkspaceVariableParams

type InsertWorkspaceVariableParams struct {
	VariableID  pgtype.Text
	WorkspaceID pgtype.Text
}

type Job

type Job struct {
	RunID    pgtype.Text
	Phase    pgtype.Text
	Status   pgtype.Text
	AgentID  pgtype.Text
	Signaled pgtype.Bool
}

type JobPhase

type JobPhase struct {
	Phase pgtype.Text
}

type JobStatus

type JobStatus struct {
	Status pgtype.Text
}

type LatestTerraformVersion

type LatestTerraformVersion struct {
	Version    pgtype.Text
	Checkpoint pgtype.Timestamptz
}

type ListModulesByOrganizationRow

type ListModulesByOrganizationRow struct {
	ModuleID         pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	Provider         pgtype.Text
	Status           pgtype.Text
	OrganizationName pgtype.Text
	VCSProviderID    pgtype.Text
	RepoPath         pgtype.Text
	ModuleVersions   []ModuleVersion
}

type Log

type Log struct {
	RunID   pgtype.Text
	Phase   pgtype.Text
	ChunkID pgtype.Int4
	Chunk   []byte
	Offset  pgtype.Int4
}

type Module

type Module struct {
	ModuleID         pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	Provider         pgtype.Text
	Status           pgtype.Text
	OrganizationName pgtype.Text
}

type ModuleStatus

type ModuleStatus struct {
	Status pgtype.Text
}

type ModuleTarball

type ModuleTarball struct {
	Tarball         []byte
	ModuleVersionID pgtype.Text
}

type ModuleVersion

type ModuleVersion struct {
	ModuleVersionID pgtype.Text
	Version         pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	Status          pgtype.Text
	StatusError     pgtype.Text
	ModuleID        pgtype.Text
}

type ModuleVersionStatus

type ModuleVersionStatus struct {
	Status pgtype.Text
}

type NotificationConfiguration

type NotificationConfiguration struct {
	NotificationConfigurationID pgtype.Text
	CreatedAt                   pgtype.Timestamptz
	UpdatedAt                   pgtype.Timestamptz
	Name                        pgtype.Text
	URL                         pgtype.Text
	Triggers                    []pgtype.Text
	DestinationType             pgtype.Text
	WorkspaceID                 pgtype.Text
	Enabled                     pgtype.Bool
}

type Organization

type Organization struct {
	OrganizationID             pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	Name                       pgtype.Text
	SessionRemember            pgtype.Int4
	SessionTimeout             pgtype.Int4
	Email                      pgtype.Text
	CollaboratorAuthPolicy     pgtype.Text
	AllowForceDeleteWorkspaces pgtype.Bool
	CostEstimationEnabled      pgtype.Bool
}

type OrganizationToken

type OrganizationToken struct {
	OrganizationTokenID pgtype.Text
	CreatedAt           pgtype.Timestamptz
	OrganizationName    pgtype.Text
	Expiry              pgtype.Timestamptz
}

type Phase

type Phase struct {
	Phase pgtype.Text
}

type PhaseStatus

type PhaseStatus struct {
	Status pgtype.Text
}

type PhaseStatusTimestamp

type PhaseStatusTimestamp struct {
	RunID     pgtype.Text
	Phase     pgtype.Text
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type Plan

type Plan struct {
	RunID          pgtype.Text
	Status         pgtype.Text
	PlanBin        []byte
	PlanJSON       []byte
	ResourceReport interface{}
	OutputReport   interface{}
}

type PutLockFileParams

type PutLockFileParams struct {
	LockFile []byte
	RunID    pgtype.Text
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CountConfigurationVersionsByWorkspaceID

func (q *Queries) CountConfigurationVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (int64, error)

func (*Queries) CountOrganizations

func (q *Queries) CountOrganizations(ctx context.Context, names []pgtype.Text) (int64, error)

func (*Queries) CountRuns

func (q *Queries) CountRuns(ctx context.Context, arg CountRunsParams) (int64, error)

func (*Queries) CountStateVersionsByWorkspaceID

func (q *Queries) CountStateVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (int64, error)

func (*Queries) CountTags

func (q *Queries) CountTags(ctx context.Context, organizationName pgtype.Text) (int64, error)

func (*Queries) CountWorkspaceTags

func (q *Queries) CountWorkspaceTags(ctx context.Context, workspaceID pgtype.Text) (int64, error)

func (*Queries) CountWorkspaces

func (q *Queries) CountWorkspaces(ctx context.Context, arg CountWorkspacesParams) (int64, error)

func (*Queries) CountWorkspacesByUsername

func (q *Queries) CountWorkspacesByUsername(ctx context.Context, arg CountWorkspacesByUsernameParams) (int64, error)

func (*Queries) DeleteAgent

func (q *Queries) DeleteAgent(ctx context.Context, agentID pgtype.Text) (Agent, error)

func (*Queries) DeleteAgentPool

func (q *Queries) DeleteAgentPool(ctx context.Context, poolID pgtype.Text) (AgentPool, error)

func (*Queries) DeleteAgentPoolAllowedWorkspace

func (q *Queries) DeleteAgentPoolAllowedWorkspace(ctx context.Context, arg DeleteAgentPoolAllowedWorkspaceParams) error

func (*Queries) DeleteAgentTokenByID

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

func (*Queries) DeleteConfigurationVersionByID

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

func (*Queries) DeleteGithubApp

func (q *Queries) DeleteGithubApp(ctx context.Context, githubAppID pgtype.Int8) (GithubApp, error)

func (*Queries) DeleteModuleByID

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

func (*Queries) DeleteModuleConnectionByID

func (q *Queries) DeleteModuleConnectionByID(ctx context.Context, moduleID pgtype.Text) (RepoConnection, error)

func (*Queries) DeleteModuleVersionByID

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

func (*Queries) DeleteNotificationConfigurationByID

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

func (*Queries) DeleteOrganiationTokenByName

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

func (*Queries) DeleteOrganizationByName

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

func (*Queries) DeleteRepohookByID

func (q *Queries) DeleteRepohookByID(ctx context.Context, repohookID pgtype.UUID) (Repohook, error)

func (*Queries) DeleteRunByID

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

func (*Queries) DeleteStateVersionByID

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

func (*Queries) DeleteTag

func (q *Queries) DeleteTag(ctx context.Context, arg DeleteTagParams) (pgtype.Text, error)

func (*Queries) DeleteTeamByID

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

func (*Queries) DeleteTeamMembership

func (q *Queries) DeleteTeamMembership(ctx context.Context, arg DeleteTeamMembershipParams) ([]pgtype.Text, error)

func (*Queries) DeleteTeamTokenByID

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

func (*Queries) DeleteTokenByID

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

func (*Queries) DeleteUserByID

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

func (*Queries) DeleteUserByUsername

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

func (*Queries) DeleteVCSProviderByID

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

func (*Queries) DeleteVariableByID

func (q *Queries) DeleteVariableByID(ctx context.Context, variableID pgtype.Text) (Variable, error)

func (*Queries) DeleteVariableSetByID

func (q *Queries) DeleteVariableSetByID(ctx context.Context, variableSetID pgtype.Text) (VariableSet, error)

func (*Queries) DeleteVariableSetVariable

func (q *Queries) DeleteVariableSetVariable(ctx context.Context, arg DeleteVariableSetVariableParams) (VariableSetVariable, error)

func (*Queries) DeleteVariableSetWorkspace

func (q *Queries) DeleteVariableSetWorkspace(ctx context.Context, arg DeleteVariableSetWorkspaceParams) (VariableSetWorkspace, error)

func (*Queries) DeleteVariableSetWorkspaces

func (q *Queries) DeleteVariableSetWorkspaces(ctx context.Context, variableSetID pgtype.Text) error

func (*Queries) DeleteWorkspaceByID

func (q *Queries) DeleteWorkspaceByID(ctx context.Context, workspaceID pgtype.Text) error

func (*Queries) DeleteWorkspaceConnectionByID

func (q *Queries) DeleteWorkspaceConnectionByID(ctx context.Context, workspaceID pgtype.Text) (RepoConnection, error)

func (*Queries) DeleteWorkspacePermissionByID

func (q *Queries) DeleteWorkspacePermissionByID(ctx context.Context, arg DeleteWorkspacePermissionByIDParams) error

func (*Queries) DeleteWorkspaceTag

func (q *Queries) DeleteWorkspaceTag(ctx context.Context, arg DeleteWorkspaceTagParams) (pgtype.Text, error)

func (*Queries) DeleteWorkspaceVariableByID

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

func (*Queries) DiscardPendingStateVersionsByWorkspaceID

func (q *Queries) DiscardPendingStateVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) error

func (*Queries) DownloadConfigurationVersion

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

DownloadConfigurationVersion gets a configuration_version config tarball.

func (*Queries) FindAgentByID

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

func (*Queries) FindAgentByIDForUpdate

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

func (*Queries) FindAgentPool

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

func (*Queries) FindAgentPoolByAgentTokenID

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

func (*Queries) FindAgentPools

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

func (*Queries) FindAgentPoolsByOrganization

func (q *Queries) FindAgentPoolsByOrganization(ctx context.Context, arg FindAgentPoolsByOrganizationParams) ([]FindAgentPoolsByOrganizationRow, 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

func (*Queries) FindAgentTokenByID

func (q *Queries) FindAgentTokenByID(ctx context.Context, agentTokenID pgtype.Text) (AgentToken, error)

func (*Queries) FindAgentTokensByAgentPoolID

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

func (*Queries) FindAgents

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

func (*Queries) FindAgentsByOrganization

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

func (*Queries) FindAgentsByPoolID

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

func (*Queries) FindAllNotificationConfigurations

func (q *Queries) FindAllNotificationConfigurations(ctx context.Context) ([]NotificationConfiguration, error)

func (*Queries) FindAllocatedJobs

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

func (*Queries) FindAndUpdateSignaledJobs

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

Find signaled jobs and then immediately update signal with null.

func (*Queries) FindConfigurationVersionByID

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

FindConfigurationVersionByID finds a configuration_version by its id.

func (*Queries) FindConfigurationVersionByIDForUpdate

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

func (*Queries) FindConfigurationVersionLatestByWorkspaceID

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

func (*Queries) FindConfigurationVersionsByWorkspaceID

FindConfigurationVersions finds configuration_versions for a given workspace. Results are paginated with limit and offset, and total count is returned.

func (*Queries) FindCurrentStateVersionByWorkspaceID

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

func (*Queries) FindGithubApp

func (q *Queries) FindGithubApp(ctx context.Context) (GithubApp, error)

func (*Queries) FindJob

func (q *Queries) FindJob(ctx context.Context, arg FindJobParams) (FindJobRow, error)

func (*Queries) FindJobForUpdate

func (q *Queries) FindJobForUpdate(ctx context.Context, arg FindJobForUpdateParams) (FindJobForUpdateRow, error)

func (*Queries) FindJobs

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

func (*Queries) FindLatestTerraformVersion

func (q *Queries) FindLatestTerraformVersion(ctx context.Context) ([]LatestTerraformVersion, error)

func (*Queries) FindLogChunkByID

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

func (*Queries) FindLogs

func (q *Queries) FindLogs(ctx context.Context, arg FindLogsParams) ([]byte, error)

FindLogs retrieves all the logs for the given run and phase.

func (*Queries) FindModuleByConnection

func (q *Queries) FindModuleByConnection(ctx context.Context, arg FindModuleByConnectionParams) (FindModuleByConnectionRow, error)

func (*Queries) FindModuleByID

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

func (*Queries) FindModuleByModuleVersionID

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

func (*Queries) FindModuleByName

func (q *Queries) FindModuleByName(ctx context.Context, arg FindModuleByNameParams) (FindModuleByNameRow, error)

func (*Queries) FindModuleTarball

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

func (*Queries) FindNotificationConfiguration

func (q *Queries) FindNotificationConfiguration(ctx context.Context, notificationConfigurationID pgtype.Text) (NotificationConfiguration, error)

func (*Queries) FindNotificationConfigurationForUpdate

func (q *Queries) FindNotificationConfigurationForUpdate(ctx context.Context, notificationConfigurationID pgtype.Text) (NotificationConfiguration, error)

func (*Queries) FindNotificationConfigurationsByWorkspaceID

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

func (*Queries) FindOrganizationByID

func (q *Queries) FindOrganizationByID(ctx context.Context, organizationID pgtype.Text) (Organization, error)

func (*Queries) FindOrganizationByName

func (q *Queries) FindOrganizationByName(ctx context.Context, name pgtype.Text) (Organization, error)

func (*Queries) FindOrganizationByNameForUpdate

func (q *Queries) FindOrganizationByNameForUpdate(ctx context.Context, name pgtype.Text) (Organization, error)

func (*Queries) FindOrganizationNameByWorkspaceID

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

func (*Queries) FindOrganizationTokens

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

func (*Queries) FindOrganizationTokensByID

func (q *Queries) FindOrganizationTokensByID(ctx context.Context, organizationTokenID pgtype.Text) (OrganizationToken, error)

func (*Queries) FindOrganizationTokensByName

func (q *Queries) FindOrganizationTokensByName(ctx context.Context, organizationName pgtype.Text) (OrganizationToken, error)

func (*Queries) FindOrganizations

func (q *Queries) FindOrganizations(ctx context.Context, arg FindOrganizationsParams) ([]Organization, error)

func (*Queries) FindRepohookByID

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

func (*Queries) FindRepohooks

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

func (*Queries) FindRunByID

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

func (*Queries) FindRunByIDForUpdate

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

func (*Queries) FindRuns

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

func (*Queries) FindServerAgents

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

func (*Queries) FindStateVersionByID

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

func (*Queries) FindStateVersionByIDForUpdate

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

func (*Queries) FindStateVersionOutputByID

func (q *Queries) FindStateVersionOutputByID(ctx context.Context, id pgtype.Text) (StateVersionOutput, error)

func (*Queries) FindStateVersionStateByID

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

func (*Queries) FindTagByID

func (q *Queries) FindTagByID(ctx context.Context, arg FindTagByIDParams) (FindTagByIDRow, error)

func (*Queries) FindTagByName

func (q *Queries) FindTagByName(ctx context.Context, arg FindTagByNameParams) (FindTagByNameRow, error)

func (*Queries) FindTags

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

func (*Queries) FindTeamByID

func (q *Queries) FindTeamByID(ctx context.Context, teamID pgtype.Text) (Team, error)

func (*Queries) FindTeamByIDForUpdate

func (q *Queries) FindTeamByIDForUpdate(ctx context.Context, teamID pgtype.Text) (Team, error)

func (*Queries) FindTeamByName

func (q *Queries) FindTeamByName(ctx context.Context, arg FindTeamByNameParams) (Team, error)

func (*Queries) FindTeamByTokenID

func (q *Queries) FindTeamByTokenID(ctx context.Context, tokenID pgtype.Text) (Team, error)

func (*Queries) FindTeamTokensByID

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

func (*Queries) FindTeamsByOrg

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

func (*Queries) FindTokenByID

func (q *Queries) FindTokenByID(ctx context.Context, tokenID pgtype.Text) (Token, error)

func (*Queries) FindTokensByUsername

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

func (*Queries) FindUnreferencedRepohooks

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

func (*Queries) FindUserByAuthenticationTokenID

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

func (*Queries) FindUserByID

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

func (*Queries) FindUserByUsername

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

func (*Queries) FindUsers

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

func (*Queries) FindUsersByOrganization

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

func (*Queries) FindUsersByTeamID

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

func (*Queries) FindVCSProvider

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

func (*Queries) FindVCSProviderForUpdate

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

func (*Queries) FindVCSProviders

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

func (*Queries) FindVCSProvidersByGithubAppInstallID

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

func (*Queries) FindVCSProvidersByOrganization

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

func (*Queries) FindVariable

func (q *Queries) FindVariable(ctx context.Context, variableID pgtype.Text) (Variable, error)

func (*Queries) FindVariableSetBySetID

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

func (*Queries) FindVariableSetByVariableID

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

func (*Queries) FindVariableSetForUpdate

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

func (*Queries) FindVariableSetsByOrganization

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

func (*Queries) FindVariableSetsByWorkspace

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

func (*Queries) FindWorkspaceByID

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

func (*Queries) FindWorkspaceByIDForUpdate

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

func (*Queries) FindWorkspaceByName

func (q *Queries) FindWorkspaceByName(ctx context.Context, arg FindWorkspaceByNameParams) (FindWorkspaceByNameRow, error)

func (*Queries) FindWorkspacePermissionsByWorkspaceID

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

func (*Queries) FindWorkspaceTags

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

func (*Queries) FindWorkspaceVariableByVariableID

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

func (*Queries) FindWorkspaceVariablesByWorkspaceID

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

func (*Queries) FindWorkspaces

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

func (*Queries) FindWorkspacesByConnection

func (q *Queries) FindWorkspacesByConnection(ctx context.Context, arg FindWorkspacesByConnectionParams) ([]FindWorkspacesByConnectionRow, error)

func (*Queries) FindWorkspacesByUsername

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

func (*Queries) GetLockFileByID

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

func (*Queries) GetPlanBinByID

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

func (*Queries) GetPlanJSONByID

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

func (*Queries) InsertAgent

func (q *Queries) InsertAgent(ctx context.Context, arg InsertAgentParams) error

func (*Queries) InsertAgentPool

func (q *Queries) InsertAgentPool(ctx context.Context, arg InsertAgentPoolParams) error

func (*Queries) InsertAgentPoolAllowedWorkspace

func (q *Queries) InsertAgentPoolAllowedWorkspace(ctx context.Context, arg InsertAgentPoolAllowedWorkspaceParams) error

func (*Queries) InsertAgentToken

func (q *Queries) InsertAgentToken(ctx context.Context, arg InsertAgentTokenParams) error

func (*Queries) InsertApply

func (q *Queries) InsertApply(ctx context.Context, arg InsertApplyParams) error

func (*Queries) InsertConfigurationVersion

func (q *Queries) InsertConfigurationVersion(ctx context.Context, arg InsertConfigurationVersionParams) error

func (*Queries) InsertGithubApp

func (q *Queries) InsertGithubApp(ctx context.Context, arg InsertGithubAppParams) error

func (*Queries) InsertGithubAppInstall

func (q *Queries) InsertGithubAppInstall(ctx context.Context, arg InsertGithubAppInstallParams) error

func (*Queries) InsertIngressAttributes

func (q *Queries) InsertIngressAttributes(ctx context.Context, arg InsertIngressAttributesParams) error

func (*Queries) InsertJob

func (q *Queries) InsertJob(ctx context.Context, arg InsertJobParams) error

func (*Queries) InsertLatestTerraformVersion

func (q *Queries) InsertLatestTerraformVersion(ctx context.Context, version pgtype.Text) error

func (*Queries) InsertLogChunk

func (q *Queries) InsertLogChunk(ctx context.Context, arg InsertLogChunkParams) (pgtype.Int4, error)

func (*Queries) InsertModule

func (q *Queries) InsertModule(ctx context.Context, arg InsertModuleParams) error

func (*Queries) InsertModuleTarball

func (q *Queries) InsertModuleTarball(ctx context.Context, arg InsertModuleTarballParams) (pgtype.Text, error)

func (*Queries) InsertModuleVersion

func (q *Queries) InsertModuleVersion(ctx context.Context, arg InsertModuleVersionParams) (ModuleVersion, error)

func (*Queries) InsertNotificationConfiguration

func (q *Queries) InsertNotificationConfiguration(ctx context.Context, arg InsertNotificationConfigurationParams) error

func (*Queries) InsertOrganization

func (q *Queries) InsertOrganization(ctx context.Context, arg InsertOrganizationParams) error

func (*Queries) InsertPhaseStatusTimestamp

func (q *Queries) InsertPhaseStatusTimestamp(ctx context.Context, arg InsertPhaseStatusTimestampParams) error

func (*Queries) InsertPlan

func (q *Queries) InsertPlan(ctx context.Context, arg InsertPlanParams) error

func (*Queries) InsertRepoConnection

func (q *Queries) InsertRepoConnection(ctx context.Context, arg InsertRepoConnectionParams) error

func (*Queries) InsertRepohook

func (q *Queries) InsertRepohook(ctx context.Context, arg InsertRepohookParams) (InsertRepohookRow, error)

func (*Queries) InsertRun

func (q *Queries) InsertRun(ctx context.Context, arg InsertRunParams) error

func (*Queries) InsertRunStatusTimestamp

func (q *Queries) InsertRunStatusTimestamp(ctx context.Context, arg InsertRunStatusTimestampParams) error

func (*Queries) InsertRunVariable

func (q *Queries) InsertRunVariable(ctx context.Context, arg InsertRunVariableParams) error

func (*Queries) InsertStateVersion

func (q *Queries) InsertStateVersion(ctx context.Context, arg InsertStateVersionParams) error

func (*Queries) InsertStateVersionOutput

func (q *Queries) InsertStateVersionOutput(ctx context.Context, arg InsertStateVersionOutputParams) error

func (*Queries) InsertTag

func (q *Queries) InsertTag(ctx context.Context, arg InsertTagParams) error

func (*Queries) InsertTeam

func (q *Queries) InsertTeam(ctx context.Context, arg InsertTeamParams) error

func (*Queries) InsertTeamMembership

func (q *Queries) InsertTeamMembership(ctx context.Context, arg InsertTeamMembershipParams) ([]pgtype.Text, error)

func (*Queries) InsertTeamToken

func (q *Queries) InsertTeamToken(ctx context.Context, arg InsertTeamTokenParams) error

func (*Queries) InsertToken

func (q *Queries) InsertToken(ctx context.Context, arg InsertTokenParams) error

func (*Queries) InsertUser

func (q *Queries) InsertUser(ctx context.Context, arg InsertUserParams) error

func (*Queries) InsertVCSProvider

func (q *Queries) InsertVCSProvider(ctx context.Context, arg InsertVCSProviderParams) error

func (*Queries) InsertVariable

func (q *Queries) InsertVariable(ctx context.Context, arg InsertVariableParams) error

func (*Queries) InsertVariableSet

func (q *Queries) InsertVariableSet(ctx context.Context, arg InsertVariableSetParams) error

func (*Queries) InsertVariableSetVariable

func (q *Queries) InsertVariableSetVariable(ctx context.Context, arg InsertVariableSetVariableParams) error

func (*Queries) InsertVariableSetWorkspace

func (q *Queries) InsertVariableSetWorkspace(ctx context.Context, arg InsertVariableSetWorkspaceParams) error

func (*Queries) InsertWorkspace

func (q *Queries) InsertWorkspace(ctx context.Context, arg InsertWorkspaceParams) error

func (*Queries) InsertWorkspaceTag

func (q *Queries) InsertWorkspaceTag(ctx context.Context, arg InsertWorkspaceTagParams) (pgtype.Text, error)

func (*Queries) InsertWorkspaceTagByName

func (q *Queries) InsertWorkspaceTagByName(ctx context.Context, arg InsertWorkspaceTagByNameParams) (pgtype.Text, error)

func (*Queries) InsertWorkspaceVariable

func (q *Queries) InsertWorkspaceVariable(ctx context.Context, arg InsertWorkspaceVariableParams) error

func (*Queries) ListModulesByOrganization

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

func (*Queries) PutLockFile

func (q *Queries) PutLockFile(ctx context.Context, arg PutLockFileParams) (pgtype.Text, error)

func (*Queries) ResetUserSiteAdmins

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

func (*Queries) UpdateAgent

func (q *Queries) UpdateAgent(ctx context.Context, arg UpdateAgentParams) (Agent, error)

func (*Queries) UpdateAgentPool

func (q *Queries) UpdateAgentPool(ctx context.Context, arg UpdateAgentPoolParams) (AgentPool, error)

func (*Queries) UpdateAppliedChangesByID

func (q *Queries) UpdateAppliedChangesByID(ctx context.Context, arg UpdateAppliedChangesByIDParams) (pgtype.Text, error)

func (*Queries) UpdateApplyStatusByID

func (q *Queries) UpdateApplyStatusByID(ctx context.Context, arg UpdateApplyStatusByIDParams) (pgtype.Text, error)

func (*Queries) UpdateCancelSignaledAt

func (q *Queries) UpdateCancelSignaledAt(ctx context.Context, arg UpdateCancelSignaledAtParams) (pgtype.Text, error)

func (*Queries) UpdateConfigurationVersionConfigByID

func (q *Queries) UpdateConfigurationVersionConfigByID(ctx context.Context, arg UpdateConfigurationVersionConfigByIDParams) (pgtype.Text, error)

func (*Queries) UpdateConfigurationVersionErroredByID

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

func (*Queries) UpdateJob

func (q *Queries) UpdateJob(ctx context.Context, arg UpdateJobParams) (Job, error)

func (*Queries) UpdateLatestTerraformVersion

func (q *Queries) UpdateLatestTerraformVersion(ctx context.Context, version pgtype.Text) error

func (*Queries) UpdateModuleStatusByID

func (q *Queries) UpdateModuleStatusByID(ctx context.Context, arg UpdateModuleStatusByIDParams) (pgtype.Text, error)

func (*Queries) UpdateModuleVersionStatusByID

func (q *Queries) UpdateModuleVersionStatusByID(ctx context.Context, arg UpdateModuleVersionStatusByIDParams) (ModuleVersion, error)

func (*Queries) UpdateNotificationConfigurationByID

func (q *Queries) UpdateNotificationConfigurationByID(ctx context.Context, arg UpdateNotificationConfigurationByIDParams) (pgtype.Text, error)

func (*Queries) UpdateOrganizationByName

func (q *Queries) UpdateOrganizationByName(ctx context.Context, arg UpdateOrganizationByNameParams) (pgtype.Text, error)

func (*Queries) UpdatePlanBinByID

func (q *Queries) UpdatePlanBinByID(ctx context.Context, arg UpdatePlanBinByIDParams) (pgtype.Text, error)

func (*Queries) UpdatePlanJSONByID

func (q *Queries) UpdatePlanJSONByID(ctx context.Context, arg UpdatePlanJSONByIDParams) (pgtype.Text, error)

func (*Queries) UpdatePlanStatusByID

func (q *Queries) UpdatePlanStatusByID(ctx context.Context, arg UpdatePlanStatusByIDParams) (pgtype.Text, error)

func (*Queries) UpdatePlannedChangesByID

func (q *Queries) UpdatePlannedChangesByID(ctx context.Context, arg UpdatePlannedChangesByIDParams) (pgtype.Text, error)

func (*Queries) UpdateRepohookVCSID

func (q *Queries) UpdateRepohookVCSID(ctx context.Context, arg UpdateRepohookVCSIDParams) (Repohook, error)

func (*Queries) UpdateRunStatus

func (q *Queries) UpdateRunStatus(ctx context.Context, arg UpdateRunStatusParams) (pgtype.Text, error)

func (*Queries) UpdateState

func (q *Queries) UpdateState(ctx context.Context, arg UpdateStateParams) error

func (*Queries) UpdateTeamByID

func (q *Queries) UpdateTeamByID(ctx context.Context, arg UpdateTeamByIDParams) (pgtype.Text, error)

func (*Queries) UpdateUserSiteAdmins

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

func (*Queries) UpdateVCSProvider

func (q *Queries) UpdateVCSProvider(ctx context.Context, arg UpdateVCSProviderParams) (VCSProvider, error)

func (*Queries) UpdateVariableByID

func (q *Queries) UpdateVariableByID(ctx context.Context, arg UpdateVariableByIDParams) (pgtype.Text, error)

func (*Queries) UpdateVariableSetByID

func (q *Queries) UpdateVariableSetByID(ctx context.Context, arg UpdateVariableSetByIDParams) (pgtype.Text, error)

func (*Queries) UpdateWorkspaceByID

func (q *Queries) UpdateWorkspaceByID(ctx context.Context, arg UpdateWorkspaceByIDParams) (pgtype.Text, error)

func (*Queries) UpdateWorkspaceCurrentStateVersionID

func (q *Queries) UpdateWorkspaceCurrentStateVersionID(ctx context.Context, arg UpdateWorkspaceCurrentStateVersionIDParams) (pgtype.Text, error)

func (*Queries) UpdateWorkspaceLatestRun

func (q *Queries) UpdateWorkspaceLatestRun(ctx context.Context, arg UpdateWorkspaceLatestRunParams) error

func (*Queries) UpdateWorkspaceLockByID

func (q *Queries) UpdateWorkspaceLockByID(ctx context.Context, arg UpdateWorkspaceLockByIDParams) error

func (*Queries) UpsertOrganizationToken

func (q *Queries) UpsertOrganizationToken(ctx context.Context, arg UpsertOrganizationTokenParams) error

func (*Queries) UpsertWorkspacePermission

func (q *Queries) UpsertWorkspacePermission(ctx context.Context, arg UpsertWorkspacePermissionParams) error

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type RegistrySession

type RegistrySession struct {
	Token            pgtype.Text
	Expiry           pgtype.Timestamptz
	OrganizationName pgtype.Text
}

type RepoConnection

type RepoConnection struct {
	ModuleID      pgtype.Text
	WorkspaceID   pgtype.Text
	RepoPath      pgtype.Text
	VCSProviderID pgtype.Text
}

type Repohook

type Repohook struct {
	RepohookID    pgtype.UUID
	VCSID         pgtype.Text
	Secret        pgtype.Text
	RepoPath      pgtype.Text
	VCSProviderID pgtype.Text
}

type Report

type Report struct {
	Additions    int `json:"additions"`
	Changes      int `json:"changes"`
	Destructions int `json:"destructions"`
}

type Run

type Run struct {
	RunID                  pgtype.Text
	CreatedAt              pgtype.Timestamptz
	CancelSignaledAt       pgtype.Timestamptz
	IsDestroy              pgtype.Bool
	PositionInQueue        pgtype.Int4
	Refresh                pgtype.Bool
	RefreshOnly            pgtype.Bool
	ReplaceAddrs           []pgtype.Text
	TargetAddrs            []pgtype.Text
	LockFile               []byte
	Status                 pgtype.Text
	WorkspaceID            pgtype.Text
	ConfigurationVersionID pgtype.Text
	AutoApply              pgtype.Bool
	PlanOnly               pgtype.Bool
	CreatedBy              pgtype.Text
	Source                 pgtype.Text
	TerraformVersion       pgtype.Text
	AllowEmptyApply        pgtype.Bool
}

type RunStatus

type RunStatus struct {
	Status pgtype.Text
}

type RunStatusTimestamp

type RunStatusTimestamp struct {
	RunID     pgtype.Text
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type RunVariable

type RunVariable struct {
	RunID pgtype.Text
	Key   pgtype.Text
	Value pgtype.Text
}

type SchemaVersion

type SchemaVersion struct {
	Version pgtype.Int4
}

type Session

type Session struct {
	Token     pgtype.Text
	CreatedAt pgtype.Timestamptz
	Address   pgtype.Text
	Expiry    pgtype.Timestamptz
	Username  pgtype.Text
}

type StateVersion

type StateVersion struct {
	StateVersionID pgtype.Text
	CreatedAt      pgtype.Timestamptz
	Serial         pgtype.Int4
	State          []byte
	WorkspaceID    pgtype.Text
	Status         pgtype.Text
}

type StateVersionOutput

type StateVersionOutput struct {
	StateVersionOutputID pgtype.Text
	Name                 pgtype.Text
	Sensitive            pgtype.Bool
	Type                 pgtype.Text
	Value                []byte
	StateVersionID       pgtype.Text
}

type StateVersionStatus

type StateVersionStatus struct {
	Status pgtype.Text
}

type Tag

type Tag struct {
	TagID            pgtype.Text
	Name             pgtype.Text
	OrganizationName pgtype.Text
}

type Team

type Team struct {
	TeamID                          pgtype.Text
	Name                            pgtype.Text
	CreatedAt                       pgtype.Timestamptz
	PermissionManageWorkspaces      pgtype.Bool
	PermissionManageVCS             pgtype.Bool
	PermissionManageModules         pgtype.Bool
	OrganizationName                pgtype.Text
	SSOTeamID                       pgtype.Text
	Visibility                      pgtype.Text
	PermissionManagePolicies        pgtype.Bool
	PermissionManagePolicyOverrides pgtype.Bool
	PermissionManageProviders       pgtype.Bool
}

type TeamMembership

type TeamMembership struct {
	TeamID   pgtype.Text
	Username pgtype.Text
}

type TeamToken

type TeamToken struct {
	TeamTokenID pgtype.Text
	Description pgtype.Text
	CreatedAt   pgtype.Timestamptz
	TeamID      pgtype.Text
	Expiry      pgtype.Timestamptz
}

type Token

type Token struct {
	TokenID     pgtype.Text
	CreatedAt   pgtype.Timestamptz
	Description pgtype.Text
	Username    pgtype.Text
}

type UpdateAgentParams

type UpdateAgentParams struct {
	Status       pgtype.Text
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	AgentID      pgtype.Text
}

type UpdateAgentPoolParams

type UpdateAgentPoolParams struct {
	Name               pgtype.Text
	OrganizationScoped pgtype.Bool
	PoolID             pgtype.Text
}

type UpdateAppliedChangesByIDParams

type UpdateAppliedChangesByIDParams struct {
	RunID        pgtype.Text
	Additions    pgtype.Int4
	Changes      pgtype.Int4
	Destructions pgtype.Int4
}

type UpdateApplyStatusByIDParams

type UpdateApplyStatusByIDParams struct {
	RunID  pgtype.Text
	Status pgtype.Text
}

type UpdateCancelSignaledAtParams

type UpdateCancelSignaledAtParams struct {
	CancelSignaledAt pgtype.Timestamptz
	ID               pgtype.Text
}

type UpdateConfigurationVersionConfigByIDParams

type UpdateConfigurationVersionConfigByIDParams struct {
	Config []byte
	ID     pgtype.Text
}

type UpdateJobParams

type UpdateJobParams struct {
	Status   pgtype.Text
	Signaled pgtype.Bool
	AgentID  pgtype.Text
	RunID    pgtype.Text
	Phase    pgtype.Text
}

type UpdateModuleStatusByIDParams

type UpdateModuleStatusByIDParams struct {
	Status   pgtype.Text
	ModuleID pgtype.Text
}

type UpdateModuleVersionStatusByIDParams

type UpdateModuleVersionStatusByIDParams struct {
	Status          pgtype.Text
	StatusError     pgtype.Text
	ModuleVersionID pgtype.Text
}

type UpdateNotificationConfigurationByIDParams

type UpdateNotificationConfigurationByIDParams struct {
	UpdatedAt                   pgtype.Timestamptz
	Enabled                     pgtype.Bool
	Name                        pgtype.Text
	Triggers                    []pgtype.Text
	URL                         pgtype.Text
	NotificationConfigurationID pgtype.Text
}

type UpdateOrganizationByNameParams

type UpdateOrganizationByNameParams struct {
	NewName                    pgtype.Text
	Email                      pgtype.Text
	CollaboratorAuthPolicy     pgtype.Text
	CostEstimationEnabled      pgtype.Bool
	SessionRemember            pgtype.Int4
	SessionTimeout             pgtype.Int4
	AllowForceDeleteWorkspaces pgtype.Bool
	UpdatedAt                  pgtype.Timestamptz
	Name                       pgtype.Text
}

type UpdatePlanBinByIDParams

type UpdatePlanBinByIDParams struct {
	PlanBin []byte
	RunID   pgtype.Text
}

type UpdatePlanJSONByIDParams

type UpdatePlanJSONByIDParams struct {
	PlanJSON []byte
	RunID    pgtype.Text
}

type UpdatePlanStatusByIDParams

type UpdatePlanStatusByIDParams struct {
	Status pgtype.Text
	RunID  pgtype.Text
}

type UpdatePlannedChangesByIDParams

type UpdatePlannedChangesByIDParams struct {
	ResourceAdditions    interface{}
	ResourceChanges      interface{}
	ResourceDestructions interface{}
	OutputAdditions      interface{}
	OutputChanges        interface{}
	OutputDestructions   interface{}
	RunID                pgtype.Text
}

type UpdateRepohookVCSIDParams

type UpdateRepohookVCSIDParams struct {
	VCSID      pgtype.Text
	RepohookID pgtype.UUID
}

type UpdateRunStatusParams

type UpdateRunStatusParams struct {
	Status pgtype.Text
	ID     pgtype.Text
}

type UpdateStateParams

type UpdateStateParams struct {
	State          []byte
	StateVersionID pgtype.Text
}

type UpdateTeamByIDParams

type UpdateTeamByIDParams struct {
	Name                            pgtype.Text
	Visibility                      pgtype.Text
	SSOTeamID                       pgtype.Text
	PermissionManageWorkspaces      pgtype.Bool
	PermissionManageVCS             pgtype.Bool
	PermissionManageModules         pgtype.Bool
	PermissionManageProviders       pgtype.Bool
	PermissionManagePolicies        pgtype.Bool
	PermissionManagePolicyOverrides pgtype.Bool
	TeamID                          pgtype.Text
}

type UpdateVCSProviderParams

type UpdateVCSProviderParams struct {
	Name          pgtype.Text
	Token         pgtype.Text
	VCSProviderID pgtype.Text
}

type UpdateVariableByIDParams

type UpdateVariableByIDParams struct {
	Key         pgtype.Text
	Value       pgtype.Text
	Description pgtype.Text
	Category    pgtype.Text
	Sensitive   pgtype.Bool
	VersionID   pgtype.Text
	HCL         pgtype.Bool
	VariableID  pgtype.Text
}

type UpdateVariableSetByIDParams

type UpdateVariableSetByIDParams struct {
	Global        pgtype.Bool
	Name          pgtype.Text
	Description   pgtype.Text
	VariableSetID pgtype.Text
}

type UpdateWorkspaceByIDParams

type UpdateWorkspaceByIDParams struct {
	AgentPoolID                pgtype.Text
	AllowDestroyPlan           pgtype.Bool
	AllowCLIApply              pgtype.Bool
	AutoApply                  pgtype.Bool
	Branch                     pgtype.Text
	Description                pgtype.Text
	ExecutionMode              pgtype.Text
	GlobalRemoteState          pgtype.Bool
	Name                       pgtype.Text
	QueueAllRuns               pgtype.Bool
	SpeculativeEnabled         pgtype.Bool
	StructuredRunOutputEnabled pgtype.Bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []pgtype.Text
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	WorkingDirectory           pgtype.Text
	UpdatedAt                  pgtype.Timestamptz
	ID                         pgtype.Text
}

type UpdateWorkspaceCurrentStateVersionIDParams

type UpdateWorkspaceCurrentStateVersionIDParams struct {
	StateVersionID pgtype.Text
	WorkspaceID    pgtype.Text
}

type UpdateWorkspaceLatestRunParams

type UpdateWorkspaceLatestRunParams struct {
	RunID       pgtype.Text
	WorkspaceID pgtype.Text
}

type UpdateWorkspaceLockByIDParams

type UpdateWorkspaceLockByIDParams struct {
	Username    pgtype.Text
	RunID       pgtype.Text
	WorkspaceID pgtype.Text
}

type UpsertOrganizationTokenParams

type UpsertOrganizationTokenParams struct {
	OrganizationTokenID pgtype.Text
	CreatedAt           pgtype.Timestamptz
	OrganizationName    pgtype.Text
	Expiry              pgtype.Timestamptz
}

type UpsertWorkspacePermissionParams

type UpsertWorkspacePermissionParams struct {
	WorkspaceID pgtype.Text
	TeamID      pgtype.Text
	Role        pgtype.Text
}

type User

type User struct {
	UserID    pgtype.Text
	Username  pgtype.Text
	CreatedAt pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
	SiteAdmin pgtype.Bool
}

type VCSKind

type VCSKind struct {
	Name pgtype.Text
}

type VCSProvider

type VCSProvider struct {
	VCSProviderID    pgtype.Text
	Token            pgtype.Text
	CreatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	VCSKind          pgtype.Text
	OrganizationName pgtype.Text
	GithubAppID      pgtype.Int8
}

type Variable

type Variable struct {
	VariableID  pgtype.Text
	Key         pgtype.Text
	Value       pgtype.Text
	Description pgtype.Text
	Category    pgtype.Text
	Sensitive   pgtype.Bool
	HCL         pgtype.Bool
	VersionID   pgtype.Text
}

type VariableCategory

type VariableCategory struct {
	Category pgtype.Text
}

type VariableSet

type VariableSet struct {
	VariableSetID    pgtype.Text
	Global           pgtype.Bool
	Name             pgtype.Text
	Description      pgtype.Text
	OrganizationName pgtype.Text
}

type VariableSetVariable

type VariableSetVariable struct {
	VariableSetID pgtype.Text
	VariableID    pgtype.Text
}

type VariableSetWorkspace

type VariableSetWorkspace struct {
	VariableSetID pgtype.Text
	WorkspaceID   pgtype.Text
}

type Workspace

type Workspace struct {
	WorkspaceID                pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	AllowDestroyPlan           pgtype.Bool
	AutoApply                  pgtype.Bool
	CanQueueDestroyPlan        pgtype.Bool
	Description                pgtype.Text
	Environment                pgtype.Text
	ExecutionMode              pgtype.Text
	GlobalRemoteState          pgtype.Bool
	MigrationEnvironment       pgtype.Text
	Name                       pgtype.Text
	QueueAllRuns               pgtype.Bool
	SpeculativeEnabled         pgtype.Bool
	SourceName                 pgtype.Text
	SourceURL                  pgtype.Text
	StructuredRunOutputEnabled pgtype.Bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []pgtype.Text
	WorkingDirectory           pgtype.Text
	LockRunID                  pgtype.Text
	LatestRunID                pgtype.Text
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	LockUsername               pgtype.Text
	CurrentStateVersionID      pgtype.Text
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                pgtype.Text
}

type WorkspacePermission

type WorkspacePermission struct {
	WorkspaceID pgtype.Text
	TeamID      pgtype.Text
	Role        pgtype.Text
}

type WorkspaceRole

type WorkspaceRole struct {
	Role pgtype.Text
}

type WorkspaceTag

type WorkspaceTag struct {
	TagID       pgtype.Text
	WorkspaceID pgtype.Text
}

type WorkspaceVariable

type WorkspaceVariable struct {
	WorkspaceID pgtype.Text
	VariableID  pgtype.Text
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL