{"modulePath":"github.com/Stackdome/stackdome","version":"v0.0.7-alpha","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package presenters\n\n## Functions\n\n```go\nfunc ConvertCluster(in *openapi.Cluster) *models.Cluster\n```\n\n```go\nfunc ConvertClusterImageRegistry(in *openapi.ClusterImageRegistry) *models.ClusterImageRegistry\n```\n\n```go\nfunc ConvertDomains(in []openapi.DomainName) []*models.OrganisationDomain\n```\n\n```go\nfunc ConvertGitIntegration(in *openapi.GitIntegration) *models.GitIntegration\n```\n\n```go\nfunc ConvertObjectStore(in *openapi.ObjectStore) *models.ObjectStore\n```\nConvertObjectStore converts API ObjectStore to domain model\n\n```go\nfunc ConvertOrganisation(in openapi.Organisation) *models.Organisation\n```\n\n```go\nfunc ConvertPostgresAddon(in *openapi.PostgresAddon) *models.PostgresAddon\n```\nConvertPostgresAddon converts API PostgresAddon to domain model\n\n```go\nfunc ConvertPreviewStackCreate(req *openapi.PreviewStackCreate) *models.PreviewStack\n```\nConvertPreviewStackCreate converts an API create request into a PreviewStack model.\n\n```go\nfunc ConvertProjectRole(role openapi.ProjectRole) models.ProjectRole\n```\n\n```go\nfunc ConvertRegistryCredential(in *openapi.RegistryCredential) *models.RegistryCredential\n```\n\n```go\nfunc ConvertRegistryCredentialVerifyPurpose(in *openapi.RegistryCredentialVerifyRequest) models.RegistryCredentialPurpose\n```\nConvertRegistryCredentialVerifyPurpose returns the requested purpose, or empty when the request omits it so the service falls back to the credential's own purpose.\n\n```go\nfunc ConvertSecret(in *openapi.Secret) *models.Secret\n```\n\n```go\nfunc ConvertStack(w *openapi.Stack) *models.Stack\n```\nConvertWorkspace converts an API Workspace object to a model\n\n```go\nfunc ConvertStackConnection(connection *openapi.StackConnection) *models.StackConnection\n```\n\n```go\nfunc ConvertStackPreviewConfigCreate(req *openapi.StackPreviewConfigCreate) *models.StackPreviewConfig\n```\n\n```go\nfunc ConvertStackPreviewConfigUpdate(req *openapi.StackPreviewConfigUpdate) *models.StackPreviewConfig\n```\n\n```go\nfunc ConvertStackResource(r *openapi.StackResource) *models.StackResource\n```\n\n```go\nfunc ConvertUser(in *openapi.UserSignupRequest) *models.User\n```\n\n```go\nfunc ConvertVolume(v *openapi.Volume) *models.Volume\n```\n\n```go\nfunc PresentAPIToken(in *models.APIToken) openapi.APIToken\n```\n\n```go\nfunc PresentAPITokenCreateResponse(token *models.APIToken, rawToken string) openapi.APITokenCreateResponse\n```\n\n```go\nfunc PresentAPITokenList(in []*models.APIToken) []openapi.APIToken\n```\n\n```go\nfunc PresentCluster(cluster *models.Cluster) *openapi.Cluster\n```\n\n```go\nfunc PresentClusterImageRegistry(clusterImageRegistry *models.ClusterImageRegistry) *openapi.ClusterImageRegistry\n```\n\n```go\nfunc PresentClusterImageRegistryList(clusterImageRegistries []*models.ClusterImageRegistry) *openapi.ClusterImageRegistryList\n```\n\n```go\nfunc PresentClusterImageRegistrySpec(clusterImageRegistry *models.ClusterImageRegistry) *openapi.ClusterImageRegistrySpec\n```\n\n```go\nfunc PresentClusterImageRegistryState(state models.RegistryState) *openapi.ClusterImageRegistryState\n```\n\n```go\nfunc PresentClusterImageRegistryStatus(status *models.ClusterImageRegistryStatus) *openapi.ClusterImageRegistryStatus\n```\n\n```go\nfunc PresentClusterList(clusters []*models.Cluster) *openapi.ClusterList\n```\n\n```go\nfunc PresentDomains(in []*models.OrganisationDomain) []openapi.DomainName\n```\n\n```go\nfunc PresentGitHubAppManifestFlow(in *models.GitHubAppManifestFlow) openapi.GitHubAppManifestFlow\n```\nPresentGitHubAppManifestFlow exposes only what the UI needs to start the GitHub App creation; app credentials never appear here (they don't exist until the callback).\n\n```go\nfunc PresentGitInstallation(in *models.GitInstallation) openapi.GitInstallation\n```\n\n```go\nfunc PresentGitInstallationList(in []*models.GitInstallation) []openapi.GitInstallation\n```\n\n```go\nfunc PresentGitIntegration(in *models.GitIntegration) openapi.GitIntegration\n```\nPresentGitIntegration never includes auth material: neither the transient decrypted blob nor the encrypted form is exposed.\n\n```go\nfunc PresentGitIntegrationList(in []*models.GitIntegration) []openapi.GitIntegration\n```\n\n```go\nfunc PresentGitRepository(in githubapp.Repo) openapi.GitRepository\n```\n\n```go\nfunc PresentGitRepositoryPage(in *githubapp.RepoPage) openapi.GitRepositoryPage\n```\n\n```go\nfunc PresentImageBuild(in *models.ImageBuild) openapi.ImageBuild\n```\n\n```go\nfunc PresentImageBuildList(in []*models.ImageBuild) []openapi.ImageBuild\n```\n\n```go\nfunc PresentObjectStore(in *models.ObjectStore) openapi.ObjectStore\n```\nPresentObjectStore converts domain model to API ObjectStore\n\n```go\nfunc PresentObjectStoreList(in []*models.ObjectStore) []openapi.ObjectStore\n```\nPresentObjectStoreList converts list of domain models to API list\n\n```go\nfunc PresentOrgInvite(invite *models.OrgInvite) openapi.OrgInvite\n```\n\n```go\nfunc PresentOrgInviteCreateResponse(invite *models.OrgInvite, rawToken string) openapi.OrgInviteCreateResponse\n```\n\n```go\nfunc PresentOrgInviteInfo(invite *models.OrgInvite) openapi.OrgInviteInfo\n```\n\n```go\nfunc PresentOrgInviteList(result *stores.PaginatedResult[*models.OrgInvite]) openapi.OrgInviteList\n```\n\n```go\nfunc PresentOrganisation(in *models.Organisation) openapi.Organisation\n```\n\n```go\nfunc PresentPostgresAddon(in *models.PostgresAddon) openapi.PostgresAddon\n```\nPresentPostgresAddon converts domain model to API PostgresAddon\n\n```go\nfunc PresentPostgresAddonBackup(in *models.PostgresBackup) openapi.PostgresBackup\n```\nPresentPostgresAddonBackup converts domain model to API PostgresBackup Note: No Convert function needed since backups are triggered via action endpoints\n\n```go\nfunc PresentPostgresAddonBackupList(in []*models.PostgresBackup) []openapi.PostgresBackup\n```\nPresentPostgresAddonBackupList converts list of domain models to API list\n\n```go\nfunc PresentPostgresAddonList(in []*models.PostgresAddon) []openapi.PostgresAddon\n```\nPresentPostgresAddonList converts list of domain models to API list\n\n```go\nfunc PresentPostgresBackupList(in []*models.PostgresBackup) []openapi.PostgresBackup\n```\nPresentPostgresBackupList converts list of domain models to API list\n\n```go\nfunc PresentPreviewStack(p *models.PreviewStack) openapi.PreviewStack\n```\nPresentPreviewStack converts a PreviewStack model into an API response.\n\n```go\nfunc PresentPreviewStackList(result *stores.PaginatedResult[*models.PreviewStack]) openapi.PreviewStackList\n```\nPresentPreviewStackList converts a paginated result of PreviewStack models into an API list response.\n\n```go\nfunc PresentProject(in *models.Project) openapi.Project\n```\n\n```go\nfunc PresentProjectList(in []*models.Project) []openapi.Project\n```\n\n```go\nfunc PresentProjectMembership(in *models.ProjectMembership) openapi.ProjectMembership\n```\n\n```go\nfunc PresentProjectMembershipList(in []*models.ProjectMembership) []openapi.ProjectMembership\n```\n\n```go\nfunc PresentRegistryCredential(in *models.RegistryCredential) openapi.RegistryCredential\n```\nPresentRegistryCredential never includes the password: the transient plaintext field is dropped and the encrypted form is not exposed.\n\n```go\nfunc PresentRegistryCredentialList(in []*models.RegistryCredential) []openapi.RegistryCredential\n```\n\n```go\nfunc PresentReleaseEvent(e *models.ReleaseEvent) openapi.ReleaseEvent\n```\n\n```go\nfunc PresentReleaseEventList(events []*models.ReleaseEvent, nextAfterSequence int) openapi.ReleaseEventList\n```\nPresentReleaseEventList takes the raw page fields (not a services type) to avoid a presenters -\u003e services import cycle.\n\n```go\nfunc PresentResourceMetrics(in *models.ResourceMetrics) *openapi.ResourceMetrics\n```\n\n```go\nfunc PresentRole(in models.UserRole) openapi.UserRole\n```\n\n```go\nfunc PresentSecret(in *models.Secret) openapi.Secret\n```\n\n```go\nfunc PresentSecretList(in []*models.Secret) []openapi.Secret\n```\n\n```go\nfunc PresentStack(s *models.Stack, refs models.StackReleaseRefs) openapi.Stack\n```\n\n```go\nfunc PresentStackConnection(connection *models.StackConnection) openapi.StackConnection\n```\n\n```go\nfunc PresentStackConnections(connections models.StackConnections) []openapi.StackConnection\n```\n\n```go\nfunc PresentStackList(stacks []*models.Stack, refs map[string]models.StackReleaseRefs) []openapi.Stack\n```\n\n```go\nfunc PresentStackPreviewConfig(c *models.StackPreviewConfig) openapi.StackPreviewConfig\n```\n\n```go\nfunc PresentStackPreviewConfigList(result *stores.PaginatedResult[*models.StackPreviewConfig]) openapi.StackPreviewConfigList\n```\n\n```go\nfunc PresentStackRelease(r *models.StackRelease, live *models.ReleaseLiveStatus) openapi.StackRelease\n```\n\n```go\nfunc PresentStackReleaseDetail(r *models.StackRelease, live *models.ReleaseLiveStatus) openapi.StackReleaseDetail\n```\n\n```go\nfunc PresentStackReleaseList(result *stores.PaginatedResult[*models.StackRelease]) openapi.StackReleaseList\n```\n\n```go\nfunc PresentStackResource(r *models.StackResource) openapi.StackResource\n```\n\n```go\nfunc PresentStackResourceList(resources []*models.StackResource) []openapi.StackResource\n```\n\n```go\nfunc PresentStackTopology(topology *models.StackTopology) *openapi.StackTopology\n```\n\n```go\nfunc PresentUser(in *models.User) openapi.User\n```\n\n```go\nfunc PresentUserWithProjects(in *models.User, memberships []*models.ProjectMembership) openapi.User\n```\n\n```go\nfunc PresentVolume(v *models.Volume, withStatus bool) openapi.Volume\n```\n\n```go\nfunc PresentVolumeList(volumes []*models.Volume, withStatus bool) []openapi.Volume\n```\n\n","path":"github.com/Stackdome/stackdome/pkg/presenters","name":"presenters","synopsis":"","isRedistributable":true}
