handlers

package
v0.0.0-...-b702281 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Overview

Package handlers is a generated GoMock package.

Index

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

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

func (*MockTaskProtectionClientFactoryInterface) NewTaskProtectionClient

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

type TaskProtectionRequest struct {
	ProtectionEnabled *bool
	ExpiresInMinutes  *int64
}

TaskProtectionRequest is the Task protection request received from customers pending validation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL