MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / CreateSession

Method CreateSession

internal/vnc/session_manager.go:333–335  ·  view source on GitHub ↗

CreateSession creates a new VNC session for the specified target using the default client.

(ctx context.Context, sessionType SessionType, nodeName, vmid, targetName string)

Source from the content-addressed store, hash-verified

331
332// CreateSession creates a new VNC session for the specified target using the default client.
333func (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.
338func (sm *SessionManager) CreateSessionWithClient(ctx context.Context, client *api.Client, sessionType SessionType, nodeName, vmid, targetName string) (*VNCSession, error) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected