MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Detail

Method Detail

module/certificate/impl.go:195–205  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

193}
194
195func (m *imlCertificate) Detail(ctx context.Context, id string) (*certificatedto.Certificate, *certificatedto.File, error) {
196 get, f, err := m.service.Get(ctx, id)
197 if err != nil {
198 return nil, nil, err
199 }
200 out := certificatedto.FromModel(get)
201 return out, &certificatedto.File{
202 Key: base64.RawStdEncoding.EncodeToString(f.Key),
203 Cert: base64.RawStdEncoding.EncodeToString(f.Cert),
204 }, nil
205}
206
207func (m *imlCertificate) Delete(ctx context.Context, id string) error {
208 cert, _, err := m.service.Get(ctx, id)

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected