{"modulePath":"github.com/devtron-labs/devtron","version":"v1.8.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package commonService\n\n## Types\n\n```go\ntype AppChecklist struct {\n\tGitOps      int `json:\"gitOps,omitempty\"`\n\tProject     int `json:\"project\"`\n\tGit         int `json:\"git\"`\n\tEnvironment int `json:\"environment\"`\n\tDocker      int `json:\"docker\"`\n\tHostUrl     int `json:\"hostUrl\"`\n}\n```\n\n```go\ntype ChartChecklist struct {\n\tGitOps      int `json:\"gitOps,omitempty\"`\n\tProject     int `json:\"project\"`\n\tEnvironment int `json:\"environment\"`\n}\n```\n\n```go\ntype CommonBaseServiceImpl struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCommonBaseServiceImpl(logger *zap.SugaredLogger, envVariables *util.EnvironmentVariables,\n\tmoduleReadService moduleRead.ModuleReadService) *CommonBaseServiceImpl\n```\n\n```go\nfunc (impl *CommonBaseServiceImpl) EnvironmentVariableList() (*EnvironmentVariableList, error)\n```\n\n```go\nfunc (impl *CommonBaseServiceImpl) FetchLatestChartVersion(appId int, envId int) (string, error)\n```\n\n```go\nfunc (impl *CommonBaseServiceImpl) GlobalChecklist() (*GlobalChecklist, error)\n```\n\n```go\ntype CommonService interface {\n\tFetchLatestChartVersion(appId int, envId int) (string, error)\n\tGlobalChecklist() (*GlobalChecklist, error)\n\tEnvironmentVariableList() (*EnvironmentVariableList, error)\n}\n```\n\n```go\ntype CommonServiceImpl struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCommonServiceImpl(logger *zap.SugaredLogger,\n\tchartRepository chartRepoRepository.ChartRepository,\n\tenvironmentConfigRepository chartConfig.EnvConfigOverrideRepository,\n\tdockerReg dockerRegistryRepository.DockerArtifactStoreRepository,\n\tattributeRepo repository.AttributesRepository,\n\tenvironmentRepository repository3.EnvironmentRepository,\n\tappRepository app.AppRepository,\n\tgitOpsConfigReadService config.GitOpsConfigReadService,\n\tgitProviderReadService read.GitProviderReadService,\n\tenvConfigOverrideReadService read3.EnvConfigOverrideService,\n\tcommonBaseServiceImpl *CommonBaseServiceImpl,\n\tteamReadService read2.TeamReadService) *CommonServiceImpl\n```\n\n```go\nfunc (impl *CommonServiceImpl) EnvironmentVariableList() (*EnvironmentVariableList, error)\n```\n\n```go\nfunc (impl *CommonServiceImpl) FetchLatestChartVersion(appId int, envId int) (string, error)\n```\n\n```go\nfunc (impl *CommonServiceImpl) GlobalChecklist() (*GlobalChecklist, error)\n```\n\n```go\ntype EnvironmentVariableList struct {\n\tFeatureGitOpsFlags *FeatureGitOpsVariables `json:\"featureGitOpsFlags\"`\n\tEnvironmentVariableListEnt\n}\n```\n\n```go\ntype EnvironmentVariableListEnt struct {\n\tIsAirGapEnvironment bool `json:\"isAirGapEnvironment\"`\n}\n```\n\n```go\ntype FeatureGitOpsVariables struct {\n\tIsFeatureGitOpsEnabled            bool `json:\"isFeatureGitOpsEnabled\"`\n\tIsFeatureUserDefinedGitOpsEnabled bool `json:\"isFeatureUserDefinedGitOpsEnabled\"`\n\tIsFeatureArgoCdMigrationEnabled   bool `json:\"isFeatureArgoCdMigrationEnabled\"`\n}\n```\n\n```go\ntype GlobalChecklist struct {\n\tAppChecklist   *AppChecklist   `json:\"appChecklist\"`\n\tChartChecklist *ChartChecklist `json:\"chartChecklist\"`\n\tIsAppCreated   bool            `json:\"isAppCreated\"`\n\tUserId         int32           `json:\"-\"`\n}\n```\n\n","path":"github.com/devtron-labs/devtron/pkg/commonService","name":"commonService","synopsis":"","isRedistributable":true}
