@@ -35,7 +35,8 @@ type Middleware interface {
3535 GetStack (org , ref string ) (* models.ServiceCatalog , error )
3636 UpdateStack (org , ref , teamCanonical string , visibility * string ) (* models.ServiceCatalog , error )
3737 ListStacks (org string ) ([]* models.ServiceCatalog , error )
38- ListStackUseCases (org , ref string ) ([]* models.StackUseCase , error )
38+ ListStackUseCases (org , ref , versionTag , versionBranch , versionCommitHash string ) ([]* models.StackUseCase , error )
39+ ListStackVersions (org , ref string ) ([]* models.ServiceCatalogSourceVersion , error )
3940 ListBlueprints (org string ) ([]* models.ServiceCatalog , error )
4041 CreateStackFromBlueprint (org , blueprintRef , name , stack , catalogRepository , useCase string ) (* models.ServiceCatalog , error )
4142
@@ -133,16 +134,16 @@ type Middleware interface {
133134 DeleteEnv (org , project , env string ) error
134135
135136 // Component
136- CreateComponent (org , project , env , component , description string , componentName , serviceCatalogRef * string , cloudProviderCanonical string ) (* models.Component , error )
137+ CreateComponent (org , project , env , component , description , componentName , serviceCatalogRef , versionTag , versionBranch , versionCommitHash , cloudProviderCanonical string ) (* models.Component , error )
137138 UpdateComponent (org , project , env , component , description string , componentName * string ) (* models.Component , error )
138- CreateAndConfigureComponent (org , project , env , component , description string , componentName * string , serviceCatalogRef , useCase , cloudProviderCanonical string , vars models.FormVariables ) (* models.Component , error )
139+ CreateAndConfigureComponent (org , project , env , component , description , componentName , serviceCatalogRef , versionTag , versionBranch , versionCommitHash , useCase , cloudProviderCanonical string , vars models.FormVariables ) (* models.Component , error )
139140 ConfigureComponent (org , project , env , component , useCase string , vars models.FormVariables ) error
140141 ListComponents (org , project , env string ) ([]* models.Component , error )
141142 GetComponent (org , project , env , component string ) (* models.Component , error )
142143 MigrateComponent (org , project , env , component , targetProject , targetEnv , newCanonical , newName string ) (* models.Component , error )
143144 DeleteComponent (org , project , env , component string ) error
144145 GetComponentConfig (org , project , env , component string ) (models.FormVariables , error )
145- GetComponentStackConfig (org , project , env , component , useCase string ) (models.ServiceCatalogConfigs , error )
146+ GetComponentStackConfig (org , project , env , component , useCase , versionTag , versionBranch , versionCommitHash string ) (models.ServiceCatalogConfigs , error )
146147
147148 DeleteRole (org , role string ) error
148149 GetRole (org , role string ) (* models.Role , error )
@@ -170,7 +171,7 @@ type Middleware interface {
170171 CostEstimation (org string , plan []byte ) (* models.CostEstimationResult , error )
171172
172173 // Extra actions out of the api
173- InitFirstOrg (org , username , fullName , email , password , licence string , apiKeyCanonical * string ) (* FirstOrgData , error )
174+ InitFirstOrg (org , userName , fullName , email , password , licence string , apiKeyCanonical * string ) (* FirstOrgData , error )
174175}
175176
176177type FirstOrgData struct {
0 commit comments