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

Method MTLSAuthCAStoreFetcher

pkg/config/shared.go:620–625  ·  view source on GitHub ↗

MTLSAuthCAStoreFetcher returns a fetch.Interface based on the mTLS auth CAStore configuration. If no configuration source is set, this method returns nil, nil.

(
	ctx context.Context,
	httpClientProvider httpclient.Provider,
)

Source from the content-addressed store, hash-verified

618// MTLSAuthCAStoreFetcher returns a fetch.Interface based on the mTLS auth CAStore configuration.
619// If no configuration source is set, this method returns nil, nil.
620func (c ServiceBase) MTLSAuthCAStoreFetcher(
621 ctx context.Context,
622 httpClientProvider httpclient.Provider,
623) (fetch.Interface, error) {
624 return c.MTLSAuth.Fetcher(ctx, c.Blob, httpClientProvider)
625}
626
627// Fetcher returns a fetch.Interface based on the configuration.
628// If no configuration source is set, this method returns nil, nil.

Callers 1

NewFunction · 0.80

Calls 1

FetcherMethod · 0.45

Tested by

no test coverage detected