Help us shape the future of Go! Take the 2026 Go Developer Survey

deploymentGroup

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 15 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CiMaterialDTO

type CiMaterialDTO struct {
	Name        string `json:"name"`
	SourceType  string `json:"type"`
	SourceValue string `json:"value"`
}

type CiPipelineResponseForDG

type CiPipelineResponseForDG struct {
	Name         string             `json:"name"`
	CiPipelineId int                `json:"ciPipelineId"`
	Connections  int                `json:"connections"`
	Repositories []*bean.CiMaterial `json:"repositories"`
}

type DGParentCiResponse

type DGParentCiResponse struct {
	ParentCis     []*CiPipelineResponseForDG
	ParentCiForDg *DeploymentGroupDTO
}

type DeploymentGroupDTO

type DeploymentGroupDTO struct {
	Id              int             `json:"id"`
	Name            string          `json:"name"`
	AppCount        int             `json:"appCount"`
	NoOfApps        string          `json:"noOfApps"`
	EnvironmentId   int             `json:"environmentId"`
	CiPipelineId    int             `json:"ciPipelineId"`
	CiPipelineName  string          `json:"ciPipelineName"`
	CiMaterialDTOs  []CiMaterialDTO `json:"ciMaterialDTOs"`
	EnvironmentName string          `json:"environmentName"`
}

type DeploymentGroupHibernateRequest

type DeploymentGroupHibernateRequest struct {
	DeploymentGroupId int   `json:"deploymentGroupId"`
	UserId            int32 `json:"userId"`
}

type DeploymentGroupRequest

type DeploymentGroupRequest struct {
	Id            int    `json:"id"`
	Name          string `json:"name"`
	CiPipelineId  int    `json:"ciPipelineId"`
	EnvironmentId int    `json:"environmentId"`
	AppIds        []int  `json:"appIds"`
	UserId        int32  `json:"-"`
}

type DeploymentGroupService

type DeploymentGroupService interface {
	CreateDeploymentGroup(deploymentGroupRequest *DeploymentGroupRequest) (*DeploymentGroupRequest, error)
	FetchParentCiForDG(deploymentGroupId int) ([]*CiPipelineResponseForDG, error)
	FetchEnvApplicationsForDG(ciPipelineId int) ([]*EnvironmentAppListForDG, error)
	FetchAllDeploymentGroups() ([]DeploymentGroupDTO, error)
	DeleteDeploymentGroup(deploymentGroupId int) (bool, error)
	FindById(id int) (*DeploymentGroupDTO, error)
	TriggerReleaseForDeploymentGroup(triggerRequest *DeploymentGroupTriggerRequest) (interface{}, error)
	UpdateDeploymentGroup(deploymentGroupRequest *DeploymentGroupRequest) (*DeploymentGroupRequest, error)
	GetArtifactsByCiPipeline(ciPipelineId int) (bean.CiArtifactResponse, error)
	GetDeploymentGroupById(deploymentGroupId int) (*DeploymentGroupRequest, error)
}

type DeploymentGroupServiceImpl

type DeploymentGroupServiceImpl struct {
	// contains filtered or unexported fields
}

func NewDeploymentGroupServiceImpl

func NewDeploymentGroupServiceImpl(appRepository app.AppRepository, logger *zap.SugaredLogger,
	pipelineRepository pipelineConfig.PipelineRepository, ciPipelineRepository pipelineConfig.CiPipelineRepository,
	deploymentGroupRepository repository.DeploymentGroupRepository, environmentRepository repository2.EnvironmentRepository,
	deploymentGroupAppRepository repository.DeploymentGroupAppRepository,
	ciArtifactRepository repository.CiArtifactRepository,
	appWorkflowRepository appWorkflow.AppWorkflowRepository,
	workflowEventPublishService out.WorkflowEventPublishService) *DeploymentGroupServiceImpl

func (*DeploymentGroupServiceImpl) CreateDeploymentGroup

func (impl *DeploymentGroupServiceImpl) CreateDeploymentGroup(deploymentGroupRequest *DeploymentGroupRequest) (*DeploymentGroupRequest, error)

func (*DeploymentGroupServiceImpl) DeleteDeploymentGroup

func (impl *DeploymentGroupServiceImpl) DeleteDeploymentGroup(deploymentGroupId int) (bool, error)

func (*DeploymentGroupServiceImpl) FetchAllDeploymentGroups

func (impl *DeploymentGroupServiceImpl) FetchAllDeploymentGroups() ([]DeploymentGroupDTO, error)

func (*DeploymentGroupServiceImpl) FetchEnvApplicationsForDG

func (impl *DeploymentGroupServiceImpl) FetchEnvApplicationsForDG(ciPipelineId int) ([]*EnvironmentAppListForDG, error)

func (*DeploymentGroupServiceImpl) FetchParentCiForDG

func (impl *DeploymentGroupServiceImpl) FetchParentCiForDG(deploymentGroupId int) ([]*CiPipelineResponseForDG, error)

func (*DeploymentGroupServiceImpl) FindById

func (impl *DeploymentGroupServiceImpl) FindById(id int) (*DeploymentGroupDTO, error)

func (*DeploymentGroupServiceImpl) GetArtifactsByCiPipeline

func (impl *DeploymentGroupServiceImpl) GetArtifactsByCiPipeline(ciPipelineId int) (bean.CiArtifactResponse, error)

func (*DeploymentGroupServiceImpl) GetDeploymentGroupById

func (impl *DeploymentGroupServiceImpl) GetDeploymentGroupById(deploymentGroupId int) (*DeploymentGroupRequest, error)

func (*DeploymentGroupServiceImpl) TriggerReleaseForDeploymentGroup

func (impl *DeploymentGroupServiceImpl) TriggerReleaseForDeploymentGroup(triggerRequest *DeploymentGroupTriggerRequest) (interface{}, error)

func (*DeploymentGroupServiceImpl) UpdateDeploymentGroup

func (impl *DeploymentGroupServiceImpl) UpdateDeploymentGroup(deploymentGroupRequest *DeploymentGroupRequest) (*DeploymentGroupRequest, error)

type DeploymentGroupTriggerRequest

type DeploymentGroupTriggerRequest struct {
	DeploymentGroupId int   `json:"deploymentGroupId"`
	UserId            int32 `json:"userId"`
	CiArtifactId      int   `json:"ciArtifactId"`
}

type EnvironmentAppListForDG

type EnvironmentAppListForDG struct {
	Id                    int                `json:"id"`
	Name                  string             `json:"name"`
	EnvironmentIdentifier string             `json:"environmentIdentifier"`
	Apps                  []pipeline.AppBean `json:"apps"`
}

Jump to

Keyboard shortcuts

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