forked from aws/aws-lambda-runtime-interface-emulator
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathagentutil.go
More file actions
35 lines (24 loc) · 998 Bytes
/
agentutil.go
File metadata and controls
35 lines (24 loc) · 998 Bytes
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
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package core
import (
"errors"
)
var errInvalidEventType = errors.New("ErrorInvalidEventType")
var errEventNotSupportedForInternalAgent = errors.New("ShutdownEventNotSupportedForInternalExtension")
type disallowEverything struct {
}
// Register
func (s *disallowEverything) Register(events []Event) error { return ErrNotAllowed }
// Ready
func (s *disallowEverything) Ready() error { return ErrNotAllowed }
// InitError
func (s *disallowEverything) InitError(errorType string) error { return ErrNotAllowed }
// ExitError
func (s *disallowEverything) ExitError(errorType string) error { return ErrNotAllowed }
// ShutdownFailed
func (s *disallowEverything) ShutdownFailed() error { return ErrNotAllowed }
// Exited
func (s *disallowEverything) Exited() error { return ErrNotAllowed }
// LaunchError
func (s *disallowEverything) LaunchError(error) error { return ErrNotAllowed }