Merge pull request #21015 from cpuguy83/add_opaque_mount_id

When calling volume driver Mount, send opaque ID
This commit is contained in:
Vincent Demeester 2016-05-05 18:00:15 +02:00
commit 208beb82e0

View file

@ -42,10 +42,17 @@ var templFuncs = template.FuncMap{
"marshalType": marshalType,
"isErr": isErr,
"lower": strings.ToLower,
"title": strings.Title,
"title": title,
"tag": buildTag,
}
func title(s string) string {
if strings.ToLower(s) == "id" {
return "ID"
}
return strings.Title(s)
}
var generatedTempl = template.Must(template.New("rpc_cient").Funcs(templFuncs).Parse(`
// generated code - DO NOT EDIT
{{ range $k, $v := .BuildTags }}