SynthesizeAuthFile generates Auth entries for one auth JSON file payload. It shares exactly the same mapping behavior as FileSynthesizer.Synthesize.
(ctx *SynthesisContext, fullPath string, data []byte)
| 62 | // SynthesizeAuthFile generates Auth entries for one auth JSON file payload. |
| 63 | // It shares exactly the same mapping behavior as FileSynthesizer.Synthesize. |
| 64 | func SynthesizeAuthFile(ctx *SynthesisContext, fullPath string, data []byte) []*coreauth.Auth { |
| 65 | return synthesizeFileAuths(ctx, fullPath, data) |
| 66 | } |
| 67 | |
| 68 | func synthesizeFileAuths(ctx *SynthesisContext, fullPath string, data []byte) []*coreauth.Auth { |
| 69 | if ctx == nil || len(data) == 0 { |