Documentation ¶
Index ¶
- func GetTemplateVariableYaml(variables []*models.Variable, variableYaml string) (string, error)
- func GetYamlVariables(s string, logger *zap.SugaredLogger) ([]*models.ChartVariable, error)
- func SafeMergeVariableYaml(variableYamls ...string) (string, map[string]string, error)
- type BuildReference
- type Chart
- type DockerfileDetail
- type DockerfileListObject
- type DockerfileTemplate
- type ServiceReference
- type YamlDetail
- type YamlListObject
- type YamlTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplateVariableYaml ¶ added in v1.9.9
GetTemplateVariableYaml returns variable yaml of yamlTemplate or templateService
func GetYamlVariables ¶
func GetYamlVariables(s string, logger *zap.SugaredLogger) ([]*models.ChartVariable, error)
Types ¶
type BuildReference ¶
type Chart ¶
type Chart struct { Name string `json:"name"` CodehostID int `json:"codehostID"` Owner string `json:"owner"` Namespace string `json:"namespace"` Repo string `json:"repo"` Branch string `json:"branch"` Path string `json:"path"` Variables []*models.ChartVariable `json:"variables,omitempty"` Files []*fs.FileInfo `json:"files,omitempty"` }
type DockerfileDetail ¶
type DockerfileDetail struct { ID string `json:"id"` Name string `json:"name"` Content string `json:"content"` Variables []*models.ChartVariable `json:"variable"` }
func GetDockerfileTemplateDetail ¶
func GetDockerfileTemplateDetail(id string, logger *zap.SugaredLogger) (*DockerfileDetail, error)
type DockerfileListObject ¶
type DockerfileTemplate ¶
type ServiceReference ¶
type YamlDetail ¶
type YamlListObject ¶
type YamlTemplate ¶
type YamlTemplate struct { Name string `json:"name"` Content string `json:"content"` Variable []*models.ChartVariable `json:"variable"` VariableYaml string `json:"variable_yaml"` }
Click to show internal directories.
Click to hide internal directories.