Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
persist: export asset
Browse files Browse the repository at this point in the history
export asset so that it can be used by other packages.

Signed-off-by: Wei Zhang <[email protected]>
  • Loading branch information
WeiZhang555 committed Jan 7, 2019
1 parent 071fa08 commit 80827f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions virtcontainers/persist/api/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion virtcontainers/persist/plugin/README.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 80827f9

Please sign in to comment.