()
| 94 | } |
| 95 | |
| 96 | func (t TunnelToken) Encode() (string, error) { |
| 97 | val, err := json.Marshal(t) |
| 98 | if err != nil { |
| 99 | return "", errors.Wrap(err, "could not JSON encode token") |
| 100 | } |
| 101 | |
| 102 | return base64.StdEncoding.EncodeToString(val), nil |
| 103 | } |
| 104 | |
| 105 | type ClassicTunnelProperties struct { |
| 106 | Hostname string |
no test coverage detected