(ctx context.Context, name string, sortKeys order.SortKeys, seekStride int, thresh int64)
| 54 | } |
| 55 | |
| 56 | func (r *remote) CreatePool(ctx context.Context, name string, sortKeys order.SortKeys, seekStride int, thresh int64) (ksuid.KSUID, error) { |
| 57 | res, err := r.conn.CreatePool(ctx, api.PoolPostRequest{ |
| 58 | Name: name, |
| 59 | SortKeys: api.SortKeys{ |
| 60 | Order: sortKeys.Primary().Order, |
| 61 | Keys: field.List{sortKeys.Primary().Key}, |
| 62 | }, |
| 63 | SeekStride: seekStride, |
| 64 | Thresh: thresh, |
| 65 | }) |
| 66 | if err != nil { |
| 67 | return ksuid.Nil, err |
| 68 | } |
| 69 | return res.Pool.ID, err |
| 70 | } |
| 71 | |
| 72 | func (r *remote) CreateBranch(ctx context.Context, poolID ksuid.KSUID, name string, at ksuid.KSUID) error { |
| 73 | _, err := r.conn.CreateBranch(ctx, poolID, api.BranchPostRequest{ |
nothing calls this directly
no test coverage detected