RuntimeFromStoreOptions returns a return for the specified store options.
(runtimeOptions *RuntimeOptions, storeOptions *storage.StoreOptions)
| 116 | |
| 117 | // RuntimeFromStoreOptions returns a return for the specified store options. |
| 118 | func RuntimeFromStoreOptions(runtimeOptions *RuntimeOptions, storeOptions *storage.StoreOptions) (*Runtime, error) { |
| 119 | if storeOptions == nil { |
| 120 | storeOptions = &storage.StoreOptions{} |
| 121 | } |
| 122 | store, err := storage.GetStore(*storeOptions) |
| 123 | if err != nil { |
| 124 | return nil, err |
| 125 | } |
| 126 | storageTransport.Transport.SetStore(store) |
| 127 | return RuntimeFromStore(store, runtimeOptions) |
| 128 | } |
| 129 | |
| 130 | // Shutdown attempts to free any kernel resources which are being used by the |
| 131 | // underlying driver. If "force" is true, any mounted (i.e., in use) layers |
searching dependent graphs…