When calling volume driver Mount, send opaque ID
This generates an ID string for calls to Mount/Unmount, allowing drivers to differentiate between two callers of `Mount` and `Unmount`. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
d4db263aa4
commit
ac615c51ba
1 changed files with 8 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue