(id string)
| 52 | } |
| 53 | |
| 54 | func (r *appResolver) Get(id string) (App, bool) { |
| 55 | r.mutex.Lock() |
| 56 | defer r.mutex.Unlock() |
| 57 | app, ok := r.idToAppMap[id] |
| 58 | if !ok { |
| 59 | return nil, false |
| 60 | } |
| 61 | return app, true |
| 62 | } |
| 63 | |
| 64 | func (r *appResolver) New(unsignedFile io.Reader, name string, profile Profile, signArgs string, userBundleId string, builderId string, tweakMap map[string]io.Reader) (App, error) { |
| 65 | app, err := createApp(unsignedFile, name, profile, signArgs, userBundleId, builderId, tweakMap) |
no outgoing calls