Skip to content

Commit 56b54d1

Browse files
committed
machine: reorganize struct
Signed-off-by: Samuel Karp <[email protected]>
1 parent e4d80c1 commit 56b54d1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

machine.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,18 @@ func (cfg *Config) Validate() error {
134134

135135
// Machine is the main object for manipulating Firecracker microVMs
136136
type Machine struct {
137+
// Metadata is the associated metadata that will be sent to the firecracker
138+
// process
139+
Metadata interface{}
140+
// Handlers holds the set of handlers that are run for validation and start
141+
Handlers Handlers
142+
137143
cfg Config
138144
client Firecracker
139145
cmd *exec.Cmd
140146
logger *log.Entry
141147
machineConfig models.MachineConfiguration // The actual machine config as reported by Firecracker
142-
143-
// Metadata is the associated metadata that will be sent to the firecracker
144-
// process
145-
Metadata interface{}
146-
errCh chan error
147-
Handlers Handlers
148+
errCh chan error
148149
}
149150

150151
// Logger returns a logrus logger appropriate for logging hypervisor messages

0 commit comments

Comments
 (0)