mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
refactor(custom-templates): render template variables [EE-2602] (#6937)
This commit is contained in:
parent
71c0e8e661
commit
1ccdb64938
32 changed files with 829 additions and 47 deletions
|
@ -128,6 +128,14 @@ type (
|
|||
SecretKeyName *string
|
||||
}
|
||||
|
||||
// CustomTemplateVariableDefinition
|
||||
CustomTemplateVariableDefinition struct {
|
||||
Name string `json:"name" example:"MY_VAR"`
|
||||
Label string `json:"label" example:"My Variable"`
|
||||
DefaultValue string `json:"defaultValue" example:"default value"`
|
||||
Description string `json:"description" example:"Description"`
|
||||
}
|
||||
|
||||
// CustomTemplate represents a custom template
|
||||
CustomTemplate struct {
|
||||
// CustomTemplate Identifier
|
||||
|
@ -152,6 +160,7 @@ type (
|
|||
// Type of created stack (1 - swarm, 2 - compose)
|
||||
Type StackType `json:"Type" example:"1"`
|
||||
ResourceControl *ResourceControl `json:"ResourceControl"`
|
||||
Variables []CustomTemplateVariableDefinition
|
||||
}
|
||||
|
||||
// CustomTemplateID represents a custom template identifier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue