Documentation ¶
Overview ¶
Package handlers is a generated GoMock package.
Index ¶
- func GetTaskProtectionHandler(agentState state.AgentState, credentialsManager credentials.Manager, ...) func(http.ResponseWriter, *http.Request)
- func TaskProtectionPath() string
- func UpdateTaskProtectionHandler(agentState state.AgentState, credentialsManager credentials.Manager, ...) func(http.ResponseWriter, *http.Request)
- type MockTaskProtectionClientFactoryInterface
- type MockTaskProtectionClientFactoryInterfaceMockRecorder
- type TaskProtectionClientFactoryInterface
- type TaskProtectionRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTaskProtectionHandler ¶
func GetTaskProtectionHandler( agentState state.AgentState, credentialsManager credentials.Manager, factory TaskProtectionClientFactoryInterface, cluster string, metricsFactory metrics.EntryFactory, ecsCallTimeout time.Duration, ) func(http.ResponseWriter, *http.Request)
GetTaskProtectionHandler returns a handler function for GetTaskProtection API
func TaskProtectionPath ¶
func TaskProtectionPath() string
TaskProtectionPath Returns endpoint path for UpdateTaskProtection API
func UpdateTaskProtectionHandler ¶
func UpdateTaskProtectionHandler( agentState state.AgentState, credentialsManager credentials.Manager, factory TaskProtectionClientFactoryInterface, cluster string, metricsFactory metrics.EntryFactory, ecsCallTimeout time.Duration, ) func(http.ResponseWriter, *http.Request)
UpdateTaskProtectionHandler returns an HTTP request handler function for UpdateTaskProtection API
Types ¶
type MockTaskProtectionClientFactoryInterface ¶
type MockTaskProtectionClientFactoryInterface struct {
// contains filtered or unexported fields
}
MockTaskProtectionClientFactoryInterface is a mock of TaskProtectionClientFactoryInterface interface.
func NewMockTaskProtectionClientFactoryInterface ¶
func NewMockTaskProtectionClientFactoryInterface(ctrl *gomock.Controller) *MockTaskProtectionClientFactoryInterface
NewMockTaskProtectionClientFactoryInterface creates a new mock instance.
func (*MockTaskProtectionClientFactoryInterface) EXPECT ¶
func (m *MockTaskProtectionClientFactoryInterface) EXPECT() *MockTaskProtectionClientFactoryInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTaskProtectionClientFactoryInterface) NewTaskProtectionClient ¶
func (m *MockTaskProtectionClientFactoryInterface) NewTaskProtectionClient(arg0 credentials.TaskIAMRoleCredentials) ecs.ECSTaskProtectionSDK
NewTaskProtectionClient mocks base method.
type MockTaskProtectionClientFactoryInterfaceMockRecorder ¶
type MockTaskProtectionClientFactoryInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockTaskProtectionClientFactoryInterfaceMockRecorder is the mock recorder for MockTaskProtectionClientFactoryInterface.
func (*MockTaskProtectionClientFactoryInterfaceMockRecorder) NewTaskProtectionClient ¶
func (mr *MockTaskProtectionClientFactoryInterfaceMockRecorder) NewTaskProtectionClient(arg0 interface{}) *gomock.Call
NewTaskProtectionClient indicates an expected call of NewTaskProtectionClient.
type TaskProtectionClientFactoryInterface ¶
type TaskProtectionClientFactoryInterface interface {
NewTaskProtectionClient(taskRoleCredential credentials.TaskIAMRoleCredentials) ecs.ECSTaskProtectionSDK
}
type TaskProtectionRequest ¶
TaskProtectionRequest is the Task protection request received from customers pending validation