github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/objectstorage/v1/objects/urls.go (about)

     1  package objects
     2  
     3  import (
     4  	"github.com/huaweicloud/golangsdk"
     5  )
     6  
     7  func listURL(c *golangsdk.ServiceClient, container string) string {
     8  	return c.ServiceURL(container)
     9  }
    10  
    11  func copyURL(c *golangsdk.ServiceClient, container, object string) string {
    12  	return c.ServiceURL(container, object)
    13  }
    14  
    15  func createURL(c *golangsdk.ServiceClient, container, object string) string {
    16  	return copyURL(c, container, object)
    17  }
    18  
    19  func getURL(c *golangsdk.ServiceClient, container, object string) string {
    20  	return copyURL(c, container, object)
    21  }
    22  
    23  func deleteURL(c *golangsdk.ServiceClient, container, object string) string {
    24  	return copyURL(c, container, object)
    25  }
    26  
    27  func downloadURL(c *golangsdk.ServiceClient, container, object string) string {
    28  	return copyURL(c, container, object)
    29  }
    30  
    31  func updateURL(c *golangsdk.ServiceClient, container, object string) string {
    32  	return copyURL(c, container, object)
    33  }