MCPcopy
hub / github.com/smallstep/cli / Set

Method Set

token/token.go:55–60  ·  view source on GitHub ↗

Set adds the given key and value to the map of extra claims.

(key string, value interface{})

Source from the content-addressed store, hash-verified

53
54// Set adds the given key and value to the map of extra claims.
55func (c *Claims) Set(key string, value interface{}) {
56 if c.ExtraClaims == nil {
57 c.ExtraClaims = make(map[string]interface{})
58 }
59 c.ExtraClaims[key] = value
60}
61
62// SetHeader adds the given key and value to the map of extra headers.
63func (c *Claims) SetHeader(key string, value interface{}) {

Callers 15

TestClaims_SetFunction · 0.95
SignMethod · 0.95
bootstrapFunction · 0.80
startHTTPServerFunction · 0.80
newACMEFlowFunction · 0.80
postFormFunction · 0.80
DoDeviceAuthorizationMethod · 0.80
ExchangeMethod · 0.80
rekeyActionFunction · 0.80
renewActionFunction · 0.80
TestInspectCertificatesFunction · 0.80

Calls

no outgoing calls

Tested by 7

TestClaims_SetFunction · 0.76
TestInspectCertificatesFunction · 0.64
TestParseCaURLFunction · 0.64
TestParseCaURLIfExistsFunction · 0.64
TestFirstStringOfFunction · 0.64