Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

add build os for file driver.go #607

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/vsock/vsock_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ package vsock
import (
"fmt"
"net"
"sync"
)

type VsockCidAllocator interface {
sync.Locker
GetCid() (uint32, error)
MarkCidInuse(uint32) bool
ReleaseCid(uint32)
}

func Dial(cid uint32, port uint32) (net.Conn, error) {
return nil, fmt.Errorf("vsock is not supported")
}