{"modulePath":"github.com/utmstack/UTMStack/plugins/gcp","version":"v0.0.0-20261126134315-738f65073a40","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Constants\n\n```go\nconst (\n\tCHECKCON string = \"https://pubsub.googleapis.com\"\n)\n```\ndefaultTenant is the fallback used only when a connector instance's config has no tenantId (every on-prem/single-tenant install today) — matches the UUID hardcoded everywhere else in this codebase for that same case. A SaaS tenant's own connector config always carries a real tenantId instead.\n\n## Functions\n\n```go\nfunc ConnectionChecker(url string) error\n```\n\n```go\nfunc GetConfigUpdateChannel() \u003c-chan *ConfigurationSection\n```\nGetConfigUpdateChannel returns the channel that receives config updates.\n\n```go\nfunc StartConfigurationSystem()\n```\nStartConfigurationSystem starts the file watcher. Blocks until configured, then runs indefinitely.\n\n## Types\n\n```go\ntype Cipher struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCipher(key string) *Cipher\n```\n\n```go\nfunc (c *Cipher) Decrypt(crypt string) (string, error)\n```\n\n```go\ntype Configuration struct {\n\tConfKey   string\n\tConfValue string\n}\n```\n\n```go\ntype ConfigurationSection struct {\n\tModuleActive bool\n\tModuleGroups []*ModuleGroup\n}\n```\n\n```go\nfunc GetConfig() *ConfigurationSection\n```\nGetConfig returns the current configuration (nil-safe).\n\n```go\ntype GroupModule struct {\n\tGroupName      string\n\tTenantId       string\n\tJsonKey        string\n\tProjectID      string\n\tSubscriptionID string\n\tCTX            context.Context\n\tCancel         context.CancelFunc\n}\n```\n\n```go\nfunc (g *GroupModule) PullLogs()\n```\n\n```go\ntype GroupModuleManager struct {\n\tGroups map[string]GroupModule\n}\n```\n\n```go\nfunc (m *GroupModuleManager) SyncConfigs()\n```\n\n```go\ntype ModuleGroup struct {\n\tId                        int32\n\tGroupName                 string\n\tTenantId                  string\n\tModuleGroupConfigurations []*Configuration\n}\n```\n\n```go\nfunc (g *ModuleGroup) Key() string\n```\nKey identifies a group across tenants and across reloads. GroupName is unique only inside its own tenant, and Id is the position in the file — it shifts as soon as any tenant adds or removes a group, which would restart collectors that did not change and hand one tenant's pagination cursor to another.\n\n","path":"github.com/utmstack/UTMStack/plugins/gcp","name":"main","synopsis":"","isRedistributable":true}
