OverrideDestination requests that the specified DestinationOverride be applied.
(args *ipc.Override, reply *int)
| 259 | |
| 260 | // OverrideDestination requests that the specified DestinationOverride be applied. |
| 261 | func (s *SeesawECU) OverrideDestination(args *ipc.Override, reply *int) error { |
| 262 | if args == nil { |
| 263 | return errors.New("args is nil") |
| 264 | } |
| 265 | ctx := args.Ctx |
| 266 | s.trace("OverrideDestination", ctx) |
| 267 | |
| 268 | authConn, err := s.ecu.authConnect(ctx) |
| 269 | if err != nil { |
| 270 | return err |
| 271 | } |
| 272 | defer authConn.Close() |
| 273 | |
| 274 | if args.Destination == nil { |
| 275 | return errors.New("destination override is nil") |
| 276 | } |
| 277 | return authConn.OverrideDestination(args.Destination) |
| 278 | } |
| 279 | |
| 280 | // OverrideVserver requests that the specified VserverOverride be applied. |
| 281 | func (s *SeesawECU) OverrideVserver(args *ipc.Override, reply *int) error { |
nothing calls this directly
no test coverage detected