sqlc

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MPL-2.0 Imports: 6 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 AgentPool

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

type AgentPoolAllowedWorkspace

type AgentPoolAllowedWorkspace struct {
	AgentPoolID resource.ID
	WorkspaceID resource.ID
}

type AgentToken

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

type Apply

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

type ConfigurationVersion

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

type ConfigurationVersionStatusTimestamp

type ConfigurationVersionStatusTimestamp struct {
	ConfigurationVersionID resource.ID
	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      resource.ID
	WorkspaceID resource.ID
}

type DeleteTagParams

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

type DeleteTeamMembershipParams

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

type DeleteVariableSetVariableParams

type DeleteVariableSetVariableParams struct {
	VariableSetID resource.ID
	VariableID    resource.ID
}

type DeleteVariableSetWorkspaceParams

type DeleteVariableSetWorkspaceParams struct {
	VariableSetID resource.ID
	WorkspaceID   resource.ID
}

type DeleteWorkspacePermissionByIDParams

type DeleteWorkspacePermissionByIDParams struct {
	WorkspaceID resource.ID
	TeamID      resource.ID
}

type DeleteWorkspaceTagParams

type DeleteWorkspaceTagParams struct {
	WorkspaceID resource.ID
	TagID       resource.ID
}

type DeleteWorkspaceVariableByIDRow

type DeleteWorkspaceVariableByIDRow struct {
	WorkspaceID resource.ID
	Variable    Variable
}

type DestinationType

type DestinationType struct {
	Name pgtype.Text
}

type FindAgentPoolByAgentTokenIDRow

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

type FindAgentPoolRow

type FindAgentPoolRow struct {
	AgentPoolID         resource.ID
	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         resource.ID
	Name                pgtype.Text
	CreatedAt           pgtype.Timestamptz
	OrganizationName    pgtype.Text
	OrganizationScoped  pgtype.Bool
	WorkspaceIds        []pgtype.Text
	AllowedWorkspaceIds []pgtype.Text
}

type FindAgentPoolsRow

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

type FindAllocatedJobsRow

type FindAllocatedJobsRow struct {
	JobID            resource.ID
	RunID            resource.ID
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	RunnerID         *resource.ID
	AgentPoolID      *resource.ID
	WorkspaceID      resource.ID
	OrganizationName pgtype.Text
}

type FindAndUpdateSignaledJobsRow

type FindAndUpdateSignaledJobsRow struct {
	JobID            resource.ID
	RunID            resource.ID
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	RunnerID         *resource.ID
	AgentPoolID      *resource.ID
	WorkspaceID      resource.ID
	OrganizationName pgtype.Text
}

type FindConfigurationVersionByIDForUpdateRow

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

type FindConfigurationVersionByIDRow

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

type FindConfigurationVersionLatestByWorkspaceIDRow

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

type FindConfigurationVersionsByWorkspaceIDParams

type FindConfigurationVersionsByWorkspaceIDParams struct {
	WorkspaceID resource.ID
	Offset      pgtype.Int4
	Limit       pgtype.Int4
}

type FindConfigurationVersionsByWorkspaceIDRow

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

type FindCurrentStateVersionByWorkspaceIDRow

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

type FindJobForUpdateByRunPhaseParams added in v0.3.6

type FindJobForUpdateByRunPhaseParams struct {
	RunID resource.ID
	Phase pgtype.Text
}

type FindJobForUpdateByRunPhaseRow added in v0.3.6

type FindJobForUpdateByRunPhaseRow struct {
	JobID            resource.ID
	RunID            resource.ID
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	RunnerID         *resource.ID
	AgentPoolID      *resource.ID
	WorkspaceID      resource.ID
	OrganizationName pgtype.Text
}

type FindJobForUpdateRow

type FindJobForUpdateRow struct {
	JobID            resource.ID
	RunID            resource.ID
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	RunnerID         *resource.ID
	AgentPoolID      *resource.ID
	WorkspaceID      resource.ID
	OrganizationName pgtype.Text
}

type FindJobRow

type FindJobRow struct {
	JobID            resource.ID
	RunID            resource.ID
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	RunnerID         *resource.ID
	AgentPoolID      *resource.ID
	WorkspaceID      resource.ID
	OrganizationName pgtype.Text
}

type FindJobsRow

type FindJobsRow struct {
	JobID            resource.ID
	RunID            resource.ID
	Phase            pgtype.Text
	Status           pgtype.Text
	Signaled         pgtype.Bool
	RunnerID         *resource.ID
	AgentPoolID      *resource.ID
	WorkspaceID      resource.ID
	OrganizationName pgtype.Text
}

