Help us shape the future of Go! Take the 2026 Go Developer Survey

freeze

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package freeze implements the freeze and unfreeze commands, which stop (and resume) restacking for a branch and the branches it depends on or that depend on it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Freeze

func Freeze(ctx context.Context, deps Deps, branchName string) error

Freeze freezes the specified branch and all branches downstack of it (recursive parents).

func Unfreeze

func Unfreeze(ctx context.Context, deps Deps, branchName string) error

Unfreeze unfreezes the specified branch and all branches upstack of it (recursive children).

Types

type Deps

type Deps struct {
	Engine Engine
	Out    output.Output
}

Deps are the collaborators freeze needs. Adapters build them from their own runtime state; the action never sees bootstrap types.

type Engine

type Engine interface {
	GetBranch(branchName string) engine.Branch
	Graph(ctx context.Context, strategy engine.SortStrategy) *engine.StackGraph
	SetFrozen(ctx context.Context, branches engine.Branches, state engine.FreezeState) (engine.BatchFreezeResult, error)
}

Engine lists exactly the engine methods freeze and unfreeze call.

Jump to

Keyboard shortcuts

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