PutRootObject implements the interface objinterface.Collection.
(ctx context.Context, rootObj objinterface.RootObject)
| 313 | |
| 314 | // PutRootObject implements the interface objinterface.Collection. |
| 315 | func (pgs *Collection) PutRootObject(ctx context.Context, rootObj objinterface.RootObject) error { |
| 316 | seq, ok := rootObj.(*Sequence) |
| 317 | if !ok { |
| 318 | return errors.Newf("invalid sequence root object: %T", rootObj) |
| 319 | } |
| 320 | return pgs.CreateSequence(ctx, seq) |
| 321 | } |
| 322 | |
| 323 | // RenameRootObject implements the interface objinterface.Collection. |
| 324 | func (pgs *Collection) RenameRootObject(ctx context.Context, oldName id.Id, newName id.Id) error { |
nothing calls this directly
no test coverage detected