-
Notifications
You must be signed in to change notification settings - Fork 1
/
funcContainerSetDisabeStopOnChaosScene.go
52 lines (51 loc) · 2.13 KB
/
funcContainerSetDisabeStopOnChaosScene.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
package iotmakerdockerbuilder
// ContainerSetDisabeStopOnChaosScene
//
// English:
//
// Set the container stop functionality to be disabled when the chaos scene is running
//
// Input:
// value: true to disable the container stop functionality
//
// Note:
//
// * The following functions are used together during chaos testing:
// [optional] iotmakerdockerbuilder.ConfigChaosScene()
//
// Mandatory set:
// ContainerBuilder.EnableChaosScene()
// ContainerBuilder.SetTimeOnContainerUnpausedStateOnChaosScene()
// ContainerBuilder.SetTimeToStartChaosOnChaosScene()
// ContainerBuilder.SetTimeToRestartThisContainerAfterStopEventOnChaosScene()
// ContainerBuilder.SetTimeOnContainerPausedStateOnChaosScene()
// ContainerBuilder.SetTimeBeforeStartChaosInThisContainerOnChaosScene()
// ContainerBuilder.SetSceneNameOnChaosScene()
// [optional] ContainerBuilder.ContainerSetDisabePauseOnChaosScene()
// [optional] ContainerBuilder.ContainerSetDisabeStopOnChaosScene()
//
// Português:
//
// Define se a funcionalidade de parar o container será desabilitada quando a cena de chaos estiver em execução
//
// Entrada:
// value: true para desabilitar a funcionalidade de parar o container
//
// Nota:
//
// * As funções a seguir são usadas em conjunto durante o teste de caos:
// [opcional] iotmakerdockerbuilder.ConfigChaosScene()
//
// Conjunto obrigatório:
// ContainerBuilder.EnableChaosScene()
// ContainerBuilder.SetTimeOnContainerUnpausedStateOnChaosScene()
// ContainerBuilder.SetTimeToStartChaosOnChaosScene()
// ContainerBuilder.SetTimeToRestartThisContainerAfterStopEventOnChaosScene()
// ContainerBuilder.SetTimeOnContainerPausedStateOnChaosScene()
// ContainerBuilder.SetTimeBeforeStartChaosInThisContainerOnChaosScene()
// ContainerBuilder.SetSceneNameOnChaosScene()
// [opcional] ContainerBuilder.ContainerSetDisabePauseOnChaosScene()
// [opcional] ContainerBuilder.ContainerSetDisabeStopOnChaosScene()
func (e *ContainerBuilder) ContainerSetDisabeStopOnChaosScene(value bool) {
e.chaos.disableStopContainer = value
}