-
Notifications
You must be signed in to change notification settings - Fork 64
/
execconfig.go
66 lines (50 loc) · 2.25 KB
/
execconfig.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors.
// Licensed under the BSD-3-Clause License (the "License").
// You may not use this file except in compliance with the License.
package firecracker
// ExecConfig represents the command-line arguments for the Firecracker binary.
type ExecConfig struct {
// Path to unix domain socket used by the API.
// [default: "/run/firecracker.socket"]
ApiSock string `flag:"--api-sock"`
// Whether or not to load boot timer device for logging elapsed time since
// InstanceStart command.
BootTimer bool `flag:"--boot-timer"`
// Path to a file that contains the microVM configuration in JSON format.
ConfigFile string `flag:"--config-file"`
// Print the data format version of the provided snapshot state file.
DescribeSnapshot string `flag:"--describe-snapshot"`
// Http API request payload max size, in bytes.
// [default: "51200"]
HttpApiMaxPayloadSize string `flag:"--http-api-max-payload-size"`
// MicroVM unique identifier.
// [default: "anonymous-instance"]
Id string `flag:"--id"`
// Set the logger level.
// [default: "Warning"]
Level string `flag:"--level"`
// Path to a fifo or a file used for configuring the logger on startup.
LogPath string `flag:"--log-path"`
// Path to a file that contains metadata in JSON format to add to the mmds.
Metadata string `flag:"--metadata"`
// Mmds data store limit, in bytes.
MmdsSizeLimit uint64 `flag:"--mmds-size-limit"`
// Optional parameter which allows starting and using a microVM without an
// active API socket.
NoApi bool `flag:"--no-api"`
// Optional parameter which allows starting and using a microVM without
// seccomp filtering. Not recommended.
NoSeccomp bool `flag:"--no-seccomp"`
// Parent process CPU time (wall clock, microseconds).
// This parameter is optional.
ParentCpuTimeUs uint64 `flag:"--parent-cpu-time-us"`
// Optional parameter which allows specifying the path to a custom seccomp
// filter. For advanced users.
SeccompFilter string `flag:"--seccomp-filter"`
// Whether or not to output the level in the logs.
ShowLevel bool `flag:"--show-level"`
// Whether or not to include the file path and line number of the log's
// origin.
ShowLogOrigin bool `flag:"--show-log-origin"`
}