func()

in module/apmazure/blob.go [80:108]


func (b *blobRPC) getOperation(v url.Values) string {
	restype := v.Get("restype")
	comp := v.Get("comp")
	if (restype == "" && comp == "") || comp == "blocklist" {
		return "Download"
	}
	if restype == "container" && comp == "" {
		return "GetProperties"
	}

	switch comp {
	case "metadata":
		return "GetMetadata"
	case "acl":
		return "GetAcl"
	case "list":
		if restype == "container" {
			return "ListBlobs"
		}
		return "ListContainers"
	case "tags":
		if v.Get("where") != "" {
			return "FindTags"
		}
		return "GetTags"
	default:
		return "unknown operation"
	}
}