You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// authz2ModelMapToPB converts a mapping of domain name to authz2Models into a// protobuf authorizations mapfuncauthz2ModelMapToPB(mmap[string]authz2Model) (*sapb.Authorizations, error) {
resp:=&sapb.Authorizations{}
fork, v:=rangem {
// Make a copy of k because it will be reassigned with each loop.kCopy:=kauthzPB, err:=modelToAuthzPB(&v)
iferr!=nil {
returnnil, err
}
resp.Authz=append(resp.Authz, &sapb.Authorizations_MapElement{
Domain: &kCopy,
Authz: authzPB,
})
}
returnresp, nil
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: