mock

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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