Documentation ¶
Index ¶
- Constants
- type AcdConfigMapRepositoriesDto
- type ChartRepoDto
- type ChartRepositoryService
- type ChartRepositoryServiceImpl
- func (impl *ChartRepositoryServiceImpl) CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)
- func (impl *ChartRepositoryServiceImpl) DeleteChartRepo(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) UpdateChartRepo(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 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:"-"` }
type ChartRepositoryService ¶
type ChartRepositoryService interface { CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error) UpdateChartRepo(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 DeleteChartRepo(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) *ChartRepositoryServiceImpl
func (*ChartRepositoryServiceImpl) CreateChartRepo ¶
func (impl *ChartRepositoryServiceImpl) CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)
func (*ChartRepositoryServiceImpl) DeleteChartRepo ¶
func (impl *ChartRepositoryServiceImpl) DeleteChartRepo(request *ChartRepoDto) error
func (*ChartRepositoryServiceImpl) GetChartRepoById ¶
func (impl *ChartRepositoryServiceImpl) GetChartRepoById(id int) (*ChartRepoDto, error)
func (*ChartRepositoryServiceImpl) GetChartRepoByName ¶
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) UpdateChartRepo ¶
func (impl *ChartRepositoryServiceImpl) UpdateChartRepo(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.