appClone

package
v0.6.26 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 18 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCloneService

type AppCloneService interface {
	CloneApp(createReq *bean.CreateAppDTO, context context.Context) (*bean.CreateAppDTO, error)
}

type AppCloneServiceImpl

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

func NewAppCloneServiceImpl

func NewAppCloneServiceImpl(logger *zap.SugaredLogger,
	pipelineBuilder pipeline.PipelineBuilder,
	materialRepository pipelineConfig.MaterialRepository,
	chartService chart.ChartService,
	configMapService pipeline.ConfigMapService,
	appWorkflowService appWorkflow.AppWorkflowService,
	appListingService app.AppListingService,
	propertiesConfigService pipeline.PropertiesConfigService,
	ciTemplateOverrideRepository pipelineConfig.CiTemplateOverrideRepository,
	pipelineStageService pipeline.PipelineStageService, ciTemplateService pipeline.CiTemplateService,
	appRepository app2.AppRepository, ciPipelineRepository pipelineConfig.CiPipelineRepository,
	pipelineRepository pipelineConfig.PipelineRepository, appWorkflowRepository appWorkflow2.AppWorkflowRepository,
	ciPipelineConfigService pipeline.CiPipelineConfigService) *AppCloneServiceImpl

func (*AppCloneServiceImpl) CloneApp

func (impl *AppCloneServiceImpl) CloneApp(createReq *bean.CreateAppDTO, context context.Context) (*bean.CreateAppDTO, error)

func (*AppCloneServiceImpl) CloneGitRepo

func (impl *AppCloneServiceImpl) CloneGitRepo(oldAppId, newAppId int, userId int32) (*bean.CreateMaterialDTO, map[int]int, error)

func (*AppCloneServiceImpl) CreateApp

func (impl *AppCloneServiceImpl) CreateApp(cloneReq *CloneRequest, userId int32) (*bean.CreateAppDTO, error)

func (*AppCloneServiceImpl) CreateAppMetrics

func (impl *AppCloneServiceImpl) CreateAppMetrics(oldAppId, newAppId int, userId int32)

func (*AppCloneServiceImpl) CreateCdPipeline

func (impl *AppCloneServiceImpl) CreateCdPipeline(req *cloneCdPipelineRequest, ctx context.Context) (*bean.CdPipelines, error)

func (*AppCloneServiceImpl) CreateCiPipeline

func (impl *AppCloneServiceImpl) CreateCiPipeline(req *cloneCiPipelineRequest) (*bean.CiConfigRequest, error)

func (*AppCloneServiceImpl) CreateCiTemplate

func (impl *AppCloneServiceImpl) CreateCiTemplate(oldAppId, newAppId int, userId int32, gitMaterialMap map[int]int) (*bean.PipelineCreateResponse, error)

func (*AppCloneServiceImpl) CreateDeploymentTemplate

func (impl *AppCloneServiceImpl) CreateDeploymentTemplate(oldAppId, newAppId int, userId int32, context context.Context) (*chart.TemplateRequest, error)

func (*AppCloneServiceImpl) CreateEnvCm

func (impl *AppCloneServiceImpl) CreateEnvCm(ctx context.Context, oldAppId, newAppId int, userId int32) (interface{}, error)

func (*AppCloneServiceImpl) CreateEnvSecret

func (impl *AppCloneServiceImpl) CreateEnvSecret(ctx context.Context, oldAppId, newAppId int, userId int32) (interface{}, error)

func (*AppCloneServiceImpl) CreateGlobalCM

func (impl *AppCloneServiceImpl) CreateGlobalCM(oldAppId, newAppId int, userId int32) (*bean3.ConfigDataRequest, error)

func (*AppCloneServiceImpl) CreateGlobalSecret

func (impl *AppCloneServiceImpl) CreateGlobalSecret(oldAppId, newAppId int, userId int32) (*bean3.ConfigDataRequest, error)

func (*AppCloneServiceImpl) CreateWf

func (impl *AppCloneServiceImpl) CreateWf(oldAppId, newAppId int, userId int32, gitMaterialMapping map[int]int, ctx context.Context) (interface{}, error)

type CloneRequest

type CloneRequest struct {
	RefAppId    int                            `json:"refAppId"`
	Name        string                         `json:"name"`
	ProjectId   int                            `json:"projectId"`
	AppLabels   []*bean.Label                  `json:"labels,omitempty" validate:"dive"`
	Description *bean2.GenericNoteResponseBean `json:"description"`
	AppType     helper.AppType                 `json:"appType"`
}

type CreateWorkflowMappingDto added in v0.6.24

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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