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

Method initGateway

module/certificate/impl.go:66–76  ·  view source on GitHub ↗
(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver)

Source from the content-addressed store, hash-verified

64}
65
66func (m *imlCertificate) initGateway(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver) error {
67 certificateClient, err := clientDriver.Dynamic("certificate")
68 if err != nil {
69 return err
70 }
71 certs, err := m.getCertificates(ctx, clusterId)
72 if err != nil {
73 return err
74 }
75 return certificateClient.Online(ctx, certs...)
76}
77
78func (m *imlCertificate) save(ctx context.Context, id string, clusterId string, create *certificatedto.FileInput) (*certificatedto.Certificate, error) {
79

Callers

nothing calls this directly

Calls 3

getCertificatesMethod · 0.95
DynamicMethod · 0.65
OnlineMethod · 0.65

Tested by

no test coverage detected