Documentation ¶
Index ¶
- Constants
- type AcdConfigMapRepositoriesDto
- type AppSyncConfig
- type ChartProviderConfig
- type ChartRepoDto
- type ChartRepoWithIsEditableDto
- type ChartRepositoryService
- type ChartRepositoryServiceImpl
- func (impl *ChartRepositoryServiceImpl) CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)
- func (impl *ChartRepositoryServiceImpl) CreateSecretDataForHelmChart(request *ChartRepoDto, isPrivateChart bool) (secretData map[string]string)
- func (impl *ChartRepositoryServiceImpl) DeleteChartRepo(request *ChartRepoDto) error
- func (impl *ChartRepositoryServiceImpl) DeleteChartSecret(secretName string) error
- func (impl *ChartRepositoryServiceImpl) GetChartRepoById(id int) (*ChartRepoDto, error)
- func (impl *ChartRepositoryServiceImpl) GetChartRepoByName(name string) (*ChartRepoDto, error)
- func (impl *ChartRepositoryServiceImpl) GetChartRepoList() ([]*ChartRepoWithIsEditableDto, error)
- func (impl *ChartRepositoryServiceImpl) GetChartRepoListMin() ([]*ChartRepoDto, error)
- func (impl *ChartRepositoryServiceImpl) TriggerChartSyncManual(chartProviderConfig *ChartProviderConfig) error
- func (impl *ChartRepositoryServiceImpl) UpdateData(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 ( LABEL string = "argocd.argoproj.io/secret-type" NAME string = "name" USERNAME string = "username" PASSWORD string = "password" TYPE string = "type" URL string = "url" INSECRUE string = "insecure" )
secret keys
View Source
const ( HELM string = "helm" REPOSITORY string = "repository" )
secret values
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 ChartProviderConfig ¶ added in v0.6.23
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:"-"` AllowInsecureConnection bool `json:"allow_insecure_connection"` }
type ChartRepoWithIsEditableDto ¶ added in v0.6.17
type ChartRepoWithIsEditableDto struct { ChartRepoDto IsEditable bool `json:"isEditable"` }
type ChartRepositoryService ¶
type ChartRepositoryService interface { CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error) UpdateData(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error) GetChartRepoById(id int) (*ChartRepoDto, error) GetChartRepoByName(name string) (*ChartRepoDto, error) GetChartRepoList() ([]*ChartRepoWithIsEditableDto, error) GetChartRepoListMin() ([]*ChartRepoDto, error) ValidateChartRepo(request *ChartRepoDto) *DetailedErrorHelmRepoValidation ValidateAndCreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error, *DetailedErrorHelmRepoValidation) ValidateAndUpdateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error, *DetailedErrorHelmRepoValidation) TriggerChartSyncManual(chartProviderConfig *ChartProviderConfig) error DeleteChartRepo(request *ChartRepoDto) error DeleteChartSecret(secretName string) error }
type ChartRepositoryServiceImpl ¶
type ChartRepositoryServiceImpl struct { K8sUtil *util3.K8sServiceImpl // contains filtered or unexported fields }
func NewChartRepositoryServiceImpl ¶
func NewChartRepositoryServiceImpl(logger *zap.SugaredLogger, repoRepository chartRepoRepository.ChartRepoRepository, K8sUtil *util3.K8sServiceImpl, 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) CreateSecretDataForHelmChart ¶ added in v0.6.18
func (impl *ChartRepositoryServiceImpl) CreateSecretDataForHelmChart(request *ChartRepoDto, isPrivateChart bool) (secretData map[string]string)
Private helm charts credentials are saved as secrets
func (*ChartRepositoryServiceImpl) DeleteChartRepo ¶
func (impl *ChartRepositoryServiceImpl) DeleteChartRepo(request *ChartRepoDto) error
DeleteChartRepo update the active state from DB and modify the argo-cm with repo URL to null in case of public chart and delete secret in case of private chart
func (*ChartRepositoryServiceImpl) DeleteChartSecret ¶ added in v0.6.17
func (impl *ChartRepositoryServiceImpl) DeleteChartSecret(secretName string) error
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() ([]*ChartRepoWithIsEditableDto, error)
func (*ChartRepositoryServiceImpl) GetChartRepoListMin ¶ added in v0.6.17
func (impl *ChartRepositoryServiceImpl) GetChartRepoListMin() ([]*ChartRepoDto, error)
func (*ChartRepositoryServiceImpl) TriggerChartSyncManual ¶
func (impl *ChartRepositoryServiceImpl) TriggerChartSyncManual(chartProviderConfig *ChartProviderConfig) error
func (*ChartRepositoryServiceImpl) UpdateData ¶ added in v0.6.17
func (impl *ChartRepositoryServiceImpl) UpdateData(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.