mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-26 04:01:50 -04:00
vendor: Updating Gophercloud for OpenStack provider
This commit is contained in:
@@ -25,7 +25,7 @@ func (opts GetOpts) ToAccountGetMap() (map[string]string, error) {
|
||||
// ExtractHeader method on the GetResult.
|
||||
func Get(c *gophercloud.ServiceClient, opts GetOptsBuilder) GetResult {
|
||||
var res GetResult
|
||||
h := c.AuthenticatedHeaders()
|
||||
h := make(map[string]string)
|
||||
|
||||
if opts != nil {
|
||||
headers, err := opts.ToAccountGetMap()
|
||||
|
||||
@@ -96,7 +96,7 @@ func (opts CreateOpts) ToContainerCreateMap() (map[string]string, error) {
|
||||
// Create is a function that creates a new container.
|
||||
func Create(c *gophercloud.ServiceClient, containerName string, opts CreateOptsBuilder) CreateResult {
|
||||
var res CreateResult
|
||||
h := c.AuthenticatedHeaders()
|
||||
h := make(map[string]string)
|
||||
|
||||
if opts != nil {
|
||||
headers, err := opts.ToContainerCreateMap()
|
||||
@@ -164,7 +164,7 @@ func (opts UpdateOpts) ToContainerUpdateMap() (map[string]string, error) {
|
||||
// metadata.
|
||||
func Update(c *gophercloud.ServiceClient, containerName string, opts UpdateOptsBuilder) UpdateResult {
|
||||
var res UpdateResult
|
||||
h := c.AuthenticatedHeaders()
|
||||
h := make(map[string]string)
|
||||
|
||||
if opts != nil {
|
||||
headers, err := opts.ToContainerUpdateMap()
|
||||
|
||||
@@ -117,7 +117,7 @@ func Download(c *gophercloud.ServiceClient, containerName, objectName string, op
|
||||
var res DownloadResult
|
||||
|
||||
url := downloadURL(c, containerName, objectName)
|
||||
h := c.AuthenticatedHeaders()
|
||||
h := make(map[string]string)
|
||||
|
||||
if opts != nil {
|
||||
headers, query, err := opts.ToObjectDownloadParams()
|
||||
@@ -282,7 +282,7 @@ func (opts CopyOpts) ToObjectCopyMap() (map[string]string, error) {
|
||||
// Copy is a function that copies one object to another.
|
||||
func Copy(c *gophercloud.ServiceClient, containerName, objectName string, opts CopyOptsBuilder) CopyResult {
|
||||
var res CopyResult
|
||||
h := c.AuthenticatedHeaders()
|
||||
h := make(map[string]string)
|
||||
|
||||
headers, err := opts.ToObjectCopyMap()
|
||||
if err != nil {
|
||||
@@ -427,7 +427,7 @@ func (opts UpdateOpts) ToObjectUpdateMap() (map[string]string, error) {
|
||||
// Update is a function that creates, updates, or deletes an object's metadata.
|
||||
func Update(c *gophercloud.ServiceClient, containerName, objectName string, opts UpdateOptsBuilder) UpdateResult {
|
||||
var res UpdateResult
|
||||
h := c.AuthenticatedHeaders()
|
||||
h := make(map[string]string)
|
||||
|
||||
if opts != nil {
|
||||
headers, err := opts.ToObjectUpdateMap()
|
||||
|
||||
Reference in New Issue
Block a user