MCPcopy
hub / github.com/google/seesaw / OverrideDestination

Method OverrideDestination

ecu/control.go:261–278  ·  view source on GitHub ↗

OverrideDestination requests that the specified DestinationOverride be applied.

(args *ipc.Override, reply *int)

Source from the content-addressed store, hash-verified

259
260// OverrideDestination requests that the specified DestinationOverride be applied.
261func (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.
281func (s *SeesawECU) OverrideVserver(args *ipc.Override, reply *int) error {

Callers

nothing calls this directly

Calls 4

traceMethod · 0.95
authConnectMethod · 0.80
CloseMethod · 0.65
OverrideDestinationMethod · 0.65

Tested by

no test coverage detected