Documentation
¶
Index ¶
- type AccessGrant
- type AgentCredential
- type AgentEnrollmentToken
- type AgentInstallation
- type App
- type AppEnvironment
- type AppEnvironmentConfigurationRevision
- type AppEnvironmentDeliveryPolicy
- type AppEnvironmentParameterBinding
- type AppEnvironmentSetup
- type AppGithubSource
- type AppVolume
- type ArchiveAppParams
- type ArchiveAppRow
- type ArchiveEnvironmentParams
- type ArchiveEnvironmentRow
- type ArchiveProjectParams
- type ArchiveProjectRow
- type AuditEvent
- type AuthenticationChallenge
- type AuthenticationRateLimit
- type Build
- type BuildLog
- type ClusterCapabilityObservation
- type ClusterHistoricalMetricBinding
- type ClusterPublicationBinding
- type ClusterStorageBinding
- type CreateAppParams
- type CreateAppRow
- type CreateEnvironmentParams
- type CreateEnvironmentRow
- type CreateProjectParams
- type CreateProjectRow
- type DBTX
- type DeliveryTarget
- type Deployment
- type Environment
- type FindActiveAppForUpdateParams
- type FindActiveAppForUpdateRow
- type FindActiveEnvironmentForUpdateParams
- type FindActiveEnvironmentForUpdateRow
- type FindActiveProjectForUpdateParams
- type FindActiveProjectForUpdateRow
- type FindAppParams
- type FindAppRow
- type FindEnvironmentParams
- type FindEnvironmentRow
- type FindProjectParams
- type FindProjectRow
- type FindWorkspaceForUserParams
- type FindWorkspaceForUserRow
- type FindWorkspaceOperationByIdempotencyParams
- type FindWorkspaceOperationByIdempotencyRow
- type GetWorkspaceByIDRow
- type GetWorkspaceForUserRow
- type GithubConnectionState
- type GithubDelivery
- type GithubInstallation
- type InsertWorkspaceOperationParams
- type InsertWorkspaceOperationRow
- type InsertWorkspaceParams
- type InsertWorkspaceRow
- type InstallationRoleAssignment
- type ListAppsParams
- type ListAppsRow
- type ListEnvironmentsParams
- type ListEnvironmentsRow
- type ListProjectsParams
- type ListProjectsRow
- type ListWorkspacesForUserParams
- type ListWorkspacesForUserRow
- type Operation
- type Parameter
- type ParameterPathReservation
- type ParameterVersion
- type PasswordCredential
- type PasswordResetGrant
- type Principal
- type Project
- type PublicationClaim
- type Querier
- type Queries
- func (q *Queries) ArchiveApp(ctx context.Context, arg ArchiveAppParams) (ArchiveAppRow, error)
- func (q *Queries) ArchiveEnvironment(ctx context.Context, arg ArchiveEnvironmentParams) (ArchiveEnvironmentRow, error)
- func (q *Queries) ArchiveProject(ctx context.Context, arg ArchiveProjectParams) (ArchiveProjectRow, error)
- func (q *Queries) CreateApp(ctx context.Context, arg CreateAppParams) (CreateAppRow, error)
- func (q *Queries) CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) (CreateEnvironmentRow, error)
- func (q *Queries) CreateProject(ctx context.Context, arg CreateProjectParams) (CreateProjectRow, error)
- func (q *Queries) FindActiveAppForUpdate(ctx context.Context, arg FindActiveAppForUpdateParams) (FindActiveAppForUpdateRow, error)
- func (q *Queries) FindActiveEnvironmentForUpdate(ctx context.Context, arg FindActiveEnvironmentForUpdateParams) (FindActiveEnvironmentForUpdateRow, error)
- func (q *Queries) FindActiveProjectForUpdate(ctx context.Context, arg FindActiveProjectForUpdateParams) (FindActiveProjectForUpdateRow, error)
- func (q *Queries) FindApp(ctx context.Context, arg FindAppParams) (FindAppRow, error)
- func (q *Queries) FindEnvironment(ctx context.Context, arg FindEnvironmentParams) (FindEnvironmentRow, error)
- func (q *Queries) FindProject(ctx context.Context, arg FindProjectParams) (FindProjectRow, error)
- func (q *Queries) FindWorkspaceForUser(ctx context.Context, arg FindWorkspaceForUserParams) (FindWorkspaceForUserRow, error)
- func (q *Queries) FindWorkspaceOperationByIdempotency(ctx context.Context, arg FindWorkspaceOperationByIdempotencyParams) (FindWorkspaceOperationByIdempotencyRow, error)
- func (q *Queries) GetWorkspaceByID(ctx context.Context, id int64) (GetWorkspaceByIDRow, error)
- func (q *Queries) GetWorkspaceForUser(ctx context.Context, userID int64) (GetWorkspaceForUserRow, error)
- func (q *Queries) InsertWorkspace(ctx context.Context, arg InsertWorkspaceParams) (InsertWorkspaceRow, error)
- func (q *Queries) InsertWorkspaceOperation(ctx context.Context, arg InsertWorkspaceOperationParams) (InsertWorkspaceOperationRow, error)
- func (q *Queries) ListApps(ctx context.Context, arg ListAppsParams) ([]ListAppsRow, error)
- func (q *Queries) ListEnvironments(ctx context.Context, arg ListEnvironmentsParams) ([]ListEnvironmentsRow, error)
- func (q *Queries) ListProjects(ctx context.Context, arg ListProjectsParams) ([]ListProjectsRow, error)
- func (q *Queries) ListWorkspacesForUser(ctx context.Context, arg ListWorkspacesForUserParams) ([]ListWorkspacesForUserRow, error)
- func (q *Queries) UpdateApp(ctx context.Context, arg UpdateAppParams) (UpdateAppRow, error)
- func (q *Queries) UpdateEnvironment(ctx context.Context, arg UpdateEnvironmentParams) (UpdateEnvironmentRow, error)
- func (q *Queries) UpdateProject(ctx context.Context, arg UpdateProjectParams) (UpdateProjectRow, error)
- func (q *Queries) UpdateWorkspaceName(ctx context.Context, arg UpdateWorkspaceNameParams) (UpdateWorkspaceNameRow, error)
- func (q *Queries) UpsertWorkspace(ctx context.Context, arg UpsertWorkspaceParams) (int64, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RecoveryCode
- type Release
- type ReleaseGcCandidate
- type ServiceAccount
- type ServiceAccountGrant
- type ServiceAccountToken
- type Session
- type StorageProfile
- type TotpCredential
- type UpdateAppParams
- type UpdateAppRow
- type UpdateEnvironmentParams
- type UpdateEnvironmentRow
- type UpdateProjectParams
- type UpdateProjectRow
- type UpdateWorkspaceNameParams
- type UpdateWorkspaceNameRow
- type UpsertWorkspaceParams
- type User
- type UserInvitation
- type WebauthnCredential
- type Workspace
- type WorkspaceCluster
- type WorkspaceGroup
- type WorkspaceGroupMember
- type WorkspaceMembership
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessGrant ¶
type AccessGrant struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
SubjectType string `json:"subject_type"`
SubjectID int64 `json:"subject_id"`
ResourceType string `json:"resource_type"`
ResourcePublicID string `json:"resource_public_id"`
Relation string `json:"relation"`
Version int64 `json:"version"`
CreatedByUserID int64 `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type AgentCredential ¶
type AgentCredential struct {
ID int64 `json:"id"`
InstallationID int64 `json:"installation_id"`
Status string `json:"status"`
EnrollmentAttemptID pgtype.Text `json:"enrollment_attempt_id"`
CsrFingerprint []byte `json:"csr_fingerprint"`
CertificatePem []byte `json:"certificate_pem"`
CaCertificatePem []byte `json:"ca_certificate_pem"`
ServerCaCertificatePem []byte `json:"server_ca_certificate_pem"`
CertificateSerial string `json:"certificate_serial"`
CertificateFingerprint []byte `json:"certificate_fingerprint"`
CertificateNotAfter pgtype.Timestamptz `json:"certificate_not_after"`
OverlapNotAfter pgtype.Timestamptz `json:"overlap_not_after"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TrustBundleID string `json:"trust_bundle_id"`
}
type AgentEnrollmentToken ¶
type AgentEnrollmentToken struct {
InstallationID int64 `json:"installation_id"`
TokenHash []byte `json:"token_hash"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type AgentInstallation ¶
type AgentInstallation struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
Name string `json:"name"`
Status string `json:"status"`
EnrollmentAttemptID pgtype.Text `json:"enrollment_attempt_id"`
CsrFingerprint []byte `json:"csr_fingerprint"`
CertificatePem []byte `json:"certificate_pem"`
CaCertificatePem []byte `json:"ca_certificate_pem"`
CertificateSerial pgtype.Text `json:"certificate_serial"`
CertificateFingerprint []byte `json:"certificate_fingerprint"`
CertificateNotAfter pgtype.Timestamptz `json:"certificate_not_after"`
LastSeenAt pgtype.Timestamptz `json:"last_seen_at"`
CreatedBy int64 `json:"created_by"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ClusterUid pgtype.Text `json:"cluster_uid"`
KubernetesVersion string `json:"kubernetes_version"`
CapabilitiesJson []byte `json:"capabilities_json"`
AgentVersion string `json:"agent_version"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
RevocationReason string `json:"revocation_reason"`
ControlSessionID pgtype.Text `json:"control_session_id"`
ControlSessionSequence int64 `json:"control_session_sequence"`
TrustBundleID string `json:"trust_bundle_id"`
WorkspaceProvisioningMode string `json:"workspace_provisioning_mode"`
}
type App ¶
type App struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
NameKey string `json:"name_key"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type AppEnvironment ¶
type AppEnvironment struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
ProjectID int64 `json:"project_id"`
AppID int64 `json:"app_id"`
EnvironmentID int64 `json:"environment_id"`
SourceBranch string `json:"source_branch"`
RuntimeName string `json:"runtime_name"`
ConfigurationJson []byte `json:"configuration_json"`
ConfigurationVersion int64 `json:"configuration_version"`
Version int64 `json:"version"`
DesiredDeploymentID pgtype.Int8 `json:"desired_deployment_id"`
CurrentDeploymentID pgtype.Int8 `json:"current_deployment_id"`
CurrentReleaseID pgtype.Int8 `json:"current_release_id"`
LastState string `json:"last_state"`
LastMessage string `json:"last_message"`
DeletionRequestedAt pgtype.Timestamptz `json:"deletion_requested_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
WorkloadKind string `json:"workload_kind"`
ClusterID pgtype.Int8 `json:"cluster_id"`
RuntimeObservedGeneration int64 `json:"runtime_observed_generation"`
RuntimeObservedAt pgtype.Timestamptz `json:"runtime_observed_at"`
ReconciliationGeneration int64 `json:"reconciliation_generation"`
RuntimeDesiredVersion int64 `json:"runtime_desired_version"`
RuntimeSpecHash pgtype.Text `json:"runtime_spec_hash"`
}
type AppEnvironmentDeliveryPolicy ¶
type AppEnvironmentDeliveryPolicy struct {
AppEnvironmentID int64 `json:"app_environment_id"`
WorkspaceID int64 `json:"workspace_id"`
PushEnabled bool `json:"push_enabled"`
ReleaseEnabled bool `json:"release_enabled"`
Version int64 `json:"version"`
UpdatedByUserID int64 `json:"updated_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type AppEnvironmentSetup ¶
type AppEnvironmentSetup struct {
WorkspaceID int64 `json:"workspace_id"`
RequestedByUserID int64 `json:"requested_by_user_id"`
IdempotencyHash []byte `json:"idempotency_hash"`
PayloadHash []byte `json:"payload_hash"`
AppID int64 `json:"app_id"`
AppEnvironmentID int64 `json:"app_environment_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type AppGithubSource ¶
type AppGithubSource struct {
AppID int64 `json:"app_id"`
GithubInstallationID int64 `json:"github_installation_id"`
RepositoryID int64 `json:"repository_id"`
RepositoryName string `json:"repository_name"`
RepositoryFullName string `json:"repository_full_name"`
RepositoryPrivate bool `json:"repository_private"`
DefaultBranch string `json:"default_branch"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type AppVolume ¶
type AppVolume struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
AppEnvironmentID int64 `json:"app_environment_id"`
StorageProfileID string `json:"storage_profile_id"`
RequestedSizeGib int64 `json:"requested_size_gib"`
ObservedSizeGib int64 `json:"observed_size_gib"`
MountPath string `json:"mount_path"`
RetentionPolicy string `json:"retention_policy"`
DesiredState string `json:"desired_state"`
ObservedState string `json:"observed_state"`
Message string `json:"message"`
Version int64 `json:"version"`
DeletionRequestedAt pgtype.Timestamptz `json:"deletion_requested_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RuntimeDesiredVersion int64 `json:"runtime_desired_version"`
RuntimeSpecHash pgtype.Text `json:"runtime_spec_hash"`
RuntimeReconciliationGeneration int64 `json:"runtime_reconciliation_generation"`
RuntimeStorageClassName string `json:"runtime_storage_class_name"`
StorageBindingVersion int64 `json:"storage_binding_version"`
}
type ArchiveAppParams ¶
type ArchiveAppRow ¶
type ArchiveAppRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type ArchiveEnvironmentRow ¶
type ArchiveEnvironmentRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type ArchiveProjectParams ¶
type ArchiveProjectRow ¶
type ArchiveProjectRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type AuditEvent ¶
type AuditEvent struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
OccurredAt pgtype.Timestamptz `json:"occurred_at"`
ActorUserID pgtype.Int8 `json:"actor_user_id"`
SessionID pgtype.Int8 `json:"session_id"`
WorkspaceID pgtype.Int8 `json:"workspace_id"`
Action string `json:"action"`
TargetType string `json:"target_type"`
TargetPublicID string `json:"target_public_id"`
Outcome string `json:"outcome"`
Reason string `json:"reason"`
RequestID string `json:"request_id"`
TraceID string `json:"trace_id"`
SourceHash []byte `json:"source_hash"`
UserAgentHash []byte `json:"user_agent_hash"`
MetadataJson []byte `json:"metadata_json"`
ActorPrincipalID pgtype.Int8 `json:"actor_principal_id"`
}
type AuthenticationChallenge ¶
type AuthenticationChallenge struct {
ID int64 `json:"id"`
ChallengeHash []byte `json:"challenge_hash"`
UserID int64 `json:"user_id"`
Kind string `json:"kind"`
PayloadJson []byte `json:"payload_json"`
Attempts int32 `json:"attempts"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type AuthenticationRateLimit ¶
type AuthenticationRateLimit struct {
KeyHash []byte `json:"key_hash"`
Failures int32 `json:"failures"`
BlockedUntil pgtype.Timestamptz `json:"blocked_until"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Build ¶
type Build struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
ProjectID int64 `json:"project_id"`
AppID int64 `json:"app_id"`
RequestedByUserID int64 `json:"requested_by_user_id"`
GithubInstallationID pgtype.Int8 `json:"github_installation_id"`
GithubInstallationExternalID int64 `json:"github_installation_external_id"`
RepositoryID int64 `json:"repository_id"`
RepositoryFullName string `json:"repository_full_name"`
CommitSha string `json:"commit_sha"`
Platform string `json:"platform"`
Status string `json:"status"`
Attempts int32 `json:"attempts"`
WorkerID pgtype.Text `json:"worker_id"`
FencingToken int64 `json:"fencing_token"`
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
IdempotencyHash []byte `json:"idempotency_hash"`
PayloadHash []byte `json:"payload_hash"`
ErrorCode pgtype.Text `json:"error_code"`
ErrorMessage pgtype.Text `json:"error_message"`
StartedAt pgtype.Timestamptz `json:"started_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
SourceBranch string `json:"source_branch"`
AppEnvironmentID int64 `json:"app_environment_id"`
TriggerType string `json:"trigger_type"`
GithubDeliveryID pgtype.Int8 `json:"github_delivery_id"`
CommitTitle string `json:"commit_title"`
CommitAuthorName string `json:"commit_author_name"`
CommitAuthorLogin string `json:"commit_author_login"`
CommittedAt pgtype.Timestamptz `json:"committed_at"`
}
type BuildLog ¶
type BuildLog struct {
BuildID int64 `json:"build_id"`
Sequence int64 `json:"sequence"`
Message string `json:"message"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type ClusterCapabilityObservation ¶
type ClusterCapabilityObservation struct {
ClusterID int64 `json:"cluster_id"`
CapabilityID string `json:"capability_id"`
ContractVersion string `json:"contract_version"`
Support string `json:"support"`
Health string `json:"health"`
ProviderKind string `json:"provider_kind"`
ReasonCode string `json:"reason_code"`
SanitizedMessage string `json:"sanitized_message"`
LimitationsJson []byte `json:"limitations_json"`
SampledAt pgtype.Timestamptz `json:"sampled_at"`
ReceivedAt pgtype.Timestamptz `json:"received_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ObservedSessionID string `json:"observed_session_id"`
SnapshotSequence int64 `json:"snapshot_sequence"`
}
type ClusterHistoricalMetricBinding ¶
type ClusterHistoricalMetricBinding struct {
ClusterID int64 `json:"cluster_id"`
ProviderType string `json:"provider_type"`
Endpoint string `json:"endpoint"`
Health string `json:"health"`
Conformant bool `json:"conformant"`
ReasonCode string `json:"reason_code"`
LimitationsJson []byte `json:"limitations_json"`
ObservedAt pgtype.Timestamptz `json:"observed_at"`
Version int64 `json:"version"`
CreatedBy int64 `json:"created_by"`
UpdatedBy int64 `json:"updated_by"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ClusterPublicationBinding ¶
type ClusterPublicationBinding struct {
ClusterID int64 `json:"cluster_id"`
GatewayNamespace string `json:"gateway_namespace"`
GatewayName string `json:"gateway_name"`
SectionName string `json:"section_name"`
GatewayClassName string `json:"gateway_class_name"`
GatewayClassAccepted bool `json:"gateway_class_accepted"`
GatewayProgrammed bool `json:"gateway_programmed"`
ListenerReady bool `json:"listener_ready"`
SupportedRouteKindsJson []byte `json:"supported_route_kinds_json"`
Health string `json:"health"`
ReasonCode string `json:"reason_code"`
ObservedAt pgtype.Timestamptz `json:"observed_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ObservedSessionID string `json:"observed_session_id"`
ObservedSequence int64 `json:"observed_sequence"`
Version int64 `json:"version"`
CreatedBy int64 `json:"created_by"`
UpdatedBy int64 `json:"updated_by"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ClusterStorageBinding ¶
type ClusterStorageBinding struct {
ClusterID int64 `json:"cluster_id"`
StorageProfileID string `json:"storage_profile_id"`
StorageClassName string `json:"storage_class_name"`
Provisioner string `json:"provisioner"`
AccessModesJson []byte `json:"access_modes_json"`
AllowExpansion bool `json:"allow_expansion"`
VolumeBindingMode string `json:"volume_binding_mode"`
Health string `json:"health"`
ReasonCode string `json:"reason_code"`
ObservedAt pgtype.Timestamptz `json:"observed_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ObservedSessionID string `json:"observed_session_id"`
ObservedSequence int64 `json:"observed_sequence"`
Version int64 `json:"version"`
CreatedBy int64 `json:"created_by"`
UpdatedBy int64 `json:"updated_by"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CreateAppParams ¶
type CreateAppRow ¶
type CreateAppRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type CreateEnvironmentParams ¶
type CreateEnvironmentRow ¶
type CreateEnvironmentRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type CreateProjectParams ¶
type CreateProjectRow ¶
type CreateProjectRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type DeliveryTarget ¶
type DeliveryTarget struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
GithubDeliveryID int64 `json:"github_delivery_id"`
WorkspaceID int64 `json:"workspace_id"`
ProjectID int64 `json:"project_id"`
AppID int64 `json:"app_id"`
AppEnvironmentID int64 `json:"app_environment_id"`
RequestedByUserID int64 `json:"requested_by_user_id"`
PolicyVersion int64 `json:"policy_version"`
TriggerType string `json:"trigger_type"`
SourceBranch string `json:"source_branch"`
CommitSha string `json:"commit_sha"`
BuildID pgtype.Int8 `json:"build_id"`
DeploymentID pgtype.Int8 `json:"deployment_id"`
Status string `json:"status"`
ErrorCode string `json:"error_code"`
ErrorMessage string `json:"error_message"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
}
type Deployment ¶
type Deployment struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
AppEnvironmentID int64 `json:"app_environment_id"`
AppID int64 `json:"app_id"`
ReleaseID int64 `json:"release_id"`
RequestedByUserID pgtype.Int8 `json:"requested_by_user_id"`
ConfigurationVersion int64 `json:"configuration_version"`
ConfigurationJson []byte `json:"configuration_json"`
Status string `json:"status"`
Message string `json:"message"`
ObservedRelease string `json:"observed_release"`
StartedAt pgtype.Timestamptz `json:"started_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
WorkloadKind string `json:"workload_kind"`
AppVolumeID pgtype.Int8 `json:"app_volume_id"`
RequestedByPrincipalID int64 `json:"requested_by_principal_id"`
}
type Environment ¶
type Environment struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
NameKey string `json:"name_key"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type FindActiveAppForUpdateRow ¶
type FindActiveAppForUpdateRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type FindActiveEnvironmentForUpdateRow ¶
type FindActiveEnvironmentForUpdateRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type FindActiveProjectForUpdateRow ¶
type FindActiveProjectForUpdateRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type FindAppParams ¶
type FindAppRow ¶
type FindAppRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type FindEnvironmentParams ¶
type FindEnvironmentRow ¶
type FindEnvironmentRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type FindProjectParams ¶
type FindProjectRow ¶
type FindProjectRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type FindWorkspaceForUserRow ¶
type FindWorkspaceForUserRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
Name string `json:"name"`
NamespaceName string `json:"namespace_name"`
Version int64 `json:"version"`
BootstrapState string `json:"bootstrap_state"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type FindWorkspaceOperationByIdempotencyRow ¶
type FindWorkspaceOperationByIdempotencyRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
ActorID int64 `json:"actor_id"`
Kind string `json:"kind"`
Status string `json:"status"`
DesiredVersion int64 `json:"desired_version"`
Attempts int32 `json:"attempts"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ErrorCode string `json:"error_code"`
ErrorMessage string `json:"error_message"`
PayloadHash []byte `json:"payload_hash"`
}
type GetWorkspaceByIDRow ¶
type GetWorkspaceByIDRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
Name string `json:"name"`
NamespaceName string `json:"namespace_name"`
Version int64 `json:"version"`
BootstrapState string `json:"bootstrap_state"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetWorkspaceForUserRow ¶
type GetWorkspaceForUserRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
Name string `json:"name"`
NamespaceName string `json:"namespace_name"`
Version int64 `json:"version"`
BootstrapState string `json:"bootstrap_state"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GithubConnectionState ¶
type GithubConnectionState struct {
ID int64 `json:"id"`
StateHash []byte `json:"state_hash"`
BrowserHash []byte `json:"browser_hash"`
UserID int64 `json:"user_id"`
WorkspaceID int64 `json:"workspace_id"`
Step string `json:"step"`
GithubInstallationID pgtype.Int8 `json:"github_installation_id"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type GithubDelivery ¶
type GithubDelivery struct {
ID int64 `json:"id"`
DeliveryID string `json:"delivery_id"`
EventType string `json:"event_type"`
Action string `json:"action"`
InstallationExternalID int64 `json:"installation_external_id"`
RepositoryID int64 `json:"repository_id"`
RepositoryFullName string `json:"repository_full_name"`
SourceBranch string `json:"source_branch"`
SourceRef string `json:"source_ref"`
CommitSha string `json:"commit_sha"`
TagName string `json:"tag_name"`
RepositoryIds []int64 `json:"repository_ids"`
PayloadHash []byte `json:"payload_hash"`
Status string `json:"status"`
Attempts int32 `json:"attempts"`
WorkerID pgtype.Text `json:"worker_id"`
FencingToken int64 `json:"fencing_token"`
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
ErrorCode string `json:"error_code"`
ErrorMessage string `json:"error_message"`
ReceivedAt pgtype.Timestamptz `json:"received_at"`
ProcessedAt pgtype.Timestamptz `json:"processed_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GithubInstallation ¶
type GithubInstallation struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
ConnectedByUserID int64 `json:"connected_by_user_id"`
GithubInstallationID int64 `json:"github_installation_id"`
AccountID int64 `json:"account_id"`
AccountLogin string `json:"account_login"`
AccountType string `json:"account_type"`
RepositorySelection string `json:"repository_selection"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Status string `json:"status"`
}
type InsertWorkspaceOperationParams ¶
type InsertWorkspaceOperationParams struct {
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
RequestedByUserID int64 `json:"requested_by_user_id"`
AgentInstallationID pgtype.Int8 `json:"agent_installation_id"`
IdempotencyHash []byte `json:"idempotency_hash"`
PayloadHash []byte `json:"payload_hash"`
}
type InsertWorkspaceOperationRow ¶
type InsertWorkspaceOperationRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
ActorID int64 `json:"actor_id"`
Kind string `json:"kind"`
Status string `json:"status"`
DesiredVersion int64 `json:"desired_version"`
Attempts int32 `json:"attempts"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ErrorCode string `json:"error_code"`
ErrorMessage string `json:"error_message"`
}
type InsertWorkspaceParams ¶
type InsertWorkspaceRow ¶
type InsertWorkspaceRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
Name string `json:"name"`
NamespaceName string `json:"namespace_name"`
Version int64 `json:"version"`
BootstrapState string `json:"bootstrap_state"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type InstallationRoleAssignment ¶
type InstallationRoleAssignment struct {
UserID int64 `json:"user_id"`
Role string `json:"role"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type ListAppsParams ¶
type ListAppsRow ¶
type ListAppsRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type ListEnvironmentsParams ¶
type ListEnvironmentsRow ¶
type ListEnvironmentsRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type ListProjectsParams ¶
type ListProjectsRow ¶
type ListProjectsRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type ListWorkspacesForUserRow ¶
type ListWorkspacesForUserRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
Name string `json:"name"`
NamespaceName string `json:"namespace_name"`
Version int64 `json:"version"`
BootstrapState string `json:"bootstrap_state"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Operation ¶
type Operation struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
AppEnvironmentID pgtype.Int8 `json:"app_environment_id"`
DeploymentID pgtype.Int8 `json:"deployment_id"`
RequestedByUserID pgtype.Int8 `json:"requested_by_user_id"`
Kind string `json:"kind"`
Status string `json:"status"`
IdempotencyHash []byte `json:"idempotency_hash"`
PayloadHash []byte `json:"payload_hash"`
DesiredVersion int64 `json:"desired_version"`
Attempts int32 `json:"attempts"`
NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"`
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
WorkerID pgtype.Text `json:"worker_id"`
FencingToken int64 `json:"fencing_token"`
ErrorCode string `json:"error_code"`
ErrorMessage string `json:"error_message"`
StartedAt pgtype.Timestamptz `json:"started_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
AppVolumeID pgtype.Int8 `json:"app_volume_id"`
AgentInstallationID pgtype.Int8 `json:"agent_installation_id"`
RequestedByPrincipalID int64 `json:"requested_by_principal_id"`
}
type Parameter ¶
type Parameter struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
Path string `json:"path"`
Kind string `json:"kind"`
Description string `json:"description"`
CurrentVersion int64 `json:"current_version"`
Version int64 `json:"version"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ValueState string `json:"value_state"`
PurgeAfter pgtype.Timestamptz `json:"purge_after"`
PurgedAt pgtype.Timestamptz `json:"purged_at"`
}
type ParameterVersion ¶
type ParameterVersion struct {
ParameterID int64 `json:"parameter_id"`
Version int64 `json:"version"`
CreatedByUserID int64 `json:"created_by_user_id"`
PlaintextValue pgtype.Text `json:"plaintext_value"`
SecretReference pgtype.Text `json:"secret_reference"`
SecretBackendVersion pgtype.Int8 `json:"secret_backend_version"`
Fingerprint []byte `json:"fingerprint"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
ValueState string `json:"value_state"`
ExpectedSecretBackendVersion pgtype.Int8 `json:"expected_secret_backend_version"`
IdempotencyHash []byte `json:"idempotency_hash"`
PayloadHash []byte `json:"payload_hash"`
RequestedPath pgtype.Text `json:"requested_path"`
RequestedDescription pgtype.Text `json:"requested_description"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
}
type PasswordCredential ¶
type PasswordCredential struct {
UserID int64 `json:"user_id"`
PasswordHash string `json:"password_hash"`
Algorithm string `json:"algorithm"`
ChangedAt pgtype.Timestamptz `json:"changed_at"`
}
type PasswordResetGrant ¶
type PasswordResetGrant struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
UserID int64 `json:"user_id"`
CodeHash []byte `json:"code_hash"`
Attempts int32 `json:"attempts"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
VerifiedAt pgtype.Timestamptz `json:"verified_at"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
CreatedByUserID int64 `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type Principal ¶
type Principal struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
Kind string `json:"kind"`
DisplayName string `json:"display_name"`
Status string `json:"status"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Project ¶
type Project struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
Name string `json:"name"`
NameKey string `json:"name_key"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type PublicationClaim ¶
type PublicationClaim struct {
ID int64 `json:"id"`
AppEnvironmentID int64 `json:"app_environment_id"`
EndpointName string `json:"endpoint_name"`
EndpointType string `json:"endpoint_type"`
Hostname string `json:"hostname"`
ExternalPort pgtype.Int4 `json:"external_port"`
DesiredConfigurationVersion pgtype.Int8 `json:"desired_configuration_version"`
CurrentConfigurationVersion pgtype.Int8 `json:"current_configuration_version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Querier ¶
type Querier interface {
ArchiveApp(ctx context.Context, arg ArchiveAppParams) (ArchiveAppRow, error)
ArchiveEnvironment(ctx context.Context, arg ArchiveEnvironmentParams) (ArchiveEnvironmentRow, error)
ArchiveProject(ctx context.Context, arg ArchiveProjectParams) (ArchiveProjectRow, error)
CreateApp(ctx context.Context, arg CreateAppParams) (CreateAppRow, error)
CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) (CreateEnvironmentRow, error)
CreateProject(ctx context.Context, arg CreateProjectParams) (CreateProjectRow, error)
FindActiveAppForUpdate(ctx context.Context, arg FindActiveAppForUpdateParams) (FindActiveAppForUpdateRow, error)
FindActiveEnvironmentForUpdate(ctx context.Context, arg FindActiveEnvironmentForUpdateParams) (FindActiveEnvironmentForUpdateRow, error)
FindActiveProjectForUpdate(ctx context.Context, arg FindActiveProjectForUpdateParams) (FindActiveProjectForUpdateRow, error)
FindApp(ctx context.Context, arg FindAppParams) (FindAppRow, error)
FindEnvironment(ctx context.Context, arg FindEnvironmentParams) (FindEnvironmentRow, error)
FindProject(ctx context.Context, arg FindProjectParams) (FindProjectRow, error)
FindWorkspaceForUser(ctx context.Context, arg FindWorkspaceForUserParams) (FindWorkspaceForUserRow, error)
FindWorkspaceOperationByIdempotency(ctx context.Context, arg FindWorkspaceOperationByIdempotencyParams) (FindWorkspaceOperationByIdempotencyRow, error)
GetWorkspaceByID(ctx context.Context, id int64) (GetWorkspaceByIDRow, error)
GetWorkspaceForUser(ctx context.Context, userID int64) (GetWorkspaceForUserRow, error)
InsertWorkspace(ctx context.Context, arg InsertWorkspaceParams) (InsertWorkspaceRow, error)
InsertWorkspaceOperation(ctx context.Context, arg InsertWorkspaceOperationParams) (InsertWorkspaceOperationRow, error)
ListApps(ctx context.Context, arg ListAppsParams) ([]ListAppsRow, error)
ListEnvironments(ctx context.Context, arg ListEnvironmentsParams) ([]ListEnvironmentsRow, error)
ListProjects(ctx context.Context, arg ListProjectsParams) ([]ListProjectsRow, error)
ListWorkspacesForUser(ctx context.Context, arg ListWorkspacesForUserParams) ([]ListWorkspacesForUserRow, error)
UpdateApp(ctx context.Context, arg UpdateAppParams) (UpdateAppRow, error)
UpdateEnvironment(ctx context.Context, arg UpdateEnvironmentParams) (UpdateEnvironmentRow, error)
UpdateProject(ctx context.Context, arg UpdateProjectParams) (UpdateProjectRow, error)
UpdateWorkspaceName(ctx context.Context, arg UpdateWorkspaceNameParams) (UpdateWorkspaceNameRow, error)
UpsertWorkspace(ctx context.Context, arg UpsertWorkspaceParams) (int64, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ArchiveApp ¶
func (q *Queries) ArchiveApp(ctx context.Context, arg ArchiveAppParams) (ArchiveAppRow, error)
func (*Queries) ArchiveEnvironment ¶
func (q *Queries) ArchiveEnvironment(ctx context.Context, arg ArchiveEnvironmentParams) (ArchiveEnvironmentRow, error)
func (*Queries) ArchiveProject ¶
func (q *Queries) ArchiveProject(ctx context.Context, arg ArchiveProjectParams) (ArchiveProjectRow, error)
func (*Queries) CreateApp ¶
func (q *Queries) CreateApp(ctx context.Context, arg CreateAppParams) (CreateAppRow, error)
func (*Queries) CreateEnvironment ¶
func (q *Queries) CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) (CreateEnvironmentRow, error)
func (*Queries) CreateProject ¶
func (q *Queries) CreateProject(ctx context.Context, arg CreateProjectParams) (CreateProjectRow, error)
func (*Queries) FindActiveAppForUpdate ¶
func (q *Queries) FindActiveAppForUpdate(ctx context.Context, arg FindActiveAppForUpdateParams) (FindActiveAppForUpdateRow, error)
func (*Queries) FindActiveEnvironmentForUpdate ¶
func (q *Queries) FindActiveEnvironmentForUpdate(ctx context.Context, arg FindActiveEnvironmentForUpdateParams) (FindActiveEnvironmentForUpdateRow, error)
func (*Queries) FindActiveProjectForUpdate ¶
func (q *Queries) FindActiveProjectForUpdate(ctx context.Context, arg FindActiveProjectForUpdateParams) (FindActiveProjectForUpdateRow, error)
func (*Queries) FindApp ¶
func (q *Queries) FindApp(ctx context.Context, arg FindAppParams) (FindAppRow, error)
func (*Queries) FindEnvironment ¶
func (q *Queries) FindEnvironment(ctx context.Context, arg FindEnvironmentParams) (FindEnvironmentRow, error)
func (*Queries) FindProject ¶
func (q *Queries) FindProject(ctx context.Context, arg FindProjectParams) (FindProjectRow, error)
func (*Queries) FindWorkspaceForUser ¶
func (q *Queries) FindWorkspaceForUser(ctx context.Context, arg FindWorkspaceForUserParams) (FindWorkspaceForUserRow, error)
func (*Queries) FindWorkspaceOperationByIdempotency ¶
func (q *Queries) FindWorkspaceOperationByIdempotency(ctx context.Context, arg FindWorkspaceOperationByIdempotencyParams) (FindWorkspaceOperationByIdempotencyRow, error)
func (*Queries) GetWorkspaceByID ¶
func (*Queries) GetWorkspaceForUser ¶
func (*Queries) InsertWorkspace ¶
func (q *Queries) InsertWorkspace(ctx context.Context, arg InsertWorkspaceParams) (InsertWorkspaceRow, error)
func (*Queries) InsertWorkspaceOperation ¶
func (q *Queries) InsertWorkspaceOperation(ctx context.Context, arg InsertWorkspaceOperationParams) (InsertWorkspaceOperationRow, error)
func (*Queries) ListApps ¶
func (q *Queries) ListApps(ctx context.Context, arg ListAppsParams) ([]ListAppsRow, error)
func (*Queries) ListEnvironments ¶
func (q *Queries) ListEnvironments(ctx context.Context, arg ListEnvironmentsParams) ([]ListEnvironmentsRow, error)
func (*Queries) ListProjects ¶
func (q *Queries) ListProjects(ctx context.Context, arg ListProjectsParams) ([]ListProjectsRow, error)
func (*Queries) ListWorkspacesForUser ¶
func (q *Queries) ListWorkspacesForUser(ctx context.Context, arg ListWorkspacesForUserParams) ([]ListWorkspacesForUserRow, error)
func (*Queries) UpdateApp ¶
func (q *Queries) UpdateApp(ctx context.Context, arg UpdateAppParams) (UpdateAppRow, error)
func (*Queries) UpdateEnvironment ¶
func (q *Queries) UpdateEnvironment(ctx context.Context, arg UpdateEnvironmentParams) (UpdateEnvironmentRow, error)
func (*Queries) UpdateProject ¶
func (q *Queries) UpdateProject(ctx context.Context, arg UpdateProjectParams) (UpdateProjectRow, error)
func (*Queries) UpdateWorkspaceName ¶
func (q *Queries) UpdateWorkspaceName(ctx context.Context, arg UpdateWorkspaceNameParams) (UpdateWorkspaceNameRow, error)
func (*Queries) UpsertWorkspace ¶
type RecoveryCode ¶
type RecoveryCode struct {
ID int64 `json:"id"`
UserID int64 `json:"user_id"`
CodeHash []byte `json:"code_hash"`
UsedAt pgtype.Timestamptz `json:"used_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type Release ¶
type Release struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
ProjectID int64 `json:"project_id"`
AppID int64 `json:"app_id"`
BuildID pgtype.Int8 `json:"build_id"`
CommitSha pgtype.Text `json:"commit_sha"`
Image string `json:"image"`
Platform pgtype.Text `json:"platform"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
AppEnvironmentID pgtype.Int8 `json:"app_environment_id"`
AvailabilityStatus string `json:"availability_status"`
ExpiredAt pgtype.Timestamptz `json:"expired_at"`
OriginKind string `json:"origin_kind"`
SourceProvider pgtype.Text `json:"source_provider"`
SourceRepository pgtype.Text `json:"source_repository"`
SourceRevision pgtype.Text `json:"source_revision"`
SourceRef pgtype.Text `json:"source_ref"`
ProducerKind string `json:"producer_kind"`
ProducerExternalID pgtype.Text `json:"producer_external_id"`
ProducerUrl pgtype.Text `json:"producer_url"`
CreatedByPrincipalID int64 `json:"created_by_principal_id"`
IdempotencyHash []byte `json:"idempotency_hash"`
PayloadHash []byte `json:"payload_hash"`
ProvenanceStatus string `json:"provenance_status"`
}
type ReleaseGcCandidate ¶
type ReleaseGcCandidate struct {
ReleaseID int64 `json:"release_id"`
Image string `json:"image"`
Status string `json:"status"`
Reason string `json:"reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ServiceAccount ¶
type ServiceAccount struct {
PrincipalID int64 `json:"principal_id"`
WorkspaceID int64 `json:"workspace_id"`
ProjectID int64 `json:"project_id"`
AppID int64 `json:"app_id"`
Name string `json:"name"`
CreatedByUserID int64 `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ServiceAccountGrant ¶
type ServiceAccountToken ¶
type ServiceAccountToken struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
PrincipalID int64 `json:"principal_id"`
TokenHash []byte `json:"token_hash"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
LastUsedAt pgtype.Timestamptz `json:"last_used_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type Session ¶
type Session struct {
ID int64 `json:"id"`
TokenHash []byte `json:"token_hash"`
UserID int64 `json:"user_id"`
CsrfHash []byte `json:"csrf_hash"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
PublicID string `json:"public_id"`
AuthVersion int64 `json:"auth_version"`
AssuranceLevel string `json:"assurance_level"`
LastSeenAt pgtype.Timestamptz `json:"last_seen_at"`
IdleExpiresAt pgtype.Timestamptz `json:"idle_expires_at"`
}
type StorageProfile ¶
type StorageProfile struct {
ID string `json:"id"`
DisplayName string `json:"display_name"`
MinimumSizeGib int64 `json:"minimum_size_gib"`
MaximumSizeGib int64 `json:"maximum_size_gib"`
TotalCapacityGib int64 `json:"total_capacity_gib"`
WorkspaceQuotaGib int64 `json:"workspace_quota_gib"`
Expandable bool `json:"expandable"`
Snapshots bool `json:"snapshots"`
AutomaticBackup bool `json:"automatic_backup"`
Durability string `json:"durability"`
// Deprecated installation-wide binding retained for alpha schema compatibility; runtime selection uses cluster_storage_bindings.
RuntimeBinding string `json:"runtime_binding"`
Enabled bool `json:"enabled"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type TotpCredential ¶
type UpdateAppParams ¶
type UpdateAppRow ¶
type UpdateAppRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type UpdateEnvironmentParams ¶
type UpdateEnvironmentRow ¶
type UpdateEnvironmentRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
ProjectID int64 `json:"project_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type UpdateProjectParams ¶
type UpdateProjectRow ¶
type UpdateProjectRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
Name string `json:"name"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}
type UpdateWorkspaceNameRow ¶
type UpdateWorkspaceNameRow struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
Name string `json:"name"`
NamespaceName string `json:"namespace_name"`
Version int64 `json:"version"`
BootstrapState string `json:"bootstrap_state"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type UpsertWorkspaceParams ¶
type User ¶
type User struct {
ID int64 `json:"id"`
Username string `json:"username"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
PublicID string `json:"public_id"`
UsernameKey string `json:"username_key"`
DisplayName string `json:"display_name"`
Status string `json:"status"`
Version int64 `json:"version"`
AuthVersion int64 `json:"auth_version"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
PrincipalID int64 `json:"principal_id"`
}
type UserInvitation ¶
type UserInvitation struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
UserID int64 `json:"user_id"`
TokenHash []byte `json:"token_hash"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
AcceptedAt pgtype.Timestamptz `json:"accepted_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
CreatedByUserID int64 `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type WebauthnCredential ¶
type WebauthnCredential struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
UserID int64 `json:"user_id"`
CredentialID []byte `json:"credential_id"`
CredentialJson []byte `json:"credential_json"`
Name string `json:"name"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
LastUsedAt pgtype.Timestamptz `json:"last_used_at"`
}
type Workspace ¶
type Workspace struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
Name string `json:"name"`
NamespaceName string `json:"namespace_name"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
BootstrapState string `json:"bootstrap_state"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Version int64 `json:"version"`
}
type WorkspaceCluster ¶
type WorkspaceCluster struct {
WorkspaceID int64 `json:"workspace_id"`
InstallationID int64 `json:"installation_id"`
NamespaceName string `json:"namespace_name"`
State string `json:"state"`
Message string `json:"message"`
ObservedGeneration int64 `json:"observed_generation"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type WorkspaceGroup ¶
type WorkspaceGroup struct {
ID int64 `json:"id"`
PublicID string `json:"public_id"`
WorkspaceID int64 `json:"workspace_id"`
Name string `json:"name"`
NameKey string `json:"name_key"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type WorkspaceGroupMember ¶
type WorkspaceGroupMember struct {
WorkspaceID int64 `json:"workspace_id"`
GroupID int64 `json:"group_id"`
UserID int64 `json:"user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type WorkspaceMembership ¶
type WorkspaceMembership struct {
WorkspaceID int64 `json:"workspace_id"`
UserID int64 `json:"user_id"`
Role string `json:"role"`
Status string `json:"status"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
Click to show internal directories.
Click to hide internal directories.