GetX is like Get, but panics if an error occurs.
(ctx context.Context, id int)
| 1580 | |
| 1581 | // GetX is like Get, but panics if an error occurs. |
| 1582 | func (c *MachineClient) GetX(ctx context.Context, id int) *Machine { |
| 1583 | obj, err := c.Get(ctx, id) |
| 1584 | if err != nil { |
| 1585 | panic(err) |
| 1586 | } |
| 1587 | return obj |
| 1588 | } |
| 1589 | |
| 1590 | // QueryAlerts queries the alerts edge of a Machine. |
| 1591 | func (c *MachineClient) QueryAlerts(_m *Machine) *AlertQuery { |