config.go 568 字节
Newer Older
S
stormgbs 已提交
1 2 3 4 5 6 7
package config

type Containerd struct {
	Socket string `toml:"socket"`
}

type Occlum struct {
8 9
	BuildImage         string `toml:"build_image"`
	EnclaveRuntimePath string `toml:"enclave_runtime_path"`
S
stormgbs 已提交
10 11 12 13 14 15
}

type Graphene struct {
}

type EnclaveRuntime struct {
16
	Occlum   Occlum   `toml:"occlum"`
S
stormgbs 已提交
17 18 19 20
	Graphene Graphene `toml:"graphene"`
}

type Config struct {
21 22 23
	LogLevel       string         `toml:"log_level"`
	SgxToolSign    string         `toml:"sgx_tool_sign"`
	Containerd     Containerd     `toml:"containerd"`
S
stormgbs 已提交
24 25
	EnclaveRuntime EnclaveRuntime `toml:"enclave_runtime"`
}