MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / WithClientFactory

Function WithClientFactory

app/controlplane/pkg/biz/casclient.go:65–69  ·  view source on GitHub ↗
(f CASClientFactory)

Source from the content-addressed store, hash-verified

63type CASClientOpts func(u *CASClientUseCase)
64
65func WithClientFactory(f CASClientFactory) CASClientOpts {
66 return func(c *CASClientUseCase) {
67 c.casClientFactory = f
68 }
69}
70
71func NewCASClientUseCase(credsProvider *CASCredentialsUseCase, config *conf.Bootstrap_CASServer, l log.Logger, opts ...CASClientOpts) *CASClientUseCase {
72 helper := servicelogger.ScopedHelper(l, "biz/cas-client")

Callers 1

TestIsReadyFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestIsReadyFunction · 0.74