MCPcopy Create free account
hub / github.com/containers/common / RuntimeFromStoreOptions

Function RuntimeFromStoreOptions

libimage/runtime.go:118–128  ·  view source on GitHub ↗

RuntimeFromStoreOptions returns a return for the specified store options.

(runtimeOptions *RuntimeOptions, storeOptions *storage.StoreOptions)

Source from the content-addressed store, hash-verified

116
117// RuntimeFromStoreOptions returns a return for the specified store options.
118func 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

Callers 1

testNewRuntimeFunction · 0.85

Calls 1

RuntimeFromStoreFunction · 0.85

Tested by 1

testNewRuntimeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…