mock

package
v2.35.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockFdbPodClient

func NewMockFdbPodClient(
	cluster *fdbv1beta2.FoundationDBCluster,
	pod *corev1.Pod,
) (podclient.FdbPodClient, error)

NewMockFdbPodClient builds a mock client for working with an FDB pod

Types

type FdbPodClient

type FdbPodClient struct {
	Cluster *fdbv1beta2.FoundationDBCluster
	Pod     *corev1.Pod
	// contains filtered or unexported fields
}

FdbPodClient provides a mock connection to a pod

func (*FdbPodClient) GetVariableSubstitutions

func (client *FdbPodClient) GetVariableSubstitutions() (map[string]string, error)

GetVariableSubstitutions gets the current keys and values that this process group will substitute into its monitor conf.

func (*FdbPodClient) IsPresent

func (client *FdbPodClient) IsPresent(_ string) (bool, error)

IsPresent checks whether a file in the sidecar is present.

func (*FdbPodClient) UpdateFile

func (client *FdbPodClient) UpdateFile(_ string, _ string) (bool, error)

UpdateFile checks if a file is up-to-date and tries to update it.

Jump to

Keyboard shortcuts

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