MCPcopy
hub / github.com/cloudflare/cloudflared / Encode

Method Encode

connection/connection.go:96–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96func (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
105type ClassicTunnelProperties struct {
106 Hostname string

Callers 10

EncodeOriginCertMethod · 0.45
SerializeHeadersFunction · 0.45
isTokenValidFunction · 0.45
CheckMethod · 0.45
tokenCommandFunction · 0.45
managementTokenCommandFunction · 0.45
buildURLFunction · 0.45
renderOutputFunction · 0.45
tokenCommandFunction · 0.45
FindOrCreateConfigPathFunction · 0.45

Calls 1

MarshalMethod · 0.45

Tested by

no test coverage detected