_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c169100 | validation | // applyResourceState moves the resource to the given state by calling the
// function defined in the transitionFunctionMap for the state | {
"resource": ""
} | ||
c169101 | validation | // waitForStopReported will wait for the task to be reported stopped and return true, or will time-out and return false.
// Messages on the mtask.dockerMessages and mtask.acsMessages channels will be handled while this function is waiting. | {
"resource": ""
} | ||
c169102 | validation | // NewFactory initializes a client factory using a specified endpoint. | {
"resource": ""
} | ||
c169103 | validation | // FindClientAPIVersion returns the version of the client from the map | {
"resource": ""
} | ||
c169104 | validation | // getClient returns a client specified by the docker version. It's wrapped
// by GetClient so that it can do platform-specific magic. | {
"resource": ""
} | ||
c169105 | validation | // findDockerVersions loops over all known API versions and finds which ones
// are supported by the docker daemon on the host | {
"resource": ""
} | ||
c169106 | validation | // runAgent runs the ECS agent inside a goroutine and waits to be told to exit. | {
"resource": ""
} | ||
c169107 | validation | // sleepCtx provides a cancelable sleep | {
"resource": ""
} | ||
c169108 | validation | // TaskMetadataHandler returns the handler method for handling task metadata requests. | {
"resource": ""
} | ||
c169109 | validation | // Subscribe adds the handler to be called into EventStream | {
"resource": ""
} | ||
c169110 | validation | // broadcast calls all handler's handler function | {
"resource": ""
} | ||
c169111 | validation | // Unsubscribe deletes the handler from the EventStream | {
"resource": ""
} | ||
c169112 | validation | // WriteToEventStream writes event to the event stream | {
"resource": ""
} | ||
c169113 | validation | // listen listens to the event channel | {
"resource": ""
} | ||
c169114 | validation | // StartListening mark the event stream as open and start listening | {
"resource": ""
} | ||
c169115 | validation | // SetLevel sets the log level for logging | {
"resource": ""
} | ||
c169116 | validation | // ForModule returns an OldLogger instance. OldLogger is deprecated and kept
// for compatibility reasons. Prefer using Seelog directly. | {
"resource": ""
} | ||
c169117 | validation | // NewMockWebsocketConn creates a new mock instance | {
"resource": ""
} | ||
c169118 | validation | // ReadMessage mocks base method | {
"resource": ""
} | ||
c169119 | validation | // Get indicates an expected call of Get | {
"resource": ""
} | ||
c169120 | validation | // NewSSMSecretResource creates a new SSMSecretResource object | {
"resource": ""
} | ||
c169121 | validation | // Create fetches secret value from SSM in batches. It spins up multiple goroutines in order to
// retrieve values in parallel. | {
"resource": ""
} | ||
c169122 | validation | // getGoRoutineMaxNum calculates the maximum number of goroutines that we need to spin up
// to retrieve secret values from SSM parameter store. Assume each goroutine initiates one
// SSM GetParameters call and each call will have 10 parameters | {
"resource": ""
} | ||
c169123 | validation | // retrieveSSMSecretValuesByRegion reads secret values from cache first, if not exists, batches secrets based on field
// valueFrom and call retrieveSSMSecretValues to retrieve values from SSM | {
"resource": ""
} | ||
c169124 | validation | // retrieveSSMSecretValues retrieves secret values from SSM parameter store and caches them into memory | {
"resource": ""
} | ||
c169125 | validation | // clearSSMSecretValue cycles through the collection of secret value data and
// removes them from the task | {
"resource": ""
} | ||
c169126 | validation | // GetCachedSecretValue retrieves the secret value from secretData field | {
"resource": ""
} | ||
c169127 | validation | // SetCachedSecretValue set the secret value in the secretData field given the key and value | {
"resource": ""
} | ||
c169128 | validation | // Clean mocks base method | {
"resource": ""
} | ||
c169129 | validation | // SetAvailabilityZone mocks base method | {
"resource": ""
} | ||
c169130 | validation | // SetContainerInstanceARN mocks base method | {
"resource": ""
} | ||
c169131 | validation | // SetHostPublicIPv4Address mocks base method | {
"resource": ""
} | ||
c169132 | validation | // NewMockDockerMetadataClient creates a new mock instance | {
"resource": ""
} | ||
c169133 | validation | // InspectContainer indicates an expected call of InspectContainer | {
"resource": ""
} | ||
c169134 | validation | // JsonKeys takes an arbitrary byte array representing a json stringified object
// and returns all the keys of that object. | {
"resource": ""
} | ||
c169135 | validation | // TaskContainerMetadataHandler returns the handler method for handling task and container metadata requests. | {
"resource": ""
} | ||
c169136 | validation | // WriteContainerMetadataResponse writes the container metadata to response writer. | {
"resource": ""
} | ||
c169137 | validation | // WriteTaskMetadataResponse writes the task metadata to response writer. | {
"resource": ""
} | ||
c169138 | validation | // Init is used to setup the cgroup root for ecs | {
"resource": ""
} | ||
c169139 | validation | // Error returns an error string | {
"resource": ""
} | ||
c169140 | validation | // Retry returns true if this error should be considered retriable | {
"resource": ""
} | ||
c169141 | validation | // NewMockDockerStateResolver creates a new mock instance | {
"resource": ""
} | ||
c169142 | validation | // State indicates an expected call of State | {
"resource": ""
} | ||
c169143 | validation | // printLicense prints the Agent's license text | {
"resource": ""
} | ||
c169144 | validation | // Load is used to load the cgroup hierarchy based off the cgroup path | {
"resource": ""
} | ||
c169145 | validation | // New is used to create a new cgroup hierarchy | {
"resource": ""
} | ||
c169146 | validation | // timeoutAndMoveOn executes the long running function pointed to by 'fp' and
// times out after 'timeout' duration. | {
"resource": ""
} | ||
c169147 | validation | // UnmarshalJSON restores a previously marshaled task-engine state from json | {
"resource": ""
} | ||
c169148 | validation | // Init initializes a DockerTaskEngine such that it may communicate with docker
// and operate normally.
// This function must be called before any other function, except serializing and deserializing, can succeed without error. | {
"resource": ""
} | ||
c169149 | validation | // MustInit blocks and retries until an engine can be initialized. | {
"resource": ""
} | ||
c169150 | validation | // isTaskManaged checks if task for the corresponding arn is present | {
"resource": ""
} | ||
c169151 | validation | // synchronizeState explicitly goes through each docker container stored in
// "state" and updates its KnownStatus appropriately, as well as queueing up
// events to push upstream. | {
"resource": ""
} | ||
c169152 | validation | // filterTasksToStartUnsafe filters only the tasks that need to be started after
// the agent has been restarted. It also synchronizes states of all of the containers
// in tasks that need to be started. | {
"resource": ""
} | ||
c169153 | validation | // updateContainerMetadata sets the container metadata from the docker inspect | {
"resource": ""
} | ||
c169154 | validation | // synchronizeContainerStatus checks and updates the container status with docker | {
"resource": ""
} | ||
c169155 | validation | // checkTaskState inspects the state of all containers within a task and writes
// their state to the managed task's container channel. | {
"resource": ""
} | ||
c169156 | validation | // sweepTask deletes all the containers associated with a task | {
"resource": ""
} | ||
c169157 | validation | // startTask creates a managedTask construct to track the task and then begins
// pushing it towards its desired state when allowed startTask is protected by
// the tasksLock lock of 'AddTask'. It should not be called from anywhere
// else and should exit quickly to allow AddTask to do more work. | {
"resource": ""
} | ||
c169158 | validation | // openEventstream opens, but does not consume, the docker event stream | {
"resource": ""
} | ||
c169159 | validation | // handleDockerEvents must be called after openEventstream; it processes each
// event that it reads from the docker eventstream | {
"resource": ""
} | ||
c169160 | validation | // handleDockerEvent is the entrypoint for task modifications originating with
// events occurring through Docker, outside the task engine itself.
// handleDockerEvent is responsible for taking an event that correlates to a
// container and placing it in the context of the task to which that container
// belongs. | {
"resource": ""
} | ||
c169161 | validation | // AddTask starts tracking a task | {
"resource": ""
} | ||
c169162 | validation | // ListTasks returns the tasks currently managed by the DockerTaskEngine | {
"resource": ""
} | ||
c169163 | validation | // GetTaskByArn returns the task identified by that ARN | {
"resource": ""
} | ||
c169164 | validation | // imagePullRequired returns true if pulling image is required, or return false if local image cache
// should be used, by inspecting the agent pull behavior variable defined in config. The caller has
// to make sure the container passed in is not an internal container. | {
"resource": ""
} | ||
c169165 | validation | // cleanupPauseContainerNetwork will clean up the network namespace of pause container | {
"resource": ""
} | ||
c169166 | validation | // updateTaskUnsafe determines if a new transition needs to be applied to the
// referenced task, and if needed applies it. It should not be called anywhere
// but from 'AddTask' and is protected by the tasksLock lock there. | {
"resource": ""
} | ||
c169167 | validation | // transitionContainer calls applyContainerState, and then notifies the managed
// task of the change. transitionContainer is called by progressTask and
// by handleStoppedToRunningContainerTransition. | {
"resource": ""
} | ||
c169168 | validation | // applyContainerState moves the container to the given state by calling the
// function defined in the transitionFunctionMap for the state | {
"resource": ""
} | ||
c169169 | validation | // Version returns the underlying docker version. | {
"resource": ""
} | ||
c169170 | validation | // NewMockSSMClient creates a new mock instance | {
"resource": ""
} | ||
c169171 | validation | // GetParameters mocks base method | {
"resource": ""
} | ||
c169172 | validation | // GetParameters indicates an expected call of GetParameters | {
"resource": ""
} | ||
c169173 | validation | // NewMockFactory creates a new mock instance | {
"resource": ""
} | ||
c169174 | validation | // FindClientAPIVersion mocks base method | {
"resource": ""
} | ||
c169175 | validation | // FindKnownAPIVersions mocks base method | {
"resource": ""
} | ||
c169176 | validation | // GetDefaultClient mocks base method | {
"resource": ""
} | ||
c169177 | validation | // NewMockFileSystem creates a new mock instance | {
"resource": ""
} | ||
c169178 | validation | // Exit mocks base method | {
"resource": ""
} | ||
c169179 | validation | // MkdirAll mocks base method | {
"resource": ""
} | ||
c169180 | validation | // ReadAll mocks base method | {
"resource": ""
} | ||
c169181 | validation | // Remove mocks base method | {
"resource": ""
} | ||
c169182 | validation | // Rename mocks base method | {
"resource": ""
} | ||
c169183 | validation | // TeeReader mocks base method | {
"resource": ""
} | ||
c169184 | validation | // initializeTaskENIDependencies initializes all of the dependencies required by
// the Agent to support the 'awsvpc' networking mode. A non nil error is returned
// if an error is encountered during this process. An additional boolean flag to
// indicate if this error is considered terminal is also returned | {
"resource": ""
} | ||
c169185 | validation | // setVPCSubnet sets the vpc and subnet ids for the agent by querying the
// instance metadata service | {
"resource": ""
} | ||
c169186 | validation | // startUdevWatcher starts the udev monitor and the watcher for receiving
// notifications from the monitor | {
"resource": ""
} | ||
c169187 | validation | // This function increments the call count for a specific API call
// This is invoked at the API call's start, whereas the duration metrics
// are updated at the API call's end. | {
"resource": ""
} | ||
c169188 | validation | // NewMockTaskEngineState creates a new mock instance | {
"resource": ""
} | ||
c169189 | validation | // AddContainer mocks base method | {
"resource": ""
} | ||
c169190 | validation | // AddENIAttachment mocks base method | {
"resource": ""
} | ||
c169191 | validation | // AddImageState mocks base method | {
"resource": ""
} | ||
c169192 | validation | // AddTaskIPAddress mocks base method | {
"resource": ""
} | ||
c169193 | validation | // AllImageStates mocks base method | {
"resource": ""
} | ||
c169194 | validation | // AllImageStates indicates an expected call of AllImageStates | {
"resource": ""
} | ||
c169195 | validation | // AllTasks mocks base method | {
"resource": ""
} | ||
c169196 | validation | // ContainerByID mocks base method | {
"resource": ""
} | ||
c169197 | validation | // ENIByMac mocks base method | {
"resource": ""
} | ||
c169198 | validation | // GetAllContainerIDs mocks base method | {
"resource": ""
} | ||
c169199 | validation | // RemoveENIAttachment mocks base method | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.