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/requests.go b/openstack/orchestration/v1/stacks/requests.go
index 230525c..8616644 100644
--- a/openstack/orchestration/v1/stacks/requests.go
+++ b/openstack/orchestration/v1/stacks/requests.go
@@ -100,10 +100,10 @@
return nil, err
}
- if err := opts.TemplateOpts.GetFileContents(opts.TemplateOpts.Parsed, ignoreIfTemplate, true); err != nil {
+ if err := opts.TemplateOpts.getFileContents(opts.TemplateOpts.Parsed, ignoreIfTemplate, true); err != nil {
return nil, err
}
- opts.TemplateOpts.FixFileRefs()
+ opts.TemplateOpts.fixFileRefs()
s["template"] = string(opts.TemplateOpts.Bin)
for k, v := range opts.TemplateOpts.Files {
@@ -118,10 +118,10 @@
if err := opts.EnvironmentOpts.Parse(); err != nil {
return nil, err
}
- if err := opts.EnvironmentOpts.GetRRFileContents(ignoreIfEnvironment); err != nil {
+ if err := opts.EnvironmentOpts.getRRFileContents(ignoreIfEnvironment); err != nil {
return nil, err
}
- opts.EnvironmentOpts.FixFileRefs()
+ opts.EnvironmentOpts.fixFileRefs()
for k, v := range opts.EnvironmentOpts.Files {
Files[k] = v
}
@@ -250,10 +250,10 @@
return nil, err
}
- if err := opts.TemplateOpts.GetFileContents(opts.TemplateOpts.Parsed, ignoreIfTemplate, true); err != nil {
+ if err := opts.TemplateOpts.getFileContents(opts.TemplateOpts.Parsed, ignoreIfTemplate, true); err != nil {
return nil, err
}
- opts.TemplateOpts.FixFileRefs()
+ opts.TemplateOpts.fixFileRefs()
s["template"] = string(opts.TemplateOpts.Bin)
for k, v := range opts.TemplateOpts.Files {
@@ -273,10 +273,10 @@
if err := opts.EnvironmentOpts.Parse(); err != nil {
return nil, err
}
- if err := opts.EnvironmentOpts.GetRRFileContents(ignoreIfEnvironment); err != nil {
+ if err := opts.EnvironmentOpts.getRRFileContents(ignoreIfEnvironment); err != nil {
return nil, err
}
- opts.EnvironmentOpts.FixFileRefs()
+ opts.EnvironmentOpts.fixFileRefs()
for k, v := range opts.EnvironmentOpts.Files {
Files[k] = v
}
@@ -461,10 +461,10 @@
return nil, err
}
- if err := opts.TemplateOpts.GetFileContents(opts.TemplateOpts.Parsed, ignoreIfTemplate, true); err != nil {
+ if err := opts.TemplateOpts.getFileContents(opts.TemplateOpts.Parsed, ignoreIfTemplate, true); err != nil {
return nil, err
}
- opts.TemplateOpts.FixFileRefs()
+ opts.TemplateOpts.fixFileRefs()
s["template"] = string(opts.TemplateOpts.Bin)
for k, v := range opts.TemplateOpts.Files {
@@ -476,10 +476,10 @@
if err := opts.EnvironmentOpts.Parse(); err != nil {
return nil, err
}
- if err := opts.EnvironmentOpts.GetRRFileContents(ignoreIfEnvironment); err != nil {
+ if err := opts.EnvironmentOpts.getRRFileContents(ignoreIfEnvironment); err != nil {
return nil, err
}
- opts.EnvironmentOpts.FixFileRefs()
+ opts.EnvironmentOpts.fixFileRefs()
for k, v := range opts.EnvironmentOpts.Files {
Files[k] = v
}
@@ -607,10 +607,10 @@
return nil, err
}
- if err := opts.TemplateOpts.GetFileContents(opts.TemplateOpts.Parsed, ignoreIfTemplate, true); err != nil {
+ if err := opts.TemplateOpts.getFileContents(opts.TemplateOpts.Parsed, ignoreIfTemplate, true); err != nil {
return nil, err
}
- opts.TemplateOpts.FixFileRefs()
+ opts.TemplateOpts.fixFileRefs()
s["template"] = string(opts.TemplateOpts.Bin)
for k, v := range opts.TemplateOpts.Files {
@@ -625,10 +625,10 @@
if err := opts.EnvironmentOpts.Parse(); err != nil {
return nil, err
}
- if err := opts.EnvironmentOpts.GetRRFileContents(ignoreIfEnvironment); err != nil {
+ if err := opts.EnvironmentOpts.getRRFileContents(ignoreIfEnvironment); err != nil {
return nil, err
}
- opts.EnvironmentOpts.FixFileRefs()
+ opts.EnvironmentOpts.fixFileRefs()
for k, v := range opts.EnvironmentOpts.Files {
Files[k] = v
}