github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/kms/v1/rotation/urls.go (about)

     1  package rotation
     2  
     3  import "github.com/chnsz/golangsdk"
     4  
     5  const (
     6  	resourcePath = "kms"
     7  )
     8  
     9  func enableURL(c *golangsdk.ServiceClient) string {
    10  	return c.ServiceURL(c.ProjectID, resourcePath, "enable-key-rotation")
    11  }
    12  
    13  func disableURL(c *golangsdk.ServiceClient) string {
    14  	return c.ServiceURL(c.ProjectID, resourcePath, "disable-key-rotation")
    15  }
    16  
    17  func intervalURL(c *golangsdk.ServiceClient) string {
    18  	return c.ServiceURL(c.ProjectID, resourcePath, "update-key-rotation-interval")
    19  }
    20  
    21  func getURL(c *golangsdk.ServiceClient) string {
    22  	return c.ServiceURL(c.ProjectID, resourcePath, "get-key-rotation-status")
    23  }