PutRootObject implements the interface objinterface.Collection.
(ctx context.Context, rootObj objinterface.RootObject)
| 247 | |
| 248 | // PutRootObject implements the interface objinterface.Collection. |
| 249 | func (pgf *Collection) PutRootObject(ctx context.Context, rootObj objinterface.RootObject) error { |
| 250 | f, ok := rootObj.(Function) |
| 251 | if !ok { |
| 252 | return errors.Newf("invalid function root object: %T", rootObj) |
| 253 | } |
| 254 | return pgf.AddFunction(ctx, f) |
| 255 | } |
| 256 | |
| 257 | // RenameRootObject implements the interface objinterface.Collection. |
| 258 | func (pgf *Collection) RenameRootObject(ctx context.Context, oldName id.Id, newName id.Id) error { |
nothing calls this directly
no test coverage detected