Documentation ¶
Index ¶
- Constants
- type GitOpsConfigDto
- type GitOpsConfigService
- type GitOpsConfigServiceImpl
- func (impl *GitOpsConfigServiceImpl) CreateGitOpsConfig(request *GitOpsConfigDto) (*GitOpsConfigDto, error)
- func (impl *GitOpsConfigServiceImpl) GetAllGitOpsConfig() ([]*GitOpsConfigDto, error)
- func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigActive() (*GitOpsConfigDto, error)
- func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigById(id int) (*GitOpsConfigDto, error)
- func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigByProvider(provider string) (*GitOpsConfigDto, error)
- func (impl *GitOpsConfigServiceImpl) UpdateGitOpsConfig(request *GitOpsConfigDto) error
- type KeyDto
- type RepositoryCredentialsDto
Constants ¶
View Source
const GitOpsSecretName = "devtron-gitops-secret"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitOpsConfigDto ¶
type GitOpsConfigDto struct { Id int `json:"id,omitempty"` Provider string `json:"provider"` Username string `json:"username"` Token string `json:"token"` GitLabGroupId string `json:"gitLabGroupId"` GitHubOrgId string `json:"gitHubOrgId"` Host string `json:"host"` Active bool `json:"active"` UserId int32 `json:"-"` }
type GitOpsConfigService ¶
type GitOpsConfigService interface { CreateGitOpsConfig(config *GitOpsConfigDto) (*GitOpsConfigDto, error) UpdateGitOpsConfig(config *GitOpsConfigDto) error GetGitOpsConfigById(id int) (*GitOpsConfigDto, error) GetAllGitOpsConfig() ([]*GitOpsConfigDto, error) GetGitOpsConfigByProvider(provider string) (*GitOpsConfigDto, error) GetGitOpsConfigActive() (*GitOpsConfigDto, error) }
type GitOpsConfigServiceImpl ¶
type GitOpsConfigServiceImpl struct { K8sUtil *util.K8sUtil // contains filtered or unexported fields }
func NewGitOpsConfigServiceImpl ¶
func NewGitOpsConfigServiceImpl(Logger *zap.SugaredLogger, ciHandler pipeline.CiHandler, gitOpsRepository repository.GitOpsConfigRepository, K8sUtil *util.K8sUtil, aCDAuthConfig *user.ACDAuthConfig, clusterService cluster.ClusterService, envService cluster.EnvironmentService, versionService argocdServer.VersionService, gitFactory *util.GitFactory) *GitOpsConfigServiceImpl
func (*GitOpsConfigServiceImpl) CreateGitOpsConfig ¶
func (impl *GitOpsConfigServiceImpl) CreateGitOpsConfig(request *GitOpsConfigDto) (*GitOpsConfigDto, error)
func (*GitOpsConfigServiceImpl) GetAllGitOpsConfig ¶
func (impl *GitOpsConfigServiceImpl) GetAllGitOpsConfig() ([]*GitOpsConfigDto, error)
func (*GitOpsConfigServiceImpl) GetGitOpsConfigActive ¶
func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigActive() (*GitOpsConfigDto, error)
func (*GitOpsConfigServiceImpl) GetGitOpsConfigById ¶
func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigById(id int) (*GitOpsConfigDto, error)
func (*GitOpsConfigServiceImpl) GetGitOpsConfigByProvider ¶
func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigByProvider(provider string) (*GitOpsConfigDto, error)
func (*GitOpsConfigServiceImpl) UpdateGitOpsConfig ¶
func (impl *GitOpsConfigServiceImpl) UpdateGitOpsConfig(request *GitOpsConfigDto) error
Click to show internal directories.
Click to hide internal directories.