options

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableConfigHierarchy added in v2.5.0

func EnableConfigHierarchy()

EnableConfigHierarchy is to allow config options such as config.<x.y> with

dots as the config key

func ProcessAppConfig

func ProcessAppConfig(apps ...string) error

Deprecated Use ProcessConfig

func ProcessAppCustomOptions

func ProcessAppCustomOptions(service string) error

Process the "apps.<app>.<custom.option>" where <custom.option> is not "config"

func ProcessAutostart added in v2.4.0

func ProcessAutostart(apps ...string) error

ProcessAutostart will start and enable the listed app(s) based on the value of autostart snap option

func ProcessConfig added in v2.4.1

func ProcessConfig(apps ...string) error

ProcessConfig processes snap configuration which can be used to override app configuration via environment variables sourced by the snap service wrapper script. A service specific file (named <service>.env) is created in the $SNAP_DATA/config/res directory. The settings can either be app-specific or apply to all services/apps in the snap a) snap set edgex-snap-name apps.<app>.config.<my.env.var>

-> sets env var MY_ENV_VAR for an app

b) snap set edgex-snap-name config.<my.env.var>

-> sets env variable for all apps (e.g. DEBUG=true, SERVICE_SERVERBINDADDRESS=0.0.0.0)

func SetHierarchySeparator added in v2.5.0

func SetHierarchySeparator(sep string)

SetHierarchySeparator sets the separator used to replace dots in config.<x.y> Default is _

func SetSegmentSeparator added in v2.5.0

func SetSegmentSeparator(sep string)

SetSegmentSeparator sets the separator used to replace hyphens in config.<x-y> Default is _

Types

This section is empty.

Jump to

Keyboard shortcuts

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