appClone

package
v0.3.17 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 11 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 pipeline.ChartService,
	configMapService pipeline.ConfigMapService,
	appWorkflowService appWorkflow.AppWorkflowService,
	appListingService app.AppListingService,
	propertiesConfigService pipeline.PropertiesConfigService,

) *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) (*bean.PipelineCreateResponse, error)

func (*AppCloneServiceImpl) CreateDeploymentTemplate

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

func (*AppCloneServiceImpl) CreateEnvCm

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

func (*AppCloneServiceImpl) CreateEnvSecret

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

func (*AppCloneServiceImpl) CreateGlobalCM

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

func (*AppCloneServiceImpl) CreateGlobalSecret

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

func (*AppCloneServiceImpl) CreateWf

func (impl *AppCloneServiceImpl) CreateWf(oldAppId, newAppId int, userId int32, gitMaterialMapping map[int]int, ctx context.Context, isSmaeProject bool) (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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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