-
Notifications
You must be signed in to change notification settings - Fork 4
/
api.go
33 lines (28 loc) · 1.04 KB
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* *******************************************************************************
* * Copyright (c) 2019 Edgeworx, Inc.
* *
* * This program and the accompanying materials are made available under the
* * terms of the Eclipse Public License v. 2.0 which is available at
* * http://www.eclipse.org/legal/epl-2.0
* *
* * SPDX-License-Identifier: EPL-2.0
* *******************************************************************************
*
*/
package apps
import (
"net/url"
)
func DeployApplicationTemplate(controller IofogController, controllerBaseURL *url.URL, template ApplicationTemplate) error {
exe := newApplicationTemplateExecutor(controller, controllerBaseURL, template)
return exe.execute()
}
func DeployApplication(controller IofogController, application *Application) error {
exe := newApplicationExecutor(controller, application)
return exe.execute()
}
func DeployMicroservice(controller IofogController, microservice *Microservice) error {
exe := newMicroserviceExecutor(controller, microservice)
return exe.execute()
}