type FindLogChunkByIDRow

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

type FindLogsParams

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

type FindModuleByConnectionParams

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

type FindModuleByConnectionRow

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

type FindModuleByIDRow

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

type FindModuleByModuleVersionIDRow

type FindModuleByModuleVersionIDRow struct {
	ModuleID         resource.ID
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	Provider         pgtype.Text
	Status           pgtype.Text
	OrganizationName pgtype.Text
	VCSProviderID    resource.ID
	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         resource.ID
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	Provider         pgtype.Text
	Status           pgtype.Text
	OrganizationName pgtype.Text
	VCSProviderID    resource.ID
	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 resource.ID
	Secret        pgtype.Text
	RepoPath      pgtype.Text
	VCSKind       pgtype.Text
}

type FindRepohookByRepoAndProviderParams

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

type FindRepohookByRepoAndProviderRow

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

type FindRepohooksRow

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

type FindRunByIDForUpdateRow

type FindRunByIDForUpdateRow struct {
	RunID                  resource.ID
	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 resource.ID
	WorkspaceID            resource.ID
	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                  resource.ID
	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 resource.ID
	WorkspaceID            resource.ID
	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 FindRunnerByIDForUpdateRow added in v0.3.6

type FindRunnerByIDForUpdateRow struct {
	RunnerID     resource.ID
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  *resource.ID
	AgentPool    *AgentPool
	CurrentJobs  int64
}

type FindRunnerByIDRow added in v0.3.6

type FindRunnerByIDRow struct {
	RunnerID     resource.ID
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  *resource.ID
	AgentPool    *AgentPool
	CurrentJobs  int64
}

type FindRunnersByOrganizationRow added in v0.3.6

type FindRunnersByOrganizationRow struct {
	RunnerID     resource.ID
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  *resource.ID
	AgentPool    *AgentPool
	CurrentJobs  int64
}

type FindRunnersByPoolIDRow added in v0.3.6

type FindRunnersByPoolIDRow struct {
	RunnerID     resource.ID
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  *resource.ID
	AgentPool    *AgentPool
	CurrentJobs  int64
}

type FindRunnersRow added in v0.3.6

type FindRunnersRow struct {
	RunnerID     resource.ID
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  *resource.ID
	AgentPool    *AgentPool
	CurrentJobs  int64
}

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                  resource.ID
	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 resource.ID
	WorkspaceID            resource.ID
	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 FindServerRunnersRow added in v0.3.6

type FindServerRunnersRow struct {
	RunnerID     resource.ID
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  *resource.ID
	AgentPool    *AgentPool
	CurrentJobs  int64
}

type FindStateVersionByIDForUpdateRow

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

type FindStateVersionByIDRow

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

type FindStateVersionsByWorkspaceIDParams

type FindStateVersionsByWorkspaceIDParams struct {
	WorkspaceID resource.ID
	Offset      pgtype.Int4
	Limit       pgtype.Int4
}

type FindStateVersionsByWorkspaceIDRow

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

type FindTagByIDParams

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

type FindTagByIDRow

type FindTagByIDRow struct {
	TagID            resource.ID
	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            resource.ID
	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            resource.ID
	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 resource.ID
	Secret        pgtype.Text
	RepoPath      pgtype.Text
	VCSKind       pgtype.Text
}

type FindUserByAuthenticationTokenIDRow

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

type FindUserByIDRow

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

type FindUserByUsernameRow

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

type FindUsersByOrganizationRow

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

type FindUsersByTeamIDRow

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

type FindUsersRow

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

type FindVCSProviderForUpdateRow

type FindVCSProviderForUpdateRow struct {
	VCSProviderID    resource.ID
	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    resource.ID
	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    resource.ID
	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    resource.ID
	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    resource.ID
	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    resource.ID
	Global           pgtype.Bool
	Name             pgtype.Text
	Description      pgtype.Text
	OrganizationName pgtype.Text
	Variables        []Variable
	WorkspaceIds     []pgtype.Text
}

type FindVariableSetByVariableIDRow

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

type FindVariableSetForUpdateRow

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

type FindVariableSetsByOrganizationRow

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

type FindVariableSetsByWorkspaceRow

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

type FindWorkspaceByIDForUpdateRow

type FindWorkspaceByIDForUpdateRow struct {
	WorkspaceID                resource.ID
	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                  *resource.ID
	LatestRunID                *resource.ID
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	CurrentStateVersionID      *resource.ID
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                *resource.ID
	LockUserID                 *resource.ID
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              resource.ID
	RepoPath                   pgtype.Text
}

type FindWorkspaceByIDRow

type FindWorkspaceByIDRow struct {
	WorkspaceID                resource.ID
	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                  *resource.ID
	LatestRunID                *resource.ID
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	CurrentStateVersionID      *resource.ID
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                *resource.ID
	LockUserID                 *resource.ID
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              resource.ID
	RepoPath                   pgtype.Text
}

type FindWorkspaceByNameParams

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

type FindWorkspaceByNameRow

type FindWorkspaceByNameRow struct {
	WorkspaceID                resource.ID
	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                  *resource.ID
	LatestRunID                *resource.ID
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	CurrentStateVersionID      *resource.ID
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                *resource.ID
	LockUserID                 *resource.ID
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              resource.ID
	RepoPath                   pgtype.Text
}

type FindWorkspacePermissionsAndGlobalRemoteStateRow added in v0.3.6

type FindWorkspacePermissionsAndGlobalRemoteStateRow struct {
	GlobalRemoteState    pgtype.Bool
	WorkspacePermissions []WorkspacePermission
}

type FindWorkspaceTagsParams

type FindWorkspaceTagsParams struct {
	WorkspaceID resource.ID
	Offset      pgtype.Int4
	Limit       pgtype.Int4
}

type FindWorkspaceTagsRow

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

type FindWorkspaceVariableByVariableIDRow

type FindWorkspaceVariableByVariableIDRow struct {
	WorkspaceID resource.ID
	Variable    Variable
}

type FindWorkspacesByConnectionParams

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

type FindWorkspacesByConnectionRow

type FindWorkspacesByConnectionRow struct {
	WorkspaceID                resource.ID
	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                  *resource.ID
	LatestRunID                *resource.ID
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	CurrentStateVersionID      *resource.ID
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                *resource.ID
	LockUserID                 *resource.ID
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              resource.ID
	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                resource.ID
	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                  *resource.ID
	LatestRunID                *resource.ID
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	CurrentStateVersionID      *resource.ID
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                *resource.ID
	LockUserID                 *resource.ID
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              resource.ID
	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                resource.ID
	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                  *resource.ID
	LatestRunID                *resource.ID
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	CurrentStateVersionID      *resource.ID
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                *resource.ID
	LockUserID                 *resource.ID
	Tags                       []pgtype.Text
	LatestRunStatus            pgtype.Text
	VCSProviderID              resource.ID
	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 resource.ID
}

type IngressAttribute

type IngressAttribute struct {
	Branch                 pgtype.Text
	CommitSHA              pgtype.Text
	Identifier             pgtype.Text
	IsPullRequest          pgtype.Bool
	OnDefaultBranch        pgtype.Bool
	ConfigurationVersionID resource.ID
	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 InsertAgentPoolAllowedWorkspaceParams

type InsertAgentPoolAllowedWorkspaceParams struct {
	PoolID      resource.ID
	WorkspaceID resource.ID
}

type InsertAgentPoolParams

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

type InsertAgentTokenParams

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

type InsertApplyParams

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

type InsertConfigurationVersionParams

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

type InsertConfigurationVersionStatusTimestampParams

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

type InsertGithubAppInstallParams

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

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 resource.ID
}

type InsertJobParams

type InsertJobParams struct {
	JobID  resource.ID
	RunID  resource.ID
	Phase  pgtype.Text
	Status pgtype.Text
}

type InsertLogChunkParams

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

type InsertModuleParams

type InsertModuleParams struct {
	ID               resource.ID
	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 resource.ID
}

type InsertModuleVersionParams

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

type InsertNotificationConfigurationParams

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

type InsertOrganizationParams

type InsertOrganizationParams struct {
	ID                         resource.ID
	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     resource.ID
	Phase     pgtype.Text
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type InsertPlanParams

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

type InsertRepoConnectionParams

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

type InsertRepohookParams

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

type InsertRepohookRow

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

type InsertRunParams

type InsertRunParams struct {
	ID                     resource.ID
	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 resource.ID
	WorkspaceID            resource.ID
	CreatedBy              pgtype.Text
	TerraformVersion       pgtype.Text
	AllowEmptyApply        pgtype.Bool
}

type InsertRunStatusTimestampParams

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

type InsertRunVariableParams

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

type InsertRunnerParams added in v0.3.6

type InsertRunnerParams struct {
	RunnerID     resource.ID
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  *resource.ID
}

type InsertStateVersionOutputParams

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

type InsertStateVersionParams

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

type InsertTagParams

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

type InsertTeamMembershipParams

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

type InsertTeamParams

type InsertTeamParams struct {
	ID                              resource.ID
	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 resource.ID
	CreatedAt   pgtype.Timestamptz
	TeamID      resource.ID
	Expiry      pgtype.Timestamptz
}

type InsertTokenParams

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

type InsertUserParams

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

type InsertVCSProviderParams

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

type InsertVariableParams

type InsertVariableParams struct {
	VariableID  resource.ID
	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    resource.ID
	Global           pgtype.Bool
	Name             pgtype.Text
	Description      pgtype.Text
	OrganizationName pgtype.Text
}

type InsertVariableSetVariableParams

type InsertVariableSetVariableParams struct {
	VariableSetID resource.ID
	VariableID    resource.ID
}

type InsertVariableSetWorkspaceParams

type InsertVariableSetWorkspaceParams struct {
	VariableSetID resource.ID
	WorkspaceID   resource.ID
}

type InsertWorkspaceParams

type InsertWorkspaceParams struct {
	ID                         resource.ID
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	AgentPoolID                *resource.ID
	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 resource.ID
	TagName     pgtype.Text
}

type InsertWorkspaceTagParams

type InsertWorkspaceTagParams struct {
	TagID       resource.ID
	WorkspaceID resource.ID
}

type InsertWorkspaceVariableParams

type InsertWorkspaceVariableParams struct {
	VariableID  resource.ID
	WorkspaceID resource.ID
}

type Job

type Job struct {
	RunID    resource.ID
	Phase    pgtype.Text
	Status   pgtype.Text
	RunnerID *resource.ID
	Signaled pgtype.Bool
	JobID    resource.ID
}

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         resource.ID
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	Provider         pgtype.Text
	Status           pgtype.Text
	OrganizationName pgtype.Text
	VCSProviderID    resource.ID
	RepoPath         pgtype.Text
	ModuleVersions   []ModuleVersion
}

type Log

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

type Module

type Module struct {
	ModuleID         resource.ID
	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 resource.ID
}

type ModuleVersion

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

type ModuleVersionStatus

type ModuleVersionStatus struct {
	Status pgtype.Text
}

type NotificationConfiguration

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

type Organization

type Organization struct {
	OrganizationID             resource.ID
	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 resource.ID
	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     resource.ID
	Phase     pgtype.Text
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type Plan

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

type PutLockFileParams

type PutLockFileParams struct {
	LockFile []byte
	RunID    resource.ID
}

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 resource.ID) (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 resource.ID) (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 resource.ID) (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) DeleteAgentPool

func (q *Queries) DeleteAgentPool(ctx context.Context, poolID resource.ID) (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 resource.ID) (resource.ID, error)

func (*Queries) DeleteConfigurationVersionByID

func (q *Queries) DeleteConfigurationVersionByID(ctx context.Context, id resource.ID) (resource.ID, 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 resource.ID) (resource.ID, error)

func (*Queries) DeleteModuleConnectionByID

func (q *Queries) DeleteModuleConnectionByID(ctx context.Context, moduleID *resource.ID) (RepoConnection, error)

func (*Queries) DeleteModuleVersionByID

func (q *Queries) DeleteModuleVersionByID(ctx context.Context, moduleVersionID resource.ID) (resource.ID, error)

func (*Queries) DeleteNotificationConfigurationByID

func (q *Queries) DeleteNotificationConfigurationByID(ctx context.Context, notificationConfigurationID resource.ID) (resource.ID, error)

func (*Queries) DeleteOrganiationTokenByName

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

func (*Queries) DeleteOrganizationByName

func (q *Queries) DeleteOrganizationByName(ctx context.Context, name pgtype.Text) (resource.ID, 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 resource.ID) (resource.ID, error)

func (*Queries) DeleteRunner added in v0.3.6

func (q *Queries) DeleteRunner(ctx context.Context, runnerID resource.ID) (Runner, error)

func (*Queries) DeleteStateVersionByID

func (q *Queries) DeleteStateVersionByID(ctx context.Context, stateVersionID resource.ID) (resource.ID, error)

func (*Queries) DeleteTag

func (q *Queries) DeleteTag(ctx context.Context, arg DeleteTagParams) (resource.ID, error)

func (*Queries) DeleteTeamByID

func (q *Queries) DeleteTeamByID(ctx context.Context, teamID resource.ID) (resource.ID, 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 resource.ID) (resource.ID, error)

func (*Queries) DeleteTokenByID

func (q *Queries) DeleteTokenByID(ctx context.Context, tokenID resource.ID) (resource.ID, error)

func (*Queries) DeleteUserByID

func (q *Queries) DeleteUserByID(ctx context.Context, userID resource.ID) (resource.ID, error)

func (*Queries) DeleteUserByUsername

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

func (*Queries) DeleteVCSProviderByID

func (q *Queries) DeleteVCSProviderByID(ctx context.Context, vcsProviderID resource.ID) (resource.ID, error)

func (*Queries) DeleteVariableByID

func (q *Queries) DeleteVariableByID(ctx context.Context, variableID resource.ID) (Variable, error)

func (*Queries) DeleteVariableSetByID

func (q *Queries) DeleteVariableSetByID(ctx context.Context, variableSetID resource.ID) (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 resource.ID) error

func (*Queries) DeleteWorkspaceByID

func (q *Queries) DeleteWorkspaceByID(ctx context.Context, workspaceID resource.ID) error

func (*Queries) DeleteWorkspaceConnectionByID

func (q *Queries) DeleteWorkspaceConnectionByID(ctx context.Context, workspaceID *resource.ID) (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) (resource.ID, error)

func (*Queries) DeleteWorkspaceVariableByID

func (q *Queries) DeleteWorkspaceVariableByID(ctx context.Context, variableID resource.ID) (DeleteWorkspaceVariableByIDRow, error)

func (*Queries) DiscardPendingStateVersionsByWorkspaceID

func (q *Queries) DiscardPendingStateVersionsByWorkspaceID(ctx context.Context, workspaceID resource.ID) error

func (*Queries) DownloadConfigurationVersion

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

DownloadConfigurationVersion gets a configuration_version config tarball.

func (*Queries) FindAgentPool

func (q *Queries) FindAgentPool(ctx context.Context, poolID resource.ID) (FindAgentPoolRow, error)

func (*Queries) FindAgentPoolByAgentTokenID

func (q *Queries) FindAgentPoolByAgentTokenID(ctx context.Context, agentTokenID resource.ID) (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 resource.ID) (AgentToken, error)

func (*Queries) FindAgentTokensByAgentPoolID

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

func (*Queries) FindAllNotificationConfigurations

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

func (*Queries) FindAllocatedJobs

func (q *Queries) FindAllocatedJobs(ctx context.Context, runnerID *resource.ID) ([]FindAllocatedJobsRow, error)

func (*Queries) FindAndUpdateSignaledJobs

func (q *Queries) FindAndUpdateSignaledJobs(ctx context.Context, runnerID *resource.ID) ([]FindAndUpdateSignaledJobsRow, error)

Find signaled jobs and then immediately update signal with null.

func (*Queries) FindConfigurationVersionByID

func (q *Queries) FindConfigurationVersionByID(ctx context.Context, configurationVersionID resource.ID) (FindConfigurationVersionByIDRow, error)

FindConfigurationVersionByID finds a configuration_version by its id.

func (*Queries) FindConfigurationVersionByIDForUpdate

func (q *Queries) FindConfigurationVersionByIDForUpdate(ctx context.Context, configurationVersionID resource.ID) (FindConfigurationVersionByIDForUpdateRow, error)

func (*Queries) FindConfigurationVersionLatestByWorkspaceID

func (q *Queries) FindConfigurationVersionLatestByWorkspaceID(ctx context.Context, workspaceID resource.ID) (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 resource.ID) (FindCurrentStateVersionByWorkspaceIDRow, error)

func (*Queries) FindGithubApp

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

func (*Queries) FindJob

func (q *Queries) FindJob(ctx context.Context, jobID resource.ID) (FindJobRow, error)

func (*Queries) FindJobForUpdate

func (q *Queries) FindJobForUpdate(ctx context.Context, jobID resource.ID) (FindJobForUpdateRow, error)

func (*Queries) FindJobForUpdateByRunPhase added in v0.3.6

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 resource.ID) (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 resource.ID) (FindModuleByIDRow, error)

func (*Queries) FindModuleByModuleVersionID

func (q *Queries) FindModuleByModuleVersionID(ctx context.Context, moduleVersionID resource.ID) (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 resource.ID) ([]byte, error)

func (*Queries) FindNotificationConfiguration

func (q *Queries) FindNotificationConfiguration(ctx context.Context, notificationConfigurationID resource.ID) (NotificationConfiguration, error)

func (*Queries) FindNotificationConfigurationForUpdate

func (q *Queries) FindNotificationConfigurationForUpdate(ctx context.Context, notificationConfigurationID resource.ID) (NotificationConfiguration, error)

func (*Queries) FindNotificationConfigurationsByWorkspaceID

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

func (*Queries) FindOrganizationByID

func (q *Queries) FindOrganizationByID(ctx context.Context, organizationID resource.ID) (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 resource.ID) (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 resource.ID) (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 resource.ID) (FindRunByIDRow, error)

func (*Queries) FindRunByIDForUpdate

func (q *Queries) FindRunByIDForUpdate(ctx context.Context, runID resource.ID) (FindRunByIDForUpdateRow, error)

func (*Queries) FindRunnerByID added in v0.3.6

func (q *Queries) FindRunnerByID(ctx context.Context, runnerID resource.ID) (FindRunnerByIDRow, error)

