Documentation ¶
Index ¶
- Variables
- func AddBuildTemplate(userName string, build *commonmodels.BuildTemplate, logger *zap.SugaredLogger) error
- func AddChartTemplate(name string, args *fs.DownloadFromSourceArgs, logger *zap.SugaredLogger) error
- func CreateDockerfileTemplate(template *template.DockerfileTemplate, logger *zap.SugaredLogger) error
- func CreateYamlTemplate(template *template.YamlTemplate, logger *zap.SugaredLogger) error
- func DeleteDockerfileTemplate(id string, logger *zap.SugaredLogger) error
- func DeleteYamlTemplate(id string, logger *zap.SugaredLogger) error
- func GetBuildTemplateByID(idStr string) (*commonmodels.BuildTemplate, error)
- func GetBuildTemplateByName(name string) (*commonmodels.BuildTemplate, error)
- func GetChartTemplate(name string, logger *zap.SugaredLogger) (*template.Chart, error)
- func GetChartTemplateVariables(name string, logger *zap.SugaredLogger) ([]*commonmodels.ChartVariable, error)
- func GetDockerfileTemplateReference(id string, logger *zap.SugaredLogger) ([]*template.BuildReference, error)
- func GetFileContentForTemplate(name, filePath, fileName string, logger *zap.SugaredLogger) ([]byte, error)
- func GetSystemDefaultVariables() []*models.ChartVariable
- func GetYamlTemplateDetail(id string, logger *zap.SugaredLogger) (*template.YamlDetail, error)
- func GetYamlTemplateReference(id string, logger *zap.SugaredLogger) ([]*template.ServiceReference, error)
- func GetYamlVariables(s string, logger *zap.SugaredLogger) ([]*models.ChartVariable, error)
- func ListDockerfileTemplate(pageNum, pageSize int, logger *zap.SugaredLogger) ([]*template.DockerfileListObject, int, error)
- func ListYamlTemplate(pageNum, pageSize int, logger *zap.SugaredLogger) ([]*template.YamlListObject, int, error)
- func RemoveBuildTemplate(id string, logger *zap.SugaredLogger) error
- func RemoveChartTemplate(name string, logger *zap.SugaredLogger) error
- func SyncHelmTemplateReference(userName, name string, logger *zap.SugaredLogger) error
- func SyncYamlTemplateReference(userName, id string, logger *zap.SugaredLogger) error
- func UpdateBuildTemplate(id string, buildTemplate *commonmodels.BuildTemplate, ...) error
- func UpdateChartTemplate(name string, args *fs.DownloadFromSourceArgs, logger *zap.SugaredLogger) error
- func UpdateChartTemplateVariables(name string, args []*commonmodels.Variable, logger *zap.SugaredLogger) error
- func UpdateDockerfileTemplate(id string, template *template.DockerfileTemplate, logger *zap.SugaredLogger) error
- func UpdateYamlTemplate(id string, template *template.YamlTemplate, logger *zap.SugaredLogger) error
- func ValidateDockerfileTemplate(template string, _ *zap.SugaredLogger) error
- type BuildTemplateBrief
- type BuildTemplateListResp
- type ChartTemplateListResp
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ChartTemplateDefaultSystemVariable = map[string]string{ setting.TemplateVariableProduct: setting.TemplateVariableProductDescription, setting.TemplateVariableService: setting.TemplateVariableServiceDescription, } )
View Source
var DefaultSystemVariable = map[string]string{ setting.TemplateVariableProduct: setting.TemplateVariableProductDescription, setting.TemplateVariableService: setting.TemplateVariableServiceDescription, }
Functions ¶
func AddBuildTemplate ¶ added in v1.9.9
func AddBuildTemplate(userName string, build *commonmodels.BuildTemplate, logger *zap.SugaredLogger) error
func AddChartTemplate ¶
func AddChartTemplate(name string, args *fs.DownloadFromSourceArgs, logger *zap.SugaredLogger) error
func CreateDockerfileTemplate ¶ added in v1.6.0
func CreateDockerfileTemplate(template *template.DockerfileTemplate, logger *zap.SugaredLogger) error
func CreateYamlTemplate ¶ added in v1.6.0
func CreateYamlTemplate(template *template.YamlTemplate, logger *zap.SugaredLogger) error
func DeleteDockerfileTemplate ¶ added in v1.6.0
func DeleteDockerfileTemplate(id string, logger *zap.SugaredLogger) error
func DeleteYamlTemplate ¶ added in v1.6.0
func DeleteYamlTemplate(id string, logger *zap.SugaredLogger) error
func GetBuildTemplateByID ¶ added in v1.9.9
func GetBuildTemplateByID(idStr string) (*commonmodels.BuildTemplate, error)
func GetBuildTemplateByName ¶ added in v1.9.9
func GetBuildTemplateByName(name string) (*commonmodels.BuildTemplate, error)
func GetChartTemplate ¶
func GetChartTemplateVariables ¶ added in v1.6.0
func GetChartTemplateVariables(name string, logger *zap.SugaredLogger) ([]*commonmodels.ChartVariable, error)
func GetDockerfileTemplateReference ¶ added in v1.6.0
func GetDockerfileTemplateReference(id string, logger *zap.SugaredLogger) ([]*template.BuildReference, error)
func GetFileContentForTemplate ¶ added in v1.6.0
func GetFileContentForTemplate(name, filePath, fileName string, logger *zap.SugaredLogger) ([]byte, error)
func GetSystemDefaultVariables ¶ added in v1.6.0
func GetSystemDefaultVariables() []*models.ChartVariable
func GetYamlTemplateDetail ¶ added in v1.6.0
func GetYamlTemplateDetail(id string, logger *zap.SugaredLogger) (*template.YamlDetail, error)
func GetYamlTemplateReference ¶ added in v1.6.0
func GetYamlTemplateReference(id string, logger *zap.SugaredLogger) ([]*template.ServiceReference, error)
func GetYamlVariables ¶ added in v1.6.0
func GetYamlVariables(s string, logger *zap.SugaredLogger) ([]*models.ChartVariable, error)
func ListDockerfileTemplate ¶ added in v1.6.0
func ListDockerfileTemplate(pageNum, pageSize int, logger *zap.SugaredLogger) ([]*template.DockerfileListObject, int, error)
func ListYamlTemplate ¶ added in v1.6.0
func ListYamlTemplate(pageNum, pageSize int, logger *zap.SugaredLogger) ([]*template.YamlListObject, int, error)
func RemoveBuildTemplate ¶ added in v1.9.9
func RemoveBuildTemplate(id string, logger *zap.SugaredLogger) error
func RemoveChartTemplate ¶
func RemoveChartTemplate(name string, logger *zap.SugaredLogger) error
func SyncHelmTemplateReference ¶ added in v1.9.9
func SyncHelmTemplateReference(userName, name string, logger *zap.SugaredLogger) error
func SyncYamlTemplateReference ¶ added in v1.9.9
func SyncYamlTemplateReference(userName, id string, logger *zap.SugaredLogger) error
func UpdateBuildTemplate ¶ added in v1.9.9
func UpdateBuildTemplate(id string, buildTemplate *commonmodels.BuildTemplate, logger *zap.SugaredLogger) error
func UpdateChartTemplate ¶
func UpdateChartTemplate(name string, args *fs.DownloadFromSourceArgs, logger *zap.SugaredLogger) error
func UpdateChartTemplateVariables ¶ added in v1.6.0
func UpdateChartTemplateVariables(name string, args []*commonmodels.Variable, logger *zap.SugaredLogger) error
func UpdateDockerfileTemplate ¶ added in v1.6.0
func UpdateDockerfileTemplate(id string, template *template.DockerfileTemplate, logger *zap.SugaredLogger) error
func UpdateYamlTemplate ¶ added in v1.6.0
func UpdateYamlTemplate(id string, template *template.YamlTemplate, logger *zap.SugaredLogger) error
func ValidateDockerfileTemplate ¶ added in v1.6.0
func ValidateDockerfileTemplate(template string, _ *zap.SugaredLogger) error
Types ¶
type BuildTemplateBrief ¶ added in v1.9.9
type BuildTemplateListResp ¶ added in v1.9.9
type BuildTemplateListResp struct { BuildTemplates []*BuildTemplateBrief `json:"build_templates"` Total int `json:"total,omitempty"` }
func ListBuildTemplates ¶ added in v1.9.9
func ListBuildTemplates(pageNum, pageSize int) (*BuildTemplateListResp, error)
type ChartTemplateListResp ¶ added in v1.6.0
type ChartTemplateListResp struct { SystemVariables []*commonmodels.ChartVariable `json:"systemVariables"` ChartTemplates []*template.Chart `json:"chartTemplates"` }
func ListChartTemplates ¶
func ListChartTemplates(logger *zap.SugaredLogger) (*ChartTemplateListResp, error)
Click to show internal directories.
Click to hide internal directories.