Help us shape the future of Go! Take the 2026 Go Developer Survey

chartRepo

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 27 Imported by: 2

Documentation

Index

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 AppSyncConfig struct {
	DbConfig                         sql.Config
	DockerImage                      string
	AppSyncJobResourcesObj           string
	ChartProviderConfig              *ChartProviderConfig
	AppSyncServiceAccount            string
	ParallelismLimitForTagProcessing int
	AppSyncJobShutDownWaitDuration   int
}

type ChartProviderConfig added in v0.6.23

type ChartProviderConfig struct {
	ChartProviderId string
	IsOCIRegistry   bool
}

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                constants.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
}

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,
	aCDAuthConfig *util2.ACDAuthConfig, client *http.Client, serverEnvConfig *serverEnvConfig.ServerEnvConfig,
	argoClientWrapperService argocdServer.ArgoClientWrapperService,
	clusterReadService read.ClusterReadService) *ChartRepositoryServiceImpl

func (*ChartRepositoryServiceImpl) CreateChartRepo

func (impl *ChartRepositoryServiceImpl) CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)

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