(ctx context.Context, poolID ksuid.KSUID, name string, parent ksuid.KSUID)
| 360 | } |
| 361 | |
| 362 | func (r *Root) CreateBranch(ctx context.Context, poolID ksuid.KSUID, name string, parent ksuid.KSUID) (*branches.Config, error) { |
| 363 | config, err := r.pools.LookupByID(ctx, poolID) |
| 364 | if err != nil { |
| 365 | return nil, err |
| 366 | } |
| 367 | return CreateBranch(ctx, r.engine, r.logger, r.path, config, name, parent) |
| 368 | } |
| 369 | |
| 370 | func (r *Root) RemoveBranch(ctx context.Context, poolID ksuid.KSUID, name string) error { |
| 371 | pool, err := r.OpenPool(ctx, poolID) |
nothing calls this directly
no test coverage detected