CreateSession creates a new VNC session for the specified target using the default client.
(ctx context.Context, sessionType SessionType, nodeName, vmid, targetName string)
| 331 | |
| 332 | // CreateSession creates a new VNC session for the specified target using the default client. |
| 333 | func (sm *SessionManager) CreateSession(ctx context.Context, sessionType SessionType, nodeName, vmid, targetName string) (*VNCSession, error) { |
| 334 | return sm.CreateSessionWithClient(ctx, sm.client, sessionType, nodeName, vmid, targetName) |
| 335 | } |
| 336 | |
| 337 | // CreateSessionWithClient creates a new VNC session for the specified target using a specific client. |
| 338 | func (sm *SessionManager) CreateSessionWithClient(ctx context.Context, client *api.Client, sessionType SessionType, nodeName, vmid, targetName string) (*VNCSession, error) { |
nothing calls this directly
no test coverage detected