repoCredsK8sClient

package
v1.2.1 Latest Latest
Warning

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

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

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 RepositoryCreds

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

type RepositorySecretImpl

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

func NewRepositorySecret

func NewRepositorySecret(
	logger *zap.SugaredLogger,
	K8sService k8s.K8sService,
	clusterService cluster.ClusterService,
	acdAuthConfig *util2.ACDAuthConfig,
) *RepositorySecretImpl

func (*RepositorySecretImpl) AddChartRepository

func (impl *RepositorySecretImpl) AddChartRepository(request bean.ChartRepositoryAddRequest) error

func (*RepositorySecretImpl) AddOrUpdateOCIRegistry

func (impl *RepositorySecretImpl) AddOrUpdateOCIRegistry(username, password string, uniqueId int, registryUrl, repo string, isPublic bool) error

func (*RepositorySecretImpl) CreateSecretDataForHelmChart

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

Private helm charts credentials are saved as secrets

func (*RepositorySecretImpl) DeleteChartRepository

func (impl *RepositorySecretImpl) DeleteChartRepository(name, url string) error

func (*RepositorySecretImpl) DeleteChartSecret

func (impl *RepositorySecretImpl) DeleteChartSecret(secretName string) error

func (*RepositorySecretImpl) DeleteOCIRegistry

func (impl *RepositorySecretImpl) DeleteOCIRegistry(registryURL, repo string, ociRegistryId int) error

func (*RepositorySecretImpl) UpdateChartRepository

func (impl *RepositorySecretImpl) UpdateChartRepository(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