func UnifiedView()

in kernels/kernels.go [41:55]


func UnifiedView(k *resources.Kernel, b *backends.Backend) *resources.Kernel {
	if k == nil {
		return nil
	}
	localSpecID := k.SpecID
	unifiedSpecID := b.UnifiedID(localSpecID)
	return &resources.Kernel{
		ID:             k.ID,
		SpecID:         unifiedSpecID,
		Env:            k.Env,
		LastActivity:   k.LastActivity,
		Connections:    k.Connections,
		ExecutionState: k.ExecutionState,
	}
}