package
1.3.0
Repository: https://github.com/warpstreamlabs/bento.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
LintYAMLBytes attempts to report errors within a user config.
NewReader creates a new config reader.
OptAddOverrides adds one or more override expressions to the config reader, each of the form `path=value`.
OptSetFullSpec overrides the default general config spec with the provided one.
OptSetLintConfig sets the config used for linting files.
OptSetStreamPaths marks this config reader as operating in streams mode, and adds a list of paths to obtain individual stream configs from.
OptTestSuffix configures the suffix given to unit test definition files, this is used in order to exclude unit tests from being run in streams mode with arbitrary directory walking.
OptUseFS sets the ifs.FS implementation for the reader to use.
ReadFileEnvSwap reads a file and replaces any environment variable interpolations before returning the contents.
ReadYAMLFileLinted will attempt to read a configuration file path into a structure.
ReplaceEnvVariables will search a blob of data for the pattern `${FOO:bar}`, where `FOO` is an environment variable name and `bar` is a default value.
ShouldReread returns true if the error returned from an update trigger is non nil and also temporal, and therefore it is worth trying the update again even if the content has not changed.
Spec returns a docs.FieldSpec for an entire Bento configuration.
SpecWithoutStream describes a stream config without the core stream fields.

# Structs

ErrMissingEnvVars is returned when attempting environment variable interpolations where the referenced environment variables are missing.
ErrNoReread is an error type returned from update triggers that indicates an attempt should not be re-made unless the source file has been modified.
Reader provides utilities for parsing a Bento config as a main file with a collection of resource files, and options such as overrides.
Type is the Bento service configuration struct.

# Type aliases

MainUpdateFunc is a closure function called whenever a main config has been updated.
OptFunc is an opt function that changes the behaviour of a config reader.
StreamUpdateFunc is a closure function called whenever a stream config has been updated.