Documentation
¶
Index ¶
Constants ¶
View Source
const ( NumParts int = 2 LatestVersion string = "latest" FolderPermissions os.FileMode = 0o755 FilePermissions os.FileMode = 0o644 ExecFilePermissions os.FileMode = 0o755 ExecFileMask os.FileMode = 0o111 MaxFileSize int64 = 1024 * 1024 * 100 // 100 MB BackupFileExt string = ".bak" DefaultPluginConfigFilename string = "./gatewayd_plugin.yaml" GitHubURLPrefix string = "github.com/" GitHubURLRegex string = `` //nolint:lll /* 323-byte string literal not displayed */ LocationArgs Location = "args" LocationConfig Location = "config" SourceUnknown Source = "unknown" SourceFile Source = "file" SourceGitHub Source = "github" ExtensionZip Extension = ".zip" ExtensionTarGz Extension = ".tar.gz" Global configFileType = "global" Plugins configFileType = "plugins" )
View Source
const DSN = "https://e22f42dbb3e0433fbd9ea32453faa598@o4504550475038720.ingest.sentry.io/4504550481723392"
View Source
const (
DefaultMetricsServerProbeTimeout = 5 * time.Second
)
Variables ¶
View Source
var UsageReportURL = "localhost:59091"
Functions ¶
func EnableTestMode ¶ added in v0.10.2
func EnableTestMode() bool
EnableTestMode enables test mode and returns the previous value. This should only be used in tests.
Types ¶
type GatewayDApp ¶ added in v0.10.2
type GatewayDApp struct { EnableTracing bool EnableSentry bool EnableLinting bool EnableUsageReport bool DevMode bool CollectorURL string PluginConfigFile string GlobalConfigFile string // contains filtered or unexported fields }
func NewGatewayDApp ¶ added in v0.10.2
func NewGatewayDApp(cmd *cobra.Command) *GatewayDApp
NewGatewayDApp creates a new GatewayDApp instance.
Click to show internal directories.
Click to hide internal directories.