Documentation
¶
Index ¶
- func ConvertCluster(in *openapi.Cluster) *models.Cluster
- func ConvertClusterImageRegistry(in *openapi.ClusterImageRegistry) *models.ClusterImageRegistry
- func ConvertDomains(in []openapi.DomainName) []*models.OrganisationDomain
- func ConvertGitIntegration(in *openapi.GitIntegration) *models.GitIntegration
- func ConvertObjectStore(in *openapi.ObjectStore) *models.ObjectStore
- func ConvertOrganisation(in openapi.Organisation) *models.Organisation
- func ConvertPostgresAddon(in *openapi.PostgresAddon) *models.PostgresAddon
- func ConvertPreviewStackCreate(req *openapi.PreviewStackCreate) *models.PreviewStack
- func ConvertProjectRole(role openapi.ProjectRole) models.ProjectRole
- func ConvertRegistryCredential(in *openapi.RegistryCredential) *models.RegistryCredential
- func ConvertRegistryCredentialVerifyPurpose(in *openapi.RegistryCredentialVerifyRequest) models.RegistryCredentialPurpose
- func ConvertSecret(in *openapi.Secret) *models.Secret
- func ConvertStack(w *openapi.Stack) *models.Stack
- func ConvertStackConnection(connection *openapi.StackConnection) *models.StackConnection
- func ConvertStackPreviewConfigCreate(req *openapi.StackPreviewConfigCreate) *models.StackPreviewConfig
- func ConvertStackPreviewConfigUpdate(req *openapi.StackPreviewConfigUpdate) *models.StackPreviewConfig
- func ConvertStackResource(r *openapi.StackResource) *models.StackResource
- func ConvertUser(in *openapi.UserSignupRequest) *models.User
- func ConvertVolume(v *openapi.Volume) *models.Volume
- func PresentAPIToken(in *models.APIToken) openapi.APIToken
- func PresentAPITokenCreateResponse(token *models.APIToken, rawToken string) openapi.APITokenCreateResponse
- func PresentAPITokenList(in []*models.APIToken) []openapi.APIToken
- func PresentCluster(cluster *models.Cluster) *openapi.Cluster
- func PresentClusterImageRegistry(clusterImageRegistry *models.ClusterImageRegistry) *openapi.ClusterImageRegistry
- func PresentClusterImageRegistryList(clusterImageRegistries []*models.ClusterImageRegistry) *openapi.ClusterImageRegistryList
- func PresentClusterImageRegistrySpec(clusterImageRegistry *models.ClusterImageRegistry) *openapi.ClusterImageRegistrySpec
- func PresentClusterImageRegistryState(state models.RegistryState) *openapi.ClusterImageRegistryState
- func PresentClusterImageRegistryStatus(status *models.ClusterImageRegistryStatus) *openapi.ClusterImageRegistryStatus
- func PresentClusterList(clusters []*models.Cluster) *openapi.ClusterList
- func PresentDomains(in []*models.OrganisationDomain) []openapi.DomainName
- func PresentGitHubAppManifestFlow(in *models.GitHubAppManifestFlow) openapi.GitHubAppManifestFlow
- func PresentGitInstallation(in *models.GitInstallation) openapi.GitInstallation
- func PresentGitInstallationList(in []*models.GitInstallation) []openapi.GitInstallation
- func PresentGitIntegration(in *models.GitIntegration) openapi.GitIntegration
- func PresentGitIntegrationList(in []*models.GitIntegration) []openapi.GitIntegration
- func PresentGitRepository(in githubapp.Repo) openapi.GitRepository
- func PresentGitRepositoryPage(in *githubapp.RepoPage) openapi.GitRepositoryPage
- func PresentImageBuild(in *models.ImageBuild) openapi.ImageBuild
- func PresentImageBuildList(in []*models.ImageBuild) []openapi.ImageBuild
- func PresentObjectStore(in *models.ObjectStore) openapi.ObjectStore
- func PresentObjectStoreList(in []*models.ObjectStore) []openapi.ObjectStore
- func PresentOrgInvite(invite *models.OrgInvite) openapi.OrgInvite
- func PresentOrgInviteCreateResponse(invite *models.OrgInvite, rawToken string) openapi.OrgInviteCreateResponse
- func PresentOrgInviteInfo(invite *models.OrgInvite) openapi.OrgInviteInfo
- func PresentOrgInviteList(result *stores.PaginatedResult[*models.OrgInvite]) openapi.OrgInviteList
- func PresentOrganisation(in *models.Organisation) openapi.Organisation
- func PresentPostgresAddon(in *models.PostgresAddon) openapi.PostgresAddon
- func PresentPostgresAddonBackup(in *models.PostgresBackup) openapi.PostgresBackup
- func PresentPostgresAddonBackupList(in []*models.PostgresBackup) []openapi.PostgresBackup
- func PresentPostgresAddonList(in []*models.PostgresAddon) []openapi.PostgresAddon
- func PresentPostgresBackupList(in []*models.PostgresBackup) []openapi.PostgresBackup
- func PresentPreviewStack(p *models.PreviewStack) openapi.PreviewStack
- func PresentPreviewStackList(result *stores.PaginatedResult[*models.PreviewStack]) openapi.PreviewStackList
- func PresentProject(in *models.Project) openapi.Project
- func PresentProjectList(in []*models.Project) []openapi.Project
- func PresentProjectMembership(in *models.ProjectMembership) openapi.ProjectMembership
- func PresentProjectMembershipList(in []*models.ProjectMembership) []openapi.ProjectMembership
- func PresentRegistryCredential(in *models.RegistryCredential) openapi.RegistryCredential
- func PresentRegistryCredentialList(in []*models.RegistryCredential) []openapi.RegistryCredential
- func PresentReleaseEvent(e *models.ReleaseEvent) openapi.ReleaseEvent
- func PresentReleaseEventList(events []*models.ReleaseEvent, nextAfterSequence int) openapi.ReleaseEventList
- func PresentResourceMetrics(in *models.ResourceMetrics) *openapi.ResourceMetrics
- func PresentRole(in models.UserRole) openapi.UserRole
- func PresentSecret(in *models.Secret) openapi.Secret
- func PresentSecretList(in []*models.Secret) []openapi.Secret
- func PresentStack(s *models.Stack, refs models.StackReleaseRefs) openapi.Stack
- func PresentStackConnection(connection *models.StackConnection) openapi.StackConnection
- func PresentStackConnections(connections models.StackConnections) []openapi.StackConnection
- func PresentStackList(stacks []*models.Stack, refs map[string]models.StackReleaseRefs) []openapi.Stack
- func PresentStackPreviewConfig(c *models.StackPreviewConfig) openapi.StackPreviewConfig
- func PresentStackPreviewConfigList(result *stores.PaginatedResult[*models.StackPreviewConfig]) openapi.StackPreviewConfigList
- func PresentStackRelease(r *models.StackRelease, live *models.ReleaseLiveStatus) openapi.StackRelease
- func PresentStackReleaseDetail(r *models.StackRelease, live *models.ReleaseLiveStatus) openapi.StackReleaseDetail
- func PresentStackReleaseList(result *stores.PaginatedResult[*models.StackRelease]) openapi.StackReleaseList
- func PresentStackResource(r *models.StackResource) openapi.StackResource
- func PresentStackResourceList(resources []*models.StackResource) []openapi.StackResource
- func PresentStackTopology(topology *models.StackTopology) *openapi.StackTopology
- func PresentUser(in *models.User) openapi.User
- func PresentUserWithProjects(in *models.User, memberships []*models.ProjectMembership) openapi.User
- func PresentVolume(v *models.Volume, withStatus bool) openapi.Volume
- func PresentVolumeList(volumes []*models.Volume, withStatus bool) []openapi.Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertClusterImageRegistry ¶
func ConvertClusterImageRegistry(in *openapi.ClusterImageRegistry) *models.ClusterImageRegistry
func ConvertDomains ¶
func ConvertDomains(in []openapi.DomainName) []*models.OrganisationDomain
func ConvertGitIntegration ¶
func ConvertGitIntegration(in *openapi.GitIntegration) *models.GitIntegration
func ConvertObjectStore ¶
func ConvertObjectStore(in *openapi.ObjectStore) *models.ObjectStore
ConvertObjectStore converts API ObjectStore to domain model
func ConvertOrganisation ¶
func ConvertOrganisation(in openapi.Organisation) *models.Organisation
func ConvertPostgresAddon ¶
func ConvertPostgresAddon(in *openapi.PostgresAddon) *models.PostgresAddon
ConvertPostgresAddon converts API PostgresAddon to domain model
func ConvertPreviewStackCreate ¶
func ConvertPreviewStackCreate(req *openapi.PreviewStackCreate) *models.PreviewStack
ConvertPreviewStackCreate converts an API create request into a PreviewStack model.
func ConvertProjectRole ¶
func ConvertProjectRole(role openapi.ProjectRole) models.ProjectRole
func ConvertRegistryCredential ¶
func ConvertRegistryCredential(in *openapi.RegistryCredential) *models.RegistryCredential
func ConvertRegistryCredentialVerifyPurpose ¶
func ConvertRegistryCredentialVerifyPurpose(in *openapi.RegistryCredentialVerifyRequest) models.RegistryCredentialPurpose
ConvertRegistryCredentialVerifyPurpose returns the requested purpose, or empty when the request omits it so the service falls back to the credential's own purpose.
func ConvertStack ¶
ConvertWorkspace converts an API Workspace object to a model
func ConvertStackConnection ¶
func ConvertStackConnection(connection *openapi.StackConnection) *models.StackConnection
func ConvertStackPreviewConfigCreate ¶
func ConvertStackPreviewConfigCreate(req *openapi.StackPreviewConfigCreate) *models.StackPreviewConfig
func ConvertStackPreviewConfigUpdate ¶
func ConvertStackPreviewConfigUpdate(req *openapi.StackPreviewConfigUpdate) *models.StackPreviewConfig
func ConvertStackResource ¶
func ConvertStackResource(r *openapi.StackResource) *models.StackResource
func ConvertUser ¶
func ConvertUser(in *openapi.UserSignupRequest) *models.User
func PresentAPITokenCreateResponse ¶
func PresentAPITokenCreateResponse(token *models.APIToken, rawToken string) openapi.APITokenCreateResponse
func PresentClusterImageRegistry ¶
func PresentClusterImageRegistry(clusterImageRegistry *models.ClusterImageRegistry) *openapi.ClusterImageRegistry
func PresentClusterImageRegistryList ¶
func PresentClusterImageRegistryList(clusterImageRegistries []*models.ClusterImageRegistry) *openapi.ClusterImageRegistryList
func PresentClusterImageRegistrySpec ¶
func PresentClusterImageRegistrySpec(clusterImageRegistry *models.ClusterImageRegistry) *openapi.ClusterImageRegistrySpec
func PresentClusterImageRegistryState ¶
func PresentClusterImageRegistryState(state models.RegistryState) *openapi.ClusterImageRegistryState
func PresentClusterImageRegistryStatus ¶
func PresentClusterImageRegistryStatus(status *models.ClusterImageRegistryStatus) *openapi.ClusterImageRegistryStatus
func PresentClusterList ¶
func PresentClusterList(clusters []*models.Cluster) *openapi.ClusterList
func PresentDomains ¶
func PresentDomains(in []*models.OrganisationDomain) []openapi.DomainName
func PresentGitHubAppManifestFlow ¶
func PresentGitHubAppManifestFlow(in *models.GitHubAppManifestFlow) openapi.GitHubAppManifestFlow
PresentGitHubAppManifestFlow exposes only what the UI needs to start the GitHub App creation; app credentials never appear here (they don't exist until the callback).
func PresentGitInstallation ¶
func PresentGitInstallation(in *models.GitInstallation) openapi.GitInstallation
func PresentGitInstallationList ¶
func PresentGitInstallationList(in []*models.GitInstallation) []openapi.GitInstallation
func PresentGitIntegration ¶
func PresentGitIntegration(in *models.GitIntegration) openapi.GitIntegration
PresentGitIntegration never includes auth material: neither the transient decrypted blob nor the encrypted form is exposed.
func PresentGitIntegrationList ¶
func PresentGitIntegrationList(in []*models.GitIntegration) []openapi.GitIntegration
func PresentGitRepository ¶
func PresentGitRepository(in githubapp.Repo) openapi.GitRepository
func PresentGitRepositoryPage ¶
func PresentGitRepositoryPage(in *githubapp.RepoPage) openapi.GitRepositoryPage
func PresentImageBuild ¶
func PresentImageBuild(in *models.ImageBuild) openapi.ImageBuild
func PresentImageBuildList ¶
func PresentImageBuildList(in []*models.ImageBuild) []openapi.ImageBuild
func PresentObjectStore ¶
func PresentObjectStore(in *models.ObjectStore) openapi.ObjectStore
PresentObjectStore converts domain model to API ObjectStore
func PresentObjectStoreList ¶
func PresentObjectStoreList(in []*models.ObjectStore) []openapi.ObjectStore
PresentObjectStoreList converts list of domain models to API list
func PresentOrgInviteCreateResponse ¶
func PresentOrgInviteCreateResponse(invite *models.OrgInvite, rawToken string) openapi.OrgInviteCreateResponse
func PresentOrgInviteInfo ¶
func PresentOrgInviteInfo(invite *models.OrgInvite) openapi.OrgInviteInfo
func PresentOrgInviteList ¶
func PresentOrgInviteList(result *stores.PaginatedResult[*models.OrgInvite]) openapi.OrgInviteList
func PresentOrganisation ¶
func PresentOrganisation(in *models.Organisation) openapi.Organisation
func PresentPostgresAddon ¶
func PresentPostgresAddon(in *models.PostgresAddon) openapi.PostgresAddon
PresentPostgresAddon converts domain model to API PostgresAddon
func PresentPostgresAddonBackup ¶
func PresentPostgresAddonBackup(in *models.PostgresBackup) openapi.PostgresBackup
PresentPostgresAddonBackup converts domain model to API PostgresBackup Note: No Convert function needed since backups are triggered via action endpoints
func PresentPostgresAddonBackupList ¶
func PresentPostgresAddonBackupList(in []*models.PostgresBackup) []openapi.PostgresBackup
PresentPostgresAddonBackupList converts list of domain models to API list
func PresentPostgresAddonList ¶
func PresentPostgresAddonList(in []*models.PostgresAddon) []openapi.PostgresAddon
PresentPostgresAddonList converts list of domain models to API list
func PresentPostgresBackupList ¶
func PresentPostgresBackupList(in []*models.PostgresBackup) []openapi.PostgresBackup
PresentPostgresBackupList converts list of domain models to API list
func PresentPreviewStack ¶
func PresentPreviewStack(p *models.PreviewStack) openapi.PreviewStack
PresentPreviewStack converts a PreviewStack model into an API response.
func PresentPreviewStackList ¶
func PresentPreviewStackList(result *stores.PaginatedResult[*models.PreviewStack]) openapi.PreviewStackList
PresentPreviewStackList converts a paginated result of PreviewStack models into an API list response.
func PresentProjectMembership ¶
func PresentProjectMembership(in *models.ProjectMembership) openapi.ProjectMembership
func PresentProjectMembershipList ¶
func PresentProjectMembershipList(in []*models.ProjectMembership) []openapi.ProjectMembership
func PresentRegistryCredential ¶
func PresentRegistryCredential(in *models.RegistryCredential) openapi.RegistryCredential
PresentRegistryCredential never includes the password: the transient plaintext field is dropped and the encrypted form is not exposed.
func PresentRegistryCredentialList ¶
func PresentRegistryCredentialList(in []*models.RegistryCredential) []openapi.RegistryCredential
func PresentReleaseEvent ¶
func PresentReleaseEvent(e *models.ReleaseEvent) openapi.ReleaseEvent
func PresentReleaseEventList ¶
func PresentReleaseEventList(events []*models.ReleaseEvent, nextAfterSequence int) openapi.ReleaseEventList
PresentReleaseEventList takes the raw page fields (not a services type) to avoid a presenters -> services import cycle.
func PresentResourceMetrics ¶
func PresentResourceMetrics(in *models.ResourceMetrics) *openapi.ResourceMetrics
func PresentStack ¶
func PresentStackConnection ¶
func PresentStackConnection(connection *models.StackConnection) openapi.StackConnection
func PresentStackConnections ¶
func PresentStackConnections(connections models.StackConnections) []openapi.StackConnection
func PresentStackList ¶
func PresentStackPreviewConfig ¶
func PresentStackPreviewConfig(c *models.StackPreviewConfig) openapi.StackPreviewConfig
func PresentStackPreviewConfigList ¶
func PresentStackPreviewConfigList(result *stores.PaginatedResult[*models.StackPreviewConfig]) openapi.StackPreviewConfigList
func PresentStackRelease ¶
func PresentStackRelease(r *models.StackRelease, live *models.ReleaseLiveStatus) openapi.StackRelease
func PresentStackReleaseDetail ¶
func PresentStackReleaseDetail(r *models.StackRelease, live *models.ReleaseLiveStatus) openapi.StackReleaseDetail
func PresentStackReleaseList ¶
func PresentStackReleaseList(result *stores.PaginatedResult[*models.StackRelease]) openapi.StackReleaseList
func PresentStackResource ¶
func PresentStackResource(r *models.StackResource) openapi.StackResource
func PresentStackResourceList ¶
func PresentStackResourceList(resources []*models.StackResource) []openapi.StackResource
func PresentStackTopology ¶
func PresentStackTopology(topology *models.StackTopology) *openapi.StackTopology
func PresentUserWithProjects ¶
Types ¶
This section is empty.
Source Files
¶
- api_token.go
- cluster.go
- cluster_image_registry.go
- git_integration.go
- image_build.go
- object_store.go
- org_invite.go
- organisation.go
- postgres_addon.go
- postgres_addon_backup.go
- preview_stack.go
- project.go
- registry_credential.go
- resource_metrics.go
- secret.go
- stack.go
- stack_preview_config.go
- stack_release.go
- stack_resource.go
- stack_topology.go
- user.go
- volume.go