github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/scm/v3/certificates/urls.go (about) 1 package certificates 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const ( 6 rootPath = "scm" 7 resourcePath = "certificates" 8 importPath = "import" 9 pushPath = "push" 10 exportPath = "export" 11 ) 12 13 func rootURL(c *golangsdk.ServiceClient) string { 14 return c.ServiceURL(rootPath, resourcePath) 15 } 16 17 func importURL(c *golangsdk.ServiceClient) string { 18 return c.ServiceURL(rootPath, resourcePath, importPath) 19 } 20 21 func resourceURL(c *golangsdk.ServiceClient, id string) string { 22 return c.ServiceURL(rootPath, resourcePath, id) 23 } 24 25 func pushURL(c *golangsdk.ServiceClient, id string) string { 26 return c.ServiceURL(rootPath, resourcePath, id, pushPath) 27 } 28 29 func exportURL(c *golangsdk.ServiceClient, id string) string { 30 return c.ServiceURL(rootPath, resourcePath, id, exportPath) 31 }