2021-06-24 11:28:08 -04:00
|
|
|
package environment
|
|
|
|
|
|
|
|
import (
|
2022-01-02 10:16:23 -05:00
|
|
|
"github.com/v2fly/v2ray-core/v5/features/extension/storage"
|
2021-06-24 11:28:08 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
type AppEnvironmentCapabilitySet interface {
|
|
|
|
BaseEnvironmentCapabilitySet
|
|
|
|
SystemNetworkCapabilitySet
|
|
|
|
InstanceNetworkCapabilitySet
|
|
|
|
FileSystemCapabilitySet
|
2021-09-05 10:36:57 -04:00
|
|
|
PersistentStorage() storage.ScopedPersistentStorage
|
|
|
|
TransientStorage() storage.ScopedTransientStorage
|
2021-06-24 11:28:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type AppEnvironment interface {
|
|
|
|
AppEnvironmentCapabilitySet
|
|
|
|
NarrowScope(key []byte) (AppEnvironment, error)
|
|
|
|
doNotImpl()
|
|
|
|
}
|