MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / NewFencingMetadataExecutor

Function NewFencingMetadataExecutor

pkg/utils/fencing.go:149–153  ·  view source on GitHub ↗

NewFencingMetadataExecutor creates a fluent client for FencingMetadataExecutor

(cli client.Client)

Source from the content-addressed store, hash-verified

147
148// NewFencingMetadataExecutor creates a fluent client for FencingMetadataExecutor
149func NewFencingMetadataExecutor(cli client.Client) *FencingMetadataExecutor {
150 return &FencingMetadataExecutor{
151 cli: cli,
152 }
153}
154
155// AddFencing instructs the client to execute the logic of adding a instance
156func (fb *FencingMetadataExecutor) AddFencing() *FencingMetadataExecutor {

Callers 9

ensurePodIsFencedMethod · 0.92
EnsurePodIsUnfencedFunction · 0.92
startTransitionFunction · 0.92
ensureClusterIsNotFencedFunction · 0.92
fencingOnFunction · 0.92
fencingOffFunction · 0.92
OnFunction · 0.92
OffFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected