Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OpenWrtServer ¶ added in v0.0.12
type OpenWrtServer struct { Hostname string HTTPPort uint16 Password string Scheme string SSHPort uint16 Username string }
OpenWrtServer groups all the information needed to connect to the running OpenWrt server.
func RunOpenWrtServer ¶
func RunOpenWrtServer( ctx context.Context, dockerPool dockertest.Pool, t *testing.T, ) OpenWrtServer
RunOpenWrtServer constructs a running OpenWrt server. The hostname and port can be arbitrary, so they are returned to make it easier to interact with the OpenWrt server.
func (OpenWrtServer) LuCIRPCClient ¶ added in v0.0.13
LuCIRPCClient returns a *lucirpc.Client to interact with the OpenWrtServer.
func (OpenWrtServer) ProviderBlock ¶ added in v0.0.12
func (s OpenWrtServer) ProviderBlock() string
ProviderBlock creates a stringified provider block for the OpenWrt provider.
Click to show internal directories.
Click to hide internal directories.