Documentation
¶
Index ¶
- type ErrorExitCode
- type ErrorReason
- type ErrorSource
- type Event
- type EventData
- type EventType
- type ExecRequest
- type KillRequest
- type LockHardError
- type Logging
- type ManagedLogging
- type ManagedLoggingFormat
- type ManagedLoggingTopic
- type MockLockHardError
- type MockProcessSupervisor
- func (_m *MockProcessSupervisor) Events(_a0 context.Context) (<-chan Event, error)
- func (_m *MockProcessSupervisor) Exec(_a0 context.Context, _a1 *ExecRequest) error
- func (_m *MockProcessSupervisor) Kill(_a0 context.Context, _a1 *KillRequest) error
- func (_m *MockProcessSupervisor) Terminate(_a0 context.Context, _a1 *TerminateRequest) error
- type MockProcessSupervisorClient
- func (_m *MockProcessSupervisorClient) Events(_a0 context.Context) (<-chan Event, error)
- func (_m *MockProcessSupervisorClient) Exec(_a0 context.Context, _a1 *ExecRequest) error
- func (_m *MockProcessSupervisorClient) Kill(_a0 context.Context, _a1 *KillRequest) error
- func (_m *MockProcessSupervisorClient) Terminate(_a0 context.Context, _a1 *TerminateRequest) error
- type ProcessSupervisor
- type ProcessSupervisorClient
- type ProcessTermination
- type ProcessTerminationCause
- type SupervisorError
- type TerminateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorExitCode ¶
type ErrorExitCode uint8
type ErrorReason ¶
type ErrorReason string
type ErrorSource ¶
type ErrorSource string
const ( ErrorSourceClient ErrorSource = "Client" ErrorSourceServer ErrorSource = "Server" ErrorSourceFunction ErrorSource = "Customer" ErrorSourceHook ErrorSource = "Hook" )
type EventData ¶
type EventData struct {
EvType EventType `json:"type"`
Name string `json:"name"`
Cause ProcessTerminationCause `json:"cause"`
Signo *int32 `json:"signo"`
ExitStatus *int32 `json:"exit_status"`
Size *uint64 `json:"size"`
}
func (EventData) ProcessTerminated ¶
func (d EventData) ProcessTerminated() *ProcessTermination
type ExecRequest ¶
type KillRequest ¶
type LockHardError ¶
type Logging ¶
type Logging struct {
Managed ManagedLogging `json:"managed"`
}
type ManagedLogging ¶
type ManagedLogging struct {
Topic ManagedLoggingTopic `json:"topic"`
Formats []ManagedLoggingFormat `json:"formats"`
}
type ManagedLoggingFormat ¶
type ManagedLoggingFormat string
const ( LineBasedManagedLogging ManagedLoggingFormat = "line" MessageBasedManagedLogging ManagedLoggingFormat = "message" )
type ManagedLoggingTopic ¶
type ManagedLoggingTopic string
const ( RuntimeManagedLoggingTopic ManagedLoggingTopic = "runtime" RtExtensionManagedLoggingTopic ManagedLoggingTopic = "runtime_extension" )
type MockLockHardError ¶
func NewMockLockHardError ¶
func NewMockLockHardError(t interface {
mock.TestingT
Cleanup(func())
}) *MockLockHardError
func (*MockLockHardError) Cause ¶
func (_m *MockLockHardError) Cause() string
func (*MockLockHardError) HookName ¶
func (_m *MockLockHardError) HookName() string
func (*MockLockHardError) Reason ¶
func (_m *MockLockHardError) Reason() string
func (*MockLockHardError) Source ¶
func (_m *MockLockHardError) Source() string
type MockProcessSupervisor ¶
func NewMockProcessSupervisor ¶
func NewMockProcessSupervisor(t interface {
mock.TestingT
Cleanup(func())
}) *MockProcessSupervisor
func (*MockProcessSupervisor) Events ¶
func (_m *MockProcessSupervisor) Events(_a0 context.Context) (<-chan Event, error)
func (*MockProcessSupervisor) Exec ¶
func (_m *MockProcessSupervisor) Exec(_a0 context.Context, _a1 *ExecRequest) error
func (*MockProcessSupervisor) Kill ¶
func (_m *MockProcessSupervisor) Kill(_a0 context.Context, _a1 *KillRequest) error
func (*MockProcessSupervisor) Terminate ¶
func (_m *MockProcessSupervisor) Terminate(_a0 context.Context, _a1 *TerminateRequest) error
type MockProcessSupervisorClient ¶
func NewMockProcessSupervisorClient ¶
func NewMockProcessSupervisorClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockProcessSupervisorClient
func (*MockProcessSupervisorClient) Events ¶
func (_m *MockProcessSupervisorClient) Events(_a0 context.Context) (<-chan Event, error)
func (*MockProcessSupervisorClient) Exec ¶
func (_m *MockProcessSupervisorClient) Exec(_a0 context.Context, _a1 *ExecRequest) error
func (*MockProcessSupervisorClient) Kill ¶
func (_m *MockProcessSupervisorClient) Kill(_a0 context.Context, _a1 *KillRequest) error
func (*MockProcessSupervisorClient) Terminate ¶
func (_m *MockProcessSupervisorClient) Terminate(_a0 context.Context, _a1 *TerminateRequest) error
type ProcessSupervisor ¶
type ProcessSupervisorClient ¶
type ProcessSupervisorClient interface {
ProcessSupervisor
}
type ProcessTermination ¶
type ProcessTermination struct {
Name string
Cause ProcessTerminationCause
Signo *int32
ExitStatus *int32
}
func (ProcessTermination) Exited ¶
func (t ProcessTermination) Exited() *int32
func (ProcessTermination) ExitedWithZeroExitCode ¶
func (t ProcessTermination) ExitedWithZeroExitCode() bool
func (ProcessTermination) OomKilled ¶
func (t ProcessTermination) OomKilled() bool
func (ProcessTermination) Signaled ¶
func (t ProcessTermination) Signaled() *int32
func (ProcessTermination) String ¶
func (t ProcessTermination) String() string
type ProcessTerminationCause ¶
type ProcessTerminationCause string
const ( Signaled ProcessTerminationCause = "signaled" Exited ProcessTerminationCause = "exited" OomKilled ProcessTerminationCause = "oom_killed" )
type SupervisorError ¶
type SupervisorError struct {
SourceErr ErrorSource `json:"source"`
HookNameErr string `json:"hook_name"`
ExitCodeErr ErrorExitCode `json:"exit_code"`
ReasonErr string `json:"reason"`
CauseErr string `json:"cause"`
}
func (*SupervisorError) Cause ¶
func (l *SupervisorError) Cause() string
func (*SupervisorError) Error ¶
func (l *SupervisorError) Error() string
func (*SupervisorError) ExitCode ¶
func (l *SupervisorError) ExitCode() ErrorExitCode
func (*SupervisorError) HookName ¶
func (l *SupervisorError) HookName() string
func (*SupervisorError) Reason ¶
func (l *SupervisorError) Reason() string
func (*SupervisorError) Source ¶
func (l *SupervisorError) Source() ErrorSource
type TerminateRequest ¶
type TerminateRequest struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.