presenters

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: AGPL-3.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertCluster

func ConvertCluster(in *openapi.Cluster) *models.Cluster

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 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 ConvertSecret

func ConvertSecret(in *openapi.Secret) *models.Secret

func ConvertStack

func ConvertStack(w *openapi.Stack) *models.Stack

ConvertWorkspace converts an API Workspace object to a model

func ConvertStackConnection

func ConvertStackConnection(connection *openapi.StackConnection) *models.StackConnection

func ConvertStackResource

func ConvertStackResource(r *openapi.StackResource) *models.StackResource

func ConvertUser

func ConvertUser(in *openapi.UserSignupRequest) *models.User

func ConvertVolume

func ConvertVolume(v *openapi.Volume) *models.Volume

func PresentAPIToken

func PresentAPIToken(in *models.APIToken) openapi.APIToken

func PresentAPITokenCreateResponse

func PresentAPITokenCreateResponse(token *models.APIToken, rawToken string) openapi.APITokenCreateResponse

func PresentAPITokenList

func PresentAPITokenList(in []*models.APIToken) []openapi.APIToken

func PresentCluster

func PresentCluster(cluster *models.Cluster) *openapi.Cluster

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 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 PresentOrgInvite

func PresentOrgInvite(invite *models.OrgInvite) openapi.OrgInvite

func PresentOrgInviteCreateResponse

func PresentOrgInviteCreateResponse(invite *models.OrgInvite, rawToken string) openapi.OrgInviteCreateResponse

func PresentOrgInviteInfo

func PresentOrgInviteInfo(invite *models.OrgInvite) openapi.OrgInviteInfo

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 PresentProject

func PresentProject(in *models.Project) openapi.Project

func PresentProjectList

func PresentProjectList(in []*models.Project) []openapi.Project

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 PresentRole

func PresentRole(in models.UserRole) openapi.UserRole

func PresentSecret

func PresentSecret(in *models.Secret) openapi.Secret

func PresentSecretList

func PresentSecretList(in []*models.Secret) []openapi.Secret

func PresentStack

func PresentStack(s *models.Stack, refs models.StackReleaseRefs) openapi.Stack

func PresentStackConnection

func PresentStackConnection(connection *models.StackConnection) openapi.StackConnection

func PresentStackConnections

func PresentStackConnections(connections models.StackConnections) []openapi.StackConnection

func PresentStackList

func PresentStackList(stacks []*models.Stack, refs map[string]models.StackReleaseRefs) []openapi.Stack

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 PresentUser

func PresentUser(in *models.User) openapi.User

func PresentUserWithProjects

func PresentUserWithProjects(in *models.User, memberships []*models.ProjectMembership) openapi.User

func PresentVolume

func PresentVolume(v *models.Volume, withStatus bool) openapi.Volume

func PresentVolumeList

func PresentVolumeList(volumes []*models.Volume, withStatus bool) []openapi.Volume

Types

This section is empty.

Jump to

Keyboard shortcuts

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