// Context returns link context of specified switch port.
765283
func (m *linkMechanismManager) Context() (*LinkManagerContext, error) {
	context := new(LinkManagerContext)
	err := m.BaseMechanismManager.Context(LinkModel, context)
	if err != nil {
		log.ErrorLog("link/CONTEXT",
			"Failed to retrieve persisted configuration: ", err)
		return nil, err
	}

	return context, nil
}
291624
func (c *AdminGenTokenCall) Context(ctx context.Context) *AdminGenTokenCall {
	c.ctx_ = ctx
	return c
}
1213117
func (c *GroupRolloutGetCall) Context(ctx context.Context) *GroupRolloutGetCall {
	c.ctx_ = ctx
	return c
}
918538
func (c *BotEventsCall) Context(ctx context.Context) *BotEventsCall {
	c.ctx_ = ctx
	return c
}
283279
func Context(r *http.Request) *WC {
	wc, _ := r.Context().Value(wgoCtxKey).(*WC)
	return wc
}
1186179
func (c *RetrieveCall) Context(ctx context.Context) *RetrieveCall {
	c.ctx_ = ctx
	return c
}
1000366
func (c *AddMachineCall) Context(ctx context.Context) *AddMachineCall {
	c.ctx_ = ctx
	return c
}
1164250
func (c *UpstreamUpdateCall) Context(ctx context.Context) *UpstreamUpdateCall {
	c.ctx_ = ctx
	return c
}
998376
func Context(r *http.Request) *RequestContext {
	contextMutex.RLock()
	defer contextMutex.RUnlock()
	return requestContextMap[r]
}
895125
func Context(ctx context.Context) RequestOption {
	return func(req *http.Request) (*http.Request, error) {
		return req.WithContext(ctx), nil
	}
}
780351
func (c *ClientupdateListCall) Context(ctx context.Context) *ClientupdateListCall {
	c.ctx_ = ctx
	return c
}
1031312
func (c *PauseCall) Context(ctx context.Context) *PauseCall {
	c.ctx_ = ctx
	return c
}
79476
func (c *AppversionListCall) Context(ctx context.Context) *AppversionListCall {
	c.ctx_ = ctx
	return c
}
606149
func (wsc *wsConnection) Context() context.Context {
	if wsc.ctx != nil {
		return wsc.ctx
	}
	wsc.ctx, wsc.cancel = context.WithCancel(context.Background())
	return wsc.ctx
}
1121474
func (c *ChannelPublicListCall) Context(ctx context.Context) *ChannelPublicListCall {
	c.ctx_ = ctx
	return c
}
724608
func (c *UtilUuidCall) Context(ctx context.Context) *UtilUuidCall {
	c.ctx_ = ctx
	return c
}
825874
func (n *IpfsNode) Context() context.Context {
	if n.ctx == nil {
		n.ctx = context.TODO()
	}
	return n.ctx
}