_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c169200 | validation | // RemoveImageState mocks base method | {
"resource": ""
} | ||
c169201 | validation | // RemoveTask mocks base method | {
"resource": ""
} | ||
c169202 | validation | // RemoveTask indicates an expected call of RemoveTask | {
"resource": ""
} | ||
c169203 | validation | // TaskARNByV3EndpointID mocks base method | {
"resource": ""
} | ||
c169204 | validation | // TaskByArn mocks base method | {
"resource": ""
} | ||
c169205 | validation | // UnmarshalJSON mocks base method | {
"resource": ""
} | ||
c169206 | validation | // String converts the container type enum to a string | {
"resource": ""
} | ||
c169207 | validation | // UnmarshalJSON decodes the container type field in the JSON encoded string
// into the ContainerType object | {
"resource": ""
} | ||
c169208 | validation | // MarshalJSON overrides the logic for JSON-encoding a ContainerType object | {
"resource": ""
} | ||
c169209 | validation | // parseNanoTime returns the time object from a string formatted with RFC3339Nano layout. | {
"resource": ""
} | ||
c169210 | validation | // NewMockResponseWriter creates a new mock instance | {
"resource": ""
} | ||
c169211 | validation | // Header indicates an expected call of Header | {
"resource": ""
} | ||
c169212 | validation | // WriteHeader mocks base method | {
"resource": ""
} | ||
c169213 | validation | // WriteHeader indicates an expected call of WriteHeader | {
"resource": ""
} | ||
c169214 | validation | // compareDockerVersions compares two docker api versions, 'lhs' and 'rhs', and returns -1 if lhs is less
// than rhs, 0 if they are equal, and 1 if lhs is greater than rhs | {
"resource": ""
} | ||
c169215 | validation | // SignHTTPRequest signs an http.Request struct with authv4 using the given region, service, and credentials. | {
"resource": ""
} | ||
c169216 | validation | // GetClient on linux will simply return the cached client from the map | {
"resource": ""
} | ||
c169217 | validation | // getAgentVersions returns a list of supported agent-supported versions for linux | {
"resource": ""
} | ||
c169218 | validation | // duplicate of dockerCPUShares in task_linux.go | {
"resource": ""
} | ||
c169219 | validation | // verifyTasksMetadata verifies the number of tasks in tasks metadata. | {
"resource": ""
} | ||
c169220 | validation | // verifyTaskMetadata verifies the number of containers in task metadata, make
// sure each necessary field is not empty, we cannot check the values of those fields
// since they are dynamic. It also verifies the container metadata. | {
"resource": ""
} | ||
c169221 | validation | // verifyContainerMetadata verifies the container name of the container metadata,
// and each necessary field is not empty. | {
"resource": ""
} | ||
c169222 | validation | // NewMockResult creates a new mock instance | {
"resource": ""
} | ||
c169223 | validation | // GetAsVersion mocks base method | {
"resource": ""
} | ||
c169224 | validation | // GetAsVersion indicates an expected call of GetAsVersion | {
"resource": ""
} | ||
c169225 | validation | // Print mocks base method | {
"resource": ""
} | ||
c169226 | validation | // Print indicates an expected call of Print | {
"resource": ""
} | ||
c169227 | validation | // ContainerStop mocks base method | {
"resource": ""
} | ||
c169228 | validation | // Events mocks base method | {
"resource": ""
} | ||
c169229 | validation | // Ping mocks base method | {
"resource": ""
} | ||
c169230 | validation | // VolumeInspect mocks base method | {
"resource": ""
} | ||
c169231 | validation | // ResolveTask resolves the api task object, given container id. | {
"resource": ""
} | ||
c169232 | validation | // ResolveContainer resolves the api container object, given container id. | {
"resource": ""
} | ||
c169233 | validation | // synchronizeState goes through all the containers on the instance to synchronize the state on agent start | {
"resource": ""
} | ||
c169234 | validation | // addAndStartStatsContainer add the container into stats engine and start collecting the container stats | {
"resource": ""
} | ||
c169235 | validation | // MustInit initializes fields of the DockerStatsEngine object. | {
"resource": ""
} | ||
c169236 | validation | // waitToStop waits for the container change event stream close ans stop collection metrics | {
"resource": ""
} | ||
c169237 | validation | // removeAll stops the periodic usage data collection for all containers | {
"resource": ""
} | ||
c169238 | validation | // addContainerUnsafe adds a container to the map of containers being watched. | {
"resource": ""
} | ||
c169239 | validation | // addToStatsContainerMapUnsafe adds the statscontainer into stats for tracking and returns a boolean indicates
// whether this container should be tracked for collecting metrics | {
"resource": ""
} | ||
c169240 | validation | // GetInstanceMetrics gets all task metrics and instance metadata from stats engine. | {
"resource": ""
} | ||
c169241 | validation | // GetTaskHealthMetrics returns the container health metrics | {
"resource": ""
} | ||
c169242 | validation | // stopTrackingContainerUnsafe removes the StatsContainer from stats engine and
// returns true if the container is stopped or no longer tracked in agent. Otherwise
// it does nothing and return false | {
"resource": ""
} | ||
c169243 | validation | // handleDockerEvents must be called after openEventstream; it processes each
// event that it reads from the docker event stream. | {
"resource": ""
} | ||
c169244 | validation | // removeContainer deletes the container from the map of containers being watched.
// It also stops the periodic usage data collection for the container. | {
"resource": ""
} | ||
c169245 | validation | // newDockerContainerMetadataResolver returns a new instance of DockerContainerMetadataResolver. | {
"resource": ""
} | ||
c169246 | validation | // taskContainerMetricsUnsafe gets all container metrics for a task arn. | {
"resource": ""
} | ||
c169247 | validation | // resetStatsUnsafe resets stats for all watched containers. | {
"resource": ""
} | ||
c169248 | validation | // ContainerDockerStats returns the last stored raw docker stats object for a container | {
"resource": ""
} | ||
c169249 | validation | // newMetricsMetadata creates the singleton metadata object. | {
"resource": ""
} | ||
c169250 | validation | // compareSemver compares two semvers, 'lhs' and 'rhs', and returns -1 if lhs is less
// than rhs, 0 if they are equal, and 1 lhs is greater than rhs | {
"resource": ""
} | ||
c169251 | validation | // ExtractVersion extracts a matching version from the version number string | {
"resource": ""
} | ||
c169252 | validation | // GetIAMRoleCredentials returns the IAM role credentials in the task IAM role struct | {
"resource": ""
} | ||
c169253 | validation | // GenerateCredentialsEndpointRelativeURI generates the relative URI for the
// credentials endpoint, for a given task id. | {
"resource": ""
} | ||
c169254 | validation | // IAMRoleCredentialsFromACS translates ecsacs.IAMRoleCredentials object to
// api.IAMRoleCredentials | {
"resource": ""
} | ||
c169255 | validation | // SetTaskCredentials adds or updates credentials in the credentials manager | {
"resource": ""
} | ||
c169256 | validation | // GetTaskCredentials retrieves credentials for a given credentials id | {
"resource": ""
} | ||
c169257 | validation | // RemoveCredentials removes credentials from the credentials manager | {
"resource": ""
} | ||
c169258 | validation | // verify all the field names in the response are what we expected. this is needed because a direct unmarshal
// is not case sensitive so can't ensure that the response is in valid format | {
"resource": ""
} | ||
c169259 | validation | // Getpid mocks base method | {
"resource": ""
} | ||
c169260 | validation | // Getpid indicates an expected call of Getpid | {
"resource": ""
} | ||
c169261 | validation | // AppMeshFromACS validates proxy config if it is app mesh type and creates AppMesh object | {
"resource": ""
} | ||
c169262 | validation | // buildAppPorts creates app ports from proxy config | {
"resource": ""
} | ||
c169263 | validation | // buildEgressIgnoredIPs creates egress ignored IPs from proxy config | {
"resource": ""
} | ||
c169264 | validation | // buildEgressIgnoredPorts creates egress ignored ports from proxy config | {
"resource": ""
} | ||
c169265 | validation | // appendDefaultEgressIgnoredIPs append task metadata endpoint ip and
// instance metadata ip address to egress ignored IPs if does not exist | {
"resource": ""
} | ||
c169266 | validation | // IsInstanceTypeChangedError returns true if the error when
// registering the container instance is because of instance type being
// changed | {
"resource": ""
} | ||
c169267 | validation | // NewNamedError creates a NamedError. | {
"resource": ""
} | ||
c169268 | validation | // Error returns the error as a string | {
"resource": ""
} | ||
c169269 | validation | // BuildLinuxResourceSpec returns a linuxResources object for the task cgroup | {
"resource": ""
} | ||
c169270 | validation | // buildExplicitLinuxCPUSpec builds CPU spec when task CPU limits are
// explicitly requested | {
"resource": ""
} | ||
c169271 | validation | // buildImplicitLinuxCPUSpec builds the implicit task CPU spec when
// task CPU and memory limit feature is enabled | {
"resource": ""
} | ||
c169272 | validation | // buildLinuxMemorySpec validates and builds the task memory spec | {
"resource": ""
} | ||
c169273 | validation | // platformHostConfigOverride to override platform specific feature sets | {
"resource": ""
} | ||
c169274 | validation | // overrideCgroupParent updates hostconfig with cgroup parent when task cgroups
// are enabled | {
"resource": ""
} | ||
c169275 | validation | // GetMACAddress retrieves the MAC address of a device using netlink | {
"resource": ""
} | ||
c169276 | validation | // retrieve retrives the mac address of a network device. If the retrieved mac
// address is empty, it retries the operation with a timeout specified by the
// caller | {
"resource": ""
} | ||
c169277 | validation | // retrieveOnce retrieves the MAC address of a device using netlink.LinkByName | {
"resource": ""
} | ||
c169278 | validation | // IsValidNetworkDevice is used to differentiate virtual and physical devices
// Returns true only for pci or vif interfaces | {
"resource": ""
} | ||
c169279 | validation | // ReceiveMessage receives a log line from seelog and emits it to the Windows event log | {
"resource": ""
} | ||
c169280 | validation | // GetAuthorizationToken calls the ecr api to get the docker auth for the specified registry | {
"resource": ""
} | ||
c169281 | validation | // NewMockEngine creates a new mock instance | {
"resource": ""
} | ||
c169282 | validation | // ContainerDockerStats mocks base method | {
"resource": ""
} | ||
c169283 | validation | // ContainerDockerStats indicates an expected call of ContainerDockerStats | {
"resource": ""
} | ||
c169284 | validation | // GetInstanceMetrics mocks base method | {
"resource": ""
} | ||
c169285 | validation | // GetInstanceMetrics indicates an expected call of GetInstanceMetrics | {
"resource": ""
} | ||
c169286 | validation | // GetTaskHealthMetrics mocks base method | {
"resource": ""
} | ||
c169287 | validation | // RetryWithBackoff takes a Backoff and a function to call that returns an error
// If the error is nil then the function will no longer be called
// If the error is Retriable then that will be used to determine if it should be
// retried | {
"resource": ""
} | ||
c169288 | validation | // RetryWithBackoffCtx takes a context, a Backoff, and a function to call that returns an error
// If the context is done, nil will be returned
// If the error is nil then the function will no longer be called
// If the error is Retriable then that will be used to determine if it should be
// retried | {
"resource": ""
} | ||
c169289 | validation | // RetryNWithBackoff takes a Backoff, a maximum number of tries 'n', and a
// function that returns an error. The function is called until either it does
// not return an error or the maximum tries have been reached.
// If the error returned is Retriable, the Retriability of it will be respected.
// If the number of tr... | {
"resource": ""
} | ||
c169290 | validation | // RetryNWithBackoffCtx takes a context, a Backoff, a maximum number of tries 'n', and a function that returns an error.
// The function is called until it does not return an error, the context is done, or the maximum tries have been
// reached.
// If the error returned is Retriable, the Retriability of it will be resp... | {
"resource": ""
} | ||
c169291 | validation | // AddJitter adds an amount of jitter between 0 and the given jitter to the
// given duration | {
"resource": ""
} | ||
c169292 | validation | // NewMockIOUtil creates a new mock instance | {
"resource": ""
} | ||
c169293 | validation | // WriteFile mocks base method | {
"resource": ""
} | ||
c169294 | validation | // WriteFile indicates an expected call of WriteFile | {
"resource": ""
} | ||
c169295 | validation | // DescribeECSTagsForInstance calls DescribeTags API to get the EC2 tags of the
// instance id, and return it back as ECS tags | {
"resource": ""
} | ||
c169296 | validation | // TaskContainerStatsHandler returns the handler method for handling task and container stats requests. | {
"resource": ""
} | ||
c169297 | validation | // WriteTaskStatsResponse writes the task stats to response writer. | {
"resource": ""
} | ||
c169298 | validation | // WriteContainerStatsResponse writes the container stats to response writer. | {
"resource": ""
} | ||
c169299 | validation | // NewTaskResponse creates a TaskResponse for a task. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.