From 80827f9ac6177ac01099b9ea0e9d19c9a16c6436 Mon Sep 17 00:00:00 2001 From: Wei Zhang Date: Mon, 7 Jan 2019 11:05:30 +0800 Subject: [PATCH] persist: export asset export asset so that it can be used by other packages. Signed-off-by: Wei Zhang --- virtcontainers/persist/api/config.go | 5 +++-- virtcontainers/persist/plugin/README.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/virtcontainers/persist/api/config.go b/virtcontainers/persist/api/config.go index 8739077367..10f9dbe2af 100644 --- a/virtcontainers/persist/api/config.go +++ b/virtcontainers/persist/api/config.go @@ -12,7 +12,8 @@ type Param struct { Value string } -type asset struct { +// Asset saves hypervisor asset +type Asset struct { Path string `json:"path"` Custom bool `json:"bool"` } @@ -90,7 +91,7 @@ type HypervisorConfig struct { // Each value in that map takes precedence over the configured assets. // For example, if there is a value for the "kernel" key in this map, // it will be used for the sandbox's kernel path instead of KernelPath. - customAssets map[string]*asset + CustomAssets map[string]*Asset // BlockDeviceCacheSet specifies cache-related options will be set to block devices or not. BlockDeviceCacheSet bool diff --git a/virtcontainers/persist/plugin/README.md b/virtcontainers/persist/plugin/README.md index 7a704d22d7..ec230d15b8 100644 --- a/virtcontainers/persist/plugin/README.md +++ b/virtcontainers/persist/plugin/README.md @@ -1,2 +1,2 @@ -This package is a simple placeholder currently which will contains persist storage plugin support, +This package is a simple placeholder currently which will contain persist storage plugin support, e.g. leveldb, sqlite and other possible storage implementations.