Comments (9)
@balajiv113 Thanks for creating a new issue!
I didn't know that! Thanks.
I will work for it in Sat (JST) because I'm a little busy 🙏
from vz.
I'm sorry too late.
This is a delegate method which meant that the method will be held by a different object than VZVirtualMachine, which has VZVirtualMachine as a property. So I may take a little time to design...
from vz.
Note that this understanding is wrong. They are not dependent on each other.
Support for VirtualMachine.networkDevices. With this support, we can use attachmentWasDisconnectedWithError to understand
Here is a good example. I use the delegate to use the GUI; the object we specify for delegate is not a VZVirtualMachine object.
from vz.
This is one idea, although the long method names are annoying.
vm, err := vz.NewVirtualMachine(config)
if err != nil {
return err
}
vm.WatchNetworkDeviceAttachmentWasDisconnected(func(networkDevice *vz.NetworkDevice, err error) {
// Do something here...
})
vm.Start()
from vz.
@balajiv113 Do you have any idea about this method signature?
from vz.
@Code-Hex you mean the signature of attachmentWasDisconnectedWithError ??
from vz.
@balajiv113 Yes, I think this usage is may difficult 🤔
#118 (comment)
from vz.
True but this was better compared to creating delegate object as a whole in go.
This will be extensible as well when new methods comes up as far as i see. Internally we will manage the delegate and users doesn't have to know much about it.
One thing to watch out is, we need to support both this and GUI delegate.
from vz.
@balajiv113 Thanks.
Yeah I think so :D
One thing to watch out is, we need to support both this and GUI delegate.
from vz.
Related Issues (20)
- Make easier to check API is available HOT 2
- socket.go could provide a Dial() method HOT 10
- macOS 13 API has been disabled despite being on Ventura with latest Xcode 14.1 HOT 1
- panic: runtime/cgo: misuse of an invalid Handle HOT 11
- panic: runtime/cgo: misuse of an invalid Handle on RequestStop and waiting for vm stopped state HOT 18
- Uncaught exception when using EFI bootloader with empty NVRAM file HOT 3
- macOS 14 HOT 2
- Please tell me about the projects that are using this library HOT 5
- Occasional ` runtime/cgo: misuse of an invalid Handle` panic when using vsock HOT 6
- Is it possible to run pre-built MacOS images from Packer? HOT 14
- Add `func (v *VirtioNetworkDeviceConfiguration) GetMACAddress() string`? HOT 1
- Bridged Networking HOT 7
- Seeking Continuous Sponsorship for development HOT 1
- Help: Tests Not Executing on macOS 13 (amd64) HOT 4
- VZNetworkBlockDeviceStorageDeviceAttachment
- VZMacKeyboardConfiguration
- example/gui-linux does not exit when `vm.Stop()` is used
- Vulnerability patch (golang.org/x/crypto/ssh) HOT 1
- gui-linux VZErrorDomain Internal Virtualization error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vz.