Documentation ¶
Overview ¶
Package handler deals with appropriately reacting to all ACS messages as well as maintaining the connection to ACS.
Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶ added in v1.14.0
type Session interface {
Start() error
}
Session defines an interface for handler's long-lived connection with ACS.
func NewSession ¶ added in v1.14.0
func NewSession(ctx context.Context, config *config.Config, deregisterInstanceEventStream *eventstream.EventStream, containerInstanceArn string, credentialsProvider *credentials.Credentials, ecsClient api.ECSClient, taskEngineState dockerstate.TaskEngineState, stateManager statemanager.StateManager, taskEngine engine.TaskEngine, credentialsManager rolecredentials.Manager, taskHandler *eventhandler.TaskHandler, latestSeqNumTaskManifest *int64) Session
NewSession creates a new Session object
type UnrecognizedTaskError ¶ added in v1.1.0
type UnrecognizedTaskError struct {
// contains filtered or unexported fields
}
func (UnrecognizedTaskError) Error ¶ added in v1.1.0
func (err UnrecognizedTaskError) Error() string