package flags
import "github.com/edgexfoundry/go-mod-bootstrap/bootstrap/flags"
Index ¶
- Constants
- type Common
- type Default
- func New() *Default
- func NewWithUsage(additionalUsage string) *Default
- func (d *Default) ConfigDirectory() string
- func (d *Default) ConfigFileName() string
- func (d *Default) ConfigProviderUrl() string
- func (d *Default) Help()
- func (d *Default) OverwriteConfig() bool
- func (d *Default) Parse(arguments []string)
- func (d *Default) Profile() string
- func (d *Default) UseRegistry() bool
Constants ¶
const ( DefaultConfigProvider = "consul.http://localhost:8500" DefaultConfigFile = "configuration.toml" )
Types ¶
type Common ¶
type Common interface { OverwriteConfig() bool UseRegistry() bool ConfigProviderUrl() string Profile() string ConfigDirectory() string ConfigFileName() string Parse([]string) Help() }
Common is an interface that defines AP for the common command-line flags used by most EdgeX services
type Default ¶
Default is the Default implementation of Common used by most EdgeX services
func New ¶
func New() *Default
New returns a Default struct with an empty additional usage string.
func NewWithUsage ¶
NewWithUsage returns a Default struct.
func (*Default) ConfigDirectory ¶
ConfigDirectory returns the directory where the config file(s) are located, if it was specified.
func (*Default) ConfigFileName ¶
ConfigFileName returns the name of the local configuration file
func (*Default) ConfigProviderUrl ¶
ConfigProviderUrl returns the url for the Configuration Provider, if one was specified.
func (*Default) Help ¶
func (d *Default) Help()
Help displays the usage help message and exit.
func (*Default) OverwriteConfig ¶
OverwriteConfig returns whether the local configuration should be pushed (overwrite) into the Configuration provider
func (*Default) Parse ¶
Parse parses the passed in command-lie arguments looking to the default set of common flags
func (*Default) Profile ¶
Profile returns the profile name to use, if one was specified
func (*Default) UseRegistry ¶
UseRegistry returns whether the Registry should be used or not
Source Files ¶
- Version
- v0.0.72 (latest)
- Published
- Jan 19, 2021
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 5 days ago –
Tools for package owners.