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

Function WithCAFile

pkg/grpcconn/grpcconn.go:57–61  ·  view source on GitHub ↗
(caFilePath string)

Source from the content-addressed store, hash-verified

55type Option func(*newOptionalArg)
56
57func WithCAFile(caFilePath string) Option {
58 return func(opt *newOptionalArg) {
59 opt.caFilePath = caFilePath
60 }
61}
62
63// WithCAContent sets the CA certificate content (PEM format or base64-encoded)
64func WithCAContent(content string) Option {

Callers 5

getCASBackendFunction · 0.92
wrappedArtifactConnFunction · 0.92
NewRootCmdFunction · 0.92
TestWithCAFileFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestWithCAFileFunction · 0.68