gitops

package
v0.0.0-...-c85924f Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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"`
	AzureProjectName string `json:"azureProjectName"`
	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

type KeyDto

type KeyDto struct {
	Name string `json:"name,omitempty"`
	Key  string `json:"key,omitempty"`
}

type RepositoryCredentialsDto

type RepositoryCredentialsDto struct {
	Url            string  `json:"url,omitempty"`
	UsernameSecret *KeyDto `json:"usernameSecret,omitempty"`
	PasswordSecret *KeyDto `json:"passwordSecret,omitempty"`
}

Jump to

Keyboard shortcuts

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