Make parsing methods local
The parsing methods are used only internally; they must not be
exposed to users outside the respective packages.
diff --git a/openstack/orchestration/v1/stacks/environment.go b/openstack/orchestration/v1/stacks/environment.go
index 94fda6c..4d4779c 100644
--- a/openstack/orchestration/v1/stacks/environment.go
+++ b/openstack/orchestration/v1/stacks/environment.go
@@ -35,7 +35,7 @@
// Parse environment file to resolve the URL's of the resources. This is done by
// reading from the `Resource Registry` section, which is why the function is
// named GetRRFileContents.
-func (e *Environment) GetRRFileContents(ignoreIf igFunc) error {
+func (e *Environment) getRRFileContents(ignoreIf igFunc) error {
// initialize environment if empty
if e.Files == nil {
e.Files = make(map[string]string)
@@ -72,7 +72,7 @@
tempTemplate.client = e.client
// Fetch the contents of remote resource URL's
- if err = tempTemplate.GetFileContents(rr, ignoreIf, false); err != nil {
+ if err = tempTemplate.getFileContents(rr, ignoreIf, false); err != nil {
return err
}
// check the `resources` section (if it exists) for more URL's. Note that
@@ -101,7 +101,7 @@
resourceBaseURL = baseURL
}
tempTemplate.baseURL = resourceBaseURL
- if err := tempTemplate.GetFileContents(v, ignoreIf, false); err != nil {
+ if err := tempTemplate.getFileContents(v, ignoreIf, false); err != nil {
return err
}
}