Versions in this module Expand all Collapse all v0 v0.1.4 Nov 20, 2026 v0.1.3 Nov 20, 2026 v0.1.2 Nov 18, 2026 Changes in this version type Facts + Retirement *Retirement type Record + RetiredSecret *RetiredSecret + VersionedSecrets map[string][]string + type RetiredSecret struct + Requester string + Variable string + Version string + type Retirement struct + Requester string + Variable string + Version string + func (r *Retirement) String() string type Secrets + EnabledVersions func(ctx context.Context, container string) ([]string, error) v0.1.1 Nov 10, 2026 v0.1.0 Nov 10, 2026 Changes in this version + const BackupCreating + const BackupReady + const BuildArgsFile + const BuildFile + const DatabaseReady + const DatabaseReadyOptimizing + const EnvironmentFile + const Live + const MetadataFile + const PlanFile + const PlanJSONFile + const Preview + const RevisionTemplatesFile + const RevisionsFile + const StackApplied + const StackDestroyed + const StackFailed + const StackPlanFile + const StackPlanJSONFile + var PersonaActions = []PersonaAction + func AppIdentity(ctx context.Context, gh GitHubFunc, appID string, pemKey []byte) (*github.App, error) + func AppInstallationToken(ctx context.Context, gh GitHubFunc, appID string, pemKey []byte, ...) (string, error) + func AppInstallations(ctx context.Context, gh GitHubFunc, appID string, pemKey []byte) ([]github.Installation, error) + func AppOrgInstallationToken(ctx context.Context, gh GitHubFunc, appID string, pemKey []byte, ...) (token string, installation int64, err error) + func ApplyEnvironmentStack(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func BuildImage(ctx context.Context, clients *Clients, w Workspace, ...) error + func CheckRelease(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func Deploy(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func FirstApply(ctx context.Context, clients *Clients, w Workspace, req *BuildRequest, ...) error + func GitHubComments(ctx context.Context, token, repoFullName string, number int) ([]github.Comment, error) + func GoogleIDToken(ctx context.Context, audience string) (string, error) + func GuardMigrations(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func Hook(ctx context.Context, clients *Clients, w Workspace, stage hook.Stage, ...) error + func Jobs(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func MaintenanceOff(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func MaintenanceOn(ctx context.Context, clients *Clients, w Workspace, window bool, out io.Writer) error + func Migrate(ctx context.Context, clients *Clients, w Workspace, ...) error + func NetHosts(ctx context.Context, clients *Clients, bucket string) (map[string]string, error) + func Persona(ctx context.Context, clients *Clients, w Workspace, action PersonaAction, ...) error + func PlanEnvironmentStack(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func PlanEnvironments(ctx context.Context, clients *Clients, w Workspace, req *BuildRequest, ...) error + func Principal(ctx context.Context) (string, error) + func PublicGitHub(token string) *github.Client + func PullRequestStack(ctx context.Context, clients *Clients, w Workspace, req *BuildRequest, ...) error + func PullRequestStacks(ctx context.Context, clients *Clients, req *TeardownRequest) ([]string, error) + func ReadStackOutputs(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func RunRelease(ctx context.Context, clients *Clients, req *ReleaseRequest, out io.Writer) error + func ShiftTraffic(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func Sleep(ctx context.Context, d time.Duration) error + func StackOutputsObject(app, env, number, commit string) string + func StackTeardown(ctx context.Context, clients *Clients, w Workspace, req *BuildRequest, ...) error + func StartReleaseBackup(ctx context.Context, clients *Clients, w Workspace, now time.Time, ...) error + func Sweep(ctx context.Context, clients *Clients, w Workspace, req *BuildRequest, ...) error + func SweepJobs(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func TalkBack(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func TeardownPullRequests(ctx context.Context, clients *Clients, req *TeardownRequest, numbers []string, ...) error + func ValidateRelease(ctx context.Context, clients *Clients, w Workspace, bedrock string, ...) error + func WaitForWindow(ctx context.Context, clients *Clients, w Workspace, out io.Writer) error + func WriteRecord(ctx context.Context, open StoreFunc, req *RecordRequest, out io.Writer) error + type ApplicationTeardown struct + Environments []*EnvironmentTeardown + PullRequests []string + func PrepareApplication(ctx context.Context, clients *Clients, req *TeardownRequest, out io.Writer) (*ApplicationTeardown, error) + func (a *ApplicationTeardown) Empty() bool + func (a *ApplicationTeardown) Run(ctx context.Context, out io.Writer) error + func (a *ApplicationTeardown) Summary() string + type Approval struct + Approver string + At string + Comment string + type Backup struct + CreateTime string + Database string + ExpireTime string + Name string + State string + VersionTime string + type Build struct + Approval *BuildApproval + ID string + ServiceAccount string + StartTime string + Steps []BuildStep + Substitutions map[string]string + Timeout string + func ParseBuild(data []byte) (*Build, error) + type BuildApproval struct + Result *BuildApprovalResult + State string + type BuildApprovalResult struct + ApprovalTime string + ApproverAccount string + Comment string + Decision string + type BuildRequest struct + BuildID string + Location string + Project string + type BuildStep struct + ID string + type Builds interface + Get func(ctx context.Context, project, location, id string) ([]byte, error) + ReadToken func(ctx context.Context, repository string) (string, error) + func NewCloudBuild(ctx context.Context) (Builds, error) + type BuildsFunc func(ctx context.Context) (Builds, error) + type Clients struct + Builds BuildsFunc + Comments CommentsFunc + Exec Runner + FirestoreAs FirestoreAsFunc + GitHub GitHubFunc + Grants GrantsFunc + HTTP *http.Client + IDToken IDTokenFunc + Metrics MetricsFunc + Now func() time.Time + Registry RegistryFunc + Run RunFunc + Secrets SecretsFunc + SecretsAs SecretsAsFunc + Sleep SleepFunc + Spanner SpannerFunc + SpannerAs SpannerAsFunc + Storage StoreFunc + StorageAs StoreAsFunc + StorageAsWriter StoreAsFunc + Tasks TasksFunc + Versions VersionsFunc + func DefaultClients(out io.Writer) *Clients + type Command struct + Args []string + Dir string + Env []string + Name string + func (c Command) String() string + type CommentsFunc func(ctx context.Context, token, repoFullName string, number int) ([]github.Comment, error) + type Database struct + Name string + RestoredFrom string + State string + type DatabaseRef struct + Generation int + Name string + type EnvironmentTeardown struct + func PrepareTeardown(ctx context.Context, clients *Clients, req *TeardownRequest, out io.Writer) (*EnvironmentTeardown, error) + func (t *EnvironmentTeardown) Run(ctx context.Context, out io.Writer) error + func (t *EnvironmentTeardown) Summary() string + type Facts struct + ApprovalComment string + ApprovedAt string + Approver string + BuildArguments []string + BuildSecrets string + Comment string + CommentID int64 + CommitTag string + Declared []string + Down bool + Environment string + Image string + ImageTag string + JobsJob string + KeepsReleaseBackups bool + Location string + MaintenanceOff bool + Migration *MigrateAction + Project string + PullRequest string + Release string + ReloadDB bool + ReloadReason string + Requester string + Restore string + RestoreDatabase string + RestoreDatabaseBackup string + RestoreReason string + RevisionTag string + Rollback string + RollbackReason string + RunMigrations bool + Seed bool + Services string + SharedDB bool + ShiftTraffic bool + Substitutions map[string]string + Tag string + Token string + Version string + func Resolve(ctx context.Context, clients *Clients, req *ResolveRequest, out io.Writer) (*Facts, error) + func (f *Facts) Write(w Workspace) error + type Firestore interface + DeleteAllDocuments func(ctx context.Context, database string) error + type FirestoreAsFunc func(ctx context.Context, identity string) (Firestore, error) + func NewFirestoreAs(out io.Writer) FirestoreAsFunc + type Force struct + Requester string + Table string + Version int + type GitHubFunc func(token string) *github.Client + type Grants interface + Read func(ctx context.Context, database string) error + type GrantsFunc func(ctx context.Context) (Grants, error) + func NewGrants(out io.Writer) GrantsFunc + type IDTokenFunc func(ctx context.Context, audience string) (string, error) + type JobTemplate struct + CPU string + Command []string + Env map[string]string + Labels map[string]string + MaxRetries int + Memory string + Secrets map[string]SecretReference + ServiceAccount string + Timeout string + type LiveRelease struct + Applied bool + Build string + Env string + Release string + Since string + func LiveReleases(ctx context.Context, clients *Clients, p *derive.Placement, app string) ([]LiveRelease, error) + type Maintenance struct + Canceled int + Purged bool + Queue string + Revisions map[string]string + Waited string + type Metrics interface + ActiveInstances func(ctx context.Context, project, revision string, window time.Duration) (count int, known bool, err error) + type MetricsFunc func(ctx context.Context) (Metrics, error) + func NewCloudMonitoring(out io.Writer) MetricsFunc + type MigrateAction struct + Action string + Requester string + Table string + Version int + func (a *MigrateAction) String() string + type Migration struct + Dir string + Hash string + Name string + type MigrationVersion struct + Dirty bool + Known bool + Number int + func (v MigrationVersion) String() string + type OSRunner struct + func (OSRunner) Output(ctx context.Context, c Command, errOut io.Writer) ([]byte, error) + func (OSRunner) Run(ctx context.Context, c Command, out io.Writer) error + type PersonaAction string + const PersonaRegister + const PersonaRemove + type Record struct + App string + Approval *Approval + Build string + Commit string + Cut string + Database *DatabaseRef + Digest string + Env string + Force *Force + GeneratedSecrets map[string]string + Image string + Maintenance *Maintenance + Migrations []Migration + Regions []string + ReleaseBackup *ReleaseBackup + Requester string + Restore *Restore + Revisions []Revision + Rollback *Rollback + Stack *StackPlan + StackID string + Status string + Timestamp string + Version string + Window *Window + func (r *Record) JSON() ([]byte, error) + type RecordRequest struct + Bucket string + Object string + Record Record + Skipped string + func NewRecordRequest(ctx context.Context, open StoreFunc, w Workspace, now time.Time) (*RecordRequest, error) + type Registry interface + AddTag func(ctx context.Context, image, tag, digest string) error + Digest func(ctx context.Context, image, tag string) (string, error) + type RegistryFunc func(ctx context.Context) (Registry, error) + func NewArtifactRegistry(out io.Writer) RegistryFunc + type ReleaseBackup struct + ExpireTime string + Name string + VersionTime string + type ReleaseRequest struct + AppID string + Branch string + KeyVersion string + RepoFullName string + type ResolveRequest struct + BuildID string + Known []string + Location string + Project string + Source string + type Restore struct + Backup string + BackupTime string + Cleared []string + Database string + Forensic string + Generation int + Kept string + Kind string + PreviousGeneration int + Reason string + Replaced []string + Requester string + type Revision struct + Region string + Revision string + Service string + type RevisionTemplates struct + Job *JobTemplate + Services map[string]ServiceTemplate + type Rollback struct + From string + Reason string + Requester string + type Run interface + CancelExecution func(ctx context.Context, name string) error + CreateJob func(ctx context.Context, parent, id string, job map[string]any) (map[string]any, error) + Delete func(ctx context.Context, name string) error + Executions func(ctx context.Context, job string) ([]map[string]any, error) + Get func(ctx context.Context, name string) (map[string]any, error) + GetIamPolicy func(ctx context.Context, name string) (map[string]any, error) + Jobs func(ctx context.Context, project, region string) ([]map[string]any, error) + Patch func(ctx context.Context, name string, resource map[string]any, fields ...string) (map[string]any, error) + Revisions func(ctx context.Context, service string) ([]map[string]any, error) + Services func(ctx context.Context, project, region string) ([]map[string]any, error) + SetIamPolicy func(ctx context.Context, name string, policy map[string]any) (map[string]any, error) + type RunFunc func(ctx context.Context) (Run, error) + func NewCloudRun(out io.Writer) RunFunc + type Runner interface + Output func(ctx context.Context, c Command, errOut io.Writer) ([]byte, error) + Run func(ctx context.Context, c Command, out io.Writer) error + type SecretReference struct + Secret string + Version string + type Secrets interface + Access func(ctx context.Context, version string) ([]byte, error) + Add func(ctx context.Context, container string, payload []byte) (string, error) + Close func() error + Container func(ctx context.Context, name string) (bool, error) + Create func(ctx context.Context, project, id string, labels map[string]string) error + Grant func(ctx context.Context, container, role, member string) error + Newest func(ctx context.Context, container string) (string, error) + State func(ctx context.Context, version string) (string, error) + func NewSecretManager(ctx context.Context) (Secrets, error) + func NewSecretManagerAs(ctx context.Context, identity string) (Secrets, error) + type SecretsAsFunc func(ctx context.Context, identity string) (Secrets, error) + type SecretsFunc func(ctx context.Context) (Secrets, error) + type ServiceTemplate struct + Args []string + CPU string + Env map[string]string + HTTP2 bool + Labels map[string]string + MaxInstances *int + Memory string + Port int + Secrets map[string]SecretReference + ServiceAccount string + Timeout string + type SleepFunc func(ctx context.Context, d time.Duration) error + type Spanner interface + Backup func(ctx context.Context, name string) (*Backup, error) + CreateBackup func(ctx context.Context, instance, backupID, database string, ...) (string, error) + Database func(ctx context.Context, name string) (*Database, error) + Databases func(ctx context.Context, instance string) ([]string, error) + DropDatabase func(ctx context.Context, database string) error + LatestBackup func(ctx context.Context, instance, database string) (*Backup, error) + ProcessingUnits func(ctx context.Context, instance string) (int, error) + RestoreDatabase func(ctx context.Context, instance, databaseID, backup string) error + type SpannerAsFunc func(ctx context.Context, identity string) (Spanner, error) + func NewSpannerAs(out io.Writer) SpannerAsFunc + type SpannerFunc func(ctx context.Context) (Spanner, error) + func NewSpanner(out io.Writer) SpannerFunc + type StackChange struct + Actions []string + Address string + type StackOutput struct + Actions []string + Name string + type StackOutputs struct + App string + Build string + BuildArguments map[string]string + Comment int64 + Commit string + DatabaseRecreated string + Env string + Hostname string + Hostnames string + JobsJob string + MigrateDatabases string + MigrateEnv string + MigrateSecrets string + Persona string + PullRequest string + Reason string + RevisionTemplates *RevisionTemplates + Services string + SharedDatabase bool + Status string + Timestamp string + type StackPlan struct + Add int + Change int + Changes []StackChange + Destroy int + Outputs []StackOutput + func (p *StackPlan) Empty() bool + func (p *StackPlan) Summary() string + type Standing struct + Env string + Release string + Stack bool + TornDown bool + func ApplicationStanding(ctx context.Context, clients *Clients, bucket, app string, envs []string) ([]Standing, error) + type Store interface + Close func() error + Delete func(ctx context.Context, bucket, object string) error + List func(ctx context.Context, bucket, prefix string) ([]string, error) + Read func(ctx context.Context, bucket, object string) ([]byte, error) + Write func(ctx context.Context, bucket, object string, data []byte) error + func NewStorage(ctx context.Context) (Store, error) + func NewStorageAs(ctx context.Context, identity string) (Store, error) + func NewStorageAsWriter(ctx context.Context, identity string) (Store, error) + type StoreAsFunc func(ctx context.Context, identity string) (Store, error) + type StoreFunc func(ctx context.Context) (Store, error) + type Tasks interface + Pause func(ctx context.Context, queue string) (string, error) + Purge func(ctx context.Context, queue string) (string, error) + Resume func(ctx context.Context, queue string) (string, error) + State func(ctx context.Context, queue string) (string, error) + type TasksFunc func(ctx context.Context) (Tasks, error) + func NewCloudTasks(out io.Writer) TasksFunc + type TeardownRecord struct + App string + Approval *Approval + At string + Backups []string + By string + Destroyed []string + Env string + Kept []string + Kind string + Release string + StackID string + type TeardownRequest struct + App string + Approval *Approval + Backup bool + By string + DataDir string + Destroy bool + Dir string + Env string + Identity string + Impersonate bool + Now func() time.Time + Placement *derive.Placement + type Versions interface + Version func(ctx context.Context, database, role string) (MigrationVersion, error) + type VersionsFunc func(ctx context.Context) (Versions, error) + func NewVersions(out io.Writer) VersionsFunc + type Window struct + Breaking bool + Opened string + Reason string + Slot string + Waited string + type Workspace string + func (w Workspace) Append(facts map[string]string) error + func (w Workspace) Build() (*Build, error) + func (w Workspace) BuildArgs() ([]string, error) + func (w Workspace) Environment() (map[string]string, error) + func (w Workspace) Revisions() ([]Revision, error) + func (w Workspace) WriteRevisions(revisions []Revision) error