func (*Queries) FindRunnerByIDForUpdate added in v0.3.6

func (q *Queries) FindRunnerByIDForUpdate(ctx context.Context, runnerID resource.ID) (FindRunnerByIDForUpdateRow, error)

func (*Queries) FindRunners added in v0.3.6

func (q *Queries) FindRunners(ctx context.Context) ([]FindRunnersRow, error)

func (*Queries) FindRunnersByOrganization added in v0.3.6

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

func (*Queries) FindRunnersByPoolID added in v0.3.6

func (q *Queries) FindRunnersByPoolID(ctx context.Context, agentPoolID resource.ID) ([]FindRunnersByPoolIDRow, error)

func (*Queries) FindRuns

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

func (*Queries) FindServerRunners added in v0.3.6

func (q *Queries) FindServerRunners(ctx context.Context) ([]FindServerRunnersRow, error)

func (*Queries) FindStateVersionByID

func (q *Queries) FindStateVersionByID(ctx context.Context, id resource.ID) (FindStateVersionByIDRow, error)

func (*Queries) FindStateVersionByIDForUpdate

func (q *Queries) FindStateVersionByIDForUpdate(ctx context.Context, id resource.ID) (FindStateVersionByIDForUpdateRow, error)

func (*Queries) FindStateVersionOutputByID

