fencing

package
v1.27.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package fencing provides functions to manage the fencing on cnpg clusters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Off

func Off(
	ctx context.Context,
	crudClient client.Client,
	serverName,
	namespace,
	clusterName string,
	fencingMethod Method,
) error

Off marks an instance in a cluster as not fenced

func On

func On(
	ctx context.Context,
	crudClient client.Client,
	serverName,
	namespace,
	clusterName string,
	fencingMethod Method,
) error

On marks an instance in a cluster as fenced

Types

type Method

type Method string

Method will be one of the supported ways to trigger an instance fencing

const (
	// UsingAnnotation it is a keyword to use while fencing on/off the instances using annotation method
	UsingAnnotation Method = "annotation"
	// UsingPlugin it is a keyword to use while fencing on/off the instances using plugin method
	UsingPlugin Method = "plugin"
)

Jump to

Keyboard shortcuts

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