freeze

package
v3.0.0-rc67 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 3 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

Overview

Package freeze handles the frozen flags of the node and of the object instances, which keep the daemon from acting on its own initiative.

A frozen flag records the scope of the freeze it was raised by. A node coming back after a freeze of the whole cluster or of a whole object, which it missed while it was down, adopts it from its peers. A freeze of a single node or instance, and a freeze the daemon took on its own, stay where they were raised.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Freeze

func Freeze(p string) error

Freeze raises the frozen flag at p, for this node or instance alone.

func FreezeScope

func FreezeScope(p string, scope Scope) error

FreezeScope raises the frozen flag at p, for the freeze of the scope. A flag already raised keeps the scope of the freeze that raised it.

func Frozen

func Frozen(p string) time.Time

func Unfreeze

func Unfreeze(p string) error

Types

type Scope

type Scope string

Scope is what a freeze was asked for.

const (
	// ScopeCluster is a node frozen by a freeze of the cluster.
	ScopeCluster Scope = "cluster"

	// ScopeNode is a node frozen alone.
	ScopeNode Scope = "node"

	// ScopeObject is an instance frozen by a freeze of its object.
	ScopeObject Scope = "object"

	// ScopeInstance is an instance frozen alone.
	ScopeInstance Scope = "instance"
)

func ScopeOf

func ScopeOf(p string, wide, local Scope) Scope

ScopeOf returns the scope of the freeze of the flag at p: wide when the flag was raised by the freeze of that scope, local otherwise, and empty when it is not raised.

Jump to

Keyboard shortcuts

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