*: rename Lease Create to Grant

Creating a lease through the client API interface union looked like
"c.Create(...)"-- the method name wasn't very descriptive.
This commit is contained in:
Anthony Romano
2016-04-07 10:27:36 -07:00
parent ee4ff1e448
commit dc17eaace7
25 changed files with 150 additions and 151 deletions

View File

@ -448,7 +448,7 @@ func TestWatchEventType(t *testing.T) {
if _, err := client.Delete(ctx, "/toDelete"); err != nil {
t.Fatalf("Delete failed: %v", err)
}
lcr, err := client.Lease.Create(ctx, 1)
lcr, err := client.Lease.Grant(ctx, 1)
if err != nil {
t.Fatalf("lease create failed: %v", err)
}