{"modulePath":"github.com/Stackdome/stackdome","version":"v0.0.7-alpha","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package models\n\n## Constants\n\n```go\nconst (\n\tCloudflareAPITokenSecretName  = \"cloudflare-api-token\"\n\tCloudflareAPITokenSecretKey   = \"api-token\"\n\tDNSIssuerName                 = \"letsencrypt-dns\"\n\tDNSIssuerPrivateKeySecretName = \"letsencrypt-dns-key\"\n\tPlatformWildcardTLSName       = \"platform-wildcard-tls\"\n)\n```\nFixed names for the platform wildcard TLS resources. The DNS Issuer and its supporting Secret are namespace-scoped, so all of these resources reside in the namespace selected by the bootstrap configuration.\n\n```go\nconst (\n\t// DefaultRegistryStorageSize applies to registries created via the API\n\t// on an org's own cluster.\n\tDefaultRegistryStorageSize = \"50Gi\"\n\t// DefaultPlatformOrgRegistryStorageSize applies to the registry seeded\n\t// for each org at signup on the shared-compute cluster.\n\tDefaultPlatformOrgRegistryStorageSize = \"10Gi\"\n)\n```\n\n```go\nconst (\n\tGitTokenMintedAtAnnotation  = \"stackdome.io/git-token-minted-at\"\n\tGitTokenExpiresAtAnnotation = \"stackdome.io/git-token-expires-at\"\n\tGitIntegrationIDAnnotation  = \"stackdome.io/git-integration-id\"\n)\n```\nAnnotations stamped on cluster secrets synced from minted GitHub App installation tokens, driving hub-side refresh.\n\n```go\nconst (\n\tGitTokenRefreshFailedConditionType   = \"GitTokenRefreshFailed\"\n\tGitTokenRefreshFailedConditionReason = \"MintFailed\"\n)\n```\nCondition recorded on image builds when a GitHub App token refresh fails.\n\n```go\nconst (\n\tDefaultDockerfilePath = \"Dockerfile\"\n\tDefaultBuildContext   = \".\"\n)\n```\n\n```go\nconst (\n\tManagedByLabelKey      = \"stackdome.io/managed-by\"\n\tManagedByLabelValue    = \"stackdome\"\n\tCloudTenantLabelKey    = \"stackdome.io/cloud-tenant\"\n\tCloudTenantLabelValue  = \"true\"\n\tOrganizationIDLabelKey = \"stackdome.io/organization-id\"\n\tNamespaceRoleLabelKey  = \"stackdome.io/namespace-role\"\n\tNamespaceRoleStack     = \"stack\"\n\tNamespaceRoleAddon     = \"addon\"\n)\n```\n\n```go\nconst (\n\t// KubernetesDNSLabelMaxLength is the RFC 1123 DNS-label cap Kubernetes\n\t// applies to namespace names and label values.\n\tKubernetesDNSLabelMaxLength = 63\n\t// NamespaceNameSeparator joins the stack name and the UUID suffix in a\n\t// generated namespace name.\n\tNamespaceNameSeparator = \"-\"\n\t// NamespaceUUIDLength is the length of canonical RFC 4122 UUID text (as\n\t// produced by uuid.UUID.String()).\n\tNamespaceUUIDLength = 36\n\t// NamespaceUUIDSuffixLength is the length of the full\n\t// \"\u003cseparator\u003e\u003cuuid\u003e\" suffix appended to the stack name before\n\t// truncation. Short stack names keep it whole.\n\tNamespaceUUIDSuffixLength = len(NamespaceNameSeparator) + NamespaceUUIDLength\n\t// MinNamespaceUUIDSuffixLength is the entropy floor: at least this many\n\t// UUID characters must survive truncation so generated namespace names\n\t// stay effectively collision-free.\n\tMinNamespaceUUIDSuffixLength = 8\n\t// MaxStackNameLength is the stack-name budget inside a generated\n\t// namespace name: the DNS-label cap minus the separator and the entropy\n\t// floor (63 - 1 - 8 = 54).\n\tMaxStackNameLength = KubernetesDNSLabelMaxLength - len(NamespaceNameSeparator) - MinNamespaceUUIDSuffixLength\n)\n```\nStack namespaces are generated as \"\\\u003cstack-name\u003e-\\\u003cuuid\u003e\" and then truncated from the end to the DNS-label cap (see PrepareNamespaceForStack in pkg/services/namespace\\_service.go). A Kubernetes namespace name is an RFC 1123 DNS label capped at 63 characters; truncation cuts the UUID tail, so the stack name only has to leave room for the separator plus the minimum surviving slice of UUID entropy — not the full UUID. Namespace generation and stack-name validation both derive from these constants — they are the single source of truth for that budget.\n\n```go\nconst (\n\t// AddonNamespacePrefix prefixes every generated addon namespace name.\n\tAddonNamespacePrefix = \"stackdome-addons\"\n\t// MaxAddonTypeLength reserves room for the longest addon type slug\n\t// (\"postgres\") in the addon-name budget.\n\tMaxAddonTypeLength = 8\n\t// MaxAddonNameLength is the addon-name budget inside a generated\n\t// namespace name: the DNS-label cap minus the prefix, the type reservation,\n\t// the three separators (prefix-type, type-name, name-uuid), and the entropy\n\t// floor (63 - 16 - 8 - 3 - 8 = 28).\n\tMaxAddonNameLength = KubernetesDNSLabelMaxLength - len(AddonNamespacePrefix) - MaxAddonTypeLength - 3*len(NamespaceNameSeparator) - MinNamespaceUUIDSuffixLength\n)\n```\nAddon namespaces are generated as \"stackdome-addons-\\\u003ctype\u003e-\\\u003cname\u003e-\\\u003cuuid\u003e\" and truncated from the end to the DNS-label cap (see PrepareNamespaceForAddon in pkg/services/namespace\\_service.go). These constants are the single source of truth for the addon-name budget, mirroring the stack-name budget above.\n\n```go\nconst (\n\tOAuthProviderGitHub = \"github\"\n\tOAuthStateTableName = \"oauth_states\"\n)\n```\n\n```go\nconst (\n\tOutputNameHost          = \"host\"\n\tOutputNamePort          = \"port\"\n\tOutputNameDatabase      = \"database\"\n\tOutputNameUsername      = \"username\"\n\tOutputNamePassword      = \"password\"\n\tOutputNameSSLMode       = \"sslmode\"\n\tOutputNameCACertificate = \"ca_certificate\"\n\tOutputNameURL           = \"url\"\n\tOutputNamePublicHost    = \"public_host\"\n\tOutputNamePublicURL     = \"public_url\"\n)\n```\n\n```go\nconst (\n\tPostgresAddonIDLabel = \"postgres-addon.stackdome.io/id\"\n\tDefaultDatabaseName  = \"app\"\n)\n```\n\n```go\nconst (\n\tPreviewStackLabel    = \"preview.stackdome.io/preview-stack\"\n\tPreviewConfigIDLabel = \"preview.stackdome.io/config-id\"\n\tPreviewPRNumberLabel = \"preview.stackdome.io/pr-number\"\n\tPreviewStackIDLabel  = \"preview.stackdome.io/preview-id\"\n)\n```\n\n```go\nconst (\n\tReleaseEventMetaReason  = \"reason\"\n\tReleaseEventMetaCheck   = \"check\"\n\tReleaseEventMetaBuildID = \"build_id\"\n)\n```\nWell-known metadata keys.\n\n```go\nconst (\n\tRegistrySecretKey = \"registry\"\n\tUsernameSecretKey = \"username\"\n\tPasswordSecretKey = \"password\"\n\tSshSecretKey      = \"ssh_private_key\"\n\tTokenSecretKey    = \"token\"\n)\n```\n\n```go\nconst (\n\tSecretDataHashAnnotation = \"stackdome.io/secret-data-hash\"\n\tSecretIDAnnotation       = \"stackdome.io/secret-id\"\n)\n```\n\n```go\nconst (\n\tStackIDLabel       = \"core.stackdome.io/stack-id\"\n\tStackIDAnnotation  = \"stack.stackdome.io/id\"\n\tStackRevisionLabel = \"stack.stackdome.io/revision\"\n)\n```\n\n```go\nconst (\n\tSkipClusterProvisioningAnnotation = \"stack.stackdome.io/skip-cluster-provisioning\"\n\tSimulateReleaseStateAnnotation    = \"stack.stackdome.io/simulate-release-state\"\n)\n```\n\n```go\nconst (\n\tDefaultReleaseRetentionLimit = 10\n\tDefaultMinSuccessfulReleases = 5\n\n\tMaxReleaseRetentionLimit = 50\n\tMaxMinSuccessfulReleases = 20\n)\n```\n\n```go\nconst (\n\tCredentialScopeOwner     = \"owner\"\n\tCredentialScopeSuperuser = \"superuser\"\n)\n```\nPostgres credential\\_scope values\n\n```go\nconst (\n\tDefaultMaxActivePreviews = 10\n\tMaxMaxActivePreviews     = 50\n\tDefaultStackfilePath     = \"stackfile.yaml\"\n\tDefaultBaseBranch        = \"main\"\n)\n```\n\n```go\nconst (\n\tPortProtocolHTTP = \"http\"\n\tPortProtocolGRPC = \"grpc\"\n\tPortProtocolTCP  = \"tcp\"\n)\n```\n\n```go\nconst (\n\tVolumePhasePending = \"Pending\"\n\tVolumePhaseReady   = \"Ready\"\n)\n```\n\n```go\nconst (\n\tAssignedNodeAnnotation = \"assigned-node\"\n)\n```\n\n```go\nconst (\n\tCreatedForUserLabel = \"user.stackdome.io/id\"\n)\n```\n\n```go\nconst DefaultClusterIssuerName = \"letsencrypt-prod\"\n```\n\n```go\nconst (\n\tDefaultObjectStoreRetentionPolicy = \"7d\"\n)\n```\n\n```go\nconst (\n\tDefaultProjectName = \"default\"\n)\n```\n\n```go\nconst (\n\tDependsOnTopologyEdgeKind = \"depends_on\"\n)\n```\n\n```go\nconst (\n\tImageRegistryIDLabel = \"registry.stackdome.io/id\"\n)\n```\n\n```go\nconst LabelValueTrue = \"true\"\n```\n\n```go\nconst OAuthProviderGitHubAppInstall = \"github_app_install\"\n```\nOAuthProviderGitHubAppInstall scopes platform-app install state records.\n\n```go\nconst OAuthProviderGitHubAppManifest = \"github_app_manifest\"\n```\nOAuthProviderGitHubAppManifest scopes manifest-flow state records.\n\n```go\nconst (\n\tObjectServerGeneration = \"managedobject.stackdome.io/generation\"\n)\n```\n\n```go\nconst PlatformOrganisationName = \"PlatformOrganisation\"\n```\n\n```go\nconst RegistryCredentialIDAnnotation = \"stackdome.io/registry-credential-id\"\n```\nRegistryCredentialIDAnnotation records which org-level registry credential a synced cluster secret was synthesized from.\n\n```go\nconst ReleaseCreatedByPreviewSync = \"system:preview-sync\"\n```\n\n```go\nconst ReleaseEventLinkKindBuildLogs = \"build_logs\"\n```\nLink kinds.\n\n```go\nconst SharedComputeClusterName = \"shared-compute\"\n```\n\n```go\nconst (\n\tVolumeIDLabel = \"volume.stackdome.io/id\"\n)\n```\n\n## Variables\n\n```go\nvar NonGrippingReleaseStates = []StackReleaseState{\n\tReleaseStateFailed,\n\tReleaseStateSuperseded,\n\tReleaseStateCancelled,\n}\n```\nNonGrippingReleaseStates lists release states that should NOT hold delete-protection (\"grip\") on referenced resources.\n\nA release grips its referenced secrets/volumes/addons so that rolling back to it remains safe — the resources it needs must still exist. Only Released releases are valid rollback targets; Pending and InProgress releases may still converge and become the live deployment. Failed, Superseded, and Cancelled releases can never be redeployed, so their grip serves no purpose and would only block resource deletion until GC ages them out of the retention window.\n\nGrip is derived at query time (LEFT JOIN on stack\\_releases.state) rather than toggled by a write on state transition, so it tracks release lifecycle automatically and cannot drift.\n\n```go\nvar SupportedPostgresExtensions = []string{\n\t\"vector\",\n}\n```\n\n## Functions\n\n```go\nfunc IsConditionTrue(conditions []Condition, condType string) bool\n```\n\n```go\nfunc NormalizeRepoURL(url string) string\n```\nNormalizeRepoURL collapses scheme, userinfo, \".git\" and trailing-slash variants to \"host/owner/repo\" so equivalent repo URLs compare equal.\n\n```go\nfunc SetCondition(conditions *[]Condition, cond Condition)\n```\n\n```go\nfunc UserOrgNameFromOauth(name string) string\n```\n\n## Types\n\n```go\ntype APIToken struct {\n\tID          string      `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tName        string      `gorm:\"not null\" json:\"name\"`\n\tUserID      string      `gorm:\"not null\" json:\"userId\"`\n\tTokenHash   string      `gorm:\"not null\" json:\"-\"`\n\tTokenPrefix string      `gorm:\"not null\" json:\"tokenPrefix\"`\n\tScopes      StringSlice `gorm:\"type:jsonb;not null\" json:\"scopes\"`\n\tResourceIDs StringSlice `gorm:\"type:jsonb\" json:\"resourceIds,omitempty\"`\n\tOrgID       string      `gorm:\"not null\" json:\"orgId\"`\n\tExpiresAt   *time.Time  `json:\"expiresAt,omitempty\"`\n\tLastUsedAt  *time.Time  `json:\"lastUsedAt,omitempty\"`\n\tCreatedAt   time.Time   `gorm:\"not null\" json:\"createdAt\"`\n\tRevokedAt   *time.Time  `json:\"revokedAt,omitempty\"`\n}\n```\n\n```go\nfunc (APIToken) TableName() string\n```\n\n```go\ntype Addon interface {\n\tType() string\n\tAddonName() string\n}\n```\n\n```go\ntype Annotation struct {\n\tKey   string `json:\"key\"`\n\tValue string `json:\"value\"`\n}\n```\n\n```go\ntype Annotations []Annotation\n```\n\n```go\nfunc (a *Annotations) Scan(value interface{}) error\n```\n\n```go\nfunc (a Annotations) ToMap() map[string]string\n```\nAnnotations to map\n\n```go\nfunc (a Annotations) Value() (driver.Value, error)\n```\n\n```go\ntype AzureCredentials struct {\n\tConnectionString   SecretReference `json:\"connectionString\"`\n\tStorageAccountName string          `json:\"storageAccountName\"`\n}\n```\n\n```go\ntype BuildArtifactSource struct {\n\tResourceName    string `json:\"resource_name\"`\n\tSourcePath      string `json:\"source_path\"`\n\tDestinationPath string `json:\"destination_path\"`\n}\n```\n\n```go\nfunc (b *BuildArtifactSource) Scan(value interface{}) error\n```\n\n```go\nfunc (b BuildArtifactSource) Value() (driver.Value, error)\n```\n\n```go\ntype BuildArtifactSources []BuildArtifactSource\n```\n\n```go\nfunc (b *BuildArtifactSources) Scan(value interface{}) error\n```\n\n```go\nfunc (b BuildArtifactSources) Value() (driver.Value, error)\n```\n\n```go\ntype BuildArtifactSyncInfo struct {\n\tResourceName string `json:\"resource_name\"`\n\tBuildID      string `json:\"build_id\"`\n\tStatus       string `json:\"status\"`\n}\n```\n\n```go\nfunc (b *BuildArtifactSyncInfo) Scan(value interface{}) error\n```\n\n```go\nfunc (b BuildArtifactSyncInfo) Value() (driver.Value, error)\n```\n\n```go\ntype BuildConfigSpec struct {\n\tSourceContext           BuildContextSource   `json:\"source_context\"`\n\tContextPathWithinSource string               `json:\"context_path_within_source\"`\n\tDockerfilePath          string               `json:\"dockerfile_path\"`\n\tSourceRevision          BuildSourceRevision  `json:\"source_revision\"`\n\tBuildImageRepository    BuildImageRepository `json:\"build_image_repository\"`\n\t// PushRegistryCredentialID pins an org-level registry credential for the\n\t// push target, overriding host auto-attach.\n\tPushRegistryCredentialID string `json:\"push_registry_credential_id,omitempty\"`\n}\n```\n\n```go\nfunc (bc *BuildConfigSpec) Scan(value interface{}) error\n```\n\n```go\nfunc (b *BuildConfigSpec) Validate() error\n```\n\n```go\nfunc (bc BuildConfigSpec) Value() (driver.Value, error)\n```\n\n```go\ntype BuildContextSource struct {\n\tVolume *VolumeBuildSource `json:\"volume\"`\n\tGit    *GitBuildSource    `json:\"git\"`\n}\n```\n\n```go\ntype BuildFailureDetail struct {\n\tFailureType  string `json:\"failure_type\"`\n\tReason       string `json:\"reason,omitempty\"`\n\tMessage      string `json:\"message,omitempty\"`\n\tRestartCount int32  `json:\"restart_count\"`\n\tExitCode     *int32 `json:\"exit_code,omitempty\"`\n}\n```\n\n```go\ntype BuildImageRepository struct {\n\tInsecureRegistry     bool   `json:\"insecure_registry\"`\n\tUseInClusterRegistry bool   `json:\"use_in_cluster_registry\"`\n\tClusterRegistryName  string `json:\"cluster_registry_name,omitempty\"`\n\tExternalImageRef     string `json:\"external_image_ref,omitempty\"`\n}\n```\n\n```go\ntype BuildSourceRevision struct {\n\tVolume *VolumeRevision `json:\"volume\"`\n\tGit    *GitRevision    `json:\"git\"`\n}\n```\n\n```go\ntype Cluster struct {\n\tID                     string `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tOrganisationID         string `gorm:\"not null\"`\n\tName                   string `gorm:\"not null;check:name \u003c\u003e ''\"`\n\tCreatedAt              time.Time\n\tUpdatedAt              time.Time\n\tDeletionTimestamp      *time.Time `json:\"deletion_timestamp,omitempty\"`\n\tSharedCompute          bool\n\tClusterURL             string `gorm:\"not null;check:cluster_url \u003c\u003e '';uniqueIndex:idx_clusters_cluster_url_unique\"`\n\tEncryptedClusterCAData string `gorm:\"not null\"`\n\tEncryptedToken         string `gorm:\"not null\"`\n\tManagerRunning         bool\n\tClusterInfo            *ClusterInfo            `gorm:\"type:jsonb\"`\n\tImageRegistries        []*ClusterImageRegistry `gorm:\"foreignKey:ClusterID\"`\n\n\t// Transient fields — populated by service layer after decryption, never persisted\n\tClusterCAData string `gorm:\"-\"`\n\tToken         string `gorm:\"-\"`\n}\n```\n\n```go\ntype ClusterImageRegistry struct {\n\tID                  string `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tClusterID           string `gorm:\"not null;index:idx_cluster_image_registry_cluster_id\" json:\"cluster_id\"`\n\tOrganisationID      string `gorm:\"not null;index:idx_cluster_image_registry_organisation_id\" json:\"organisation_id\"`\n\tName                string `gorm:\"not null;check:name \u003c\u003e ''\" json:\"name\"`\n\tBackendStorageSize  string `gorm:\"not null;check:backend_storage_size \u003c\u003e ''\" json:\"backend_storage_size\"`\n\tBackendStorageClass string\n\tStatus              *ClusterImageRegistryStatus `gorm:\"type:jsonb\" json:\"status\"`\n}\n```\n\n```go\ntype ClusterImageRegistryOperand struct{ ClusterID string }\n```\nClusterImageRegistryOperand serializes all registry reconciliation for one cluster, including cluster deletion once its registries have been removed.\n\n```go\ntype ClusterImageRegistryStatus struct {\n\tState       RegistryState `json:\"state\"`\n\tConditions  []Condition   `json:\"conditions\"`\n\tRegistryUrl string        `json:\"registry_url\"`\n}\n```\n\n```go\nfunc (c *ClusterImageRegistryStatus) Scan(value interface{}) error\n```\nScan and value methods for ClusterImageRegistryStatus\n\n```go\nfunc (c ClusterImageRegistryStatus) Value() (driver.Value, error)\n```\n\n```go\ntype ClusterInfo struct {\n\tPhase             ClusterInfoPhase      `json:\"phase,omitempty\"`\n\tLastRefreshedAt   *time.Time            `json:\"lastRefreshedAt,omitempty\"`\n\tKubernetesVersion string                `json:\"kubernetesVersion,omitempty\"`\n\tTotalNodes        int                   `json:\"totalNodes,omitempty\"`\n\tReadyNodes        int                   `json:\"readyNodes,omitempty\"`\n\tAvailabilityZones []string              `json:\"availabilityZones,omitempty\"`\n\tNodes             []ClusterNode         `json:\"nodes,omitempty\"`\n\tStorageClasses    []ClusterStorageClass `json:\"storageClasses,omitempty\"`\n\tLoadBalancers     []ClusterLoadBalancer `json:\"loadBalancers,omitempty\"`\n\tIngressClasses    []ClusterIngressClass `json:\"ingressClasses,omitempty\"`\n}\n```\n\n```go\nfunc (c *ClusterInfo) DefaultStorageClass() string\n```\nDefaultStorageClass returns the name of the cluster's default StorageClass, or \"\" when none is marked default.\n\n```go\nfunc (c *ClusterInfo) Scan(value interface{}) error\n```\n\n```go\nfunc (c ClusterInfo) Value() (driver.Value, error)\n```\n\n```go\ntype ClusterInfoPhase string\n```\n\n```go\nconst (\n\tClusterInfoPhaseReady      ClusterInfoPhase = \"Ready\"\n\tClusterInfoPhaseRefreshing ClusterInfoPhase = \"Refreshing\"\n\tClusterInfoPhaseUnknown    ClusterInfoPhase = \"Unknown\"\n)\n```\n\n```go\ntype ClusterIngressClass struct {\n\tName       string `json:\"name\"`\n\tController string `json:\"controller,omitempty\"`\n\tIsDefault  bool   `json:\"isDefault\"`\n}\n```\n\n```go\ntype ClusterLoadBalancer struct {\n\tServiceName      string   `json:\"serviceName\"`\n\tServiceNamespace string   `json:\"serviceNamespace\"`\n\tIngressIPs       []string `json:\"ingressIPs,omitempty\"`\n\tIngressHostnames []string `json:\"ingressHostnames,omitempty\"`\n\tHasIP            bool     `json:\"hasIP\"`\n}\n```\n\n```go\ntype ClusterNode struct {\n\tName                     string             `json:\"name\"`\n\tReady                    bool               `json:\"ready\"`\n\tAllocatableCPU           *resource.Quantity `json:\"allocatableCpu,omitempty\"`\n\tAllocatableMemory        *resource.Quantity `json:\"allocatableMemory,omitempty\"`\n\tAllocatableEphemeralDisk *resource.Quantity `json:\"allocatableEphemeralDisk,omitempty\"`\n\tCapacityEphemeralDisk    *resource.Quantity `json:\"capacityEphemeralDisk,omitempty\"`\n\tZone                     string             `json:\"zone,omitempty\"`\n\tRegion                   string             `json:\"region,omitempty\"`\n}\n```\n\n```go\ntype ClusterStorageClass struct {\n\tName        string `json:\"name\"`\n\tProvisioner string `json:\"provisioner,omitempty\"`\n\tIsDefault   bool   `json:\"isDefault\"`\n}\n```\n\n```go\ntype Condition struct {\n\tType               string    `json:\"type\"`\n\tStatus             string    `json:\"status\"`\n\tLastTransitionTime time.Time `json:\"last_transition_time\"`\n\tReason             string    `json:\"reason\"`\n\tMessage            string    `json:\"message\"`\n}\n```\n\n```go\nfunc ConvertConditions(k8sconditions []metav1.Condition) []Condition\n```\n\n```go\nfunc FindCondition(conditions []Condition, condType string) *Condition\n```\n\n```go\ntype ConditionStatus string\n```\n\n```go\nconst (\n\tConditionTrue    ConditionStatus = \"True\"\n\tConditionFalse   ConditionStatus = \"False\"\n\tConditionUnknown ConditionStatus = \"Unknown\"\n)\n```\n\n```go\ntype ConnectionConfig map[string]interface{}\n```\n\n```go\nfunc (c *ConnectionConfig) Scan(value interface{}) error\n```\n\n```go\nfunc (c ConnectionConfig) Value() (driver.Value, error)\n```\n\n```go\ntype ConnectionConfigKey string\n```\n\n```go\nconst (\n\t// Postgres addon config keys\n\tConnectionConfigKeyDatabase        ConnectionConfigKey = \"database\"\n\tConnectionConfigKeyCredentialScope ConnectionConfigKey = \"credential_scope\"\n\tConnectionConfigKeySuperuser       ConnectionConfigKey = \"superuser\"\n\n\t// Volume mount config keys\n\tConnectionConfigKeyMountPath ConnectionConfigKey = \"mount_path\"\n\tConnectionConfigKeySubPath   ConnectionConfigKey = \"sub_path\"\n\tConnectionConfigKeyReadOnly  ConnectionConfigKey = \"read_only\"\n\n\t// Build artifact source config keys\n\tConnectionConfigKeySourcePath      ConnectionConfigKey = \"source_path\"\n\tConnectionConfigKeyDestinationPath ConnectionConfigKey = \"destination_path\"\n)\n```\n\n```go\ntype ConnectionKind string\n```\n\n```go\nconst (\n\tConnectionKindEnv                 ConnectionKind = \"env\"\n\tConnectionKindVolumeMount         ConnectionKind = \"volume_mount\"\n\tConnectionKindBuildArtifactSource ConnectionKind = \"build_artifact_source\"\n)\n```\n\n```go\nfunc (k ConnectionKind) String() string\n```\n\n```go\ntype ConnectionMapping struct {\n\tTarget ConnectionTarget `json:\"target\"`\n\tValue  ValueRef         `json:\"value\"`\n}\n```\n\n```go\ntype ConnectionMappings []ConnectionMapping\n```\n\n```go\nfunc (m *ConnectionMappings) Scan(value interface{}) error\n```\n\n```go\nfunc (m ConnectionMappings) Value() (driver.Value, error)\n```\n\n```go\ntype ConnectionTarget struct {\n\tType ConnectionTargetType `json:\"type\"`\n\tName string               `json:\"name,omitempty\"`\n\t// Used when Type is file, represents the path where the file should be mounted inside the container\n\tPath string `json:\"path,omitempty\"`\n}\n```\n\n```go\ntype ConnectionTargetType string\n```\n\n```go\nconst (\n\tConnectionTargetTypeEnv  ConnectionTargetType = \"env\"\n\tConnectionTargetTypeFile ConnectionTargetType = \"file\"\n)\n```\n\n```go\ntype ContainerFailureDetail struct {\n\tFailureType  string `json:\"failure_type\"`\n\tReason       string `json:\"reason,omitempty\"`\n\tMessage      string `json:\"message,omitempty\"`\n\tRestartCount int32  `json:\"restart_count\"`\n\tExitCode     *int32 `json:\"exit_code,omitempty\"`\n}\n```\n\n```go\ntype Dependencies []string\n```\n\n```go\nfunc (d *Dependencies) Scan(value interface{}) error\n```\n\n```go\nfunc (d Dependencies) Value() (driver.Value, error)\n```\n\n```go\ntype DeployedClusterInfo struct {\n\tClusterID string `json:\"clusterId\"`\n\tNamespace string `json:\"namespace\"`\n}\n```\n\n```go\ntype EnvSecretRef struct {\n\tSecretName string `json:\"secret_name\"`\n\tKey        string `json:\"key\"`\n}\n```\n\n```go\ntype EnvVar struct {\n\tName         string        `json:\"name\"`\n\tValue        string        `json:\"value,omitempty\"`\n\tSelfOutput   string        `json:\"self_output,omitempty\"`\n\tSecretKeyRef *EnvSecretRef `json:\"secret_key_ref,omitempty\"`\n}\n```\n\n```go\ntype EnvVars []EnvVar\n```\nEnvVars is a top-level jsonb column of EnvVar entries (as opposed to ExecutionConfig.Env, which is serialized as part of its parent struct).\n\n```go\nfunc (e *EnvVars) Scan(value interface{}) error\n```\n\n```go\nfunc (e EnvVars) Value() (driver.Value, error)\n```\n\n```go\ntype ExecutionConfig struct {\n\tCommand []string `json:\"command,omitempty\"`\n\tArgs    []string `json:\"args,omitempty\"`\n\tEnv     []EnvVar `json:\"env,omitempty\"`\n}\n```\n\n```go\nfunc (ec *ExecutionConfig) Scan(value interface{}) error\n```\n\n```go\nfunc (ec ExecutionConfig) Value() (driver.Value, error)\n```\n\n```go\ntype GCSCredentials struct {\n\tServiceAccountCredentials SecretReference `json:\"serviceAccountCredentials\"`\n}\n```\n\n```go\ntype GitAccountType string\n```\nGitAccountType is the kind of account a GitHub App is installed on.\n\n```go\nconst (\n\tGitAccountTypeUser         GitAccountType = \"User\"\n\tGitAccountTypeOrganization GitAccountType = \"Organization\"\n)\n```\nGitHub account types as reported on installations.\n\n```go\ntype GitBuildSource struct {\n\tRepoURL string `json:\"repo_url\"`\n\t// IntegrationID pins an org-level git integration for clone auth,\n\t// overriding host auto-attach. Resolution lands with git integrations.\n\tIntegrationID string `json:\"integration_id,omitempty\"`\n}\n```\n\n```go\ntype GitHubAppCredentials struct {\n\tAppID         int64  `json:\"app_id\"`\n\tSlug          string `json:\"slug\"`\n\tPEM           string `json:\"pem\"`\n\tWebhookSecret string `json:\"webhook_secret\"`\n\tClientID      string `json:\"client_id\"`\n\tClientSecret  string `json:\"client_secret\"`\n}\n```\nGitHubAppCredentials are the app-level credentials returned by the GitHub App manifest conversion; stored encrypted in the integration's auth blob.\n\n```go\ntype GitHubAppManifestFlow struct {\n\tManifest  map[string]any\n\tGitHubURL string\n\tState     string\n}\n```\nGitHubAppManifestFlow is what the UI needs to send the user to GitHub's app-creation page.\n\n```go\ntype GitHubAppMintResult struct {\n\tIntegrationID string\n\tHost          string\n\tToken         string\n\tMintedAt      time.Time\n\tExpiresAt     time.Time\n\tDataHash      string\n}\n```\nGitHubAppMintResult is a freshly minted installation token plus the identity of the integration it came from.\n\n```go\ntype GitInstallation struct {\n\tID                  string `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tGitIntegrationID    string `gorm:\"not null;index\"`\n\tInstallationID      int64  `gorm:\"not null\"`\n\tAccountLogin        string `gorm:\"not null\"`\n\tAccountType         GitAccountType\n\tRepositorySelection string\n\tCreatedAt           time.Time\n\tUpdatedAt           time.Time\n}\n```\nGitInstallation records a GitHub App installation on a GitHub account, linked to the org's github\\_app integration.\n\n```go\ntype GitIntegration struct {\n\tID             string             `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tOrganisationID string             `gorm:\"not null;index\"`\n\tType           GitIntegrationType `gorm:\"not null\"`\n\t// Host is the git host this integration covers (required for\n\t// git_credentials; github.com for github_app).\n\tHost          string `gorm:\"index\"`\n\tEncryptedAuth string `gorm:\"type:text\"`\n\tStatus        GitIntegrationStatus\n\tDataHash      string `gorm:\"not null\"` // for change detection / release freezing\n\tCreatedAt     time.Time\n\tUpdatedAt     time.Time\n\n\t// Transient decrypted auth; never stored or serialized.\n\tAuth *GitIntegrationAuth `gorm:\"-\" json:\"-\"`\n\t// Transient GitHub install URL for github_app integrations.\n\tInstallURL string `gorm:\"-\" json:\"-\"`\n}\n```\nGitIntegration is an org-level git auth integration, auto-attached to repositories by host match when no explicit override is set.\n\n```go\ntype GitIntegrationAuth struct {\n\tBasic     *GitIntegrationBasicAuth `json:\"basic,omitempty\"`\n\tToken     string                   `json:\"token,omitempty\"`\n\tGitHubApp *GitHubAppCredentials    `json:\"github_app,omitempty\"`\n}\n```\nGitIntegrationAuth is the decrypted auth blob for a git integration. Exactly one of Basic or Token is set for git\\_credentials integrations; github\\_app integrations carry app credentials instead (added with the GitHub App flow). SSH auth is deferred.\n\n```go\nfunc (a GitIntegrationAuth) Empty() bool\n```\n\n```go\nfunc (a GitIntegrationAuth) Marshal() ([]byte, error)\n```\n\n```go\ntype GitIntegrationBasicAuth struct {\n\tUsername string `json:\"username\"`\n\tPassword string `json:\"password\"`\n}\n```\nGitIntegrationBasicAuth is username/password clone auth.\n\n```go\ntype GitIntegrationStatus string\n```\n\n```go\nconst (\n\tGitIntegrationStatusActive         GitIntegrationStatus = \"active\"\n\tGitIntegrationStatusPendingInstall GitIntegrationStatus = \"pending_install\"\n\tGitIntegrationStatusInstalled      GitIntegrationStatus = \"installed\"\n)\n```\n\n```go\ntype GitIntegrationType string\n```\n\n```go\nconst (\n\tGitIntegrationTypeGitCredentials GitIntegrationType = \"git_credentials\"\n\tGitIntegrationTypeGitHubApp      GitIntegrationType = \"github_app\"\n)\n```\n\n```go\nfunc (t GitIntegrationType) Valid() bool\n```\n\n```go\ntype GitRepoRevision struct {\n\tBranch string `json:\"branch\"`\n\tTag    string `json:\"tag\"`\n\tCommit string `json:\"commit\"`\n}\n```\n\n```go\nfunc (g GitRepoRevision) IsValid() bool\n```\nValid\n\n```go\nfunc (g *GitRepoRevision) Scan(value interface{}) error\n```\n\n```go\nfunc (g GitRepoRevision) Type() GitRepoRevisionType\n```\n\n```go\nfunc (g GitRepoRevision) Value() (driver.Value, error)\n```\n\n```go\ntype GitRepoRevisionType string\n```\n\n```go\nconst (\n\tBranch GitRepoRevisionType = \"branch\"\n\tTag    GitRepoRevisionType = \"tag\"\n\tCommit GitRepoRevisionType = \"commit\"\n)\n```\n\n```go\ntype GitRepoSource struct {\n\tRepoUrl  string          `json:\"repo_url\"`\n\tRevision GitRepoRevision `json:\"revision\"`\n}\n```\n\n```go\nfunc (g *GitRepoSource) Scan(value interface{}) error\n```\n\n```go\nfunc (g GitRepoSource) Value() (driver.Value, error)\n```\n\n```go\ntype GitRevision struct {\n\tBranch string `json:\"branch\"`\n\tTag    string `json:\"tag\"`\n\tCommit string `json:\"commit\"`\n}\n```\n\n```go\ntype ImageBuild struct {\n\tID                string `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tName              string `gorm:\"not null; \u003c-:create\" json:\"name\"`\n\tNamespace         string\n\tStackID           string\n\tStackResourceID   string\n\tStackResourceName string\n\tStackResource     *StackResource    `gorm:\"foreignKey:StackResourceID\"`\n\tSpec              BuildConfigSpec   `gorm:\"type:jsonb\"`\n\tStatus            *ImageBuildStatus `gorm:\"type:jsonb\"`\n\tCreatedAt         time.Time\n\tUpdatedAt         time.Time\n}\n```\n\n```go\ntype ImageBuildStatus struct {\n\tConditions             []Condition         `json:\"conditions\"`\n\tState                  string              `json:\"state\"`\n\tBuildSourceHash        string              `json:\"build_source_hash\"`\n\tImageURL               string              `json:\"image_url\"`\n\tBuildSourceRevision    string              `json:\"build_source_revision\"`\n\tLastObservedStatusHash string              `json:\"last_observed_status_hash,omitempty\"`\n\tLastBuildFailureDetail *BuildFailureDetail `json:\"last_build_failure_detail,omitempty\"`\n\t// ReleaseID is the release that triggered this build: the agent copies the\n\t// parent StackResource's release-id annotation onto the ImageBuild at\n\t// creation, and builds are never mutated after that.\n\tReleaseID string `json:\"release_id,omitempty\"`\n}\n```\n\n```go\nfunc (s *ImageBuildStatus) IsConditionTrue(condType string) bool\n```\nIsConditionTrue reports whether the status carries the given condition type with status True, per the cluster-agent's condition vocabulary.\n\n```go\nfunc (w *ImageBuildStatus) Scan(value interface{}) error\n```\nUnmarhsal and marshal JSONB column types\n\n```go\nfunc (w ImageBuildStatus) Value() (driver.Value, error)\n```\n\n```go\ntype ImageConfigSpec struct {\n\tImage           string `json:\"image\"`\n\tImagePullPolicy string `json:\"image_pull_policy,omitempty\"`\n\t// RegistryCredentialID pins an org-level registry credential for image\n\t// pulls, overriding host auto-attach.\n\tRegistryCredentialID string `json:\"registry_credential_id,omitempty\"`\n}\n```\n\n```go\nfunc (pc *ImageConfigSpec) Scan(value interface{}) error\n```\n\n```go\nfunc (i ImageConfigSpec) Validate() error\n```\n\n```go\nfunc (pc ImageConfigSpec) Value() (driver.Value, error)\n```\n\n```go\ntype ImageOverrides map[string]string\n```\nImageOverrides maps resource names to image references for preview stacks.\n\n```go\nfunc (o *ImageOverrides) Scan(value any) error\n```\n\n```go\nfunc (o ImageOverrides) Value() (driver.Value, error)\n```\n\n```go\ntype Ingress struct {\n\tURL        string `json:\"url\"`\n\tTargetPort int    `json:\"target_port\"`\n}\n```\n\n```go\ntype InitConfig struct {\n\tCommand []string `json:\"command\"`\n\tArgs    []string `json:\"args\"`\n}\n```\n\n```go\nfunc (ic *InitConfig) Scan(value interface{}) error\n```\n\n```go\nfunc (ic InitConfig) Value() (driver.Value, error)\n```\n\n```go\ntype InviteStatus string\n```\n\n```go\nconst (\n\tInviteStatusPending  InviteStatus = \"pending\"\n\tInviteStatusAccepted InviteStatus = \"accepted\"\n\tInviteStatusRevoked  InviteStatus = \"revoked\"\n\tInviteStatusExpired  InviteStatus = \"expired\"\n)\n```\n\n```go\ntype Label struct {\n\tKey   string `json:\"key\"`\n\tValue string `json:\"value\"`\n}\n```\n\n```go\ntype Labels []Label\n```\n\n```go\nfunc (l *Labels) Scan(value interface{}) error\n```\n\n```go\nfunc (l Labels) ToMap() map[string]string\n```\nLabels to map\n\n```go\nfunc (l Labels) Value() (driver.Value, error)\n```\n\n```go\ntype LifecycleConfig struct {\n\tRestartRequestTime *time.Time `json:\"restart_request_time\"`\n}\n```\n\n```go\nfunc (lc *LifecycleConfig) Scan(value interface{}) error\n```\n\n```go\nfunc (lc LifecycleConfig) Value() (driver.Value, error)\n```\n\n```go\ntype Meta struct {\n\tID        string `gorm:\"primary_key\"`\n\tCreatedAt time.Time\n\tUpdatedAt time.Time\n\tDeletedAt gorm.DeletedAt `gorm:\"index\"`\n}\n```\n\n```go\ntype Namespace struct {\n\tID             string      `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tName           string      `gorm:\"not null;unique\"`\n\tOrganisationID string      `gorm:\"not null\"`\n\tLabels         Labels      `gorm:\"type:jsonb\"`\n\tAnnotations    Annotations `gorm:\"type:jsonb\"`\n\tCreatedAt      time.Time\n\tUpdatedAt      time.Time\n}\n```\n\n```go\nfunc (n *Namespace) AddDefaultLabels()\n```\n\n```go\nfunc (n *Namespace) AddSharedComputeTenantLabels(role string)\n```\nAddSharedComputeTenantLabels preserves the legacy cloud-tenant label because the hardening controller uses it to select tenant namespaces.\n\n```go\ntype NodeCapacity struct {\n\tNodeName string             `json:\"node_name\"` // Name of the node\n\tCPU      *resource.Quantity `json:\"cpu\"`       // Total CPU capacity\n\tMemory   *resource.Quantity `json:\"memory\"`    // Total memory capacity\n\tStorage  *resource.Quantity `json:\"storage\"`   // Total storage capacity\n}\n```\n\n```go\ntype OAuthState struct {\n\tID          string    `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tState       string    `gorm:\"not null;uniqueIndex\" json:\"state\"`\n\tProvider    string    `gorm:\"not null\" json:\"provider\"`\n\tInviteToken string    `json:\"inviteToken,omitempty\"`\n\tCreatedAt   time.Time `gorm:\"not null\" json:\"createdAt\"`\n}\n```\n\n```go\nfunc (OAuthState) TableName() string\n```\n\n```go\ntype ObjectStore struct {\n\tID             string `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tOrganisationID string `gorm:\"not null;index\"`\n\tProjectID      string `gorm:\"index\" json:\"project_id\"`\n\tName           string `gorm:\"not null\"`\n\n\t// Spec fields\n\tConfiguration   ObjectStoreConfiguration `gorm:\"type:jsonb;not null\"`\n\tDestinationPath string                   `gorm:\"not null\"`\n\tRetentionPolicy string\n\n\t// Status fields\n\tStatus    ObjectStoreStatus `gorm:\"type:jsonb\"`\n\tCreatedAt time.Time\n\tUpdatedAt time.Time\n}\n```\n\n```go\ntype ObjectStoreConfiguration struct {\n\tS3Credentials    *S3Credentials    `json:\"s3Credentials,omitempty\"`\n\tAzureCredentials *AzureCredentials `json:\"azureCredentials,omitempty\"`\n\tGCSCredentials   *GCSCredentials   `json:\"gcsCredentials,omitempty\"`\n}\n```\n\n```go\nfunc (c *ObjectStoreConfiguration) Scan(value interface{}) error\n```\nImplement driver.Valuer and sql.Scanner for custom types\n\n```go\nfunc (c ObjectStoreConfiguration) Value() (driver.Value, error)\n```\n\n```go\ntype ObjectStoreStatus struct {\n\tState            string                `json:\"state,omitempty\"`\n\tMessage          string                `json:\"message,omitempty\"`\n\tConditions       []Condition           `json:\"conditions,omitempty\"`\n\tDeployedClusters []DeployedClusterInfo `json:\"deployedClusters,omitempty\"`\n}\n```\n\n```go\nfunc (s *ObjectStoreStatus) Scan(value interface{}) error\n```\n\n```go\nfunc (s ObjectStoreStatus) Value() (driver.Value, error)\n```\n\n```go\ntype OrgInvite struct {\n\tID             string       `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tEmail          string       `gorm:\"not null\" json:\"email\"`\n\tOrganisationID string       `gorm:\"not null\" json:\"organisation_id\"`\n\tProjectID      string       `gorm:\"not null\" json:\"project_id\"`\n\tProjectRole    ProjectRole  `gorm:\"not null;column:project_role\" json:\"project_role\"`\n\tTokenHash      string       `gorm:\"not null\" json:\"-\"`\n\tEncryptedToken string       `gorm:\"not null\" json:\"-\"`\n\tStatus         InviteStatus `gorm:\"not null;default:pending\" json:\"status\"`\n\tExpiresAt      time.Time    `gorm:\"not null\" json:\"expires_at\"`\n\tInvitedByID    string       `gorm:\"not null\" json:\"invited_by_id\"`\n\tAcceptedAt     *time.Time   `json:\"accepted_at,omitempty\"`\n\tEmailSent      bool         `gorm:\"not null;default:false\" json:\"email_sent\"`\n\tEmailSentAt    *time.Time   `json:\"email_sent_at,omitempty\"`\n\tEmailError     *string      `json:\"email_error,omitempty\"`\n\tCreatedAt      time.Time    `gorm:\"not null\" json:\"created_at\"`\n\n\tOrganisation *Organisation `gorm:\"foreignKey:OrganisationID\" json:\"organisation,omitempty\"`\n\tProject      *Project      `gorm:\"foreignKey:ProjectID\" json:\"project,omitempty\"`\n\tInvitedBy    *User         `gorm:\"foreignKey:InvitedByID\" json:\"invited_by,omitempty\"`\n}\n```\n\n```go\ntype OrgInviteOperand struct{ ID string }\n```\n\n```go\ntype OrgRegistryDefaults struct {\n\tStorageSize  string\n\tStorageClass string\n}\n```\nOrgRegistryDefaults are install-level storage defaults for the registry seeded for each org at signup.\n\n```go\ntype Organisation struct {\n\tCreatedAt time.Time\n\tUpdatedAt time.Time\n\tID        string `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tName      string\n\tPlatform  bool                  `gorm:\"column:platform\"`\n\tDomains   []*OrganisationDomain `gorm:\"foreignKey:OrganisationID\"`\n}\n```\n\n```go\ntype OrganisationDomain struct {\n\tID             string `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tOrganisationID string `gorm:\"not null\"`\n\tDomain         string `gorm:\"unique;not null\"`\n\tCreatedAt      time.Time\n\tUpdatedAt      time.Time\n}\n```\n\n```go\ntype OutputDescriptor struct {\n\tName      string          `json:\"name\"`\n\tType      OutputValueType `json:\"type\"`\n\tSensitive bool            `json:\"sensitive\"`\n}\n```\n\n```go\nfunc PostgresAddonOutputDescriptors(_ *PostgresAddon) []OutputDescriptor\n```\n\n```go\nfunc SecretOutputDescriptors(secret *Secret) []OutputDescriptor\n```\n\n```go\nfunc StackResourceOutputDescriptors(resource *StackResource) []OutputDescriptor\n```\n\n```go\ntype OutputValueRef struct {\n\tOutput string `json:\"output\"`\n}\n```\n\n```go\ntype OutputValueType string\n```\n\n```go\nconst (\n\tOutputValueTypeString  OutputValueType = \"string\"\n\tOutputValueTypeInteger OutputValueType = \"integer\"\n\tOutputValueTypeBoolean OutputValueType = \"boolean\"\n)\n```\n\n```go\ntype Port struct {\n\tName                     string `json:\"name\"`\n\tNumber                   int    `json:\"number\"`\n\tProtocol                 string `json:\"protocol\"`\n\tExposedToPublic          bool   `json:\"exposed_to_public\"`\n\tSubdomainPrefix          string `json:\"subdomain_prefix\"`\n\tGeneratedSubdomainPrefix string `json:\"generated_subdomain_prefix\"`\n\tExposedFqdn              string `json:\"fqdn\"`\n}\n```\n\n```go\ntype Ports []Port\n```\n\n```go\nfunc (p *Ports) Scan(value interface{}) error\n```\n\n```go\nfunc (p Ports) Value() (driver.Value, error)\n```\n\n```go\ntype PostgresAddon struct {\n\tID             string      `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tOrganisationID string      `gorm:\"not null;index\"`\n\tProjectID      string      `gorm:\"index\" json:\"project_id\"`\n\tUserID         string      `gorm:\"not null;index\"`\n\tClusterID      string      `gorm:\"not null;index\"`\n\tName           string      `gorm:\"not null\"`\n\tNamespaceID    string      `gorm:\"not null;index\"`\n\tNamespace      string      `gorm:\"not null\"`\n\tLabels         Labels      `gorm:\"type:jsonb\"`\n\tAnnotations    Annotations `gorm:\"type:jsonb\"`\n\tRevision       string\n\n\t// Spec fields\n\tPostgresVersion PostgresVersion        `gorm:\"type:jsonb;not null\"`\n\tInstances       PostgresInstances      `gorm:\"type:jsonb;not null\"`\n\tResources       PostgresResources      `gorm:\"type:jsonb;not null\"`\n\tStorage         PostgresStorage        `gorm:\"type:jsonb;not null\"`\n\tConfiguration   PostgresConfiguration  `gorm:\"type:jsonb\"`\n\tInitialization  PostgresInitialization `gorm:\"type:jsonb\"`\n\tBackupConfig    PostgresBackupConfig   `gorm:\"type:jsonb\"`\n\n\t// Lifecycle fields\n\tBackupRequestedAt *time.Time              `gorm:\"default:NULL\"`\n\tLifecycleConfig   PostgresLifecycleConfig `gorm:\"type:jsonb\"`\n\tDeletionTimestamp *time.Time              `gorm:\"default:NULL\"`\n\n\t// Status fields\n\tStatus    PostgresAddonStatus `gorm:\"type:jsonb\"`\n\tCreatedAt time.Time\n\tUpdatedAt time.Time\n\n\t// Relationships\n\tDatabases []PostgresAddonDatabase `gorm:\"foreignKey:PostgresAddonID\"`\n\tBackups   []PostgresBackup        `gorm:\"foreignKey:PostgresAddonID\"`\n\tOutputs   []OutputDescriptor      `gorm:\"-\" json:\"outputs,omitempty\"`\n}\n```\n\n```go\nfunc (p PostgresAddon) AddonName() string\n```\n\n```go\nfunc (p PostgresAddon) DefaultDatabaseSpecified() bool\n```\n\n```go\nfunc (p *PostgresAddon) EnsureDeclaredOutputs() []OutputDescriptor\n```\n\n```go\nfunc (p *PostgresAddon) ExternalClusterRefName() string\n```\nExternalClusterRefName returns the identifier used in the PostgresCluster CR bootstrap import spec to reference the external database connection definition.\n\n```go\nfunc (p *PostgresAddon) HasDatabase(name string) bool\n```\n\n```go\nfunc (p *PostgresAddon) ImportPasswordSecretName() string\n```\nImportPasswordSecretName returns the predictable K8s Secret name used to store the password for importing from an external database.\n\n```go\nfunc (p PostgresAddon) Type() string\n```\n\n```go\ntype PostgresAddonClusterSecrets struct {\n\tSuperuserSecret     *string           `json:\"superuserSecret,omitempty\"`\n\tUserSecrets         map[string]string `json:\"userSecrets,omitempty\"`\n\tCACertificateSecret string            `json:\"caCertificateSecret,omitempty\"`\n}\n```\n\n```go\ntype PostgresAddonConditionType string\n```\nPostgresAddonConditionType represents condition types for a PostgresAddon.\n\n```go\nconst (\n\tPostgresAddonConditionClusterConfigValid      PostgresAddonConditionType = \"ClusterConfigurationValid\"\n\tPostgresAddonConditionClusterReady            PostgresAddonConditionType = \"ClusterReady\"\n\tPostgresAddonConditionClusterHibernated       PostgresAddonConditionType = \"ClusterHibernated\"\n\tPostgresAddonConditionClusterFenced           PostgresAddonConditionType = \"ClusterFenced\"\n\tPostgresAddonConditionDatabasesApplied        PostgresAddonConditionType = \"DatabasesApplied\"\n\tPostgresAddonConditionWalArchivingSuccess     PostgresAddonConditionType = \"ContinuousWalArchivingSuccess\"\n\tPostgresAddonConditionLastBaseBackupSucceeded PostgresAddonConditionType = \"LastBaseBackupSucceeded\"\n\n\t// PostgresAddonConditionReadyOnce is set by the API server (not the cluster-agent)\n\t// when the addon first reaches Ready state. Once set, it is never cleared.\n\tPostgresAddonConditionReadyOnce PostgresAddonConditionType = \"ReadyOnce\"\n)\n```\n\n```go\ntype PostgresAddonConnectionInfo struct {\n\tHost           string                       `json:\"host,omitempty\"`\n\tPort           int32                        `json:\"port,omitempty\"`\n\tSSLMode        string                       `json:\"sslMode,omitempty\"`\n\tWriteService   string                       `json:\"writeService,omitempty\"`\n\tReadService    string                       `json:\"readService,omitempty\"`\n\tClusterSecrets *PostgresAddonClusterSecrets `json:\"clusterSecrets,omitempty\"`\n}\n```\n\n```go\ntype PostgresAddonDatabase struct {\n\tID              string             `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tPostgresAddonID string             `gorm:\"not null;index\"`\n\tName            string             `gorm:\"not null\"`\n\tExtensions      PostgresExtensions `gorm:\"type:jsonb\"`\n\tCreatedAt       time.Time\n\tUpdatedAt       time.Time\n}\n```\n\n```go\ntype PostgresAddonOperand struct{ ID string }\n```\n\n```go\ntype PostgresAddonState string\n```\nPostgresAddonState represents the state of a PostgresAddon.\n\n```go\nconst (\n\tPostgresAddonStatePending      PostgresAddonState = \"Pending\"\n\tPostgresAddonStateCreating     PostgresAddonState = \"Creating\"\n\tPostgresAddonStateInitializing PostgresAddonState = \"Initializing\"\n\tPostgresAddonStateReady        PostgresAddonState = \"Ready\"\n\tPostgresAddonStateUpdating     PostgresAddonState = \"Updating\"\n\tPostgresAddonStateBackingUp    PostgresAddonState = \"Backing Up\"\n\tPostgresAddonStateRestoring    PostgresAddonState = \"Restoring\"\n\tPostgresAddonStateError        PostgresAddonState = \"Error\"\n\tPostgresAddonStateDeleting     PostgresAddonState = \"Deleting\"\n\tPostgresAddonStateHibernated   PostgresAddonState = \"Hibernated\"\n\tPostgresAddonStateFenced       PostgresAddonState = \"Fenced\"\n)\n```\n\n```go\ntype PostgresAddonStatus struct {\n\tState                  PostgresAddonState           `json:\"state,omitempty\"`\n\tMessage                string                       `json:\"message,omitempty\"`\n\tConditions             []Condition                  `json:\"conditions,omitempty\"`\n\tConnectionInfo         *PostgresAddonConnectionInfo `json:\"connectionInfo,omitempty\"`\n\tDatabases              []PostgresDatabaseInfo       `json:\"databases,omitempty\"`\n\tLastObservedStatusHash string                       `json:\"lastObservedStatusHash,omitempty\"`\n}\n```\n\n```go\nfunc (s *PostgresAddonStatus) Scan(value interface{}) error\n```\n\n```go\nfunc (s PostgresAddonStatus) Value() (driver.Value, error)\n```\n\n```go\ntype PostgresBackup struct {\n\tID              string `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tPostgresAddonID string `gorm:\"not null;index\"`\n\tName            string\n\tDescription     string\n\tType            PostgresBackupType\n\tPhase           string\n\tStartedAt       *time.Time\n\tCompletedAt     *time.Time\n\tError           string\n\tSizeBytes       *int32\n\tCreatedAt       time.Time\n\tUpdatedAt       time.Time\n}\n```\n\n```go\ntype PostgresBackupConfig struct {\n\tObjectStoreID string `json:\"objectStoreId,omitempty\"`\n\tSchedule      string `json:\"schedule,omitempty\"`\n\tWALArchiving  bool   `json:\"walArchiving,omitempty\"`\n}\n```\n\n```go\nfunc (bc *PostgresBackupConfig) Scan(value interface{}) error\n```\n\n```go\nfunc (bc PostgresBackupConfig) Value() (driver.Value, error)\n```\n\n```go\ntype PostgresBackupType string\n```\n\n```go\nconst (\n\tPostgresBackupTypeManual    PostgresBackupType = \"Manual\"\n\tPostgresBackupTypeScheduled PostgresBackupType = \"Scheduled\"\n)\n```\n\n```go\ntype PostgresCPUResource struct {\n\tRequest string `json:\"request\"`\n\tLimit   string `json:\"limit\"`\n}\n```\n\n```go\ntype PostgresConfiguration struct {\n\tEnableSuperuserAccess bool              `json:\"enableSuperuserAccess,omitempty\"`\n\tParameters            map[string]string `json:\"parameters,omitempty\"`\n}\n```\n\n```go\nfunc (c *PostgresConfiguration) Scan(value interface{}) error\n```\n\n```go\nfunc (c PostgresConfiguration) Value() (driver.Value, error)\n```\n\n```go\ntype PostgresCredentials struct {\n\tDatabase         string `json:\"database\"`\n\tHost             string `json:\"host\"`\n\tPort             int32  `json:\"port\"`\n\tUsername         string `json:\"username\"`\n\tPassword         string `json:\"password\"`\n\tSSLMode          string `json:\"sslMode\"`\n\tConnectionString string `json:\"connectionString\"`\n\tCACertificate    string `json:\"caCertificate,omitempty\"`\n}\n```\nPostgresCredentials is the JIT-fetched credential response (not stored in DB)\n\n```go\nfunc (c *PostgresCredentials) ToOutputMap() map[string]string\n```\n\n```go\ntype PostgresDatabaseInfo struct {\n\tName  string `json:\"name\"`\n\tOwner string `json:\"owner,omitempty\"`\n}\n```\n\n```go\ntype PostgresExtensions []string\n```\nDomain types for PostgreSQL addon\n\n```go\nfunc (e *PostgresExtensions) Scan(value interface{}) error\n```\n\n```go\nfunc (e PostgresExtensions) Value() (driver.Value, error)\n```\n\n```go\ntype PostgresImportFromExternal struct {\n\tHost              string   `json:\"host\"`\n\tPort              int      `json:\"port\"`\n\tDatabase          string   `json:\"database\"`\n\tUsername          string   `json:\"username\"`\n\tPasswordSecretID  string   `json:\"passwordSecretId\"`\n\tSslMode           *string  `json:\"sslMode,omitempty\"`\n\tDatabasesToImport []string `json:\"databasesToImport,omitempty\"`\n}\n```\n\n```go\ntype PostgresInitialization struct {\n\tRestoreFromBackup      *PostgresRestoreFromBackup      `json:\"restoreFromBackup,omitempty\"`\n\tRestoreFromObjectStore *PostgresRestoreFromObjectStore `json:\"restoreFromObjectStore,omitempty\"`\n\tImportFromExternal     *PostgresImportFromExternal     `json:\"importFromExternal,omitempty\"`\n}\n```\n\n```go\nfunc (i *PostgresInitialization) Scan(value interface{}) error\n```\n\n```go\nfunc (i PostgresInitialization) Value() (driver.Value, error)\n```\n\n```go\ntype PostgresInstancePlacement struct {\n\tTopologyKey  string               `json:\"topology_key,omitempty\"`\n\tPolicy       string               `json:\"policy,omitempty\"` // preferred or required\n\tNodeSelector map[string]string    `json:\"node_selector,omitempty\"`\n\tTolerations  []PostgresToleration `json:\"tolerations,omitempty\"`\n}\n```\n\n```go\ntype PostgresInstances struct {\n\tCount     int                        `json:\"count\"`\n\tPlacement *PostgresInstancePlacement `json:\"placement,omitempty\"`\n}\n```\n\n```go\nfunc (i *PostgresInstances) Scan(value interface{}) error\n```\n\n```go\nfunc (i PostgresInstances) Value() (driver.Value, error)\n```\n\n```go\ntype PostgresLifecycleConfig struct {\n\tHibernationEnabled bool `json:\"hibernationEnabled,omitempty\"`\n\tFencingEnabled     bool `json:\"fencingEnabled,omitempty\"`\n}\n```\n\n```go\nfunc (lc *PostgresLifecycleConfig) Scan(value interface{}) error\n```\n\n```go\nfunc (lc PostgresLifecycleConfig) Value() (driver.Value, error)\n```\n\n```go\ntype PostgresMemoryResource struct {\n\tRequest string `json:\"request\"`\n\tLimit   string `json:\"limit\"`\n}\n```\n\n```go\ntype PostgresResources struct {\n\tCPU    PostgresCPUResource    `json:\"cpu\"`\n\tMemory PostgresMemoryResource `json:\"memory\"`\n}\n```\n\n```go\nfunc (r *PostgresResources) Scan(value interface{}) error\n```\n\n```go\nfunc (r PostgresResources) Value() (driver.Value, error)\n```\n\n```go\ntype PostgresRestoreFromBackup struct {\n\tBackupID string `json:\"backupId\"`\n}\n```\n\n```go\ntype PostgresRestoreFromObjectStore struct {\n\tObjectStoreID         string     `json:\"objectStoreId\"`\n\tSourcePostgresAddonID string     `json:\"sourcePostgresAddonId\"`\n\tRecoveryTargetTime    *time.Time `json:\"recoveryTargetTime,omitempty\"`\n}\n```\n\n```go\ntype PostgresStorage struct {\n\tSize         string `json:\"size\"`\n\tStorageClass string `json:\"storageClass,omitempty\"`\n}\n```\n\n```go\nfunc (s *PostgresStorage) Scan(value interface{}) error\n```\n\n```go\nfunc (s PostgresStorage) Value() (driver.Value, error)\n```\n\n```go\ntype PostgresToleration struct {\n\tKey      string `json:\"key\"`\n\tOperator string `json:\"operator\"`\n\tValue    string `json:\"value,omitempty\"`\n\tEffect   string `json:\"effect\"`\n}\n```\n\n```go\ntype PostgresVersion struct {\n\tMajor                     int  `json:\"major\"`\n\tMinor                     int  `json:\"minor\"`\n\tEnableMajorVersionUpgrade bool `json:\"enableMajorVersionUpgrade,omitempty\"`\n\tEnableMinorVersionUpgrade bool `json:\"enableMinorVersionUpgrade,omitempty\"`\n}\n```\n\n```go\nfunc (pv *PostgresVersion) Scan(value interface{}) error\n```\nImplement driver.Valuer and sql.Scanner for custom types\n\n```go\nfunc (pv PostgresVersion) Value() (driver.Value, error)\n```\n\n```go\ntype PreviewGitRepository struct {\n\tRepoURL    string `json:\"repo_url\"`\n\tBaseBranch string `json:\"base_branch\"`\n\t// IntegrationID pins an org-level git integration for clone auth;\n\t// otherwise clone auth follows host auto-match, then anonymous.\n\tIntegrationID string `json:\"integration_id,omitempty\"`\n}\n```\nPreviewGitRepository holds the git configuration for a preview environment.\n\n```go\nfunc (r *PreviewGitRepository) Scan(value any) error\n```\n\n```go\nfunc (r PreviewGitRepository) Value() (driver.Value, error)\n```\n\n```go\ntype PreviewReconcilerStatus struct {\n\tLastAppliedCommitSHA     string    `json:\"last_applied_commit_sha,omitempty\"`\n\tLastAppliedStackfileHash string    `json:\"last_applied_stackfile_hash,omitempty\"`\n\tLastAppliedOverridesHash string    `json:\"last_applied_overrides_hash,omitempty\"`\n\tLastProcessedForceSyncAt time.Time `json:\"last_processed_force_sync_at,omitempty\"`\n}\n```\n\n```go\nfunc (s *PreviewReconcilerStatus) Scan(value any) error\n```\n\n```go\nfunc (s PreviewReconcilerStatus) Value() (driver.Value, error)\n```\n\n```go\ntype PreviewStack struct {\n\tID                   string `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tOrganisationID       string `gorm:\"not null\"`\n\tProjectID            string `gorm:\"not null\"`\n\tUserID               string `gorm:\"not null\"`\n\tStackPreviewConfigID string `gorm:\"not null\"`\n\tStackID              *string\n\tActiveReleaseID      *string\n\tName                 string                  `gorm:\"not null\"`\n\tPRNumber             string                  `gorm:\"not null\"`\n\tBranch               string                  `gorm:\"not null\"`\n\tCommitSHA            string                  `gorm:\"not null\"`\n\tSource               PreviewStackSource      `gorm:\"not null\"`\n\tGitHubCommentID      int64                   `gorm:\"column:github_comment_id;not null;default:0\"`\n\tGitHubCommentPending bool                    `gorm:\"column:github_comment_pending;not null;default:false\"`\n\tImageOverrides       ImageOverrides          `gorm:\"type:jsonb\"`\n\tLabels               Labels                  `gorm:\"type:jsonb\"`\n\tAnnotations          Annotations             `gorm:\"type:jsonb\"`\n\tStatus               PreviewStackStatus      `gorm:\"type:jsonb;not null\"`\n\tReconcilerStatus     PreviewReconcilerStatus `gorm:\"type:jsonb;not null;default:'{}'\"`\n\tForceSyncRequestedAt *time.Time\n\tStackfileContent     *string\n\tDeletionTimestamp    *time.Time\n\tCreatedAt            time.Time\n\tUpdatedAt            time.Time\n}\n```\nPreviewStack represents a preview environment spawned from a StackPreviewConfig.\n\n```go\nfunc (PreviewStack) TableName() string\n```\n\n```go\ntype PreviewStackOperand struct{ ID string }\n```\n\n```go\ntype PreviewStackOutputs struct {\n\tCommitSHA string       `json:\"commit_sha,omitempty\"`\n\tURLs      []PreviewURL `json:\"urls,omitempty\"`\n}\n```\nPreviewStackOutputs holds deployment outputs for a preview stack.\n\n```go\ntype PreviewStackPhase string\n```\nPreviewStackPhase represents the lifecycle phase of a preview stack.\n\n```go\nconst (\n\tPreviewStackPhaseProvisioning PreviewStackPhase = \"Provisioning\"\n\tPreviewStackPhaseDeploying    PreviewStackPhase = \"Deploying\"\n\tPreviewStackPhaseReady        PreviewStackPhase = \"Ready\"\n\tPreviewStackPhaseFailed       PreviewStackPhase = \"Failed\"\n\tPreviewStackPhaseDeleting     PreviewStackPhase = \"Deleting\"\n)\n```\n\n```go\ntype PreviewStackSource string\n```\nPreviewStackSource indicates how a preview stack was created.\n\n```go\nconst (\n\tPreviewStackSourceManual  PreviewStackSource = \"manual\"\n\tPreviewStackSourceWebhook PreviewStackSource = \"webhook\"\n)\n```\n\n```go\ntype PreviewStackStatus struct {\n\tPhase   PreviewStackPhase    `json:\"phase\"`\n\tReason  string               `json:\"reason,omitempty\"`\n\tMessage string               `json:\"message,omitempty\"`\n\tOutputs *PreviewStackOutputs `json:\"outputs,omitempty\"`\n}\n```\nPreviewStackStatus holds the current status of a preview stack.\n\n```go\nfunc (s *PreviewStackStatus) Scan(value any) error\n```\n\n```go\nfunc (s PreviewStackStatus) Value() (driver.Value, error)\n```\n\n```go\ntype PreviewURL struct {\n\tResource string `json:\"resource\"`\n\tURL      string `json:\"url\"`\n}\n```\nPreviewURL maps a resource name to its public URL.\n\n```go\ntype Project struct {\n\tID             string `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tName           string `gorm:\"not null\" json:\"name\"`\n\tOrganisationID string `gorm:\"not null\" json:\"organisation_id\"`\n\tDefaultProject bool   `gorm:\"not null;default:false\" json:\"default_project\"`\n\tCreatedAt      time.Time\n\tUpdatedAt      time.Time\n}\n```\n\n```go\ntype ProjectMembership struct {\n\tID        string      `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tProjectID string      `gorm:\"not null\" json:\"project_id\"`\n\tUserID    string      `gorm:\"not null\" json:\"user_id\"`\n\tRole      ProjectRole `gorm:\"not null\" json:\"role\"`\n\tCreatedAt time.Time\n\tProject   *Project `gorm:\"foreignKey:ProjectID\" json:\"project,omitempty\"`\n\tUser      *User    `gorm:\"foreignKey:UserID\" json:\"user,omitempty\"`\n}\n```\n\n```go\ntype ProjectRole string\n```\n\n```go\nconst (\n\tDeveloperRole ProjectRole = \"Developer\"\n\tViewerRole    ProjectRole = \"Viewer\"\n)\n```\n\n```go\nfunc (r ProjectRole) String() string\n```\n\n```go\ntype ReferentType string\n```\n\n```go\nconst (\n\tReferentSecret             ReferentType = \"secret\"\n\tReferentVolume             ReferentType = \"volume\"\n\tReferentPostgresAddon      ReferentType = \"postgres_addon\"\n\tReferentRegistryCredential ReferentType = \"registry_credential\"\n\tReferentGitIntegration     ReferentType = \"git_integration\"\n)\n```\n\n```go\ntype RefreshToken struct {\n\tID        string     `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tUserID    string     `gorm:\"not null\" json:\"userId\"`\n\tTokenHash string     `gorm:\"not null\" json:\"-\"`\n\tExpiresAt time.Time  `gorm:\"not null\" json:\"expiresAt\"`\n\tCreatedAt time.Time  `gorm:\"not null\" json:\"createdAt\"`\n\tRevokedAt *time.Time `json:\"revokedAt,omitempty\"`\n}\n```\n\n```go\nfunc (RefreshToken) TableName() string\n```\n\n```go\ntype RegistryCredential struct {\n\tID                string                    `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tOrganisationID    string                    `gorm:\"not null;index\"`\n\tHost              string                    `gorm:\"not null\"` // normalized registry host\n\tPurpose           RegistryCredentialPurpose `gorm:\"not null;default:'both'\"`\n\tUsername          string                    `gorm:\"not null\"`\n\tEncryptedPassword string                    `gorm:\"type:text;not null\"`\n\tDataHash          string                    `gorm:\"not null\"` // for change detection / release freezing\n\tCreatedAt         time.Time\n\tUpdatedAt         time.Time\n\n\t// Transient plaintext password; never stored or serialized.\n\tPassword string `gorm:\"-\" json:\"-\"`\n}\n```\nRegistryCredential is an org-level credential for a container registry host, auto-attached by host match when no explicit per-resource credential is set.\n\n```go\ntype RegistryCredentialPurpose string\n```\n\n```go\nconst (\n\tRegistryCredentialPurposePull RegistryCredentialPurpose = \"pull\"\n\tRegistryCredentialPurposePush RegistryCredentialPurpose = \"push\"\n\tRegistryCredentialPurposeBoth RegistryCredentialPurpose = \"both\"\n)\n```\n\n```go\nfunc (p RegistryCredentialPurpose) ConflictsWith(other RegistryCredentialPurpose) bool\n```\nConflictsWith reports whether two credentials for the same (org, host) pair overlap: 'both' conflicts with everything, otherwise only exact duplicates conflict.\n\n```go\nfunc (p RegistryCredentialPurpose) Covers(requested RegistryCredentialPurpose) bool\n```\nCovers reports whether a credential with purpose p can be used for the requested purpose.\n\n```go\nfunc (p RegistryCredentialPurpose) Valid() bool\n```\n\n```go\ntype RegistryState string\n```\n\n```go\nconst (\n\tRegistryStatePending  RegistryState = \"Pending\"\n\tRegistryStateRunning  RegistryState = \"Running\"\n\tRegistryStateError    RegistryState = \"Error\"\n\tRegistryStateDeleting RegistryState = \"Deleting\"\n)\n```\n\n```go\ntype RelationKind string\n```\n\n```go\nconst (\n\tRelationEnv           RelationKind = \"env\"\n\tRelationVolumeMount   RelationKind = \"volume_mount\"\n\tRelationBuildArtifact RelationKind = \"build_artifact_source\"\n\tRelationGitCredential RelationKind = \"git_credential\"\n\tRelationImagePull     RelationKind = \"image_pull\"\n\tRelationImagePush     RelationKind = \"image_push\"\n)\n```\n\n```go\ntype ReleaseCause struct {\n\tKind   ReleaseCauseKind `json:\"kind\"`\n\tDetail string           `json:\"detail,omitempty\"`\n}\n```\n\n```go\nfunc (c *ReleaseCause) Scan(value interface{}) error\n```\n\n```go\nfunc (c ReleaseCause) Value() (driver.Value, error)\n```\n\n```go\ntype ReleaseCauseKind string\n```\n\n```go\nconst (\n\tReleaseCauseManual      ReleaseCauseKind = \"manual\"\n\tReleaseCauseRollback    ReleaseCauseKind = \"rollback\"\n\tReleaseCauseWebhookPush ReleaseCauseKind = \"webhook_push\"\n\tReleaseCausePreviewSync ReleaseCauseKind = \"preview_sync\"\n)\n```\n\n```go\ntype ReleaseEvent struct {\n\tID           string             `gorm:\"primaryKey;default:gen_random_uuid()\"`\n\tReleaseID    string             `gorm:\"not null\"`\n\tStackID      string             `gorm:\"not null\"`\n\tSequence     int                `gorm:\"not null\"`\n\tOccurredAt   time.Time          `gorm:\"not null;default:now()\"`\n\tSource       ReleaseEventSource `gorm:\"not null\"`\n\tScope        ReleaseEventScope  `gorm:\"not null\"`\n\tResourceName *string\n\tType         ReleaseEventType     `gorm:\"not null\"`\n\tLevel        ReleaseEventLevel    `gorm:\"not null\"`\n\tMessage      string               `gorm:\"not null\"`\n\tDedupeKey    string               `gorm:\"not null\"`\n\tLinks        ReleaseEventLinks    `gorm:\"type:jsonb\"`\n\tMetadata     ReleaseEventMetadata `gorm:\"type:jsonb\"`\n\tCreatedAt    time.Time\n}\n```\n\n```go\nfunc (ReleaseEvent) TableName() string\n```\n\n```go\ntype ReleaseEventLevel string\n```\n\n```go\nconst (\n\tReleaseEventLevelInfo    ReleaseEventLevel = \"info\"\n\tReleaseEventLevelSuccess ReleaseEventLevel = \"success\"\n\tReleaseEventLevelWarning ReleaseEventLevel = \"warning\"\n\tReleaseEventLevelError   ReleaseEventLevel = \"error\"\n)\n```\n\n```go\ntype ReleaseEventLink struct {\n\tKind   string            `json:\"kind\"`\n\tLabel  string            `json:\"label\"`\n\tTarget map[string]string `json:\"target\"`\n}\n```\n\n```go\ntype ReleaseEventLinks []ReleaseEventLink\n```\n\n```go\nfunc (l *ReleaseEventLinks) Scan(value interface{}) error\n```\n\n```go\nfunc (l ReleaseEventLinks) Value() (driver.Value, error)\n```\n\n```go\ntype ReleaseEventMetadata map[string]string\n```\n\n```go\nfunc (m *ReleaseEventMetadata) Scan(value interface{}) error\n```\n\n```go\nfunc (m ReleaseEventMetadata) Value() (driver.Value, error)\n```\n\n```go\ntype ReleaseEventScope string\n```\n\n```go\nconst (\n\tReleaseEventScopeRelease  ReleaseEventScope = \"release\"\n\tReleaseEventScopeResource ReleaseEventScope = \"resource\"\n)\n```\n\n```go\ntype ReleaseEventSource string\n```\n\n```go\nconst (\n\tReleaseEventSourceHub     ReleaseEventSource = \"hub\"\n\tReleaseEventSourceCluster ReleaseEventSource = \"cluster\"\n)\n```\n\n```go\ntype ReleaseEventType string\n```\n\n```go\nconst (\n\tReleaseEventTypeReleaseCreated       ReleaseEventType = \"release_created\"\n\tReleaseEventTypeReleaseChecksStarted ReleaseEventType = \"release_checks_started\"\n\tReleaseEventTypeReleaseCheckFailed   ReleaseEventType = \"release_check_failed\"\n\tReleaseEventTypeReleaseChecksPassed  ReleaseEventType = \"release_checks_passed\"\n\tReleaseEventTypeReleaseStarted       ReleaseEventType = \"release_started\"\n\tReleaseEventTypeBuildQueued          ReleaseEventType = \"build_queued\" // reserved; not emitted in v1\n\tReleaseEventTypeBuildStarted         ReleaseEventType = \"build_started\"\n\tReleaseEventTypeBuildSucceeded       ReleaseEventType = \"build_succeeded\"\n\t// ReleaseEventTypeBuildAttemptFailed: a build attempt errored but the build\n\t// job is still retrying (ImageBuild phase stays Pending until the job's\n\t// backoff limit is exhausted).\n\tReleaseEventTypeBuildAttemptFailed ReleaseEventType = \"build_attempt_failed\"\n\tReleaseEventTypeBuildFailed        ReleaseEventType = \"build_failed\"\n\tReleaseEventTypeResourceWaiting    ReleaseEventType = \"resource_waiting\"\n\tReleaseEventTypeResourceDeploying  ReleaseEventType = \"resource_deploying\"\n\tReleaseEventTypeResourceReady      ReleaseEventType = \"resource_ready\"\n\tReleaseEventTypeResourceFailed     ReleaseEventType = \"resource_failed\"\n\t// ReleaseEventTypeResourcePortsClosed: the rollout landed but a declared\n\t// port is not accepting connections.\n\tReleaseEventTypeResourcePortsClosed ReleaseEventType = \"resource_ports_closed\"\n\tReleaseEventTypeResourceTLSIssuing  ReleaseEventType = \"resource_tls_issuing\"\n\tReleaseEventTypeResourceTLSReady    ReleaseEventType = \"resource_tls_ready\"\n\tReleaseEventTypeResourceTLSFailed   ReleaseEventType = \"resource_tls_failed\"\n\tReleaseEventTypeReleaseReleased     ReleaseEventType = \"release_released\"\n\tReleaseEventTypeReleaseFailed       ReleaseEventType = \"release_failed\"\n\tReleaseEventTypeReleaseSuperseded   ReleaseEventType = \"release_superseded\"\n\tReleaseEventTypeReleaseCancelled    ReleaseEventType = \"release_cancelled\"\n)\n```\n\n```go\ntype ReleaseHealth string\n```\nReleaseHealth is the computed runtime rollup for a live/active release.\n\n```go\nconst (\n\tReleaseHealthOK          ReleaseHealth = \"ok\"\n\tReleaseHealthProgressing ReleaseHealth = \"progressing\"\n\tReleaseHealthDegraded    ReleaseHealth = \"degraded\"\n\tReleaseHealthUnavailable ReleaseHealth = \"unavailable\"\n\tReleaseHealthFailed      ReleaseHealth = \"failed\"\n)\n```\n\n```go\ntype ReleaseLiveStatus struct {\n\tHealth           ReleaseHealth\n\tResources        map[string]*StackResourceStatus\n\tConditions       []Condition\n\tTargetRevision   string\n\tObservedRevision string\n}\n```\nReleaseLiveStatus is a read-time overlay: current stack/resource status attributed to a release. Never persisted.\n\n```go\nfunc BuildReleaseLiveStatus(release *StackRelease, stack *Stack) *ReleaseLiveStatus\n```\nBuildReleaseLiveStatus overlays current stack/resource status onto a release. Returns nil unless the release is active (Pending/InProgress) or live (the stack's last converged release).\n\n```go\ntype ReleaseManifest struct {\n\tStackCR            json.RawMessage                  `json:\"stack_cr\"`\n\tStackResourceCRs   map[string]json.RawMessage       `json:\"stack_resource_crs\"`\n\tResourceNames      []string                         `json:\"resource_names\"`\n\tVolumeBuildSources map[string][]BuildArtifactSource `json:\"volume_build_sources,omitempty\"`\n\tResourceRevisions  map[string]string                `json:\"resource_revisions\"`\n}\n```\nReleaseManifest holds the rendered Kubernetes CRs produced by the renderer. Once written it is immutable (enforced by a DB trigger).\n\n```go\nfunc (m *ReleaseManifest) Scan(value interface{}) error\n```\n\n```go\nfunc (m ReleaseManifest) Value() (driver.Value, error)\n```\n\n```go\ntype ReleaseOutcome struct {\n\tResources map[string]ResourceOutcome `json:\"resources,omitempty\"`\n\tDuration  time.Duration              `json:\"duration\"`\n}\n```\nReleaseOutcome records per-resource convergence results.\n\n```go\nfunc (o *ReleaseOutcome) Scan(value interface{}) error\n```\n\n```go\nfunc (o ReleaseOutcome) Value() (driver.Value, error)\n```\n\n```go\ntype ReleasePins struct {\n\t// Resource Name -\u003e Resolved artifact src.\n\tResources map[string]ResourcePins `json:\"resources,omitempty\"`\n}\n```\nReleasePins captures the resolved artifact coordinates for each resource.\n\n```go\nfunc (p *ReleasePins) Scan(value interface{}) error\n```\n\n```go\nfunc (p ReleasePins) Value() (driver.Value, error)\n```\n\n```go\ntype ReleaseSummary struct {\n\tID       string\n\tSequence int\n\tState    StackReleaseState\n}\n```\nReleaseSummary is a lightweight projection used for release GC decisions.\n\n```go\ntype ReleaseValidationError struct {\n\tResourceName string `json:\"resource_name\"`\n\tField        string `json:\"field\"`\n\tCode         string `json:\"code\"`\n\tMessage      string `json:\"message\"`\n}\n```\nReleaseValidationError is one structured validation failure attached to a release, addressed to a resource and a field of its spec.\n\n```go\ntype ReleaseValidationErrors []ReleaseValidationError\n```\n\n```go\nfunc (v *ReleaseValidationErrors) Scan(value interface{}) error\n```\n\n```go\nfunc (v ReleaseValidationErrors) Value() (driver.Value, error)\n```\n\n```go\ntype ReleaseWorkerStatus struct {\n\t// ConvergeClockStartedAt is when the convergence timeout clock started.\n\t// The deadline reconciler stamps it once the release has no builds left\n\t// to wait for, and clears it again if a build shows up running. Nil means\n\t// the clock has not started and the release cannot converge-timeout.\n\tConvergeClockStartedAt *time.Time `json:\"converge_clock_started_at,omitempty\"`\n}\n```\nReleaseWorkerStatus is bookkeeping the release worker persists while a release is in flight. It is not part of the user-facing release contract.\n\n```go\nfunc (w *ReleaseWorkerStatus) Scan(value interface{}) error\n```\n\n```go\nfunc (w ReleaseWorkerStatus) Value() (driver.Value, error)\n```\n\n```go\ntype RemoteDirSource struct {\n\t// Path within the client where the directory to be synced is located.\n\tPath string `json:\"path\"`\n\t// We use this to track the current state of the remote directory.\n\tCurrentDirectoryHash string `json:\"current_directory_hash\"`\n}\n```\n\n```go\nfunc (l *RemoteDirSource) Scan(value interface{}) error\n```\n\n```go\nfunc (l RemoteDirSource) Value() (driver.Value, error)\n```\n\n```go\ntype ResourceMetrics struct {\n\tAssignedNodes  []string          `json:\"assigned_node\"` // Node where the resource is assigned\n\tCPUUsage       resource.Quantity `json:\"cpu_usage\"`     // CPU usage in percentage\n\tCPULimit       resource.Quantity `json:\"cpu_limit\"`     // CPU limit in cores\n\tMemoryUsage    resource.Quantity `json:\"memory_usage\"`  // Memory usage in percentage\n\tMemoryLimit    resource.Quantity `json:\"memory_limit\"`  // Memory limit in bytes\n\tNetworkIO      float64           `json:\"network_io\"`    // Network I/O in bytes\n\tStorageIO      float64           `json:\"storage_io\"`    // Storage I/O in bytes\n\tNodeCapacities []*NodeCapacity   `json:\"node_capacity\"` // Node capacity metrics\n\tTimeStamp      time.Time         `json:\"time_stamp\"`    // Timestamp of the metrics\n}\n```\n\n```go\ntype ResourceOutcome struct {\n\tPhase         StackResourcePhase `json:\"phase\"`\n\tReadyReplicas int32              `json:\"ready_replicas\"`\n\tReplicas      int32              `json:\"replicas\"`\n\tMessage       string             `json:\"message,omitempty\"`\n}\n```\nResourceOutcome tracks the final state of a single resource in a release.\n\n```go\ntype ResourcePins struct {\n\tGitSHA string `json:\"git_sha,omitempty\"`\n\t// Branch records the branch a default-branch resolution landed on, so the\n\t// snapshot can carry it (the CRD requires branch-or-tag on git revisions).\n\tBranch      string `json:\"branch,omitempty\"`\n\tVolumeHash  string `json:\"volume_hash,omitempty\"`\n\tImageDigest string `json:\"image_digest,omitempty\"`\n}\n```\nResourcePins holds the pinned artifact identifiers for a single resource.\n\n```go\ntype ResourceReference struct {\n\tID           string       `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tStackID      string       `gorm:\"not null;index\"`\n\tReleaseID    *string      `gorm:\"index\"` // nil =\u003e live spec\n\tReferentType ReferentType `gorm:\"not null\"`\n\tReferentID   string       `gorm:\"not null\"`\n\tRelationKind RelationKind `gorm:\"not null\"`\n\tCreatedAt    time.Time\n}\n```\nResourceReference is a derived index row: a scope (the live stack spec when ReleaseID is nil, or a specific release) references a deletable referent.\n\n```go\nfunc (ResourceReference) TableName() string\n```\n\n```go\ntype ResourceValidationCheckKind string\n```\nResourceValidationCheckKind names an expensive release-time check.\n\n```go\nconst (\n\tValidationCheckImagePull  ResourceValidationCheckKind = \"image_pull\"\n\tValidationCheckPushAccess ResourceValidationCheckKind = \"push_access\"\n)\n```\n\n```go\ntype ResourceValidationRecord struct {\n\tStackID      string                      `gorm:\"primaryKey\"`\n\tResourceName string                      `gorm:\"primaryKey\"`\n\tCheckKind    ResourceValidationCheckKind `gorm:\"primaryKey\"`\n\tFingerprint  string                      `gorm:\"not null\"`\n\tValidatedAt  time.Time                   `gorm:\"not null\"`\n}\n```\nResourceValidationRecord remembers the last successful expensive validation for a resource so unchanged targets are not re-probed on every release. Failures are never recorded.\n\n```go\nfunc (ResourceValidationRecord) TableName() string\n```\n\n```go\ntype S3Credentials struct {\n\tAccessKeyID     SecretReference `json:\"accessKeyId\"`\n\tSecretAccessKey SecretReference `json:\"secretAccessKey\"`\n\tRegion          string          `json:\"region\"`\n\tEndpoint        string          `json:\"endpoint,omitempty\"`\n}\n```\n\n```go\ntype SSHConfig struct {\n\t// Users public key.\n\tPublicKey string `json:\"public_key\"`\n}\n```\n\n```go\nfunc (c *SSHConfig) Scan(value interface{}) error\n```\n\n```go\nfunc (c SSHConfig) Value() (driver.Value, error)\n```\n\n```go\ntype Secret struct {\n\tID             string `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tOrganisationID string `gorm:\"not null;index\"`\n\tProjectID      string `gorm:\"index\" json:\"project_id\"`\n\tUserID         string `gorm:\"not null;index\"`\n\tName           string `gorm:\"not null\"`\n\tDescription    string\n\tType           SecretType `gorm:\"not null\" json:\"type\"`\n\tEncryptedData  string     `gorm:\"type:text;not null\"`\n\tKeys           SecretKeys `gorm:\"type:jsonb\" json:\"keys\"`\n\tDataHash       string     `gorm:\"not null\" ` // For change detection\n\n\tCreatedAt time.Time\n\tUpdatedAt time.Time\n\n\t// Transient field for API responses (not stored in DB)\n\tData    map[string]string  `gorm:\"-\" json:\"data,omitempty\"`\n\tOutputs []OutputDescriptor `gorm:\"-\" json:\"outputs,omitempty\"`\n}\n```\n\n```go\nfunc (s *Secret) ClusterSecretName() string\n```\n\n```go\nfunc (s *Secret) EnsureDeclaredOutputs() []OutputDescriptor\n```\n\n```go\nfunc (s *Secret) ToOutputMap() map[string]string\n```\n\n```go\ntype SecretKeys []string\n```\n\n```go\nfunc (s *SecretKeys) Scan(value interface{}) error\n```\n\n```go\nfunc (s SecretKeys) Value() (driver.Value, error)\n```\n\n```go\ntype SecretReference struct {\n\tSecretID string `json:\"secret_id\"` // UUID of the secret\n\tKey      string `json:\"key\"`       // Key within the secret\n}\n```\nSecretReference points to a secret and an optional key within that secret.\n\n```go\ntype SecretType string\n```\n\n```go\nconst (\n\tSecretTypeGeneric          SecretType = \"Generic\"\n\tSecretTypeDockerRegistry   SecretType = \"DockerRegistry\"\n\tSecretTypeGitCredentials   SecretType = \"GitCredentials\"\n\tSecretTypeUsernamePassword SecretType = \"UsernamePassword\"\n\tSecretTypeToken            SecretType = \"Token\"\n\tSecretTypeSSHKey           SecretType = \"SSHKey\"\n)\n```\n\n```go\ntype SourceVolumeType string\n```\n\n```go\nconst (\n\tEmptyVolume               SourceVolumeType = \"EmptyVolume\"\n\tRemoteDirSyncedVolume     SourceVolumeType = \"RemoteDirSyncedVolume\"\n\tBuildArtifactSyncedVolume SourceVolumeType = \"BuildArtifactSyncedVolume\"\n\tGitRepoVolume             SourceVolumeType = \"GitRepoVolume\"\n)\n```\n\n```go\ntype Stack struct {\n\tID                string      `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tOrganisationID    string      `gorm:\"not null\"`\n\tProjectID         string      `gorm:\"index\" json:\"project_id\"`\n\tClusterID         string      `gorm:\"not null\"`\n\tUserID            string      `gorm:\"not null\"`\n\tName              string      `gorm:\"not null;\u003c-:create\"`\n\tNamespaceID       string      `gorm:\"not null\"`\n\tNamespace         string      `gorm:\"unique;not null;\u003c-:create\"`\n\tLabels            Labels      `gorm:\"type:jsonb\"`\n\tAnnotations       Annotations `gorm:\"type:jsonb\"`\n\tCrRevision        string\n\tConnections       StackConnections `gorm:\"-\"`\n\tStackResources    []*StackResource `gorm:\"foreignKey:StackID\"`\n\tVolumes           []*Volume        `gorm:\"-\"`\n\tStatus            *StackStatus     `gorm:\"type:jsonb\"`\n\tSettings          *StackSettings   `gorm:\"type:jsonb\"`\n\tCreatedAt         time.Time\n\tUpdatedAt         time.Time\n\tDeletionTimestamp *time.Time `gorm:\"default:NULL\"`\n}\n```\n\n```go\nfunc (ws *Stack) DirectConfigSecretsInUse() []string\n```\n\n```go\nfunc (s *Stack) EffectiveSettings() StackSettings\n```\n\n```go\nfunc (s *Stack) ExposedPortFqdnMap() map[string]map[int]string\n```\n\n```go\nfunc (s *Stack) GetConvergedReleaseID() string\n```\n\n```go\nfunc (s *Stack) GetGitCredentialsMap() map[string]string\n```\n\n```go\nfunc (s *Stack) GetImagePullSecretIDMap() map[string]string\n```\nreturns a map of image names to their pull secret IDs\n\n```go\nfunc (s *Stack) GetImagePushSecretIDMap() map[string]string\n```\nGetImagePushSecretIDMap returns a map of resource names to their push secret IDs.\n\n```go\nfunc (s *Stack) HasConvergedRelease() bool\n```\n\n```go\nfunc (s *Stack) HasExposedPorts() bool\n```\n\n```go\nfunc (s *Stack) HasGitCredentials() bool\n```\n\n```go\nfunc (s *Stack) HasImageBuilds() bool\n```\nhasImageBuilds\n\n```go\nfunc (s *Stack) HasImagePullSecrets() bool\n```\n\n```go\nfunc (s *Stack) HasImagePushSecrets() bool\n```\nHasImagePushSecrets checks if any stack resource has an image push secret configured.\n\n```go\nfunc (ws *Stack) HasVolumeMounts() bool\n```\n\n```go\nfunc (ws *Stack) ResourcesMap() map[string]*StackResource\n```\n\n```go\nfunc (ws *Stack) SecretsInUse() []string\n```\n\n```go\nfunc (ws *Stack) VolumeMountIds() []string\n```\n\n```go\nfunc (ws *Stack) VolumesMap() map[string]*Volume\n```\n\n```go\ntype StackConditionType string\n```\n\n```go\nconst (\n\tStackConditionAvailable      StackConditionType = \"Available\"\n\tStackConditionConverged      StackConditionType = \"Converged\"\n\tStackConditionResourcesReady StackConditionType = \"ResourcesReady\"\n\tStackConditionStalled        StackConditionType = \"Stalled\"\n\tStackConditionDegraded       StackConditionType = \"Degraded\"\n\tStackConditionProgressing    StackConditionType = \"Progressing\"\n)\n```\n\n```go\ntype StackConnection struct {\n\tID            string             `json:\"id\" gorm:\"column:id;primary_key;default:gen_random_uuid()\"`\n\tStackID       string             `json:\"-\" gorm:\"not null;index\"`\n\tKind          ConnectionKind     `json:\"kind\" gorm:\"not null\"`\n\tFrom          TopologyNodeRef    `json:\"from\" gorm:\"column:from_ref;type:jsonb;not null\"`\n\tTo            TopologyNodeRef    `json:\"to\" gorm:\"column:to_ref;type:jsonb;not null\"`\n\tMappings      ConnectionMappings `json:\"mappings,omitempty\" gorm:\"type:jsonb\"`\n\tConfig        ConnectionConfig   `json:\"config,omitempty\" gorm:\"type:jsonb\"`\n\tDiscriminator string             `json:\"-\" gorm:\"not null;default:''\"`\n\tCreatedAt     time.Time          `json:\"-\"`\n\tUpdatedAt     time.Time          `json:\"-\"`\n}\n```\nStackConnection represents a directed edge between two topology nodes in a stack.\n\nThe unique constraint on (stack\\_id, kind, from\\_ref, to\\_ref, discriminator) prevents duplicate edges. The Discriminator field is a config-derived scoping key that allows multiple connections between the same (from, to) pair when they target different logical sub-resources — e.g., two env connections from the same PostgresAddon to the same stack resource, each targeting a different database. For connection types that don't need sub-resource scoping, the discriminator is an empty string and the constraint behaves like a simple (stack\\_id, kind, from\\_ref, to\\_ref) unique index.\n\nTo extend discriminator support for new connection types, add a case to ComputeDiscriminator(). The store layer calls it automatically before persistence.\n\n```go\nfunc (c *StackConnection) ComputeDiscriminator() string\n```\nComputeDiscriminator derives a scoping key from the connection's config based on the source type and kind. This allows the unique index to permit multiple connections between the same (from, to) pair when they address different sub-resources.\n\nCurrently supported:\n\n  - addon/postgres + env → config.database (allows wiring multiple databases from one addon)\n\nReturns \"\" for all other connection types, preserving standard edge uniqueness.\n\n```go\nfunc (c StackConnection) ConfigBool(key string) (bool, bool, error)\n```\n\n```go\nfunc (c StackConnection) ConfigString(key string) (string, bool, error)\n```\n\n```go\nfunc (c StackConnection) IsKind(kind ConnectionKind) bool\n```\n\n```go\nfunc (c StackConnection) RequiredConfigString(key string) (string, error)\n```\n\n```go\nfunc (c StackConnection) SourceIs(nodeType TopologyNodeType) bool\n```\n\n```go\nfunc (StackConnection) TableName() string\n```\n\n```go\nfunc (c StackConnection) TargetIs(nodeType TopologyNodeType) bool\n```\n\n```go\nfunc (c StackConnection) TargetsStackResource(resourceName string) bool\n```\n\n```go\ntype StackConnections []StackConnection\n```\n\n```go\nfunc (connections StackConnections) EnvForStackResource(resourceName string) StackConnections\n```\n\n```go\nfunc (connections StackConnections) FromType(sourceType TopologyNodeType) StackConnections\n```\n\n```go\nfunc (connections StackConnections) HasAnyKind(kinds ...ConnectionKind) bool\n```\n\n```go\nfunc (connections StackConnections) OfKind(kind ConnectionKind) StackConnections\n```\n\n```go\nfunc (c *StackConnections) Scan(value interface{}) error\n```\n\n```go\nfunc (c StackConnections) Value() (driver.Value, error)\n```\n\n```go\ntype StackConvergenceRecord struct {\n\tRevision  string    `json:\"revision\"`\n\tReleaseID string    `json:\"release_id,omitempty\"`\n\tAt        time.Time `json:\"at\"`\n}\n```\n\n```go\ntype StackDomain struct {\n\tID                string `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tOrganisationID    string `gorm:\"not null\"`\n\tFqdn              string `gorm:\"unique;not null\"`\n\tStackID           string `gorm:\"not null;index\"`\n\tStackResourceID   string `gorm:\"not null;index\"`\n\tStackResourceName string `gorm:\"not null\"`\n\tTargetPort        int    `gorm:\"not null\"`\n\tCreatedAt         time.Time\n\tUpdatedAt         time.Time\n}\n```\n\n```go\ntype StackDomainList []*StackDomain\n```\n\n```go\nfunc (d *StackDomainList) FindByFqdn(fqdn string) *StackDomain\n```\n\n```go\nfunc (d *StackDomainList) FqdnPresent(fqdn string) bool\n```\n\n```go\ntype StackOperand struct{ ID string }\n```\nWorkqueue operands. Must be comparable values, never pointers:\n\n  - the workqueue dedups and rate-limits by map-key equality,\n  - a pointer's map key is its address, so every allocation looks like new work and duplicates accumulate for long-running operands,\n  - value keys also guarantee no two goroutines process the same operand concurrently once workers run with multiple goroutines.\n\n```go\ntype StackPhase string\n```\nStackPhase mirrors the cluster-agent's phase vocabulary for API-facing typed enums.\n\n```go\nconst (\n\tStackPhaseReady       StackPhase = \"Ready\"\n\tStackPhasePending     StackPhase = \"Pending\"\n\tStackPhaseFailed      StackPhase = \"Failed\"\n\tStackPhaseDegraded    StackPhase = \"Degraded\"\n\tStackPhaseProgressing StackPhase = \"Progressing\"\n)\n```\n\n```go\ntype StackPreviewConfig struct {\n\tID                string `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tOrganisationID    string `gorm:\"not null\"`\n\tProjectID         string `gorm:\"not null\"`\n\tUserID            string `gorm:\"not null\"`\n\tName              string `gorm:\"not null\"`\n\tDescription       string\n\tGitRepository     PreviewGitRepository `gorm:\"type:jsonb;not null\"`\n\tStackfilePath     string               `gorm:\"not null;default:'stackfile.yaml'\"`\n\tMaxActivePreviews int                  `gorm:\"not null;default:10\"`\n\tEnv               EnvVars              `gorm:\"type:jsonb\" json:\"env\"`\n\tRepoURLNormalized string               `gorm:\"column:repo_url_normalized\" json:\"-\"`\n\tLabels            Labels               `gorm:\"type:jsonb\"`\n\tAnnotations       Annotations          `gorm:\"type:jsonb\"`\n\tCreatedAt         time.Time\n\tUpdatedAt         time.Time\n}\n```\nStackPreviewConfig defines how preview environments are created for a stack.\n\n```go\nfunc (s *StackPreviewConfig) GitBaseBranch() string\n```\n\n```go\nfunc (s *StackPreviewConfig) GitRepoURL() string\n```\n\n```go\nfunc (s *StackPreviewConfig) NormalizedRepoURL() string\n```\nNormalizedRepoURL returns the config's repo URL in normalized form, for comparison and for persisting into RepoURLNormalized.\n\n```go\nfunc (StackPreviewConfig) TableName() string\n```\n\n```go\ntype StackRelease struct {\n\tID               string            `gorm:\"primary_key;default:gen_random_uuid()\"`\n\tStackID          string            `gorm:\"not null\"`\n\tSequence         int               `gorm:\"not null\"`\n\tState            StackReleaseState `gorm:\"not null\"`\n\tMessage          string\n\tCause            ReleaseCause     `gorm:\"type:jsonb\"`\n\tSnapshot         StackSnapshot    `gorm:\"type:jsonb;not null\"`\n\tSnapshotRevision string           `gorm:\"not null\"`\n\tManifest         *ReleaseManifest `gorm:\"type:jsonb\"`\n\tManifestRevision string\n\tPins             ReleasePins `gorm:\"type:jsonb\"`\n\tRendererVersion  string\n\tOutcome          *ReleaseOutcome         `gorm:\"type:jsonb\"`\n\tValidationErrors ReleaseValidationErrors `gorm:\"type:jsonb\"`\n\tWorkerStatus     *ReleaseWorkerStatus    `gorm:\"type:jsonb\"`\n\tCreatedBy        string\n\tCreatedAt        time.Time\n\tUpdatedAt        time.Time\n\tRenderedAt       *time.Time\n\tCompletedAt      *time.Time\n}\n```\nStackRelease represents a single atomic deployment attempt for a stack.\n\n```go\nfunc (r *StackRelease) ConvergeClockStartedAt() *time.Time\n```\nConvergeClockStartedAt returns the stamped clock start, or nil when the worker status block is absent entirely.\n\n```go\nfunc (StackRelease) TableName() string\n```\n\n```go\ntype StackReleaseOperand struct{ ID string }\n```\n\n```go\ntype StackReleaseRefs struct {\n\tConverged *StackRelease\n\tLatest    *StackRelease\n}\n```\nStackReleaseRefs pairs the currently converged (live) release with the highest-sequence one for stack embedding.\n\n```go\ntype StackReleaseState string\n```\nStackReleaseState tracks the lifecycle of a release.\n\n```go\nconst (\n\tReleaseStatePending    StackReleaseState = \"Pending\"\n\tReleaseStateInProgress StackReleaseState = \"InProgress\"\n\tReleaseStateReleased   StackReleaseState = \"Released\"\n\tReleaseStateFailed     StackReleaseState = \"Failed\"\n\tReleaseStateSuperseded StackReleaseState = \"Superseded\"\n\tReleaseStateCancelled  StackReleaseState = \"Cancelled\"\n)\n```\n\n```go\nfunc TerminalStackReleaseStates() []StackReleaseState\n```\n\n```go\nfunc (s StackReleaseState) Active() bool\n```\nActive returns true if the release is still in-flight (not terminal).\n\n```go\nfunc (s StackReleaseState) Terminal() bool\n```\nTerminal returns true if the release has reached a final state.\n\n```go\ntype StackResource struct {\n\tID          string `gorm:\"default:gen_random_uuid()\"`\n\tUserID      string `gorm:\"not null\"`\n\tStackID     string\n\tName        string      `gorm:\"\u003c-:create\"`\n\tNamespace   string      `gorm:\"\u003c-:create\"`\n\tLabels      Labels      `gorm:\"type:jsonb\"`\n\tAnnotations Annotations `gorm:\"type:jsonb\"`\n\t// Tracks the version of the object in the database.\n\tVersion         int\n\tBuildConfig     *BuildConfigSpec   `gorm:\"type:jsonb\"`\n\tImageConfig     *ImageConfigSpec   `gorm:\"type:jsonb\"`\n\tInit            *InitConfig        `gorm:\"type:jsonb\"`\n\tExecutionConfig *ExecutionConfig   `gorm:\"type:jsonb\"`\n\tVolumeMounts    []*VolumeMount     `gorm:\"-\"`\n\tDependsOn       Dependencies       `gorm:\"type:jsonb\"`\n\tLifecycleConfig *LifecycleConfig   `gorm:\"type:jsonb\"`\n\tPorts           Ports              `gorm:\"type:jsonb\"`\n\tOutputs         []OutputDescriptor `gorm:\"-\" json:\"outputs,omitempty\"`\n\tWorkloadType    WorkloadType\n\tSchedule        string\n\tReplicas        *int32\n\tStatus          *StackResourceStatus `gorm:\"type:jsonb\"`\n\tCreatedAt       time.Time\n\tUpdatedAt       time.Time\n}\n```\n\n```go\nfunc (r *StackResource) EnsureDeclaredOutputs() []OutputDescriptor\n```\n\n```go\nfunc (s *StackResource) GitIntegrationID() string\n```\nGitIntegrationID returns the pinned org-level git integration for clone auth, or \"\" if none is set.\n\n```go\nfunc (s *StackResource) HasGitCredentials() bool\n```\n\n```go\nfunc (s *StackResource) HasImagePullSecrets() bool\n```\n\n```go\nfunc (s *StackResource) HasImagePushSecrets() bool\n```\nHasImagePushSecrets checks if any stack resource has an image push secret configured.\n\n```go\nfunc (r *StackResource) InternalServiceHost() string\n```\n\n```go\nfunc (s *StackResource) RegistryPullCredentialID() string\n```\nRegistryPullCredentialID returns the pinned org-level registry credential for image pulls, or \"\" if none is set.\n\n```go\nfunc (s *StackResource) RegistryPushCredentialID() string\n```\nRegistryPushCredentialID returns the pinned org-level registry credential for the push target, or \"\" if none is set.\n\n```go\nfunc (r *StackResource) ToOutputMap() map[string]string\n```\n\n```go\nfunc (v *StackResource) VolumeMountMap() map[string]*VolumeMount\n```\n\n```go\ntype StackResourceConditionType string\n```\n\n```go\nconst (\n\tStackResourceConditionAvailable   StackResourceConditionType = \"Available\"\n\tStackResourceConditionProgressing StackResourceConditionType = \"Progressing\"\n\tStackResourceConditionConverged   StackResourceConditionType = \"StackResourceConverged\"\n\tStackResourceConditionBuildReady  StackResourceConditionType = \"BuildReady\"\n)\n```\n\n```go\ntype StackResourceConvergenceRecord struct {\n\tRevision string    `json:\"revision\"`\n\tAt       time.Time `json:\"at\"`\n}\n```\n\n```go\ntype StackResourceFailure struct {\n\tType          StackResourceFailureType `json:\"type\"`\n\tContainer     *ContainerFailureDetail  `json:\"container,omitempty\"`\n\tInitContainer *ContainerFailureDetail  `json:\"init_container,omitempty\"`\n\tBuild         *BuildFailureDetail      `json:\"build,omitempty\"`\n}\n```\n\n```go\ntype StackResourceFailureType string\n```\n\n```go\nconst (\n\tFailureTypeRuntimeCrash     StackResourceFailureType = \"runtime_crash\"\n\tFailureTypeBuildFailure     StackResourceFailureType = \"build_failure\"\n\tFailureTypeReadinessFailure StackResourceFailureType = \"readiness_failure\"\n)\n```\n\n```go\ntype StackResourcePhase string\n```\n\n```go\ntype StackResourceState string\n```\n\n```go\nconst (\n\tStackResourcePhasePending StackResourceState = \"Pending\"\n\tStackResourcePhaseReady   StackResourceState = \"Ready\"\n\tStackResourcePhaseFailed  StackResourceState = \"Failed\"\n\tStackResourcePhaseUnknown StackResourceState = \"Error\"\n)\n```\n\n```go\ntype StackResourceStatus struct {\n\tState                         StackResourceState    `json:\"state\"`\n\tMessage                       string                `json:\"message\"`\n\tObservedCrRevision            string                `json:\"observed_cr_revision\"`\n\tConditions                    []Condition           `json:\"conditions\"`\n\tPublicIngresses               []Ingress             `json:\"public_ingresses\"`\n\tInternalServiceName           *string               `json:\"internal_service_name,omitempty\"`\n\tLastObservedStatusHash        string                `json:\"last_observed_status_hash,omitempty\"`\n\tLastRestartRequestProcessedAt *time.Time            `json:\"last_restart_request_processed_at,omitempty\"`\n\tLastFailure                   *StackResourceFailure `json:\"last_failure,omitempty\"`\n\tReplicas                      int32                 `json:\"replicas,omitempty\"`\n\tAvailableReplicas             int32                 `json:\"available_replicas,omitempty\"`\n\tUpdatedReplicas               int32                 `json:\"updated_replicas,omitempty\"`\n\tLastRunTime                   *time.Time            `json:\"last_run_time,omitempty\"`\n\tLastRunSucceeded              *bool                 `json:\"last_run_succeeded,omitempty\"`\n}\n```\n\n```go\nfunc (rs *StackResourceStatus) Scan(value interface{}) error\n```\n\n```go\nfunc (rs StackResourceStatus) Value() (driver.Value, error)\n```\n\n```go\ntype StackResourceSummary struct {\n\tName              string                          `json:\"name\"`\n\tPhase             StackResourcePhase              `json:\"phase,omitempty\"`\n\tObservedRevision  string                          `json:\"observed_revision,omitempty\"`\n\tConvergedRevision string                          `json:\"converged_revision,omitempty\"`\n\tLastConverged     *StackResourceConvergenceRecord `json:\"last_converged,omitempty\"`\n\tAvailableReplicas int32                           `json:\"available_replicas,omitempty\"`\n\tUpdatedReplicas   int32                           `json:\"updated_replicas,omitempty\"`\n\tReplicas          int32                           `json:\"replicas,omitempty\"`\n\tMissing           bool                            `json:\"missing,omitempty\"`\n\tMessage           string                          `json:\"message,omitempty\"`\n}\n```\n\n```go\ntype StackSettings struct {\n\tReleaseRetentionLimit int `json:\"release_retention_limit\"`\n\tMinSuccessfulReleases int `json:\"min_successful_releases\"`\n}\n```\n\n```go\nfunc (s *StackSettings) Scan(value interface{}) error\n```\n\n```go\nfunc (s StackSettings) Value() (driver.Value, error)\n```\n\n```go\ntype StackShellSnapshot struct {\n\tID             string      `json:\"id\"`\n\tOrganisationID string      `json:\"organisation_id\"`\n\tProjectID      string      `json:\"project_id\"`\n\tClusterID      string      `json:\"cluster_id\"`\n\tUserID         string      `json:\"user_id\"`\n\tName           string      `json:\"name\"`\n\tNamespaceID    string      `json:\"namespace_id\"`\n\tNamespace      string      `json:\"namespace\"`\n\tLabels         Labels      `json:\"labels\"`\n\tAnnotations    Annotations `json:\"annotations\"`\n}\n```\nStackShellSnapshot captures the identifying fields of a Stack at a point in time.\n\n```go\ntype StackSnapshot struct {\n\tStack       StackShellSnapshot `json:\"stack\"`\n\tResources   []*StackResource   `json:\"resources\"`\n\tVolumes     []*Volume          `json:\"volumes\"`\n\tConnections StackConnections   `json:\"connections\"`\n\tCapturedAt  time.Time          `json:\"captured_at\"`\n}\n```\nStackSnapshot is an immutable copy of a stack's full spec at the time a release was created.\n\n```go\nfunc NewStackSnapshot(stack *Stack) (StackSnapshot, error)\n```\nNewStackSnapshot deep-copies a Stack into a snapshot. Uses JSON round-trip to break pointer sharing so downstream mutations don't corrupt live objects.\n\n```go\nfunc (s *StackSnapshot) Scan(value interface{}) error\n```\n\n```go\nfunc (s *StackSnapshot) ToStack() *Stack\n```\nToStack reconstructs a Stack from the snapshot for rendering.\n\n```go\nfunc (s StackSnapshot) Value() (driver.Value, error)\n```\n\n```go\ntype StackState string\n```\n\n```go\nconst (\n\tStackReady       StackState = \"Ready\"\n\tStackDeleting    StackState = \"Deleting\"\n\tStackPending     StackState = \"Pending\"\n\tStackFailed      StackState = \"Failed\"\n\tStackError       StackState = \"Error\"\n\tStackDegraded    StackState = \"Degraded\"\n\tStackProgressing StackState = \"Progressing\"\n)\n```\n\n```go\ntype StackStatus struct {\n\tState                  StackState              `json:\"state\"`\n\tMessage                string                  `json:\"message\"`\n\tObservedCrRevision     string                  `json:\"observed_cr_revision\"`\n\tConditions             []Condition             `json:\"conditions\"`\n\tLastObservedStatusHash string                  `json:\"last_observed_status_hash\"`\n\tLastValidationRun      *ValidationRun          `json:\"last_validation_run\"`\n\tTargetRevision         string                  `json:\"target_revision,omitempty\"`\n\tLastConverged          *StackConvergenceRecord `json:\"last_converged,omitempty\"`\n\tResources              []StackResourceSummary  `json:\"resources,omitempty\"`\n}\n```\n\n```go\nfunc (s *StackStatus) GetLastConverged() *StackConvergenceRecord\n```\n\n```go\nfunc (ws *StackStatus) Scan(value interface{}) error\n```\n\n```go\nfunc (ws StackStatus) Value() (driver.Value, error)\n```\n\n```go\ntype StackStorage struct {\n\tID             string `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tOrganisationID string `gorm:\"not null\"`\n\tUserID         string `gorm:\"not null\"`\n\tName           string `gorm:\"not null; \u003c-:create\"`\n\tNamespace      string `gorm:\"unique;not null;  \u003c-:create\"`\n\tWorkspaceName  string `gorm:\"\u003c-:create\"`\n\t// Tracks the version of the object in the database.\n\tVersion           int\n\tLabels            Labels              `gorm:\"type:jsonb\"`\n\tAnnotations       Annotations         `gorm:\"type:jsonb\"`\n\tSSHConfig         SSHConfig           `gorm:\"type:jsonb\"`\n\tVolumes           []*Volume           `gorm:\"foreignKey:StorageID\"`\n\tStatus            *StackStorageStatus `gorm:\"type:jsonb\"`\n\tDeletionTimeStamp *time.Time          `json:\"deletion_timestamp\"`\n\tCreatedAt         time.Time\n\tUpdatedAt         time.Time\n}\n```\n\n```go\nfunc (w *StackStorage) SetState(state StackStorageState) bool\n```\n\n```go\nfunc (w *StackStorage) VolumeExists(volumeID string) bool\n```\n\n```go\nfunc (w *StackStorage) VolumeMap() map[string]*Volume\n```\n\n```go\ntype StackStorageState string\n```\n\n```go\nconst (\n\tStackStorageStateCreating StackStorageState = \"Creating\"\n\tStackStorageStateReady    StackStorageState = \"Ready\"\n\tStackStorageStateDeleting StackStorageState = \"Deleting\"\n\tStackStorageStateFailed   StackStorageState = \"Failed\"\n\tStackStorageStateCreated  StackStorageState = \"Created\"\n\tStackStorageStatePending  StackStorageState = \"Pending\"\n)\n```\n\n```go\ntype StackStorageStatus struct {\n\tState                    StackStorageState `json:\"state\"`\n\tConditions               []Condition       `json:\"conditions\"`\n\tPhase                    string            `json:\"phase\"`\n\tStorageServerServiceName string            `json:\"storage_server_service_name\"`\n\tLastObservedStatusHash   string            `json:\"last_observed_status_hash,omitempty\"`\n\tObservedVersion          int64             `json:\"observed_version\"`\n\t// Subpath within the storage pod where different volumes are mounted.\n\tVolumeMountPaths []VolumeMountPath `json:\"volume_mount_paths,omitempty\"`\n}\n```\n\n```go\nfunc (s *StackStorageStatus) Scan(value interface{}) error\n```\n\n```go\nfunc (s StackStorageStatus) Value() (driver.Value, error)\n```\n\n```go\ntype StackTopology struct {\n\tNodes []TopologyNode `json:\"nodes\"`\n\tEdges []TopologyEdge `json:\"edges\"`\n}\n```\n\n```go\ntype StackVolume struct {\n\tStackID  string `gorm:\"primary_key\"`\n\tVolumeID string `gorm:\"primary_key\"`\n}\n```\n\n```go\ntype StringSlice []string\n```\n\n```go\nfunc (s *StringSlice) Scan(src any) error\n```\n\n```go\nfunc (s StringSlice) Value() (driver.Value, error)\n```\n\n```go\ntype TopologyEdge struct {\n\tId       string                 `json:\"id,omitempty\"`\n\tKind     string                 `json:\"kind\"`\n\tSource   TopologyNodeRef        `json:\"source\"`\n\tTarget   TopologyNodeRef        `json:\"target\"`\n\tMappings []ConnectionMapping    `json:\"mappings,omitempty\"`\n\tConfig   map[string]interface{} `json:\"config,omitempty\"`\n\t// If its from user's explicit connection or inferred by the system, Like consuming pull secrets, git credentials.\n\tSourceOfTruth string `json:\"source_of_truth\"`\n}\n```\n\n```go\ntype TopologyNode struct {\n\tRef     TopologyNodeRef    `json:\"ref\"`\n\tLabel   string             `json:\"label\"`\n\tOutputs []OutputDescriptor `json:\"outputs,omitempty\"`\n\tState   string             `json:\"state,omitempty\"`\n}\n```\n\n```go\ntype TopologyNodeRef struct {\n\tType TopologyNodeType `json:\"type\"`\n\tId   string           `json:\"id,omitempty\"`\n\tName string           `json:\"name,omitempty\"`\n}\n```\n\n```go\nfunc (r *TopologyNodeRef) Scan(value interface{}) error\n```\n\n```go\nfunc (r TopologyNodeRef) Value() (driver.Value, error)\n```\n\n```go\ntype TopologyNodeType string\n```\n\n```go\nconst (\n\tTopologyNodeTypeStackResource TopologyNodeType = \"stack_resource\"\n\tTopologyNodeTypePostgresAddon TopologyNodeType = \"addon/postgres\"\n\tTopologyNodeTypeSecret        TopologyNodeType = \"secret\"\n\tTopologyNodeTypeVolume        TopologyNodeType = \"volume\"\n\tTopologyNodeTypeObjectStore   TopologyNodeType = \"object_store\"\n)\n```\n\n```go\ntype User struct {\n\tID             string `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tCreatedAt      time.Time\n\tUpdatedAt      time.Time\n\tName           string\n\tEmail          string `gorm:\"unique\"`\n\tPassword       string\n\tOrganisation   *Organisation `gorm:\"foreignKey:OrganisationID\"`\n\tRole           UserRole\n\tOrganisationID string\n\tGithubID       *string `gorm:\"column:github_id;uniqueIndex\"`\n\tAvatarURL      *string `gorm:\"column:avatar_url\"`\n}\n```\n\n```go\nfunc (u *User) ClusterAccessRules() []rbacv1.PolicyRule\n```\n\n```go\nfunc (u *User) IsOrgAdmin() bool\n```\n\n```go\ntype UserRole string\n```\nUserRole represents org-level roles stored on the User model. OrgAdmin = full org access. Empty string = permissions derived from project memberships. OrgMemberRole is not stored on User.Role; it is a Casbin-only grouping auto-managed by project membership lifecycle.\n\n```go\nconst (\n\tNoRole        UserRole = \"\"\n\tOrgAdminRole  UserRole = \"OrgAdmin\"\n\tOrgMemberRole UserRole = \"OrgMember\"\n)\n```\n\n```go\nfunc (r UserRole) String() string\n```\n\n```go\ntype ValidationRun struct {\n\t// List of validation types that were run.\n\tValidationTypes []string `json:\"validation_types\"`\n\tStackRevision   string   `json:\"stack_revision\"`\n\tPassed          bool     `json:\"passed\"`\n\tMessage         string   `json:\"message\"`\n}\n```\n\n```go\ntype ValueRef struct {\n\tOutput   string                    `json:\"output,omitempty\"`\n\tTemplate string                    `json:\"template,omitempty\"`\n\tValues   map[string]OutputValueRef `json:\"values,omitempty\"`\n}\n```\n\n```go\ntype Volume struct {\n\tID             string           `gorm:\"primary_key;default:gen_random_uuid()\" json:\"id\"`\n\tOrganisationID string           `gorm:\"not null\" json:\"organisation_id\"`\n\tProjectID      string           `gorm:\"index\" json:\"project_id\"`\n\tUserID         string           `gorm:\"not null\" json:\"user_id\"`\n\tName           string           `gorm:\"not null; \u003c-:create\" json:\"name\"`\n\tNamespaceID    string           `gorm:\"not null\" json:\"namespace_id\"`\n\tNamespace      string           `gorm:\"not null;  \u003c-:create\" json:\"namespace\"`\n\tLabels         Labels           `gorm:\"type:jsonb\" json:\"labels\"`\n\tAnnotations    Annotations      `gorm:\"type:jsonb\" json:\"annotations\"`\n\tSize           string           `gorm:\"\u003c-:create\" json:\"size\"`\n\tStorageClass   string           `gorm:\"\u003c-:create\" json:\"storage_class,omitempty\"`\n\tAccessMode     VolumeAccessMode `gorm:\"not null; \u003c-:create\"`\n\tVolumeSource   *VolumeSource    `gorm:\"type:jsonb\" json:\"volume_source,omitempty\"`\n\tSyncBeforeUse  bool             `json:\"sync_before_use\"`\n\tStatus         *VolumeStatus    `gorm:\"type:jsonb\" json:\"volume_status,omitempty\"`\n\tCreatedAt      time.Time        `json:\"created_at\"`\n\tUpdatedAt      time.Time        `json:\"updated_at\"`\n}\n```\n\n```go\nfunc (v *Volume) VolumeSourceType() SourceVolumeType\n```\n\n```go\ntype VolumeAccessMode string\n```\n\n```go\nconst (\n\tREAD_WRITE_ONCE VolumeAccessMode = \"ReadWriteOnce\"\n\tREAD_WRITE_MANY VolumeAccessMode = \"ReadWriteMany\"\n\tREAD_ONLY_MANY  VolumeAccessMode = \"ReadOnlyMany\"\n)\n```\n\n```go\ntype VolumeBuildSource struct {\n\tSourceVolumeID   string `json:\"source_volume_id\"`\n\tSourceVolumeName string `json:\"source_volume_name\"`\n}\n```\n\n```go\ntype VolumeMount struct {\n\tStackID          string\n\tStackResourceID  string\n\tSourceVolumeName string\n\tSourceVolumeID   string\n\tSourceVolumeType SourceVolumeType\n\tSourceSubPath    string\n\tTargetPath       string\n}\n```\n\n```go\ntype VolumeMountPath struct {\n\tVolumeID string `json:\"volume_id\"`\n\tPath     string `json:\"path\"`\n}\n```\n\n```go\nfunc (vmp *VolumeMountPath) Scan(value interface{}) error\n```\nScan and Value methods for VolumeMountPath\n\n```go\nfunc (vmp VolumeMountPath) Value() (driver.Value, error)\n```\n\n```go\ntype VolumeOperand struct{ ID string }\n```\n\n```go\ntype VolumeRevision struct {\n\t// Hash of the contents of the volume.\n\tCurrentVolumeHash string `json:\"current_volume_hash\"`\n}\n```\n\n```go\ntype VolumeSource struct {\n\tRemoteDirSource *RemoteDirSource     `json:\"remote_dir_source,omitempty\"`\n\tBuildSource     BuildArtifactSources `json:\"build_source,omitempty\"`\n\tGitRepoSource   *GitRepoSource       `json:\"git_repo_source,omitempty\"`\n}\n```\n\n```go\nfunc (v *VolumeSource) Scan(value interface{}) error\n```\n\n```go\nfunc (v VolumeSource) Value() (driver.Value, error)\n```\n\n```go\ntype VolumeStatus struct {\n\tObservedGeneration     int64                   `json:\"observed_generation\"`\n\tConditions             []Condition             `json:\"conditions\"`\n\tPhase                  string                  `json:\"phase\"`\n\tBuildArtifactSyncs     []BuildArtifactSyncInfo `json:\"build_artifact_syncs,omitempty\"`\n\tLastObservedStatusHash string                  `json:\"last_observed_status_hash,omitempty\"`\n\tInUse                  bool                    `json:\"in_use\"`\n\tLastSyncedGitRevision  string                  `json:\"last_synced_git_revision,omitempty\"`\n\tLastRemoteDirSyncHash  string                  `json:\"last_remote_dir_sync_hash,omitempty\"`\n}\n```\n\n```go\nfunc (v *VolumeStatus) Scan(value interface{}) error\n```\n\n```go\nfunc (v VolumeStatus) Value() (driver.Value, error)\n```\n\n```go\ntype WorkloadType string\n```\n\n```go\nconst (\n\tWorkloadTypeService         WorkloadType = \"Service\"\n\tWorkloadTypeStatefulService WorkloadType = \"StatefulService\"\n\tWorkloadTypeWorker          WorkloadType = \"Worker\"\n\tWorkloadTypeJob             WorkloadType = \"Job\"\n\tWorkloadTypeCronJob         WorkloadType = \"CronJob\"\n)\n```\n\n","path":"github.com/Stackdome/stackdome/pkg/models","name":"models","synopsis":"","isRedistributable":true}
