MCPcopy Index your code
hub / github.com/coder/coder / StaticKey

Struct StaticKey

coderd/jwtutils/jws.go:158–161  ·  view source on GitHub ↗

StaticKey fulfills the SigningKeycache and EncryptionKeycache interfaces. Useful for testing.

Source from the content-addressed store, hash-verified

156
157// StaticKey fulfills the SigningKeycache and EncryptionKeycache interfaces. Useful for testing.
158type StaticKey struct {
159 ID string
160 Key interface{}
161}
162
163func (s StaticKey) SigningKey(_ context.Context) (string, interface{}, error) {
164 return s.ID, s.Key, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected