func (c *Client) GetReverseTunnels() ([]services.ReverseTunnel, error) {
	out, err := c.Get(c.Endpoint("reversetunnels"), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var tunnels []services.ReverseTunnel
	if err := json.Unmarshal(out.Bytes(), &tunnels); err != nil {
		return nil, trace.Wrap(err)
	}
	return tunnels, nil
}
// GetReverseTunnels returns the list of created reverse tunnels
GetReverseTunnels returns the list of created reverse tunnels
// GetReverseTunnels returns the list of created reverse tunnels
func (c *Client) GetReverseTunnels() ([]services.ReverseTunnel, error) {
	out, err := c.Get(c.Endpoint("reversetunnels"), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var tunnels []services.ReverseTunnel
	if err := json.Unmarshal(out.Bytes(), &tunnels); err != nil {
		return nil, trace.Wrap(err)
	}
	return tunnels, nil
}
func ( c * Client ) GetReverseTunnels ( ) ( [ ] services . ReverseTunnel , error ) { out , err := c . Get ( c . Endpoint ( " " ) , url . Values { } ) if err != nil { return nil , trace . Wrap ( err ) } var tunnels [ ] services . ReverseTunnel if err := json . Unmarshal ( out . Bytes ( ) , & tunnels ) ; err != nil { return nil , trace . Wrap ( err ) } return tunnels , nil }
GetReverseTunnels returns the list of created reverse tunnels
GetReverseTunnels returns the list of created reverse tunnels