| 36 | var casClientTracer = otelx.Tracer("chainloop-controlplane", "biz/casclient") |
| 37 | |
| 38 | type CASClientUseCase struct { |
| 39 | // to generate temporary credentials |
| 40 | credsProvider *CASCredentialsUseCase |
| 41 | // configuration to generate the client |
| 42 | casServerConf *conf.Bootstrap_CASServer |
| 43 | // factory to generate the client |
| 44 | casClientFactory CASClientFactory |
| 45 | logger *log.Helper |
| 46 | } |
| 47 | |
| 48 | type CASUploader interface { |
| 49 | Upload(ctx context.Context, backendType, secretID string, orgID uuid.UUID, content io.Reader, filename, digest string) error |
nothing calls this directly
no outgoing calls
no test coverage detected