redpanda-data / benthos

MIT License
214 stars 61 forks source link

Allow resources access from ParsedConfig #94

Closed Jeffail closed 1 month ago

Jeffail commented 1 month ago

Traditionally the ParsedConfig type is only used for accessing fields. However, it actually retains a reference to the underlying resources type which is used for instanciating more component types throughout the config. Since it's there anyway I've decided to allow you to access it with a public method and I'm planning to use this in our redpanda inputs and outputs.

Edit: Oh and I've also addressed a bunch of linting errors that came up for me locally.

Jeffail commented 1 month ago

Good point, done.