Documentation ¶
Index ¶
- Variables
- type DeploymentTemplateRequest
- type DeploymentTemplateResponse
- type DeploymentTemplateService
- type DeploymentTemplateServiceImpl
- func (impl DeploymentTemplateServiceImpl) FetchDeploymentsWithChartRefs(appId int, envId int) ([]*repository.DeploymentTemplateComparisonMetadata, error)
- func (impl DeploymentTemplateServiceImpl) GenerateManifest(ctx context.Context, chartRefId int, valuesYaml string) (*openapi2.TemplateChartResponse, error)
- func (impl DeploymentTemplateServiceImpl) GetDeploymentTemplate(ctx context.Context, request DeploymentTemplateRequest) (DeploymentTemplateResponse, error)
- type RequestDataMode
Constants ¶
This section is empty.
Variables ¶
View Source
var ChartRepository = &client.ChartRepository{
Name: "repo",
Url: "http://localhost:8080/",
Username: "admin",
Password: "password",
}
View Source
var ReleaseIdentifier = &client.ReleaseIdentifier{
ReleaseNamespace: "devtron-demo",
ReleaseName: "release-name",
}
Functions ¶
This section is empty.
Types ¶
type DeploymentTemplateRequest ¶
type DeploymentTemplateRequest struct { AppId int `json:"appId"` EnvId int `json:"envId,omitempty"` ChartRefId int `json:"chartRefId"` RequestDataMode RequestDataMode `json:"valuesAndManifestFlag"` Values string `json:"values"` Type repository.DeploymentTemplateType `json:"type"` DeploymentTemplateHistoryId int `json:"deploymentTemplateHistoryId,omitempty"` ResourceName string `json:"resourceName"` PipelineId int `json:"pipelineId"` }
type DeploymentTemplateService ¶
type DeploymentTemplateService interface { FetchDeploymentsWithChartRefs(appId int, envId int) ([]*repository.DeploymentTemplateComparisonMetadata, error) GetDeploymentTemplate(ctx context.Context, request DeploymentTemplateRequest) (DeploymentTemplateResponse, error) GenerateManifest(ctx context.Context, chartRefId int, valuesYaml string) (*openapi2.TemplateChartResponse, error) }
type DeploymentTemplateServiceImpl ¶
type DeploymentTemplateServiceImpl struct { Logger *zap.SugaredLogger K8sUtil *k8s.K8sUtil // contains filtered or unexported fields }
func NewDeploymentTemplateServiceImpl ¶
func NewDeploymentTemplateServiceImpl(Logger *zap.SugaredLogger, chartService chart.ChartService, appListingService app.AppListingService, appListingRepository repository.AppListingRepository, deploymentTemplateRepository repository.DeploymentTemplateRepository, helmAppService client.HelmAppService, chartRepository chartRepoRepository.ChartRepository, chartTemplateServiceImpl util.ChartTemplateService, helmAppClient client.HelmAppClient, K8sUtil *k8s.K8sUtil, propertiesConfigService pipeline.PropertiesConfigService, deploymentTemplateHistoryService history.DeploymentTemplateHistoryService, environmentRepository repository3.EnvironmentRepository, appRepository appRepository.AppRepository, ) *DeploymentTemplateServiceImpl
func (DeploymentTemplateServiceImpl) FetchDeploymentsWithChartRefs ¶
func (impl DeploymentTemplateServiceImpl) FetchDeploymentsWithChartRefs(appId int, envId int) ([]*repository.DeploymentTemplateComparisonMetadata, error)
func (DeploymentTemplateServiceImpl) GenerateManifest ¶
func (impl DeploymentTemplateServiceImpl) GenerateManifest(ctx context.Context, chartRefId int, valuesYaml string) (*openapi2.TemplateChartResponse, error)
func (DeploymentTemplateServiceImpl) GetDeploymentTemplate ¶
func (impl DeploymentTemplateServiceImpl) GetDeploymentTemplate(ctx context.Context, request DeploymentTemplateRequest) (DeploymentTemplateResponse, error)
type RequestDataMode ¶
type RequestDataMode int
const ( Values RequestDataMode = 1 Manifest RequestDataMode = 2 )
Click to show internal directories.
Click to hide internal directories.