repoCredsK8sClient

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostAndFullRepoPath

func GetHostAndFullRepoPath(url string, repo string) (string, string, error)

Types

type RepositoryCredsK8sClient added in v1.2.2

type RepositoryCredsK8sClient interface {
	AddOrUpdateOCIRegistry(argoK8sConfig *argoApplication.ArgoK8sConfig, username, password string, uniqueId int, registryUrl, repo string, isPublic bool) error
	DeleteOCIRegistry(argoK8sConfig *argoApplication.ArgoK8sConfig, registryURL, repo string, ociRegistryId int) error
	AddChartRepository(argoK8sConfig *argoApplication.ArgoK8sConfig, request bean.ChartRepositoryAddRequest) error
	UpdateChartRepository(argoK8sConfig *argoApplication.ArgoK8sConfig, request bean.ChartRepositoryUpdateRequest) error
	DeleteChartRepository(argoK8sConfig *argoApplication.ArgoK8sConfig, name, url string) error
}

type RepositoryCredsK8sClientImpl added in v1.2.2

type RepositoryCredsK8sClientImpl struct {
	K8sService k8s.K8sService
	// contains filtered or unexported fields
}

func NewRepositoryCredsK8sClientImpl added in v1.2.2

func NewRepositoryCredsK8sClientImpl(
	logger *zap.SugaredLogger,
	K8sService k8s.K8sService,
) *RepositoryCredsK8sClientImpl

func (*RepositoryCredsK8sClientImpl) AddChartRepository added in v1.2.2

func (impl *RepositoryCredsK8sClientImpl) AddChartRepository(argoK8sConfig *argoApplication.ArgoK8sConfig, request bean.ChartRepositoryAddRequest) error

func (*RepositoryCredsK8sClientImpl) AddOrUpdateOCIRegistry added in v1.2.2

func (impl *RepositoryCredsK8sClientImpl) AddOrUpdateOCIRegistry(argoK8sConfig *argoApplication.ArgoK8sConfig, username, password string, uniqueId int, registryUrl, repo string, isPublic bool) error

func (*RepositoryCredsK8sClientImpl) CreateSecretDataForHelmChart added in v1.2.2

func (impl *RepositoryCredsK8sClientImpl) CreateSecretDataForHelmChart(name, username, password, repoURL string, allowInsecureConnection, isPrivateChart bool) (secretData map[string]string)

Private helm charts credentials are saved as secrets

func (*RepositoryCredsK8sClientImpl) DeleteChartRepository added in v1.2.2

func (impl *RepositoryCredsK8sClientImpl) DeleteChartRepository(argoK8sConfig *argoApplication.ArgoK8sConfig, name, url string) error

func (*RepositoryCredsK8sClientImpl) DeleteChartSecret added in v1.2.2

func (impl *RepositoryCredsK8sClientImpl) DeleteChartSecret(argoK8sConfig *argoApplication.ArgoK8sConfig, secretName string) error

func (*RepositoryCredsK8sClientImpl) DeleteOCIRegistry added in v1.2.2

func (impl *RepositoryCredsK8sClientImpl) DeleteOCIRegistry(argoK8sConfig *argoApplication.ArgoK8sConfig, registryURL, repo string, ociRegistryId int) error

func (*RepositoryCredsK8sClientImpl) UpdateChartRepository added in v1.2.2

func (impl *RepositoryCredsK8sClientImpl) UpdateChartRepository(argoK8sConfig *argoApplication.ArgoK8sConfig, request bean.ChartRepositoryUpdateRequest) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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