util

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnsureMongoServerInstalled = mongo.EnsureServerInstalled

EnsureMongoServerInstalled is patched for testing.

View Source
var NewEnsureMongoParams = newEnsureMongoParams

NewEnsureMongoParams creates a mongo.EnsureServerParams from an agent configuration.

Functions

func AgentDone

func AgentDone(logger logger.Logger, err error) error

AgentDone processes the error returned by an exiting agent.

func IsControllerFlagManifold

func IsControllerFlagManifold(inputName string, yes bool) dependency.Manifold

IsControllerFlagManifold returns a dependency.Manifold that indicates the state config is present or not depending on the arg. It returns a worker implementing engine.Flag, whose Check method returns True in 2 cases: 1) state config is present on the machine and arg is True 2) state config is not present on the machine and arg is False.

Types

This section is empty.

Jump to

Keyboard shortcuts

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