-
Notifications
You must be signed in to change notification settings - Fork 1
/
funcGetChaosEvent.go
34 lines (33 loc) · 1.31 KB
/
funcGetChaosEvent.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
package iotmakerdockerbuilder
// GetChaosEvent
//
// English:
//
// Returns channel of Chaos Winds.
//
// Output:
// eventChannel: chaos event channel
// ContainerName: container name
// Message: Error message or event suffered by container, as aborted by system.
// Error: True if there is an error
// Done: Trick for when the chaos roll was successful. See the AddSuccessMatchFlag() function
// Fail: True for when the chaos test failed. See the functions AddFailMatchFlag(),
// AddFailMatchFlagToFileLog(), AddFilterToFail()
// Metadata: Data defined by the SetMetadata() function
//
// Português:
//
// Retorna o canal de ventos de caos.
//
// Saída:
// eventChannel: canal de eventos de caos
// ContainerName: Nome do container
// Message: Mensagem de erro ou evento sofrido pelo container, como abortado pelo sistema.
// Error: True se houver erro
// Done: True para quando o teste de caos foi bem sucessido. Veja a função AddSuccessMatchFlag()
// Fail: True para quando o teste de caos falhou. Veja as funções AddFailMatchFlag(),
// AddFailMatchFlagToFileLog(), AddFilterToFail()
// Metadata: Dados definidos pela função SetMetadata()
func (e *ContainerBuilder) GetChaosEvent() (eventChannel chan Event) {
return e.chaos.event
}