func (q *Queries) FindStateVersionOutputByID(ctx context.Context, id resource.ID) (StateVersionOutput, error)

func (*Queries) FindStateVersionStateByID

func (q *Queries) FindStateVersionStateByID(ctx context.Context, id resource.ID) ([]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 resource.ID) (Team, error)

func (*Queries) FindTeamByIDForUpdate

func (q *Queries) FindTeamByIDForUpdate(ctx context.Context, teamID resource.ID) (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 resource.ID) (Team, error)

func (*Queries) FindTeamTokensByID

func (q *Queries) FindTeamTokensByID(ctx context.Context, teamID resource.ID) ([]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 resource.ID) (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 resource.ID) (FindUserByAuthenticationTokenIDRow, error)

func (*Queries) FindUserByID

func (q *Queries) FindUserByID(ctx context.Context, userID resource.ID) (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 resource.ID) ([]FindUsersByTeamIDRow, error)

func (*Queries) FindVCSProvider

func (q *Queries) FindVCSProvider(ctx context.Context, vcsProviderID resource.ID) (FindVCSProviderRow, error)

func (*Queries) FindVCSProviderForUpdate

func (q *Queries) FindVCSProviderForUpdate(ctx context.Context, vcsProviderID resource.ID) (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 resource.ID) (Variable, error)

