Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrationList = []*gormigrate.Migration{
createUserAndOrganisationTable(),
createClustersTable(),
createStackStorageAndVolumeTables(),
addManagerRunningColumnToCluster(),
createWorkspaceUserTable(),
createWorkspaceNamespaceTable(),
alterWorkspaceUserTableAddVersioningSupport(),
alterWorkspaceStorageTable(),
createStackAndStackResourceTables(),
createImageBuildsTable(),
addSourceVolumeTypeToVolumeMounts(),
addStackResourceNameToImageBuilds(),
createDefaultOrganisation(),
addDefaultUserColumnToUsersTable(),
addWorkspaceNameColumnToStacksTable(),
removeOrganisationColumnFromUsers(),
addNamespaceToStackResourcesTable(),
createClusterImageRegistriesTable(),
createDomainsTable(),
createNamespaceTable(),
renameWorkspaceNameToNamespaceIDInStack(),
renameWorkspaceNameToNamespaceIDInVolume(),
addSourceVolumeNameToVolumeMounts(),
createStackVolumesTable(),
addVolumeIDFkConstraintToVolumeMounts(),
createOrganisationDomainsTable(),
replaceDomainWithStackDomainsTable(),
createSecretsTable(),
createSecretUsageTable(),
addClusterIdToStackTable(),
addDeletionTimestampToStackTable(),
addStackCRHashToStackTable(),
createObjectStoresTable(),
createPostgresAddonsTable(),
createPostgresBackupsTable(),
createPostgresAddonDatabasesTable(),
addNamespaceIdToPostgresAddons(),
createAddonUsagesTable(),
addAPITokensTable(),
addRefreshTokensTable(),
addGitHubOAuthFields(),
createProjectsTable(),
createProjectMembershipsTable(),
addProjectIDToResources(),
updateUserRoles(),
createOAuthStatesTable(),
createOrgInvitesTable(),
addInviteTokenToOAuthStates(),
encryptClusterCredentials(),
createStackConnectionsTable(),
dropLegacyUsageTables(),
dropVolumeMountsTable(),
addStackConnectionDiscriminator(),
addTimestampsToVolumesTable(),
createStackReleasesTable(),
createResourceReferencesTable(),
dropResourceUsagesTable(),
addSettingsToStacks(),
createStackPreviewConfigsTable(),
createPreviewStacksTable(),
addWorkloadTypeColumns(),
dropRegistryRetentionColumns(),
createRegistryCredentialsTable(),
createGitIntegrationsTable(),
createGitInstallationsTable(),
addReleaseValidationErrors(),
createResourceValidationRecords(),
addStackProjectNameUniqueIndex(),
createReleaseEvents(),
addPostgresAddonDeletionTimestamp(),
addPreviewConfigEnvAndRepoNorm(),
addPreviewStackCommentID(),
addGitInstallationIDUniqueIndex(),
addPreviewCommentPending(),
renameDefaultToPlatform(),
deleteOrphanPlatformOrg(),
addClusterInfo(),
deleteSeededPlatformDomains(),
addReleaseWorkerStatus(),
renameClusterPlatformToSharedCompute(),
addClusterDeletionTimestamp(),
dropWorkspaceUserTables(),
createComputeAccess(),
}
Functions ¶
This section is empty.
Types ¶
type ClusterImageRegistry ¶
type ClusterImageRegistry struct {
ID string `gorm:"primary_key;default:gen_random_uuid()" json:"id"`
ClusterID string `gorm:"not null;index:idx_cluster_image_registry_cluster_id" json:"cluster_id"`
OrganisationID string `gorm:"not null;index:idx_cluster_image_registry_organisation_id" json:"organisation_id"`
Name string `gorm:"not null;check:name <> ''" json:"name"`
BackendStorageSize string `gorm:"not null;check:backend_storage_size <> ''" json:"backend_storage_size"`
BackendStorageClass string
MaxRepositories int
TagsPerRepository int
DeleteUntagged bool
Status []byte `gorm:"type:jsonb" json:"status"`
}
type StackStorage ¶
type StackStorage struct {
ID string `gorm:"primary_key;default:gen_random_uuid()"`
OrganisationID string `gorm:"not null"`
UserID string `gorm:"not null"`
Name string `gorm:"not null"`
Namespace string `gorm:"unique;not null"`
Labels []byte `gorm:"type:jsonb"`
Annotations []byte `gorm:"type:jsonb"`
SSHConfig []byte `gorm:"type:jsonb"`
Status []byte `gorm:"type:jsonb"`
State string `gorm:"not null"`
DeletionTimeStamp *time.Time
CreatedAt time.Time
UpdatedAt time.Time
}
type Volume ¶
type Volume struct {
ID string `gorm:"primary_key;default:gen_random_uuid()"`
OrganisationID string `gorm:"not null"`
UserID string `gorm:"not null"`
Name string `gorm:"not null"`
Namespace string `gorm:"not null"`
Labels []byte `gorm:"type:jsonb"`
Annotations []byte `gorm:"type:jsonb"`
Size string
StorageClass string
AccessMode string
VolumeSource []byte `gorm:"type:jsonb"`
SyncBeforeUse bool
Status []byte `gorm:"type:jsonb"`
}
Source Files
¶
- 202405241857_create_user_and_org_table.go
- 202406052106_create_clusters_table.go
- 202407101703_create_workspace_storage_and_volume_tables.go
- 202407142317_add_manager_running_column_to_clusters.go
- 202407241735_create_workspace_user_table.go
- 202407261220_create_workspace_namespace_table.go
- 202408111920_alter_workspace_user_table_add_versioning_support.go
- 202408122225_alter_stack_storage_table.go
- 202409131259_create_stack_and_stack_resource_tables.go
- 202411281957_create_image_builds_table.go
- 202412091922_create_add_volume_source_type_to_volume_mounts.go
- 202412141555_create_add_workspace_resource_name_to_workspace_resource_builds.go
- 202501260933_create_default_organisation.go
- 202501261226_create_default_user_column_to_users.go
- 202505101427_add_workspace_name_to_stacks.go
- 202505111557_remove_organisation_column_from_users.go
- 202505131241_add_namespace_to_stack_resources_table.go
- 202505131837_create_cluster_image_registries_table.go
- 202505141200_create_domains_table.go
- 202505161800_create_namespace_table.go
- 202505161801_rename_workspace_name_to_namespace_id_in_stack.go
- 202505161802_rename_workspace_name_to_namespace_id_in_volume.go
- 202505161810_create_add_volume_source_name_to_volume_mounts.go
- 202505171800_create_stack_volumes_table.go
- 202505171910_create_add_volume_id_fk_constraint_to_volume_mounts.go
- 202505202153_create_table_organisation_domains.go
- 202505202237_replace_domains_table_with_stack_domains.go
- 202505262153_create_secrets_table.go
- 202505302118_create_secret_usage_table.go
- 202505310000_add_cluster_id_to_stack.go
- 202505311229_add_deletion_timestamp_to_stacks.go
- 202506071517_add_stack_cr_hash_to_stacks.go
- 202507162152_create_object_stores_table.go
- 202507162152_create_postgres_addons_table.go
- 202507162152_create_postgres_backups_table.go
- 202507162215_create_postgres_addon_databases_table.go
- 202507182217_add_namespace_id_to_postgres_addons.go
- 202603161001_create_addon_usages_table.go
- 202605030001_add_api_tokens_table.go
- 202605030002_add_refresh_tokens_table.go
- 202605030003_add_github_oauth_fields.go
- 202605040001_create_projects_table.go
- 202605040002_create_project_memberships_table.go
- 202605040003_add_project_id_to_resources.go
- 202605040004_update_user_roles.go
- 202605080001_create_oauth_states_table.go
- 202605100001_create_org_invites_table.go
- 202605100002_add_invite_token_to_oauth_states.go
- 202605140001_encrypt_cluster_credentials.go
- 202605250001_create_stack_connections_table.go
- 202605250002_drop_legacy_usage_tables.go
- 202605260001_drop_volume_mounts_table.go
- 202605270001_add_stack_connection_discriminator.go
- 202605270002_add_timestamps_to_volumes.go
- 202606140001_create_stack_releases_table.go
- 202606210001_create_resource_references_table.go
- 202606210002_drop_resource_usages_table.go
- 202606210003_add_settings_to_stacks.go
- 202606230001_create_stack_preview_configs_table.go
- 202606230002_create_preview_stacks_table.go
- 202607032010_add_workload_type_columns.go
- 202607032018_drop_registry_retention_columns.go
- 202607040454_create_registry_credentials_table.go
- 202607040615_create_git_integrations_table.go
- 202607040636_create_git_installations_table.go
- 202607080001_add_release_validation_errors.go
- 202607080002_create_resource_validation_records.go
- 202607090001_create_release_events.go
- 202607092148_add_stack_project_name_unique_index.go
- 202607100900_add_postgres_addon_deletion_timestamp.go
- 202607190001_add_preview_config_env_and_repo_norm.go
- 202607190002_add_preview_stack_comment_id.go
- 202607200001_add_git_installation_id_unique_index.go
- 202607200002_add_preview_comment_pending.go
- 202607220001_rename_default_to_platform.go
- 202607230001_delete_orphan_platform_org.go
- 202607290001_add_cluster_info.go
- 202608070001_delete_seeded_platform_domains.go
- 202608090001_add_release_worker_status.go
- 202608100001_rename_cluster_platform_to_shared_compute.go
- 202608100002_add_cluster_deletion_timestamp.go
- 202608100003_drop_workspace_users.go
- 202608100004_create_compute_access.go
- migrations.go
Click to show internal directories.
Click to hide internal directories.