Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SentryOverrides = []SentryOverride{ { EnvVar: "OUTOUT_AUTHORIZATION", Flag: authorizationFlag, FlagHelper: func(cmd *cobra.Command) { cmd.Flags().String(authorizationFlag, "", `event ingester authorization secret (env: OUTPUT_AUTHORIZATION). If set, overrides the secret in the config file, and adds the secret to all Xatu outputs.`) }, Setter: func(cmd *cobra.Command, overrides *sentry.Override) error { val := "" if cmd.Flags().Changed(authorizationFlag) { val = cmd.Flags().Lookup(authorizationFlag).Value.String() } if os.Getenv("AUTHORIZATION") != "" { val = os.Getenv("AUTHORIZATION") } if val == "" { return nil } overrides.XatuOutputAuth.Enabled = true overrides.XatuOutputAuth.Value = val return nil }, }, { EnvVar: "PRESET", Flag: "preset", FlagHelper: func(cmd *cobra.Command) { cmd.Flags().String(presetFlag, "", `configuration preset (env: PRESET). If set, overrides the configuration preset in the config file. See README.md for more information.`) }, Setter: func(cmd *cobra.Command, overrides *sentry.Override) error { val := "" if cmd.Flags().Changed(presetFlag) { val = cmd.Flags().Lookup(presetFlag).Value.String() } if os.Getenv("PRESET") != "" { val = os.Getenv("PRESET") } if val == "" { return nil } overrides.Preset.Enabled = true overrides.Preset.Value = val return nil }, }, { EnvVar: "BEACON_NODE_URL", Flag: "beacon-node-url", FlagHelper: func(cmd *cobra.Command) { cmd.Flags().String(beaconNodeURLFlag, "", `beacon node URL (env: BEACON_NODE_URL). If set, overrides the beacon node URL in the config file.`) }, Setter: func(cmd *cobra.Command, overrides *sentry.Override) error { val := "" if cmd.Flags().Changed(beaconNodeURLFlag) { val = cmd.Flags().Lookup(beaconNodeURLFlag).Value.String() } if os.Getenv("BEACON_NODE_URL") != "" { val = os.Getenv("BEACON_NODE_URL") } if val == "" { return nil } overrides.BeaconNodeURL.Enabled = true overrides.BeaconNodeURL.Value = val return nil }, }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.