reset

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package reset contains the logic to reset a cluster back to maintenance mode

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, t topf.Topf, opts Options) error

Execute performs the reset operation on all nodes in the cluster

Types

type Options

type Options struct {
	// Ask for user input before resetting
	Confirm bool
	// Whether to perform a full wipe of the installation disk. If false, only
	// STATE and EPHEMERAL partitions are wiped.
	Full     bool
	Graceful bool
	Shutdown bool
}

Options contains the options for the reset execution

type Result

type Result struct {
	SuccessCount int
	SkipCount    int
	FailCount    int
}

Result contains the result of the reset operation

Jump to

Keyboard shortcuts

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