Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyECS ¶
DummyECS allows tests to mock ECS metadata server responses
func NewDummyECS ¶
NewDummyECS create a mock of the ECS metadata API.
type Option ¶
type Option func(*DummyECS)
Option represents an option used to create a new mock of the ECS metadata server.
func FileHandlerOption ¶
FileHandlerOption allows returning the content of a file to requests matching a pattern.
func RawHandlerOption ¶
RawHandlerOption allows returning the specified string to requests matching a pattern.
Click to show internal directories.
Click to hide internal directories.