github.com/slackhq/nebula@v1.9.0/hostmap_tester.go (about)

     1  //go:build e2e_testing
     2  // +build e2e_testing
     3  
     4  package nebula
     5  
     6  // This file contains functions used to export information to the e2e testing framework
     7  
     8  import "github.com/slackhq/nebula/iputil"
     9  
    10  func (i *HostInfo) GetVpnIp() iputil.VpnIp {
    11  	return i.vpnIp
    12  }
    13  
    14  func (i *HostInfo) GetLocalIndex() uint32 {
    15  	return i.localIndexId
    16  }
    17  
    18  func (i *HostInfo) GetRemoteIndex() uint32 {
    19  	return i.remoteIndexId
    20  }
    21  
    22  func (i *HostInfo) GetRelayState() *RelayState {
    23  	return &i.relayState
    24  }