Merge pull request #21015 from cpuguy83/add_opaque_mount_id
When calling volume driver Mount, send opaque ID
This commit is contained in:
commit
208beb82e0
1 changed files with 8 additions and 1 deletions
|
@ -42,10 +42,17 @@ var templFuncs = template.FuncMap{
|
||||||
"marshalType": marshalType,
|
"marshalType": marshalType,
|
||||||
"isErr": isErr,
|
"isErr": isErr,
|
||||||
"lower": strings.ToLower,
|
"lower": strings.ToLower,
|
||||||
"title": strings.Title,
|
"title": title,
|
||||||
"tag": buildTag,
|
"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(`
|
var generatedTempl = template.Must(template.New("rpc_cient").Funcs(templFuncs).Parse(`
|
||||||
// generated code - DO NOT EDIT
|
// generated code - DO NOT EDIT
|
||||||
{{ range $k, $v := .BuildTags }}
|
{{ range $k, $v := .BuildTags }}
|
||||||
|
|
Loading…
Reference in a new issue