{"modulePath":"github.com/Stackdome/stackdome","version":"v0.0.7-alpha","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package shared\n\n## Constants\n\n```go\nconst (\n\tInitImage   = \"busybox:1.36\"\n\tInitCommand = \"echo init-done\"\n)\n```\nInitContainer fixture values\n\n```go\nconst (\n\tMultiResourceBackendName  = \"backend\"\n\tMultiResourceFrontendName = \"frontend\"\n\tMultiResourceBackendPort  = 8080\n\tMultiResourceFrontendPort = 80\n)\n```\nMulti-resource stack fixture values\n\n```go\nconst (\n\tEnvPortsResourceName = \"app\"\n\tEnvPortsAppEnvKey    = \"APP_ENV\"\n\tEnvPortsAppEnvVal    = \"test\"\n\tEnvPortsAppPortKey   = \"APP_PORT\"\n\tEnvPortsAppPortVal   = \"8080\"\n\tEnvPortsLogLevelKey  = \"LOG_LEVEL\"\n\tEnvPortsLogLevelVal  = \"debug\"\n\tEnvPortsPort1        = 8080\n\tEnvPortsPort2        = 9090\n)\n```\nEnv and ports stack fixture values\n\n```go\nconst (\n\tFullStackAPIName    = \"api\"\n\tFullStackWorkerName = \"worker\"\n\tFullStackAPIPort    = 8080\n\tFullStackVolumeName = \"uploads\"\n\tFullStackMountPath  = \"/data/uploads\"\n\tFullStackSubPath    = \"api\"\n\tFullStackSecretName = \"tls-certs\"\n)\n```\nFull-stack e2e fixture values (2 resources, postgres, secret, volume, depends\\_on)\n\n```go\nconst (\n\tCrashResourceName = \"crash-app\"\n\tCrashImage        = \"busybox:1.36\"\n\tCrashMessage      = \"application crashed with fatal error\"\n)\n```\nCrash detection fixture values\n\n```go\nconst (\n\tBuildSourceRepoURL      = \"https://github.com/ashishmax31/test-private-repo.git\"\n\tBuildSourceBranch       = \"main\"\n\tBuildSourceDockerfile   = \"Dockerfile\"\n\tBuildSourceContextPath  = \".\"\n\tBuildSourcePort         = 3000\n\tBuildSourceResourceName = \"todo-app\"\n\tBuildSourceSecretName   = \"test-git-creds\"\n\n\t// BuildSourceGitHost is the git host the build-source fixtures clone from;\n\t// an org git integration for this host provides private-clone auth.\n\tBuildSourceGitHost = \"github.com\"\n\t// BuildSourceGitUsername is the basic-auth username paired with a GitHub PAT.\n\tBuildSourceGitUsername = \"git\"\n\n\t// BrokenBuildResourceName is the resource name for the broken-build fixture.\n\t// It points to a branch that contains a Dockerfile with an invalid command so the build fails.\n\tBrokenBuildResourceName     = \"broken-app\"\n\tBrokenBuildSourceBranch     = \"bad-build\"\n\tBrokenBuildSourceDockerfile = \"Dockerfile-nonexistent\"\n)\n```\nBuild from source fixture values\n\n```go\nconst (\n\tMinIONamespace   = testutil.MinIONamespace\n\tMinIOName        = testutil.MinIOName\n\tMinIOServicePort = testutil.MinIOServicePort\n\tMinIOAccessKey   = testutil.MinIOAccessKey\n\tMinIOSecretKey   = testutil.MinIOSecretKey\n)\n```\nRe-export MinIO constants from testutil for use in test specs and fixtures.\n\n```go\nconst SimulateReleaseStateAnnotationKey = models.SimulateReleaseStateAnnotation\n```\n\n```go\nconst SkipProvisioningAnnotationKey = \"stack.stackdome.io/skip-cluster-provisioning\"\n```\nSkipProvisioningAnnotation is the annotation value that causes the stack worker to skip cluster provisioning and mark the stack as Ready immediately.\n\n```go\nconst TestImage = \"nginx:1.25-alpine\"\n```\nShared test image used across all stack fixtures\n\n## Variables\n\n```go\nvar FullStackSecretEnvMapping = map[string]string{\n\t\"tls_cert\": \"TLS_CERT\",\n\t\"tls_key\":  \"TLS_KEY\",\n}\n```\nFullStackSecretEnvMapping maps secret output keys to env var names.\n\n```go\nvar PostgresEnvMapping = map[string]string{\n\t\"host\":     \"PG_HOST\",\n\t\"port\":     \"PG_PORT\",\n\t\"username\": \"PG_USER\",\n\t\"password\": \"PG_PASSWORD\",\n\t\"database\": \"PG_DATABASE\",\n\t\"url\":      \"DATABASE_URL\",\n}\n```\nPostgresEnvMapping maps output accessor names to env var names for postgres connections.\n\n## Functions\n\n```go\nfunc ApplyStackExpectError(client *openapi.APIClient, orgID, projectName, stackID string, stack *openapi.Stack, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc AuthenticatedClient(token string) *openapi.APIClient\n```\n\n```go\nfunc CRNameForAddon(addonName string) string\n```\nCRNameForAddon returns the expected PostgresCluster CR name for a given addon. The CR name matches the addon name directly (set in postgres\\_cluster\\_builder.go).\n\n```go\nfunc CancelRelease(client *openapi.APIClient, orgID, projectName, stackID, releaseID string)\n```\n\n```go\nfunc CnpgClusterName(addonName string, majorVersion int) string\n```\nCnpgClusterName returns the CNPG Cluster CR name derived from addon name and PG major version.\n\n```go\nfunc ConnectToPostgres(host string, port int32, username, password, dbName, sslMode string) *sql.DB\n```\nConnectToPostgres opens a real PostgreSQL connection and runs SELECT 1 to verify connectivity.\n\n```go\nfunc CreateAzureCredentialsSecret(name string) *openapi.Secret\n```\nCreateAzureCredentialsSecret creates a secret with Azure connection string\n\n```go\nfunc CreateCrashingStack(name string) *openapi.Stack\n```\nCreateCrashingStack creates a stack whose sole resource immediately exits with a non-zero code, triggering CrashLoopBackOff so the cluster-agent populates LastFailureDetails.\n\n```go\nfunc CreateFullStack(name string, addonID string, database string, secretID string) *openapi.Stack\n```\nCreateFullStack creates a stack with 2 resources (api + worker), a volume mount, postgres addon connection, secret connection, resource-to-resource connection, and depends\\_on. This exercises all connection kinds and topology features.\n\n```go\nfunc CreateGCSCredentialsSecret(name string) *openapi.Secret\n```\nCreateGCSCredentialsSecret creates a secret with GCS service account credentials\n\n```go\nfunc CreateGenericSecret(name string, data map[string]string) *openapi.Secret\n```\nCreateGenericSecret creates a generic secret with key-value pairs\n\n```go\nfunc CreateGitCredentialsIntegration(client *openapi.APIClient, orgID, host, username, password string) *openapi.GitIntegration\n```\nCreateGitCredentialsIntegration registers an org-level git\\_credentials integration (basic username/password). The credential resolver auto-attaches it to clones whose host matches, so private-repo builds authenticate without any per-source credential input.\n\n```go\nfunc CreateGitCredentialsSecret(name string, token string) *openapi.Secret\n```\nCreateGitCredentialsSecret creates a GitCredentials secret with a GitHub PAT token\n\n```go\nfunc CreateInvite(client *openapi.APIClient, orgID string, req openapi.OrgInviteCreateRequest) *openapi.OrgInviteCreateResponse\n```\n\n```go\nfunc CreateInviteExpectError(client *openapi.APIClient, orgID string, req openapi.OrgInviteCreateRequest, expectedStatus int)\n```\n\n```go\nfunc CreateMinimalPostgresAddon(name string) *openapi.PostgresAddon\n```\nPostgreSQL addon factory functions using OpenAPI models\n\n```go\nfunc CreateMultiResourceStack(name string) *openapi.Stack\n```\n\n```go\nfunc CreateObjectStore(client *openapi.APIClient, orgID, projectName string, store *openapi.ObjectStore) *openapi.ObjectStore\n```\n\n```go\nfunc CreateObjectStoreExpectError(client *openapi.APIClient, orgID, projectName string, store *openapi.ObjectStore, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc CreateObjectStoreWithAzure(name string, secretID string) *openapi.ObjectStore\n```\nCreateObjectStoreWithAzure creates an ObjectStore with Azure credentials\n\n```go\nfunc CreateObjectStoreWithGCS(name string, secretID string) *openapi.ObjectStore\n```\nCreateObjectStoreWithGCS creates an ObjectStore with GCS credentials\n\n```go\nfunc CreateObjectStoreWithRetention(name string, secretID string, retention string) *openapi.ObjectStore\n```\nCreateObjectStoreWithRetention creates an ObjectStore with custom retention policy\n\n```go\nfunc CreateObjectStoreWithS3(name string, secretID string) *openapi.ObjectStore\n```\nCreateObjectStoreWithS3 creates an ObjectStore with S3 credentials\n\n```go\nfunc CreateObjectStoreWithS3Endpoint(name string, secretID string, endpoint string) *openapi.ObjectStore\n```\nCreateObjectStoreWithS3Endpoint creates an ObjectStore with S3-compatible endpoint\n\n```go\nfunc CreatePostgresAddon(client *openapi.APIClient, orgID, projectName string, addon *openapi.PostgresAddon) *openapi.PostgresAddon\n```\nPostgreSQL addon CRUD operations for Ginkgo tests\n\n```go\nfunc CreatePostgresAddonExpectError(client *openapi.APIClient, orgID, projectName string, addon *openapi.PostgresAddon, expectedStatus int) *openapi.GenericOpenAPIError\n```\nError testing helpers for Ginkgo\n\n```go\nfunc CreatePostgresAddonForUpdate(name string) *openapi.PostgresAddon\n```\n\n```go\nfunc CreatePostgresAddonWithBackup(name string) *openapi.PostgresAddon\n```\n\n```go\nfunc CreatePostgresAddonWithHA(name string) *openapi.PostgresAddon\n```\n\n```go\nfunc CreatePostgresAddonWithResources(name string) *openapi.PostgresAddon\n```\n\n```go\nfunc CreatePostgresAddonWithSuperuser(name string) *openapi.PostgresAddon\n```\n\n```go\nfunc CreateProject(client *openapi.APIClient, orgID, projectName string) *openapi.Project\n```\n\n```go\nfunc CreateRelease(client *openapi.APIClient, orgID, projectName, stackID string) *openapi.StackRelease\n```\n\n```go\nfunc CreateReleaseExpectError(client *openapi.APIClient, orgID, projectName, stackID string, expectedStatus int) *openapi.GenericOpenAPIError\n```\nCreateReleaseExpectError creates a release expecting the request to be rejected (e.g. sync validation failures surfaced as 400 from resolvePins).\n\n```go\nfunc CreateS3CredentialsSecret(name string) *openapi.Secret\n```\nCreateS3CredentialsSecret creates a secret with MinIO S3 access credentials\n\n```go\nfunc CreateSecret(client *openapi.APIClient, orgID, projectName string, secret *openapi.Secret) *openapi.Secret\n```\n\n```go\nfunc CreateShellStack(client *openapi.APIClient, orgID, projectName string, stack *openapi.Stack) *openapi.Stack\n```\n\n```go\nfunc CreateSimpleStack(name string) *openapi.Stack\n```\n\n```go\nfunc CreateSimulatedReleaseStack(name string, resources []openapi.StackResource, state string) *openapi.Stack\n```\n\n```go\nfunc CreateSimulatedReleaseStackWithConnections(name string, resources []openapi.StackResource, connections []openapi.StackConnection, state string) *openapi.Stack\n```\n\n```go\nfunc CreateSkipProvisioningStack(name string, resources []openapi.StackResource) *openapi.Stack\n```\n\n```go\nfunc CreateSkipProvisioningStackFull(name string, resources []openapi.StackResource, volumes []openapi.Volume, connections []openapi.StackConnection) *openapi.Stack\n```\n\n```go\nfunc CreateSkipProvisioningStackWithConnections(name string, resources []openapi.StackResource, connections []openapi.StackConnection) *openapi.Stack\n```\n\n```go\nfunc CreateSkipProvisioningStackWithVolumes(name string, resources []openapi.StackResource, volumes []openapi.Volume) *openapi.Stack\n```\n\n```go\nfunc CreateStack(client *openapi.APIClient, orgID, projectName string, stack *openapi.Stack) *openapi.Stack\n```\n\n```go\nfunc CreateStackAndDeploy(client *openapi.APIClient, orgID, projectName string, stack *openapi.Stack) (*openapi.Stack, *openapi.StackRelease)\n```\nCreateStackAndDeploy creates a stack and immediately creates a release to deploy it. Use this instead of CreateStack when the test expects the stack to reach Ready state.\n\n```go\nfunc CreateStackConnection(client *openapi.APIClient, orgID, projectName, stackID string, connection *openapi.StackConnection) *openapi.StackConnection\n```\n\n```go\nfunc CreateStackConnectionExpectError(client *openapi.APIClient, orgID, projectName, stackID string, connection *openapi.StackConnection, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc CreateStackExpectError(client *openapi.APIClient, orgID, projectName string, stack *openapi.Stack, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc CreateStackResource(client *openapi.APIClient, orgID, projectName, stackID string, resource *openapi.StackResource) *openapi.StackResource\n```\nCreateStackResource adds a resource to an existing stack via the thin resource-create endpoint (POST /stacks/{id}/resources).\n\n```go\nfunc CreateStackResourceExpectError(client *openapi.APIClient, orgID, projectName, stackID string, resource *openapi.StackResource, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc CreateStackWithBrokenBuildSource(name string, repoURL string) *openapi.Stack\n```\nCreateStackWithBrokenBuildSource creates a stack pointing at a branch with a broken Dockerfile so the kaniko build fails, triggering last\\_build\\_failure\\_detail.\n\n```go\nfunc CreateStackWithBuildSource(name string, repoURL string) *openapi.Stack\n```\n\n```go\nfunc CreateStackWithDependencies(name string) *openapi.Stack\n```\n\n```go\nfunc CreateStackWithEnvAndPorts(name string) *openapi.Stack\n```\n\n```go\nfunc CreateStackWithInitContainer(name string) *openapi.Stack\n```\n\n```go\nfunc CreateStackWithNamedBuildSource(name, resourceName, repoURL string) *openapi.Stack\n```\nCreateStackWithNamedBuildSource lets a spec pick its own resource name: image\\_builds rows are keyed by the CR name \\\u003cresource\u003e-\\\u003ccommit\u003e, so two stacks building the same commit under the same resource name collide.\n\n```go\nfunc CreateStackWithPostgresAddon(name string, addonID string, database string) *openapi.Stack\n```\n\n```go\nfunc CreateStackWithPostgresAddonSuperuser(name string, addonID string) *openapi.Stack\n```\n\n```go\nfunc DeleteGitIntegration(client *openapi.APIClient, orgID, integrationID string)\n```\n\n```go\nfunc DeleteObjectStore(client *openapi.APIClient, orgID, projectName, storeID string)\n```\n\n```go\nfunc DeletePostgresAddon(client *openapi.APIClient, orgID, projectName, addonID string)\n```\n\n```go\nfunc DeleteSecret(client *openapi.APIClient, orgID, projectName, secretID string)\n```\n\n```go\nfunc DeleteSecretRaw(client *openapi.APIClient, orgID, projectName, secretID string) (*http.Response, error)\n```\n\n```go\nfunc DeleteStack(client *openapi.APIClient, orgID, projectName, stackID string) *openapi.Stack\n```\n\n```go\nfunc DeleteStackConnection(client *openapi.APIClient, orgID, projectName, stackID, connectionID string)\n```\n\n```go\nfunc DeleteStackConnectionExpectError(client *openapi.APIClient, orgID, projectName, stackID, connectionID string, expectedStatus int)\n```\n\n```go\nfunc DeleteStackResourceH(client *openapi.APIClient, orgID, projectName, stackID, resourceName string)\n```\n\n```go\nfunc DumpBuildSourceDebugInfo(ctx context.Context, apiClient *openapi.APIClient, clusterClient client.Client, clientset *kubernetes.Clientset, orgID, projectName, stackID, namespace string)\n```\nDumpBuildSourceDebugInfo prints cluster and API state to help diagnose stuck builds.\n\n```go\nfunc DumpCrashDetectionDebugInfo(ctx context.Context, clusterClient client.Client, namespace, resourceName string)\n```\nDumpCrashDetectionDebugInfo prints the raw StackResource CR status, Deployment conditions, and pod container statuses to help debug crash detection failures.\n\n```go\nfunc DumpNamespaceDiagnostics(ctx context.Context, clusterClient client.Client, namespace string) string\n```\nDumpNamespaceDiagnostics renders the build-relevant state of a namespace — ImageBuild CRs (phase + conditions), Jobs, Pods (phase + container states), and Events — for inclusion in a timeout failure message.\n\n```go\nfunc EnvConnection(fromType, fromName, toType, toName string, mappings []openapi.ConnectionMapping) openapi.StackConnection\n```\n\n```go\nfunc EnvConnectionWithID(fromType, fromID, toType, toName string, mappings []openapi.ConnectionMapping) openapi.StackConnection\n```\n\n```go\nfunc ErrorValidationCodes(apiErr *openapi.GenericOpenAPIError) []string\n```\nErrorValidationCodes decodes an aggregated validation error's body and returns the codes carried in details.errors\\[].code. Works for any endpoint that returns errors.ValidationFailed (details: {\"errors\": \\[{field, code, message}]}), whether or not the generated client populated apiErr.Model() for the route.\n\n```go\nfunc ExpectPostgresAddonEqual(expected, actual *openapi.PostgresAddon)\n```\nAssertion helpers for OpenAPI models using Ginkgo matchers\n\n```go\nfunc GetContainerEnvVar(deploy *appsv1.Deployment, envName string) (string, bool)\n```\n\n```go\nfunc GetContainerEnvVarSecretRef(deploy *appsv1.Deployment, envName string) (*corev1.SecretKeySelector, bool)\n```\n\n```go\nfunc GetContainerVolumeMount(deploy *appsv1.Deployment, mountPath string) (*corev1.VolumeMount, bool)\n```\n\n```go\nfunc GetCredentials(apiClient *openapi.APIClient, orgID, projectName, addonID, database string) *openapi.PostgresCredentials\n```\nGetCredentials fetches JIT credentials for an addon database via the API.\n\n```go\nfunc GetDeploymentForStackResource(ctx context.Context, clusterClient client.Client, namespace, name string) (*appsv1.Deployment, error)\n```\n\n```go\nfunc GetIngressesForStackResource(ctx context.Context, clusterClient client.Client, resource *corev1alpha1.StackResource) ([]networkingv1.Ingress, error)\n```\n\n```go\nfunc GetInvite(client *openapi.APIClient, orgID, inviteID string) *openapi.OrgInvite\n```\n\n```go\nfunc GetInviteExpectError(client *openapi.APIClient, orgID, inviteID string, expectedStatus int)\n```\n\n```go\nfunc GetInviteInfo(client *openapi.APIClient, token string) *openapi.OrgInviteInfo\n```\n\n```go\nfunc GetInviteInfoExpectError(client *openapi.APIClient, token string, expectedStatus int)\n```\n\n```go\nfunc GetObjectStore(client *openapi.APIClient, orgID, projectName, storeID string) *openapi.ObjectStore\n```\n\n```go\nfunc GetObjectStoreExpectError(client *openapi.APIClient, orgID, projectName, storeID string, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc GetPostgresAddon(client *openapi.APIClient, orgID, projectName, addonID string) *openapi.PostgresAddon\n```\n\n```go\nfunc GetPostgresAddonExpectError(client *openapi.APIClient, orgID, projectName, addonID string, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc GetPostgresClusterCR(ctx context.Context, clusterClient client.Client, name, namespace string) (*addonsv1alpha1.PostgresCluster, error)\n```\nGetPostgresClusterCR retrieves the PostgresCluster CR from the cluster.\n\n```go\nfunc GetRelease(client *openapi.APIClient, orgID, projectName, stackID, releaseID string) *openapi.StackReleaseDetail\n```\n\n```go\nfunc GetSecret(client *openapi.APIClient, orgID, projectName, secretID string) *openapi.Secret\n```\n\n```go\nfunc GetServiceForStackResource(ctx context.Context, clusterClient client.Client, namespace, name string) (*corev1.Service, error)\n```\n\n```go\nfunc GetStack(client *openapi.APIClient, orgID, projectName, stackID string) *openapi.Stack\n```\n\n```go\nfunc GetStackCR(ctx context.Context, clusterClient client.Client, name, namespace string) (*corev1alpha1.Stack, error)\n```\n\n```go\nfunc GetStackResourceCR(ctx context.Context, clusterClient client.Client, name, namespace string) (*corev1alpha1.StackResource, error)\n```\n\n```go\nfunc GetStackTopology(client *openapi.APIClient, orgID, projectName, stackID string) *openapi.StackTopology\n```\n\n```go\nfunc GetStackTopologyExpectError(client *openapi.APIClient, orgID, projectName, stackID string, expectedStatus int)\n```\n\n```go\nfunc GetSuperuserCredentials(apiClient *openapi.APIClient, orgID, projectName, addonID string) *openapi.PostgresCredentials\n```\nGetSuperuserCredentials fetches JIT superuser credentials for an addon via the API. The database path param is required by the route but ignored by the service in superuser mode.\n\n```go\nfunc HostMapping() openapi.ConnectionMapping\n```\n\n```go\nfunc ListBackups(apiClient *openapi.APIClient, orgID, projectName, addonID string) []openapi.PostgresBackup\n```\nListBackups returns all backups for a postgres addon.\n\n```go\nfunc ListInvites(client *openapi.APIClient, orgID string) *openapi.OrgInviteList\n```\n\n```go\nfunc ListObjectStores(client *openapi.APIClient, orgID, projectName string) *openapi.ObjectStoreList\n```\n\n```go\nfunc ListPostgresAddons(client *openapi.APIClient, orgID, projectName string) *openapi.PostgresAddonList\n```\n\n```go\nfunc ListProjectMembers(client *openapi.APIClient, orgID, projectName string) *openapi.ProjectMembershipList\n```\n\n```go\nfunc ListReleaseEvents(client *openapi.APIClient, orgID, projectName, stackID, releaseID string) *openapi.ReleaseEventList\n```\nListReleaseEvents fetches the ordered release event timeline for a release.\n\n```go\nfunc ListReleases(client *openapi.APIClient, orgID, projectName, stackID string) *openapi.StackReleaseList\n```\n\n```go\nfunc ListStackBuilds(apiClient *openapi.APIClient, orgID, projectName, stackID string) []openapi.ImageBuild\n```\n\n```go\nfunc ListStackConnections(client *openapi.APIClient, orgID, projectName, stackID string) []openapi.StackConnection\n```\n\n```go\nfunc ListStackConnectionsExpectError(client *openapi.APIClient, orgID, projectName, stackID string, expectedStatus int)\n```\n\n```go\nfunc ListStacks(client *openapi.APIClient, orgID, projectName string) *openapi.StackList\n```\n\n```go\nfunc MinIOEndpoint() string\n```\nMinIOEndpoint returns the in-cluster endpoint for the MinIO service.\n\n```go\nfunc NewInviteCreateRequest(email, projectName, role string, expiresInDays int) openapi.OrgInviteCreateRequest\n```\n\n```go\nfunc PortForwardPod(restConfig *rest.Config, clientset *kubernetes.Clientset, namespace, podName string, remotePort int) (int32, chan struct{})\n```\nPortForwardPod sets up port-forwarding to a pod. Returns the local port and a stop channel. Close stopChan to tear down the forward.\n\n```go\nfunc PortForwardPostgres(ctx context.Context, restConfig *rest.Config, clientset *kubernetes.Clientset, namespace, cnpgClusterName string) (int32, chan struct{})\n```\nPortForwardPostgres sets up port-forwarding to the CNPG primary pod for a given addon.\n\n```go\nfunc PortForwardStackResource(ctx context.Context, restConfig *rest.Config, clientset *kubernetes.Clientset, namespace, resourceName string, remotePort int) (int32, chan struct{})\n```\nPortForwardStackResource sets up port-forwarding to a pod backing a StackResource Deployment.\n\n```go\nfunc PostgresMapping(output, envName string) openapi.ConnectionMapping\n```\n\n```go\nfunc ResendInvite(client *openapi.APIClient, orgID, inviteID string)\n```\n\n```go\nfunc ResendInviteExpectError(client *openapi.APIClient, orgID, inviteID string, expectedStatus int)\n```\n\n```go\nfunc ResolveContainerEnvVar(ctx context.Context, clusterClient client.Client, deploy *appsv1.Deployment, namespace, envName string) (string, bool)\n```\n\n```go\nfunc ResourceWithDependsOn(name string, deps []string) openapi.StackResource\n```\n\n```go\nfunc ResourceWithPort(name string, port int32) openapi.StackResource\n```\n\n```go\nfunc RevokeInvite(client *openapi.APIClient, orgID, inviteID string)\n```\n\n```go\nfunc RevokeInviteExpectError(client *openapi.APIClient, orgID, inviteID string, expectedStatus int)\n```\n\n```go\nfunc RollbackRelease(client *openapi.APIClient, orgID, projectName, stackID, fromReleaseID string) *openapi.StackRelease\n```\n\n```go\nfunc SecretEnvConnection(secretID, targetResource, envName, outputKey string) openapi.StackConnection\n```\n\n```go\nfunc ServeDeclaredPorts(r *openapi.StackResource)\n```\nServeDeclaredPorts makes TestImage listen on every port the resource declares. The cluster-agent synthesizes a TCP readiness probe on the primary declared port, so a resource declaring a port stock nginx does not serve never becomes Ready and its stack never converges.\n\n```go\nfunc SignupNewUser(name, email, password, orgName string) *openapi.UserSignupResponse\n```\n\n```go\nfunc SignupWithInvite(inviteToken, name, email, password string) *openapi.UserSignupResponse\n```\n\n```go\nfunc SignupWithInviteExpectError(inviteToken, name, email, password string, expectedStatus int)\n```\n\n```go\nfunc SimpleResource(name string) openapi.StackResource\n```\n\n```go\nfunc TriggerBackup(apiClient *openapi.APIClient, orgID, projectName, addonID string)\n```\nTriggerBackup triggers an immediate backup for a postgres addon.\n\n```go\nfunc UnauthenticatedClient() *openapi.APIClient\n```\n\n```go\nfunc UpdateObjectStore(client *openapi.APIClient, orgID, projectName, storeID string, store *openapi.ObjectStore) *openapi.ObjectStore\n```\n\n```go\nfunc UpdateObjectStoreExpectError(client *openapi.APIClient, orgID, projectName, storeID string, store *openapi.ObjectStore, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc UpdatePostgresAddon(client *openapi.APIClient, orgID, projectName, addonID string, addon *openapi.PostgresAddon) *openapi.PostgresAddon\n```\n\n```go\nfunc UpdatePostgresAddonExpectError(client *openapi.APIClient, orgID, projectName, addonID string, addon *openapi.PostgresAddon, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc UpdateStack(client *openapi.APIClient, orgID, projectName, stackID string, stack *openapi.Stack) *openapi.Stack\n```\n\n```go\nfunc UpdateStackConnection(client *openapi.APIClient, orgID, projectName, stackID, connectionID string, connection *openapi.StackConnection) *openapi.StackConnection\n```\n\n```go\nfunc UpdateStackConnectionExpectError(client *openapi.APIClient, orgID, projectName, stackID, connectionID string, connection *openapi.StackConnection, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc UpdateStackExpectError(client *openapi.APIClient, orgID, projectName, stackID string, stack *openapi.Stack, expectedStatus int) *openapi.GenericOpenAPIError\n```\n\n```go\nfunc UpdateStackResourceH(client *openapi.APIClient, orgID, projectName, stackID, resourceName string, resource *openapi.StackResource) *openapi.StackResource\n```\n\n```go\nfunc UpdateStackShellH(client *openapi.APIClient, orgID, projectName, stackID string, stack *openapi.Stack) *openapi.Stack\n```\nUpdateStackShellH updates a stack via the shell-only PUT endpoint. The server updates shell fields (name, labels, etc.) and ignores any inline children, so existing resources/connections are preserved.\n\n```go\nfunc VerifyCRLabel(cr *addonsv1alpha1.PostgresCluster, addonID string)\n```\nVerifyCRLabel checks that the CR has the expected addon ID label.\n\n```go\nfunc VerifyCRSpec(cr *addonsv1alpha1.PostgresCluster, expectedInstances int, expectedMajorVersion int, expectedStorage string)\n```\nVerifyCRSpec asserts that the PostgresCluster CR spec matches expected values.\n\n```go\nfunc VerifyGitCredentialsSecretExists(ctx context.Context, clusterClient client.Client, namespace, stackID string)\n```\n\n```go\nfunc VerifyStackCRLabel(cr *corev1alpha1.Stack, stackID string)\n```\n\n```go\nfunc VolumeMountConn(volumeName, targetResource, mountPath, subPath string) openapi.StackConnection\n```\n\n```go\nfunc WaitForAddonDeleted(apiClient *openapi.APIClient, orgID, projectName, addonID string, timeout time.Duration)\n```\nWaitForAddonDeleted polls the API until the addon returns 404.\n\n```go\nfunc WaitForAddonReady(apiClient *openapi.APIClient, orgID, projectName, addonID string, timeout time.Duration) *openapi.PostgresAddon\n```\nWaitForAddonReady polls the API until the addon status is \"Ready\".\n\n```go\nfunc WaitForAddonState(apiClient *openapi.APIClient, orgID, projectName, addonID, expectedState string, timeout time.Duration) *openapi.PostgresAddon\n```\nWaitForAddonState polls the API until the addon status matches the expected state.\n\n```go\nfunc WaitForBackupPhase(apiClient *openapi.APIClient, orgID, projectName, addonID, expectedPhase string, timeout time.Duration)\n```\nWaitForBackupPhase polls until at least one backup reaches the expected phase.\n\n```go\nfunc WaitForBuildLastFailureDetail(apiClient *openapi.APIClient, orgID, projectName, stackID, resourceName string, timeout time.Duration) *openapi.BuildFailureDetail\n```\nWaitForBuildLastFailureDetail polls the API until last\\_build\\_failure\\_detail is populated on the named resource's most recent image build.\n\n```go\nfunc WaitForCRDeleted(ctx context.Context, clusterClient client.Client, name, namespace string, timeout time.Duration)\n```\nWaitForCRDeleted polls the cluster until the PostgresCluster CR no longer exists.\n\n```go\nfunc WaitForCRExists(ctx context.Context, clusterClient client.Client, name, namespace string, timeout time.Duration) *addonsv1alpha1.PostgresCluster\n```\nWaitForCRExists polls the cluster until a PostgresCluster CR exists with the given name and namespace.\n\n```go\nfunc WaitForConditionTrue(apiClient *openapi.APIClient, orgID, projectName, addonID, conditionType string, timeout time.Duration)\n```\nWaitForConditionTrue polls the API until a specific condition on the addon is True.\n\n```go\nfunc WaitForReleaseReleased(client *openapi.APIClient, orgID, projectName, stackID, releaseID string, timeout time.Duration) *openapi.StackReleaseDetail\n```\n\n```go\nfunc WaitForReleaseState(client *openapi.APIClient, orgID, projectName, stackID, releaseID, expectedState string, timeout time.Duration) *openapi.StackReleaseDetail\n```\n\n```go\nfunc WaitForStackActive(apiClient *openapi.APIClient, orgID, projectName, stackID string, timeout time.Duration) *openapi.Stack\n```\nWaitForStackActive polls the stack API until it responds 200 with an active lifecycle. The wait for stacks that never deploy (e.g. skip-cluster- provisioning fixtures): they have no releases, so WaitForStackReady's converged\\_release gate would never pass.\n\n```go\nfunc WaitForStackCRDeleted(ctx context.Context, clusterClient client.Client, name, namespace string, timeout time.Duration)\n```\n\n```go\nfunc WaitForStackCRExists(ctx context.Context, clusterClient client.Client, name, namespace string, timeout time.Duration) *corev1alpha1.Stack\n```\n\n```go\nfunc WaitForStackDeleted(apiClient *openapi.APIClient, orgID, projectName, stackID string, timeout time.Duration)\n```\n\n```go\nfunc WaitForStackReady(apiClient *openapi.APIClient, orgID, projectName, stackID string, timeout time.Duration) *openapi.Stack\n```\nWaitForStackReady polls the stack API until the current release has converged (Released) and its live status is healthy (Ok) — the release-centric equivalent of the old \"stack.status.state == Ready\" wait.\n\n```go\nfunc WaitForStackReadyWithDump(apiClient *openapi.APIClient, orgID, projectName, stackID string, timeout time.Duration, clusterClient client.Client, namespace string) *openapi.Stack\n```\nWaitForStackReadyWithDump is WaitForStackReady plus a cluster-state dump (ImageBuild CRs, Jobs, Pods, Events in the stack namespace) appended to the failure message when the wait times out.\n\n```go\nfunc WaitForStackResourceCRAvailable(ctx context.Context, clusterClient client.Client, name, namespace string, timeout time.Duration) *corev1alpha1.StackResource\n```\n\n```go\nfunc WaitForStackResourceFailed(apiClient *openapi.APIClient, orgID, projectName, stackID, resourceName string, timeout time.Duration) *openapi.StackResourceStatus\n```\nWaitForStackResourceFailed polls the API until the named resource reaches Failed state.\n\n```go\nfunc WaitForStackResourceLastFailure(apiClient *openapi.APIClient, orgID, projectName, stackID, resourceName string, timeout time.Duration) *openapi.StackResourceFailure\n```\nWaitForStackResourceLastFailure polls the API until last\\_failure is populated on the named resource.\n\n","path":"github.com/Stackdome/stackdome/test/int/shared","name":"shared","synopsis":"","isRedistributable":true}
