handler

package
v1.14.0-1.windows.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 24 Imported by: 0

Documentation

Overview

Package handler deals with appropriately reacting to all ACS messages as well as maintaining the connection to ACS.

Copyright 2014-2016 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 2014-2016 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

func StartSession

func StartSession(ctx context.Context, args StartSessionArguments) error

StartSession creates a session with ACS and handles requests from ACS. It creates resources required to invoke the package scoped 'startSession()' method and invokes the same to repeatedly connect to ACS when disconnected

Types

type StartSessionArguments added in v1.3.1

type StartSessionArguments struct {
	ContainerInstanceArn          string
	CredentialProvider            *credentials.Credentials
	Config                        *config.Config
	DeregisterInstanceEventStream *eventstream.EventStream
	TaskEngine                    engine.TaskEngine
	ECSClient                     api.ECSClient
	StateManager                  statemanager.StateManager
	AcceptInvalidCert             bool
	CredentialsManager            rolecredentials.Manager
	// contains filtered or unexported fields
}

StartSessionArguments is a struct representing all the things this handler needs... This is really a hack to get by-name instead of positional arguments since there are too many for positional to be wieldy

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

Jump to

Keyboard shortcuts

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