func (*Queries) FindVariableSetBySetID

func (q *Queries) FindVariableSetBySetID(ctx context.Context, variableSetID resource.ID) (FindVariableSetBySetIDRow, error)

func (*Queries) FindVariableSetByVariableID

func (q *Queries) FindVariableSetByVariableID(ctx context.Context, variableID resource.ID) (FindVariableSetByVariableIDRow, error)

func (*Queries) FindVariableSetForUpdate

func (q *Queries) FindVariableSetForUpdate(ctx context.Context, variableSetID resource.ID) (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 resource.ID) ([]FindVariableSetsByWorkspaceRow, error)

func (*Queries) FindWorkspaceByID

func (q *Queries) FindWorkspaceByID(ctx context.Context, id resource.ID) (FindWorkspaceByIDRow, error)

func (*Queries) FindWorkspaceByIDForUpdate

func (q *Queries) FindWorkspaceByIDForUpdate(ctx context.Context, id resource.ID) (FindWorkspaceByIDForUpdateRow, error)

func (*Queries) FindWorkspaceByName

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

func (*Queries) FindWorkspacePermissionsAndGlobalRemoteState added in v0.3.6

func (q *Queries) FindWorkspacePermissionsAndGlobalRemoteState(ctx context.Context, workspaceID resource.ID) (FindWorkspacePermissionsAndGlobalRemoteStateRow, 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 resource.ID) (FindWorkspaceVariableByVariableIDRow, error)

func (*Queries) FindWorkspaceVariablesByWorkspaceID

func (q *Queries) FindWorkspaceVariablesByWorkspaceID(ctx context.Context, workspaceID resource.ID) ([]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 resource.ID) ([]byte, error)

