diff options
author | Ritu Sood <Ritu.Sood@intel.com> | 2020-04-23 21:48:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-23 21:48:53 +0000 |
commit | 7e20d29b2d82f4ebbe347b7ed39a1c5d51752314 (patch) | |
tree | ae767627445355986dc59860a9d05af287eb2be9 /src/orchestrator/pkg/module/add_intents.go | |
parent | 334322f5995394dfa6a948101064634eaaf5f0b5 (diff) | |
parent | 6e0b4df46f51f9793f2d88626234edaaf9992403 (diff) |
Merge "Added intentResolver"
Diffstat (limited to 'src/orchestrator/pkg/module/add_intents.go')
-rw-r--r-- | src/orchestrator/pkg/module/add_intents.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/orchestrator/pkg/module/add_intents.go b/src/orchestrator/pkg/module/add_intents.go index a4d677b7..89bf255f 100644 --- a/src/orchestrator/pkg/module/add_intents.go +++ b/src/orchestrator/pkg/module/add_intents.go @@ -49,13 +49,11 @@ type IntentSpecData struct { Intent map[string]string `json:"intent"` } - // ListOfIntents is a list of intents type ListOfIntents struct { ListOfIntents []map[string]string `json:"intent"` } - // IntentManager is an interface which exposes the IntentManager functionality type IntentManager interface { AddIntent(a Intent, p string, ca string, v string, di string) (Intent, error) @@ -175,7 +173,6 @@ func (c *IntentClient) GetIntent(i string, p string, ca string, v string, di str return Intent{}, pkgerrors.New("Error getting Intent") } - /* GetIntentByName takes in IntentName, projectName, CompositeAppName, CompositeAppVersion and deploymentIntentGroupName returns the list of intents under the IntentName. @@ -200,7 +197,6 @@ func (c IntentClient) GetIntentByName(i string, p string, ca string, v string, d return a.Spec, nil } - /* GetAllIntents takes in projectName, CompositeAppName, CompositeAppVersion, DeploymentIntentName . It returns ListOfIntents. @@ -236,7 +232,6 @@ func (c IntentClient) GetAllIntents(p string, ca string, v string, di string) (L return ListOfIntents{}, err } - // DeleteIntent deletes a given intent tied to project, composite app and deployment intent group func (c IntentClient) DeleteIntent(i string, p string, ca string, v string, di string) error { k := IntentKey{ |