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

     1  package keys
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const (
     6  	resourcePath = "kms"
     7  )
     8  
     9  func getURL(c *golangsdk.ServiceClient) string {
    10  	return c.ServiceURL(c.ProjectID, resourcePath, "describe-key")
    11  }
    12  
    13  func createURL(c *golangsdk.ServiceClient) string {
    14  	return c.ServiceURL(c.ProjectID, resourcePath, "create-key")
    15  }
    16  
    17  func deleteURL(c *golangsdk.ServiceClient) string {
    18  	return c.ServiceURL(c.ProjectID, resourcePath, "schedule-key-deletion")
    19  }
    20  
    21  func updateAliasURL(c *golangsdk.ServiceClient) string {
    22  	return c.ServiceURL(c.ProjectID, resourcePath, "update-key-alias")
    23  }
    24  
    25  func updateDesURL(c *golangsdk.ServiceClient) string {
    26  	return c.ServiceURL(c.ProjectID, resourcePath, "update-key-description")
    27  }
    28  
    29  func dataEncryptURL(c *golangsdk.ServiceClient) string {
    30  	return c.ServiceURL(c.ProjectID, resourcePath, "create-datakey")
    31  }
    32  
    33  func encryptDEKURL(c *golangsdk.ServiceClient) string {
    34  	return c.ServiceURL(c.ProjectID, resourcePath, "encrypt-datakey")
    35  }
    36  
    37  func enableKeyURL(c *golangsdk.ServiceClient) string {
    38  	return c.ServiceURL(c.ProjectID, resourcePath, "enable-key")
    39  }
    40  
    41  func disableKeyURL(c *golangsdk.ServiceClient) string {
    42  	return c.ServiceURL(c.ProjectID, resourcePath, "disable-key")
    43  }
    44  
    45  func listURL(c *golangsdk.ServiceClient) string {
    46  	return c.ServiceURL(c.ProjectID, resourcePath, "list-keys")
    47  }