(ctx context.Context, poolName string)
| 120 | } |
| 121 | |
| 122 | func (l *local) PoolID(ctx context.Context, poolName string) (ksuid.KSUID, error) { |
| 123 | if poolName == "" { |
| 124 | return ksuid.Nil, errors.New("no pool name provided") |
| 125 | } |
| 126 | if id, err := dbid.ParseID(poolName); err == nil { |
| 127 | if _, err := l.db.OpenPool(ctx, id); err == nil { |
| 128 | return id, nil |
| 129 | } |
| 130 | } |
| 131 | return l.db.PoolID(ctx, poolName) |
| 132 | } |
| 133 | |
| 134 | func (l *local) CommitObject(ctx context.Context, poolID ksuid.KSUID, branchName string) (ksuid.KSUID, error) { |
| 135 | return l.db.CommitObject(ctx, poolID, branchName) |
no test coverage detected