forked from Azure/azure-container-networking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
82 lines (65 loc) · 1.96 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Copyright 2017 Microsoft. All rights reserved.
// MIT License
package common
// Command line options.
const (
// Operating environment.
OptEnvironment = "environment"
OptEnvironmentAlias = "e"
OptEnvironmentAzure = "azure"
OptEnvironmentMAS = "mas"
// API server URL.
OptAPIServerURL = "api-url"
OptAPIServerURLAlias = "u"
OptCnsURL = "cns-url"
OptCnsURLAlias = "c"
// Logging level.
OptLogLevel = "log-level"
OptLogLevelAlias = "l"
OptLogLevelInfo = "info"
OptLogLevelDebug = "debug"
// Logging target.
OptLogTarget = "log-target"
OptLogTargetAlias = "t"
OptLogTargetSyslog = "syslog"
OptLogTargetStderr = "stderr"
OptLogTargetFile = "logfile"
OptLogStdout = "stdout"
OptLogMultiWrite = "stdoutfile"
// Logging location
OptLogLocation = "log-location"
OptLogLocationAlias = "o"
// IPAM query URL.
OptIpamQueryUrl = "ipam-query-url"
OptIpamQueryUrlAlias = "q"
// IPAM query interval.
OptIpamQueryInterval = "ipam-query-interval"
OptIpamQueryIntervalAlias = "i"
// Don't Start CNM
OptStopAzureVnet = "stop-azure-cnm"
OptStopAzureVnetAlias = "stopcnm"
// Interval to send reports to host
OptReportToHostInterval = "report-interval"
OptReportToHostIntervalAlias = "hostinterval"
// Version.
OptVersion = "version"
OptVersionAlias = "v"
// Help.
OptHelp = "help"
OptHelpAlias = "h"
// CNI binary location
OptNetPluginPath = "net-plugin-path"
OptNetPluginPathAlias = "np"
// CNI binary location
OptNetPluginConfigFile = "net-plugin-config-file"
OptNetPluginConfigFileAlias = "npconfig"
// Telemetry config Location
OptTelemetryConfigDir = "telemetry-config-file"
OptTelemetryConfigDirAlias = "d"
// Create ext Hns network
OptCreateDefaultExtNetworkType = "create-defaultextnetwork-type"
OptCreateDefaultExtNetworkTypeAlias = "defaultextnetworktype"
// Disable Telemetry
OptTelemetry = "telemetry"
OptTelemetryAlias = "dt"
)