Documentation ¶
Index ¶
- Constants
- type AcdConfigMapRepositoriesDto
- type AppSyncConfig
- type ChartRepoDto
- type ChartRepositoryService
- type ChartRepositoryServiceImpl
- func (impl *ChartRepositoryServiceImpl) CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)
- func (impl *ChartRepositoryServiceImpl) DeleteChartRepoFromArgocdCM(request *ChartRepoDto) error
- func (impl *ChartRepositoryServiceImpl) GetChartRepoById(id int) (*ChartRepoDto, error)
- func (impl *ChartRepositoryServiceImpl) GetChartRepoByName(name string) (*ChartRepoDto, error)
- func (impl *ChartRepositoryServiceImpl) GetChartRepoList() ([]*ChartRepoDto, error)
- func (impl *ChartRepositoryServiceImpl) TriggerChartSyncManual() error
- func (impl *ChartRepositoryServiceImpl) UpdateDataInArgocdCm(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)
- func (impl *ChartRepositoryServiceImpl) ValidateAndCreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error, *DetailedErrorHelmRepoValidation)
- func (impl *ChartRepositoryServiceImpl) ValidateAndUpdateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error, *DetailedErrorHelmRepoValidation)
- func (impl *ChartRepositoryServiceImpl) ValidateChartRepo(request *ChartRepoDto) *DetailedErrorHelmRepoValidation
- type DetailedErrorHelmRepoValidation
- type KeyDto
Constants ¶
View Source
const ValidationSuccessMsg = "Configurations are validated successfully"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcdConfigMapRepositoriesDto ¶
type AcdConfigMapRepositoriesDto struct { Type string `json:"type,omitempty"` Name string `json:"name,omitempty"` Url string `json:"url,omitempty"` UsernameSecret *KeyDto `json:"usernameSecret,omitempty"` PasswordSecret *KeyDto `json:"passwordSecret,omitempty"` CaSecret *KeyDto `json:"caSecret,omitempty"` CertSecret *KeyDto `json:"certSecret,omitempty"` KeySecret *KeyDto `json:"keySecret,omitempty"` }
type AppSyncConfig ¶ added in v0.4.28
type ChartRepoDto ¶
type ChartRepoDto struct { Id int `json:"id,omitempty" validate:"number"` Name string `json:"name,omitempty" validate:"required"` Url string `json:"url,omitempty"` UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` SshKey string `json:"sshKey,omitempty"` AccessToken string `json:"accessToken,omitempty"` AuthMode repository.AuthMode `json:"authMode,omitempty" validate:"required"` Active bool `json:"active"` Default bool `json:"default"` UserId int32 `json:"-"` IsEditable bool `json:"isEditable"` }
type ChartRepositoryService ¶
type ChartRepositoryService interface { CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error) UpdateDataInArgocdCm(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error) GetChartRepoById(id int) (*ChartRepoDto, error) GetChartRepoByName(name string) (*ChartRepoDto, error) GetChartRepoList() ([]*ChartRepoDto, error) ValidateChartRepo(request *ChartRepoDto) *DetailedErrorHelmRepoValidation ValidateAndCreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error, *DetailedErrorHelmRepoValidation) ValidateAndUpdateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error, *DetailedErrorHelmRepoValidation) TriggerChartSyncManual() error DeleteChartRepoFromArgocdCM(request *ChartRepoDto) error }
type ChartRepositoryServiceImpl ¶
type ChartRepositoryServiceImpl struct { K8sUtil *util.K8sUtil // contains filtered or unexported fields }
func NewChartRepositoryServiceImpl ¶
func NewChartRepositoryServiceImpl(logger *zap.SugaredLogger, repoRepository chartRepoRepository.ChartRepoRepository, K8sUtil *util.K8sUtil, clusterService cluster.ClusterService, aCDAuthConfig *util2.ACDAuthConfig, client *http.Client, serverEnvConfig *serverEnvConfig.ServerEnvConfig) *ChartRepositoryServiceImpl
func (*ChartRepositoryServiceImpl) CreateChartRepo ¶
func (impl *ChartRepositoryServiceImpl) CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)
func (*ChartRepositoryServiceImpl) DeleteChartRepoFromArgocdCM ¶ added in v0.6.15
func (impl *ChartRepositoryServiceImpl) DeleteChartRepoFromArgocdCM(request *ChartRepoDto) error
DeleteChartRepoFromArgocdCM update the active state from DB and modify the argo-cm with repo URL to null
func (*ChartRepositoryServiceImpl) GetChartRepoById ¶
func (impl *ChartRepositoryServiceImpl) GetChartRepoById(id int) (*ChartRepoDto, error)
func (*ChartRepositoryServiceImpl) GetChartRepoByName ¶ added in v0.4.24
func (impl *ChartRepositoryServiceImpl) GetChartRepoByName(name string) (*ChartRepoDto, error)
func (*ChartRepositoryServiceImpl) GetChartRepoList ¶
func (impl *ChartRepositoryServiceImpl) GetChartRepoList() ([]*ChartRepoDto, error)
func (*ChartRepositoryServiceImpl) TriggerChartSyncManual ¶
func (impl *ChartRepositoryServiceImpl) TriggerChartSyncManual() error
func (*ChartRepositoryServiceImpl) UpdateDataInArgocdCm ¶ added in v0.6.15
func (impl *ChartRepositoryServiceImpl) UpdateDataInArgocdCm(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)
func (*ChartRepositoryServiceImpl) ValidateAndCreateChartRepo ¶
func (impl *ChartRepositoryServiceImpl) ValidateAndCreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error, *DetailedErrorHelmRepoValidation)
func (*ChartRepositoryServiceImpl) ValidateAndUpdateChartRepo ¶
func (impl *ChartRepositoryServiceImpl) ValidateAndUpdateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error, *DetailedErrorHelmRepoValidation)
func (*ChartRepositoryServiceImpl) ValidateChartRepo ¶
func (impl *ChartRepositoryServiceImpl) ValidateChartRepo(request *ChartRepoDto) *DetailedErrorHelmRepoValidation
Click to show internal directories.
Click to hide internal directories.