chartRepo

package
v0.6.15 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

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 AppSyncConfig struct {
	DbConfig               sql.Config
	DockerImage            string
	AppSyncJobResourcesObj string
}

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 (*ChartRepositoryServiceImpl) ValidateAndUpdateChartRepo

func (*ChartRepositoryServiceImpl) ValidateChartRepo

func (impl *ChartRepositoryServiceImpl) ValidateChartRepo(request *ChartRepoDto) *DetailedErrorHelmRepoValidation

type DetailedErrorHelmRepoValidation

type DetailedErrorHelmRepoValidation struct {
	CustomErrMsg string `json:"customErrMsg"`
	ActualErrMsg string `json:"actualErrMsg"`
}

type KeyDto

type KeyDto struct {
	Name string `json:"name,omitempty"`
	Key  string `json:"key,omitempty"`
	Url  string `json:"url,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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