Documentation ¶
Overview ¶
Package engine is a generated GoMock package.
Index ¶
- Constants
- type Engine
- type MockcredentialsProxyRoute
- type MockcredentialsProxyRouteMockRecorder
- type MockdockerClient
- func (m *MockdockerClient) EXPECT() *MockdockerClientMockRecorder
- func (m *MockdockerClient) GetContainerLogTail(logWindowSize string) string
- func (m *MockdockerClient) IsAgentImageLoaded() (bool, error)
- func (m *MockdockerClient) LoadEnvVars() map[string]string
- func (m *MockdockerClient) LoadImage(image io.Reader) error
- func (m *MockdockerClient) RemoveExistingAgentContainer() error
- func (m *MockdockerClient) StartAgent() (int, error)
- func (m *MockdockerClient) StopAgent() error
- type MockdockerClientMockRecorder
- func (mr *MockdockerClientMockRecorder) GetContainerLogTail(logWindowSize interface{}) *gomock.Call
- func (mr *MockdockerClientMockRecorder) IsAgentImageLoaded() *gomock.Call
- func (mr *MockdockerClientMockRecorder) LoadEnvVars() *gomock.Call
- func (mr *MockdockerClientMockRecorder) LoadImage(image interface{}) *gomock.Call
- func (mr *MockdockerClientMockRecorder) RemoveExistingAgentContainer() *gomock.Call
- func (mr *MockdockerClientMockRecorder) StartAgent() *gomock.Call
- func (mr *MockdockerClientMockRecorder) StopAgent() *gomock.Call
- type Mockdownloader
- func (m *Mockdownloader) AgentCacheStatus() cache.CacheStatus
- func (m *Mockdownloader) DownloadAgent() error
- func (m *Mockdownloader) EXPECT() *MockdownloaderMockRecorder
- func (m *Mockdownloader) IsAgentCached() bool
- func (m *Mockdownloader) LoadCachedAgent() (io.ReadCloser, error)
- func (m *Mockdownloader) LoadDesiredAgent() (io.ReadCloser, error)
- func (m *Mockdownloader) RecordCachedAgent() error
- type MockdownloaderMockRecorder
- func (mr *MockdownloaderMockRecorder) AgentCacheStatus() *gomock.Call
- func (mr *MockdownloaderMockRecorder) DownloadAgent() *gomock.Call
- func (mr *MockdownloaderMockRecorder) IsAgentCached() *gomock.Call
- func (mr *MockdownloaderMockRecorder) LoadCachedAgent() *gomock.Call
- func (mr *MockdownloaderMockRecorder) LoadDesiredAgent() *gomock.Call
- func (mr *MockdownloaderMockRecorder) RecordCachedAgent() *gomock.Call
- type Mockipv6RouterAdvertisements
- type Mockipv6RouterAdvertisementsMockRecorder
- type MockloopbackRouting
- type MockloopbackRoutingMockRecorder
- type TerminalError
Constants ¶
const ( TerminalFailureAgentExitCode = 5 DefaultInitErrorExitCode = -1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine contains methods invoked when ecs-init is run
func (*Engine) PostStop ¶
PostStop cleans up the credentials endpoint setup by disabling loopback routing and removing the rerouting rule from the netfilter table
func (*Engine) PreStart ¶
PreStart prepares the ECS Agent for starting. It also configures the instance to handle credentials requests from containers by rerouting these requests to to the ECS Agent's credentials endpoint
func (*Engine) PreStartGPU ¶
PreStartGPU sets up the nvidia gpu manager if it's enabled.
func (*Engine) ReloadCache ¶
ReloadCache reloads the cached image of the ECS Agent into Docker
func (*Engine) StartSupervised ¶
StartSupervised starts the ECS Agent and ensures it stays running, except for terminal errors (indicated by an agent exit code of 5)
type MockcredentialsProxyRoute ¶
type MockcredentialsProxyRoute struct {
// contains filtered or unexported fields
}
MockcredentialsProxyRoute is a mock of credentialsProxyRoute interface
func NewMockcredentialsProxyRoute ¶
func NewMockcredentialsProxyRoute(ctrl *gomock.Controller) *MockcredentialsProxyRoute
NewMockcredentialsProxyRoute creates a new mock instance
func (*MockcredentialsProxyRoute) Create ¶
func (m *MockcredentialsProxyRoute) Create() error
Create mocks base method
func (*MockcredentialsProxyRoute) EXPECT ¶
func (m *MockcredentialsProxyRoute) EXPECT() *MockcredentialsProxyRouteMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockcredentialsProxyRoute) Remove ¶
func (m *MockcredentialsProxyRoute) Remove() error
Remove mocks base method
type MockcredentialsProxyRouteMockRecorder ¶
type MockcredentialsProxyRouteMockRecorder struct {
// contains filtered or unexported fields
}
MockcredentialsProxyRouteMockRecorder is the mock recorder for MockcredentialsProxyRoute
func (*MockcredentialsProxyRouteMockRecorder) Create ¶
func (mr *MockcredentialsProxyRouteMockRecorder) Create() *gomock.Call
Create indicates an expected call of Create
func (*MockcredentialsProxyRouteMockRecorder) Remove ¶
func (mr *MockcredentialsProxyRouteMockRecorder) Remove() *gomock.Call
Remove indicates an expected call of Remove
type MockdockerClient ¶
type MockdockerClient struct {
// contains filtered or unexported fields
}
MockdockerClient is a mock of dockerClient interface
func NewMockdockerClient ¶
func NewMockdockerClient(ctrl *gomock.Controller) *MockdockerClient
NewMockdockerClient creates a new mock instance
func (*MockdockerClient) EXPECT ¶
func (m *MockdockerClient) EXPECT() *MockdockerClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockdockerClient) GetContainerLogTail ¶
func (m *MockdockerClient) GetContainerLogTail(logWindowSize string) string
GetContainerLogTail mocks base method
func (*MockdockerClient) IsAgentImageLoaded ¶
func (m *MockdockerClient) IsAgentImageLoaded() (bool, error)
IsAgentImageLoaded mocks base method
func (*MockdockerClient) LoadEnvVars ¶
func (m *MockdockerClient) LoadEnvVars() map[string]string
LoadEnvVars mocks base method
func (*MockdockerClient) LoadImage ¶
func (m *MockdockerClient) LoadImage(image io.Reader) error
LoadImage mocks base method
func (*MockdockerClient) RemoveExistingAgentContainer ¶
func (m *MockdockerClient) RemoveExistingAgentContainer() error
RemoveExistingAgentContainer mocks base method
func (*MockdockerClient) StartAgent ¶
func (m *MockdockerClient) StartAgent() (int, error)
StartAgent mocks base method
func (*MockdockerClient) StopAgent ¶
func (m *MockdockerClient) StopAgent() error
StopAgent mocks base method
type MockdockerClientMockRecorder ¶
type MockdockerClientMockRecorder struct {
// contains filtered or unexported fields
}
MockdockerClientMockRecorder is the mock recorder for MockdockerClient
func (*MockdockerClientMockRecorder) GetContainerLogTail ¶
func (mr *MockdockerClientMockRecorder) GetContainerLogTail(logWindowSize interface{}) *gomock.Call
GetContainerLogTail indicates an expected call of GetContainerLogTail
func (*MockdockerClientMockRecorder) IsAgentImageLoaded ¶
func (mr *MockdockerClientMockRecorder) IsAgentImageLoaded() *gomock.Call
IsAgentImageLoaded indicates an expected call of IsAgentImageLoaded
func (*MockdockerClientMockRecorder) LoadEnvVars ¶
func (mr *MockdockerClientMockRecorder) LoadEnvVars() *gomock.Call
LoadEnvVars indicates an expected call of LoadEnvVars
func (*MockdockerClientMockRecorder) LoadImage ¶
func (mr *MockdockerClientMockRecorder) LoadImage(image interface{}) *gomock.Call
LoadImage indicates an expected call of LoadImage
func (*MockdockerClientMockRecorder) RemoveExistingAgentContainer ¶
func (mr *MockdockerClientMockRecorder) RemoveExistingAgentContainer() *gomock.Call
RemoveExistingAgentContainer indicates an expected call of RemoveExistingAgentContainer
func (*MockdockerClientMockRecorder) StartAgent ¶
func (mr *MockdockerClientMockRecorder) StartAgent() *gomock.Call
StartAgent indicates an expected call of StartAgent
func (*MockdockerClientMockRecorder) StopAgent ¶
func (mr *MockdockerClientMockRecorder) StopAgent() *gomock.Call
StopAgent indicates an expected call of StopAgent
type Mockdownloader ¶
type Mockdownloader struct {
// contains filtered or unexported fields
}
Mockdownloader is a mock of downloader interface
func NewMockdownloader ¶
func NewMockdownloader(ctrl *gomock.Controller) *Mockdownloader
NewMockdownloader creates a new mock instance
func (*Mockdownloader) AgentCacheStatus ¶
func (m *Mockdownloader) AgentCacheStatus() cache.CacheStatus
AgentCacheStatus mocks base method
func (*Mockdownloader) DownloadAgent ¶
func (m *Mockdownloader) DownloadAgent() error
DownloadAgent mocks base method
func (*Mockdownloader) EXPECT ¶
func (m *Mockdownloader) EXPECT() *MockdownloaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*Mockdownloader) IsAgentCached ¶
func (m *Mockdownloader) IsAgentCached() bool
IsAgentCached mocks base method
func (*Mockdownloader) LoadCachedAgent ¶
func (m *Mockdownloader) LoadCachedAgent() (io.ReadCloser, error)
LoadCachedAgent mocks base method
func (*Mockdownloader) LoadDesiredAgent ¶
func (m *Mockdownloader) LoadDesiredAgent() (io.ReadCloser, error)
LoadDesiredAgent mocks base method
func (*Mockdownloader) RecordCachedAgent ¶
func (m *Mockdownloader) RecordCachedAgent() error
RecordCachedAgent mocks base method
type MockdownloaderMockRecorder ¶
type MockdownloaderMockRecorder struct {
// contains filtered or unexported fields
}
MockdownloaderMockRecorder is the mock recorder for Mockdownloader
func (*MockdownloaderMockRecorder) AgentCacheStatus ¶
func (mr *MockdownloaderMockRecorder) AgentCacheStatus() *gomock.Call
AgentCacheStatus indicates an expected call of AgentCacheStatus
func (*MockdownloaderMockRecorder) DownloadAgent ¶
func (mr *MockdownloaderMockRecorder) DownloadAgent() *gomock.Call
DownloadAgent indicates an expected call of DownloadAgent
func (*MockdownloaderMockRecorder) IsAgentCached ¶
func (mr *MockdownloaderMockRecorder) IsAgentCached() *gomock.Call
IsAgentCached indicates an expected call of IsAgentCached
func (*MockdownloaderMockRecorder) LoadCachedAgent ¶
func (mr *MockdownloaderMockRecorder) LoadCachedAgent() *gomock.Call
LoadCachedAgent indicates an expected call of LoadCachedAgent
func (*MockdownloaderMockRecorder) LoadDesiredAgent ¶
func (mr *MockdownloaderMockRecorder) LoadDesiredAgent() *gomock.Call
LoadDesiredAgent indicates an expected call of LoadDesiredAgent
func (*MockdownloaderMockRecorder) RecordCachedAgent ¶
func (mr *MockdownloaderMockRecorder) RecordCachedAgent() *gomock.Call
RecordCachedAgent indicates an expected call of RecordCachedAgent
type Mockipv6RouterAdvertisements ¶
type Mockipv6RouterAdvertisements struct {
// contains filtered or unexported fields
}
Mockipv6RouterAdvertisements is a mock of ipv6RouterAdvertisements interface
func NewMockipv6RouterAdvertisements ¶
func NewMockipv6RouterAdvertisements(ctrl *gomock.Controller) *Mockipv6RouterAdvertisements
NewMockipv6RouterAdvertisements creates a new mock instance
func (*Mockipv6RouterAdvertisements) Disable ¶
func (m *Mockipv6RouterAdvertisements) Disable() error
Disable mocks base method
func (*Mockipv6RouterAdvertisements) EXPECT ¶
func (m *Mockipv6RouterAdvertisements) EXPECT() *Mockipv6RouterAdvertisementsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type Mockipv6RouterAdvertisementsMockRecorder ¶
type Mockipv6RouterAdvertisementsMockRecorder struct {
// contains filtered or unexported fields
}
Mockipv6RouterAdvertisementsMockRecorder is the mock recorder for Mockipv6RouterAdvertisements
func (*Mockipv6RouterAdvertisementsMockRecorder) Disable ¶
func (mr *Mockipv6RouterAdvertisementsMockRecorder) Disable() *gomock.Call
Disable indicates an expected call of Disable
type MockloopbackRouting ¶
type MockloopbackRouting struct {
// contains filtered or unexported fields
}
MockloopbackRouting is a mock of loopbackRouting interface
func NewMockloopbackRouting ¶
func NewMockloopbackRouting(ctrl *gomock.Controller) *MockloopbackRouting
NewMockloopbackRouting creates a new mock instance
func (*MockloopbackRouting) EXPECT ¶
func (m *MockloopbackRouting) EXPECT() *MockloopbackRoutingMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockloopbackRouting) Enable ¶
func (m *MockloopbackRouting) Enable() error
Enable mocks base method
func (*MockloopbackRouting) RestoreDefault ¶
func (m *MockloopbackRouting) RestoreDefault() error
RestoreDefault mocks base method
type MockloopbackRoutingMockRecorder ¶
type MockloopbackRoutingMockRecorder struct {
// contains filtered or unexported fields
}
MockloopbackRoutingMockRecorder is the mock recorder for MockloopbackRouting
func (*MockloopbackRoutingMockRecorder) Enable ¶
func (mr *MockloopbackRoutingMockRecorder) Enable() *gomock.Call
Enable indicates an expected call of Enable
func (*MockloopbackRoutingMockRecorder) RestoreDefault ¶
func (mr *MockloopbackRoutingMockRecorder) RestoreDefault() *gomock.Call
RestoreDefault indicates an expected call of RestoreDefault
type TerminalError ¶
type TerminalError struct {
// contains filtered or unexported fields
}
func (*TerminalError) Error ¶
func (e *TerminalError) Error() string