GetVerifier returns Verifier with respect to provider
()
| 557 | |
| 558 | // GetVerifier returns Verifier with respect to provider |
| 559 | func (context *AptlyContext) GetVerifier() pgp.Verifier { |
| 560 | context.Lock() |
| 561 | defer context.Unlock() |
| 562 | |
| 563 | provider := context.pgpProvider() |
| 564 | if provider == "internal" { // nolint: goconst |
| 565 | return &pgp.GoVerifier{} |
| 566 | } |
| 567 | |
| 568 | return pgp.NewGpgVerifier(context.getGPGFinder()) |
| 569 | } |
| 570 | |
| 571 | // SkelPath builds the local skeleton folder |
| 572 | func (context *AptlyContext) SkelPath() string { |
no test coverage detected