engine

package
Version: v1.25.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2019 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Overview

Package engine is a generated GoMock package.

Index

Constants

This section is empty.

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 New

func New() (*Engine, error)

New creates an instance of Engine

func (*Engine) PostStop

func (e *Engine) PostStop() error

PostStop cleans up the credentials endpoint setup by disabling loopback routing and removing the rerouting rule from the netfilter table

func (*Engine) PreStart

func (e *Engine) PreStart() error

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) PreStop

func (e *Engine) PreStop() error

PreStop sends commands to Docker to stop the ECS Agent

func (*Engine) ReloadCache

func (e *Engine) ReloadCache() error

ReloadCache reloads the cached image of the ECS Agent into Docker

func (*Engine) StartSupervised

func (e *Engine) StartSupervised() error

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

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

Create indicates an expected call of Create

func (*MockcredentialsProxyRouteMockRecorder) Remove

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

EXPECT returns an object that allows the caller to indicate expected use

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) 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

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 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

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

Enable indicates an expected call of Enable

func (*MockloopbackRoutingMockRecorder) RestoreDefault

func (mr *MockloopbackRoutingMockRecorder) RestoreDefault() *gomock.Call

RestoreDefault indicates an expected call of RestoreDefault

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL