github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/sfs_turbo/v1/shares/urls.go (about)

     1  package shares
     2  
     3  import "github.com/opentelekomcloud/gophertelekomcloud"
     4  
     5  const (
     6  	rootPath     = "sfs-turbo"
     7  	resourcePath = "shares"
     8  )
     9  
    10  // createURL used to assemble the URI of creating API
    11  func createURL(c *golangsdk.ServiceClient) string {
    12  	return c.ServiceURL(rootPath, resourcePath)
    13  }
    14  
    15  // resourceURL used to assemble the URI of deleting API or querying details API
    16  func resourceURL(c *golangsdk.ServiceClient, id string) string {
    17  	return c.ServiceURL(rootPath, resourcePath, id)
    18  }
    19  
    20  // listURL used to assemble the URI of querying all file system details API
    21  func listURL(c *golangsdk.ServiceClient) string {
    22  	return c.ServiceURL(rootPath, resourcePath, "detail")
    23  }
    24  
    25  // For manage the specified file system, e.g.: extend
    26  func actionURL(c *golangsdk.ServiceClient, id string) string {
    27  	return c.ServiceURL(rootPath, resourcePath, id, "action")
    28  }