MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithVerifiedSource

Method WithVerifiedSource

pkg/cluster/cluster.go:74–74  ·  view source on GitHub ↗

WithVerifiedSource verifies if the caller providing this context is a component from the cluster, and returns a new context with that information.

(context.Context)

Source from the content-addressed store, hash-verified

72 // WithVerifiedSource verifies if the caller providing this context is a component from the cluster, and returns a
73 // new context with that information.
74 WithVerifiedSource(context.Context) context.Context
75}
76
77// Option to apply at cluster initialization.

Callers 3

ClusterAuthUnaryHookMethod · 0.65
ClusterAuthStreamHookMethod · 0.65
TestVerifySourceFunction · 0.65

Calls

no outgoing calls

Tested by 1

TestVerifySourceFunction · 0.52