func (*Queries) GetPlanBinByID

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

func (*Queries) GetPlanJSONByID

func (q *Queries) GetPlanJSONByID(ctx context.Context, runID resource.ID) ([]byte, 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) 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) (resource.ID, 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) InsertRunner added in v0.3.6

func (q *Queries) InsertRunner(ctx context.Context, arg InsertRunnerParams) 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) (resource.ID, error)

func (*Queries) InsertWorkspaceTagByName

func (q *Queries) InsertWorkspaceTagByName(ctx context.Context, arg InsertWorkspaceTagByNameParams) (resource.ID, 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) (resource.ID, error)

func (*Queries) ResetUserSiteAdmins

func (q *Queries) ResetUserSiteAdmins(ctx context.Context) ([]pgtype.Text, 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) (resource.ID, error)

func (*Queries) UpdateApplyStatusByID

func (q *Queries) UpdateApplyStatusByID(ctx context.Context, arg UpdateApplyStatusByIDParams) (resource.ID, error)

func (*Queries) UpdateCancelSignaledAt

func (q *Queries) UpdateCancelSignaledAt(ctx context.Context, arg UpdateCancelSignaledAtParams) (resource.ID, error)

func (*Queries) UpdateConfigurationVersionConfigByID

func (q *Queries) UpdateConfigurationVersionConfigByID(ctx context.Context, arg UpdateConfigurationVersionConfigByIDParams) (resource.ID, error)

func (*Queries) UpdateConfigurationVersionErroredByID

func (q *Queries) UpdateConfigurationVersionErroredByID(ctx context.Context, id resource.ID) (resource.ID, 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) (resource.ID, 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) (resource.ID, error)

func (*Queries) UpdateOrganizationByName

func (q *Queries) UpdateOrganizationByName(ctx context.Context, arg UpdateOrganizationByNameParams) (resource.ID, error)

func (*Queries) UpdatePlanBinByID

func (q *Queries) UpdatePlanBinByID(ctx context.Context, arg UpdatePlanBinByIDParams) (resource.ID, error)

func (*Queries) UpdatePlanJSONByID

func (q *Queries) UpdatePlanJSONByID(ctx context.Context, arg UpdatePlanJSONByIDParams) (resource.ID, error)

func (*Queries) UpdatePlanStatusByID

func (q *Queries) UpdatePlanStatusByID(ctx context.Context, arg UpdatePlanStatusByIDParams) (resource.ID, error)

func (*Queries) UpdatePlannedChangesByID

func (q *Queries) UpdatePlannedChangesByID(ctx context.Context, arg UpdatePlannedChangesByIDParams) (resource.ID, 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) (resource.ID, error)

func (*Queries) UpdateRunner added in v0.3.6

func (q *Queries) UpdateRunner(ctx context.Context, arg UpdateRunnerParams) (Runner, 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) (resource.ID, 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) (resource.ID, error)

func (*Queries) UpdateVariableSetByID

func (q *Queries) UpdateVariableSetByID(ctx context.Context, arg UpdateVariableSetByIDParams) (resource.ID, error)

func (*Queries) UpdateWorkspaceByID

func (q *Queries) UpdateWorkspaceByID(ctx context.Context, arg UpdateWorkspaceByIDParams) (resource.ID, error)

func (*Queries) UpdateWorkspaceCurrentStateVersionID

func (q *Queries) UpdateWorkspaceCurrentStateVersionID(ctx context.Context, arg UpdateWorkspaceCurrentStateVersionIDParams) (resource.ID, 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      *resource.ID
	WorkspaceID   *resource.ID
	RepoPath      pgtype.Text
	VCSProviderID resource.ID
}

type Repohook

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

type Report

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

type Run

type Run struct {
	RunID                  resource.ID
	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            resource.ID
	ConfigurationVersionID resource.ID
	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     resource.ID
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type RunVariable

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

type Runner added in v0.3.6

type Runner struct {
	RunnerID     resource.ID
	Name         pgtype.Text
	Version      pgtype.Text
	MaxJobs      pgtype.Int4
	IPAddress    netip.Addr
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	Status       pgtype.Text
	AgentPoolID  *resource.ID
}

type RunnerStatus added in v0.3.6

type RunnerStatus struct {
	Status 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 resource.ID
	CreatedAt      pgtype.Timestamptz
	Serial         pgtype.Int4
	State          []byte
	WorkspaceID    resource.ID
	Status         pgtype.Text
}

type StateVersionOutput

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

type StateVersionStatus

type StateVersionStatus struct {
	Status pgtype.Text
}

type Tag

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

type Team

type Team struct {
	TeamID                          resource.ID
	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   resource.ID
	Username pgtype.Text
}

type TeamToken

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

type Token

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

type UpdateAgentPoolParams

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

type UpdateAppliedChangesByIDParams

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

type UpdateApplyStatusByIDParams

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

type UpdateCancelSignaledAtParams

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

type UpdateConfigurationVersionConfigByIDParams

type UpdateConfigurationVersionConfigByIDParams struct {
	Config []byte
	ID     resource.ID
}

type UpdateJobParams

type UpdateJobParams struct {
	Status   pgtype.Text
	Signaled pgtype.Bool
	RunnerID *resource.ID
	JobID    resource.ID
}

type UpdateModuleStatusByIDParams

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

type UpdateModuleVersionStatusByIDParams

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

type UpdateNotificationConfigurationByIDParams

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

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   resource.ID
}

type UpdatePlanJSONByIDParams

type UpdatePlanJSONByIDParams struct {
	PlanJSON []byte
	RunID    resource.ID
}

type UpdatePlanStatusByIDParams

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

type UpdatePlannedChangesByIDParams

type UpdatePlannedChangesByIDParams struct {
	ResourceAdditions    interface{}
	ResourceChanges      interface{}
	ResourceDestructions interface{}
	OutputAdditions      interface{}
	OutputChanges        interface{}
	OutputDestructions   interface{}
	RunID                resource.ID
}

type UpdateRepohookVCSIDParams

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

type UpdateRunStatusParams

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

type UpdateRunnerParams added in v0.3.6

type UpdateRunnerParams struct {
	Status       pgtype.Text
	LastPingAt   pgtype.Timestamptz
	LastStatusAt pgtype.Timestamptz
	RunnerID     resource.ID
}

type UpdateStateParams

type UpdateStateParams struct {
	State          []byte
	StateVersionID resource.ID
}

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                          resource.ID
}

type UpdateVCSProviderParams

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

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  resource.ID
}

type UpdateVariableSetByIDParams

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

type UpdateWorkspaceByIDParams

type UpdateWorkspaceByIDParams struct {
	AgentPoolID                *resource.ID
	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                         resource.ID
}

type UpdateWorkspaceCurrentStateVersionIDParams

type UpdateWorkspaceCurrentStateVersionIDParams struct {
	StateVersionID *resource.ID
	WorkspaceID    resource.ID
}

type UpdateWorkspaceLatestRunParams

type UpdateWorkspaceLatestRunParams struct {
	RunID       *resource.ID
	WorkspaceID resource.ID
}

type UpdateWorkspaceLockByIDParams

type UpdateWorkspaceLockByIDParams struct {
	UserID      *resource.ID
	RunID       *resource.ID
	WorkspaceID resource.ID
}

type UpsertOrganizationTokenParams

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

type UpsertWorkspacePermissionParams

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

type User

type User struct {
	UserID    resource.ID
	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    resource.ID
	Token            pgtype.Text
	CreatedAt        pgtype.Timestamptz
	Name             pgtype.Text
	VCSKind          pgtype.Text
	OrganizationName pgtype.Text
	GithubAppID      pgtype.Int8
}

type Variable

type Variable struct {
	VariableID  resource.ID
	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    resource.ID
	Global           pgtype.Bool
	Name             pgtype.Text
	Description      pgtype.Text
	OrganizationName pgtype.Text
}

type VariableSetVariable

type VariableSetVariable struct {
	VariableSetID resource.ID
	VariableID    resource.ID
}

type VariableSetWorkspace

type VariableSetWorkspace struct {
	VariableSetID resource.ID
	WorkspaceID   resource.ID
}

type Workspace

type Workspace struct {
	WorkspaceID                resource.ID
	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                  *resource.ID
	LatestRunID                *resource.ID
	OrganizationName           pgtype.Text
	Branch                     pgtype.Text
	CurrentStateVersionID      *resource.ID
	TriggerPatterns            []pgtype.Text
	VCSTagsRegex               pgtype.Text
	AllowCLIApply              pgtype.Bool
	AgentPoolID                *resource.ID
	LockUserID                 *resource.ID
}

type WorkspacePermission

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

type WorkspaceRole

type WorkspaceRole struct {
	Role pgtype.Text
}

type WorkspaceTag

type WorkspaceTag struct {
	TagID       resource.ID
	WorkspaceID resource.ID
}

type WorkspaceVariable

type WorkspaceVariable struct {
	WorkspaceID resource.ID
	VariableID  resource.ID
}

Jump to

Keyboard shortcuts

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