cmd

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: AGPL-3.0 Imports: 63 Imported by: 0

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.

func Execute

func Execute()

Types

type Extension added in v0.8.11

type Extension string

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.

type Location added in v0.8.11

type Location string

type Source added in v0.8.11

type Source string

Jump to

Keyboard shortcuts

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