Documentation ¶
Index ¶
- Constants
- func AWSConfig(ctx context.Context, accessKeyID, secretAccessKey, region string, ...) (*aws.Config, error)
- func ConcatSlices[T any](slices ...[]T) []T
- func LookupIPv4(ctx context.Context, host string) (string, error)
- func WrapError(context string, err error) error
- type LogConfig
- type Logger
- type MultiError
- type ProfilerConfig
Constants ¶
View Source
const ( AWSAccessKeyEnvvar string = "AWS_ACCESS_KEY_ID" AWSSecretKeyEnvvar string = "AWS_SECRET_ACCESS_KEY" AWSRegionEnvvar string = "AWS_REGION" )
Variables ¶
This section is empty.
Functions ¶
func ConcatSlices ¶
func ConcatSlices[T any](slices ...[]T) []T
func LookupIPv4 ¶
LookupIPv4 resolves the given hostname to a IPv4. WARNING: It only returns the first IP even if the hostname resolves to several
Types ¶
type MultiError ¶
type MultiError []error
Type MultiError can be used for iterative operations that must keep going even if errors are detected. It will return the list of all encountered errors. MultiError implements the Error interface and can be passed around as a normal error.
func (MultiError) Error ¶
func (me MultiError) Error() string
func (MultiError) ErrorOrNil ¶
func (me MultiError) ErrorOrNil() error
func (MultiError) Unwrap ¶
func (me MultiError) Unwrap() []error
type ProfilerConfig ¶
type ProfilerConfig struct { EnableProfiler bool `envconfig:"PROFILER_ENABLE" default:"false"` ProfilerBindAddress string `envconfig:"PROFILER_BIND_ADDRESS" default:"0.0.0.0"` ProfilerBinbPort string `envconfig:"PROFILER_BIND_ORT" default:"6060"` Log logr.Logger }
func (ProfilerConfig) Setup ¶
func (cfg ProfilerConfig) Setup() error
Click to show internal directories.
Click to hide internal directories.