MCPcopy Create free account
hub / github.com/anchordotdev/cli / performAudit

Method performAudit

lcl/bootstrap.go:249–261  ·  view source on GitHub ↗
(ctx context.Context, drv *ui.Driver, orgAPID, realmAPID string)

Source from the content-addressed store, hash-verified

247}
248
249func (c Bootstrap) performAudit(ctx context.Context, drv *ui.Driver, orgAPID, realmAPID string) (*truststore.AuditInfo, error) {
250 stores, err := trust.LoadStores(ctx, drv)
251 if err != nil {
252 return nil, err
253 }
254
255 cas, err := trust.FetchExpectedCAs(ctx, c.anc, orgAPID, realmAPID)
256 if err != nil {
257 return nil, err
258 }
259
260 return trust.PerformAudit(ctx, stores, cas)
261}
262
263func (c Bootstrap) checkHTTP(ctx context.Context, cfg *cli.Config, drv *ui.Driver, srv *api.Service, diagPort string, requestc <-chan string) (bool, error) {
264 domain := srv.Slug + ".lcl.host" // TODO: look this up properly

Callers 1

performMethod · 0.95

Calls 3

LoadStoresFunction · 0.92
FetchExpectedCAsFunction · 0.92
PerformAuditFunction · 0.92

Tested by

no test coverage detected