Skip to content

Commit d8a5f60

Browse files
authored
Merge pull request #2885 from thaJeztah/config_missing_type
libcontainer/configs: add missing type for hooknames
2 parents 1c3c4ac + 4126b80 commit d8a5f60

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libcontainer/configs/config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,25 +222,25 @@ const (
222222
// the runtime environment has been created but before the pivot_root has been executed.
223223
// CreateRuntime is called immediately after the deprecated Prestart hook.
224224
// CreateRuntime commands are called in the Runtime Namespace.
225-
CreateRuntime = "createRuntime"
225+
CreateRuntime HookName = "createRuntime"
226226

227227
// CreateContainer commands MUST be called as part of the create operation after
228228
// the runtime environment has been created but before the pivot_root has been executed.
229229
// CreateContainer commands are called in the Container namespace.
230-
CreateContainer = "createContainer"
230+
CreateContainer HookName = "createContainer"
231231

232232
// StartContainer commands MUST be called as part of the start operation and before
233233
// the container process is started.
234234
// StartContainer commands are called in the Container namespace.
235-
StartContainer = "startContainer"
235+
StartContainer HookName = "startContainer"
236236

237237
// Poststart commands are executed after the container init process starts.
238238
// Poststart commands are called in the Runtime Namespace.
239-
Poststart = "poststart"
239+
Poststart HookName = "poststart"
240240

241241
// Poststop commands are executed after the container init process exits.
242242
// Poststop commands are called in the Runtime Namespace.
243-
Poststop = "poststop"
243+
Poststop HookName = "poststop"
244244
)
245245

246246
type Capabilities struct {

0 commit comments

Comments
 (0)