github.com/gophercloud/gophercloud@v1.11.0/openstack/containerinfra/v1/nodegroups/urls.go (about)

     1  package nodegroups
     2  
     3  import (
     4  	"github.com/gophercloud/gophercloud"
     5  )
     6  
     7  func getURL(c *gophercloud.ServiceClient, clusterID, nodeGroupID string) string {
     8  	return c.ServiceURL("clusters", clusterID, "nodegroups", nodeGroupID)
     9  }
    10  
    11  func listURL(c *gophercloud.ServiceClient, clusterID string) string {
    12  	return c.ServiceURL("clusters", clusterID, "nodegroups")
    13  }
    14  
    15  func createURL(c *gophercloud.ServiceClient, clusterID string) string {
    16  	return c.ServiceURL("clusters", clusterID, "nodegroups")
    17  }
    18  
    19  func updateURL(c *gophercloud.ServiceClient, clusterID, nodeGroupID string) string {
    20  	return c.ServiceURL("clusters", clusterID, "nodegroups", nodeGroupID)
    21  }
    22  
    23  func deleteURL(c *gophercloud.ServiceClient, clusterID, nodeGroupID string) string {
    24  	return c.ServiceURL("clusters", clusterID, "nodegroups", nodeGroupID)
    25  }