PutRootObject implements the interface objinterface.Collection.
(ctx context.Context, rootObj objinterface.RootObject)
| 209 | |
| 210 | // PutRootObject implements the interface objinterface.Collection. |
| 211 | func (pgp *Collection) PutRootObject(ctx context.Context, rootObj objinterface.RootObject) error { |
| 212 | f, ok := rootObj.(Procedure) |
| 213 | if !ok { |
| 214 | return errors.Newf("invalid procedure root object: %T", rootObj) |
| 215 | } |
| 216 | return pgp.AddProcedure(ctx, f) |
| 217 | } |
| 218 | |
| 219 | // RenameRootObject implements the interface objinterface.Collection. |
| 220 | func (pgp *Collection) RenameRootObject(ctx context.Context, oldName id.Id, newName id.Id) error { |
nothing calls this directly
no test coverage detected