//go:build !linux && !windows // +build !linux,!windows // 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. package engine import ( "context" "time" apicontainer "github.com/aws/amazon-ecs-agent/agent/api/container" apitask "github.com/aws/amazon-ecs-agent/agent/api/task" ) const ( // Constants for CNI timeout during setup and cleanup. cniSetupTimeout = time.Duration(0) cniCleanupTimeout = time.Duration(0) ) // updateTaskENIDependencies updates the task's dependencies for awsvpc networking mode. // This method is used only on Windows platform. func (engine *DockerTaskEngine) updateTaskENIDependencies(task *apitask.Task) { } // invokePluginForContainer is used to invoke the CNI plugin for the given container // On non-windows platform, we will not invoke CNI plugins for non-pause containers func (engine *DockerTaskEngine) invokePluginsForContainer(task *apitask.Task, container *apicontainer.Container) error { return nil } // watchAppNetImage is a file watcher, if there is any change/update to AppNet image // we reload the image and restart the relay instance task with updated AppNet image. func (engine *DockerTaskEngine) watchAppNetImage(ctx context.Context) { } // reloadAppNetImage reloads the new AppNet image for service connect func (engine *DockerTaskEngine) reloadAppNetImage() error { return nil } // restartInstanceTask stop the running internal relay task and starts a new one // with updated AppNet image func (engine *DockerTaskEngine) restartInstanceTask() { }