Versions in this module Expand all Collapse all v0 v0.5.1 May 9, 2024 v0.5.0 Mar 28, 2024 Changes in this version + const GuestInfoDNSName + const GuestInfoIPAddressV3 + const GuestInfoOSName + const GuestInfoOSNameFull + const PowerStateHalt + const PowerStatePowerOn + const PowerStateReboot + const PowerStateResume + const PowerStateSuspend + const VixGuestOfFamilyLinux + const VixToolsFeatureSupportGetHandleState + func RegisterGuestInfoCommands(svc *nanotoolbox.Service, delegate NicDelegate) + func RegisterPowerDelegate(svc *nanotoolbox.Service, delegate PowerDelegate) + func RegisterVixCommand(svc *nanotoolbox.Service, delegate VixDelegate) + type DNSConfigInfo struct + DomainName *string + HostName *string + Search *string + Servers []TypedIPAddress + type DhcpConfigInfo struct + Enabled bool + Settings string + type GuestInfoCommands struct + func (cmd *GuestInfoCommands) BroadcastIPOptionHandler(string, string) + func (cmd *GuestInfoCommands) GuestNicInfo() *GuestNicInfo + func (cmd *GuestInfoCommands) PrimaryIP() string + func (cmd *GuestInfoCommands) PushGuestInfo() + func (cmd *GuestInfoCommands) SendGuestInfo(kind int, buf []byte) + func (cmd *GuestInfoCommands) SendGuestInfoDNSName() + func (cmd *GuestInfoCommands) SendGuestInfoNIC() + func (cmd *GuestInfoCommands) SendGuestInfoOSName() + func (cmd *GuestInfoCommands) SendGuestInfoOSNameFull() + func (cmd *GuestInfoCommands) SendGuestInfoString(kind int, str string) + func (cmd *GuestInfoCommands) SendGuestInfoXDR(kind int, v interface{}) + type GuestNicInfo struct + V3 *NicInfoV3 + Version int32 + func NewGuestNicInfo() *GuestNicInfo + type GuestNicV3 struct + DNSConfigInfo *DNSConfigInfo + DhcpConfigInfov4 *DhcpConfigInfo + DhcpConfigInfov6 *DhcpConfigInfo + IPs []IPAddressEntry + MacAddress string + WinsConfigInfo *WinsConfigInfo + func (nic *GuestNicV3) AddIP(prefix netip.Prefix) + type IPAddressEntry struct + Address TypedIPAddress + Origin *int32 + PrefixLength uint32 + Status *int32 + type InetCidrRouteEntry struct + Dest TypedIPAddress + IfIndex uint32 + Metric uint32 + NextHop *TypedIPAddress + PrefixLength uint32 + Type int32 + type NetInterface struct + Addrs []netip.Prefix + MAC string + Name string + type NicDelegate interface + Hostname func() string + NetInterfaces func() []NetInterface + OSVersion func() string + OSVersionShort func() string + type NicInfoV3 struct + DNSConfigInfo *DNSConfigInfo + DhcpConfigInfov4 *DhcpConfigInfo + DhcpConfigInfov6 *DhcpConfigInfo + Nics []GuestNicV3 + Routes []InetCidrRouteEntry + WinsConfigInfo *WinsConfigInfo + type PowerDelegate interface + Reboot func() error + Shutdown func() error + type PowerHandler func() error + type TypedIPAddress struct + Address []byte + Type int32 + type VixCommandHandler func(vix.CommandRequestHeader, []byte) ([]byte, error) + type VixCommandServer struct + func (c *VixCommandServer) Dispatch(data []byte) ([]byte, error) + func (c *VixCommandServer) GetToolsState(_ vix.CommandRequestHeader, _ []byte) ([]byte, error) + func (c *VixCommandServer) RegisterHandler(op uint32, handler VixCommandHandler) + type VixDelegate interface + Hostname func() string + OSVersion func() string + OSVersionShort func() string + type WinsConfigInfo struct + Primary TypedIPAddress + Secondary TypedIPAddress