Documentation ¶
Index ¶
- Constants
- type ArgoUserService
- type ArgoUserServiceImpl
- func (impl *ArgoUserServiceImpl) GetACDContext(ctx context.Context) (acdContext context.Context, err error)
- func (impl *ArgoUserServiceImpl) GetLatestDevtronArgoCdUserToken() (string, error)
- func (impl *ArgoUserServiceImpl) GetOrUpdateArgoCdUserDetail() string
- func (impl *ArgoUserServiceImpl) SetAcdTokenInContext(ctx context.Context) (context.Context, error)
- func (impl *ArgoUserServiceImpl) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail() string
- type HelmUserServiceImpl
- func (impl *HelmUserServiceImpl) GetACDContext(context.Context) (acdContext context.Context, err error)
- func (impl *HelmUserServiceImpl) GetLatestDevtronArgoCdUserToken() (string, error)
- func (impl *HelmUserServiceImpl) GetOrUpdateArgoCdUserDetail() string
- func (impl *HelmUserServiceImpl) SetAcdTokenInContext(ctx context.Context) (context.Context, error)
- func (impl *HelmUserServiceImpl) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail() string
Constants ¶
View Source
const ( DEVTRON_USER = "devtron" DEVTRONCD_NAMESPACE = "devtroncd" ARGOCD_CM = "argocd-cm" ARGOCD_SECRET = "argocd-secret" ARGO_USER_APIKEY_CAPABILITY = "apiKey" ARGO_USER_LOGIN_CAPABILITY = "login" DEVTRON_ARGOCD_USERNAME_KEY = "DEVTRON_ACD_USER_NAME" DEVTRON_ARGOCD_USER_PASSWORD_KEY = "DEVTRON_ACD_USER_PASSWORD" DEVTRON_ARGOCD_TOKEN_KEY = "DEVTRON_ACD_TOKEN" DEVTRON_CM = "devtron-cm" DEVTRON_SECRET = "devtron-secret" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgoUserService ¶
type ArgoUserService interface { GetLatestDevtronArgoCdUserToken() (string, error) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail() string GetOrUpdateArgoCdUserDetail() string GetACDContext(ctx context.Context) (acdContext context.Context, err error) SetAcdTokenInContext(ctx context.Context) (context.Context, error) }
type ArgoUserServiceImpl ¶
type ArgoUserServiceImpl struct {
// contains filtered or unexported fields
}
func NewArgoUserServiceImpl ¶
func NewArgoUserServiceImpl(Logger *zap.SugaredLogger, clusterService cluster.ClusterService, envVariables *util2.EnvironmentVariables, runTimeConfig *k8s.RuntimeConfig, argoCDConnectionManager connection.ArgoCDConnectionManager, versionService argocdServer.VersionService, k8sUtil *k8s.K8sServiceImpl, gitOpsConfigReadService config.GitOpsConfigReadService, moduleService module.ModuleService) (*ArgoUserServiceImpl, error)
func (*ArgoUserServiceImpl) GetACDContext ¶ added in v0.7.1
func (*ArgoUserServiceImpl) GetLatestDevtronArgoCdUserToken ¶
func (impl *ArgoUserServiceImpl) GetLatestDevtronArgoCdUserToken() (string, error)
note: this function also called for no gitops case, where apps are installed via helm
func (*ArgoUserServiceImpl) GetOrUpdateArgoCdUserDetail ¶ added in v0.5.3
func (impl *ArgoUserServiceImpl) GetOrUpdateArgoCdUserDetail() string
func (*ArgoUserServiceImpl) SetAcdTokenInContext ¶ added in v0.6.29
func (*ArgoUserServiceImpl) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail ¶ added in v0.5.3
func (impl *ArgoUserServiceImpl) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail() string
type HelmUserServiceImpl ¶
type HelmUserServiceImpl struct {
// contains filtered or unexported fields
}
TODO : remove this service completely
func NewHelmUserServiceImpl ¶
func NewHelmUserServiceImpl(Logger *zap.SugaredLogger) (*HelmUserServiceImpl, error)
func (*HelmUserServiceImpl) GetACDContext ¶ added in v0.7.1
func (*HelmUserServiceImpl) GetLatestDevtronArgoCdUserToken ¶
func (impl *HelmUserServiceImpl) GetLatestDevtronArgoCdUserToken() (string, error)
func (*HelmUserServiceImpl) GetOrUpdateArgoCdUserDetail ¶ added in v0.5.3
func (impl *HelmUserServiceImpl) GetOrUpdateArgoCdUserDetail() string
func (*HelmUserServiceImpl) SetAcdTokenInContext ¶ added in v0.6.29
func (*HelmUserServiceImpl) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail ¶ added in v0.5.3
func (impl *HelmUserServiceImpl) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail() string
Click to show internal directories.
Click to hide internal directories.