github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/dws/v1/tag/DeleteClusterTag.go (about)

     1  package tag
     2  
     3  import golangsdk "github.com/opentelekomcloud/gophertelekomcloud"
     4  
     5  type DeleteClusterTagOpts struct {
     6  	// Resource ID
     7  	ClusterId string
     8  	// Tag key
     9  	Key string
    10  }
    11  
    12  func DeleteCluster(client *golangsdk.ServiceClient, opts DeleteClusterTagOpts) error {
    13  	// DELETE /v1.0/{project_id}/clusters/{resource_id}/tags/{key}
    14  	_, err := client.Delete(client.ServiceURL("clusters", opts.ClusterId, "tags", opts.Key), nil)
    15  	return err
    16  }