commonService

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppChecklist

type AppChecklist struct {
	GitOps      int `json:"gitOps"`
	Project     int `json:"project"`
	Git         int `json:"git"`
	Environment int `json:"environment"`
	Docker      int `json:"docker"`
	HostUrl     int `json:"hostUrl"`
}

type ChartChecklist

type ChartChecklist struct {
	GitOps      int `json:"gitOps"`
	Project     int `json:"project"`
	Environment int `json:"environment"`
}

type CommonService

type CommonService interface {
	FetchLatestChart(appId int, envId int) (*chartConfig.Chart, error)
	GlobalChecklist() (*GlobalChecklist, error)
}

type CommonServiceImpl

type CommonServiceImpl struct {
	// contains filtered or unexported fields
}

func NewCommonServiceImpl

func NewCommonServiceImpl(logger *zap.SugaredLogger,
	chartRepository chartConfig.ChartRepository,
	environmentConfigRepository chartConfig.EnvConfigOverrideRepository,
	gitOpsRepository repository.GitOpsConfigRepository,
	dockerReg repository.DockerArtifactStoreRepository,
	attributeRepo repository.AttributesRepository,
	gitProviderRepository repository.GitProviderRepository,
	environmentRepository cluster.EnvironmentRepository, teamRepository team.TeamRepository,
	appRepository pipelineConfig.AppRepository) *CommonServiceImpl

func (*CommonServiceImpl) FetchLatestChart

func (impl *CommonServiceImpl) FetchLatestChart(appId int, envId int) (*chartConfig.Chart, error)

func (*CommonServiceImpl) GlobalChecklist

func (impl *CommonServiceImpl) GlobalChecklist() (*GlobalChecklist, error)

type GlobalChecklist

type GlobalChecklist struct {
	AppChecklist   *AppChecklist   `json:"appChecklist"`
	ChartChecklist *ChartChecklist `json:"chartChecklist"`
	IsAppCreated   bool            `json:"isAppCreated"`
	UserId         int32           `json:"-"`
}

Jump to

Keyboard shortcuts

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