_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c168900
validation
// SetDriverVersion is a setter for nvidia driver version
{ "resource": "" }
c168901
validation
// GetDriverVersion is a getter for nvidia driver version
{ "resource": "" }
c168902
validation
// GetDevices returns the GPU devices as PlatformDevices
{ "resource": "" }
c168903
validation
// NewMockLicenseProvider creates a new mock instance
{ "resource": "" }
c168904
validation
// GetText mocks base method
{ "resource": "" }
c168905
validation
// GetText indicates an expected call of GetText
{ "resource": "" }
c168906
validation
// NewMockBackoff creates a new mock instance
{ "resource": "" }
c168907
validation
// Duration mocks base method
{ "resource": "" }
c168908
validation
// Duration indicates an expected call of Duration
{ "resource": "" }
c168909
validation
// Allows unmarshaling from byte to MetadataStatus text form
{ "resource": "" }
c168910
validation
// After sleeps for the given duration and then writes to to the returned channel
{ "resource": "" }
c168911
validation
// AfterFunc waits for the duration to elapse and then calls f in its own // goroutine. It returns a Timer that can be used to cancel the call using its // Stop method.
{ "resource": "" }
c168912
validation
// Since returns the time different from Now and the given time t
{ "resource": "" }
c168913
validation
// NewMockTaskResource creates a new mock instance
{ "resource": "" }
c168914
validation
// ApplyTransition mocks base method
{ "resource": "" }
c168915
validation
// GetCreatedAt mocks base method
{ "resource": "" }
c168916
validation
// GetTerminalReason mocks base method
{ "resource": "" }
c168917
validation
// KnownCreated mocks base method
{ "resource": "" }
c168918
validation
// MarshalJSON indicates an expected call of MarshalJSON
{ "resource": "" }
c168919
validation
// NextKnownState mocks base method
{ "resource": "" }
c168920
validation
// SetAppliedStatus mocks base method
{ "resource": "" }
c168921
validation
// SetAppliedStatus indicates an expected call of SetAppliedStatus
{ "resource": "" }
c168922
validation
// SetCreatedAt mocks base method
{ "resource": "" }
c168923
validation
// SetDesiredStatus mocks base method
{ "resource": "" }
c168924
validation
// SetKnownStatus mocks base method
{ "resource": "" }
c168925
validation
// StatusString mocks base method
{ "resource": "" }
c168926
validation
// NewMockLoader creates a new mock instance
{ "resource": "" }
c168927
validation
// LoadImage indicates an expected call of LoadImage
{ "resource": "" }
c168928
validation
// Error returns an error string for the ContainerNotFound error
{ "resource": "" }
c168929
validation
// String returns a human readable string of the container change event
{ "resource": "" }
c168930
validation
// UnmarshalJSON for TaskVolume determines the name and volume type, and // unmarshals it into the appropriate HostVolume fulfilling interfaces
{ "resource": "" }
c168931
validation
// MarshalJSON overrides the logic for JSON-encoding a TaskVolume object
{ "resource": "" }
c168932
validation
//SSM Client will automatically retry 3 times when has throttling error
{ "resource": "" }
c168933
validation
// GetClient will replace some versions of Docker on Windows. We need this because // agent assumes that it can always call older versions of the docker API.
{ "resource": "" }
c168934
validation
// getWindowsReplaceableVersions returns the set of versions that agent will report // as Docker 1.24
{ "resource": "" }
c168935
validation
// getWindowsSupportedVersions returns the set of remote api versions that are // supported by agent in windows
{ "resource": "" }
c168936
validation
// PortBindingFromDockerPortBinding constructs a PortBinding slice from a docker // NetworkSettings.Ports map.
{ "resource": "" }
c168937
validation
// NewASMAuthResource creates a new ASMAuthResource object
{ "resource": "" }
c168938
validation
// Create fetches credentials from ASM
{ "resource": "" }
c168939
validation
// GetRequiredASMResources returns the list of ASMAuthData that has to be // retrieved from AWS Secrets Manager
{ "resource": "" }
c168940
validation
// GetExecutionCredentialsID returns the execution role's credential ID
{ "resource": "" }
c168941
validation
// clearASMDockerAuthConfig cycles through the collection of docker private // registry auth data and removes them from the task
{ "resource": "" }
c168942
validation
// GetASMDockerAuthConfig retrieves the docker private registry auth data from // the task
{ "resource": "" }
c168943
validation
// MarshalJSON serialises the ASMAuthResource struct to JSON
{ "resource": "" }
c168944
validation
// UnmarshalJSON deserialises the raw JSON to a ASMAuthResource struct
{ "resource": "" }
c168945
validation
// ContainerMetadataHandler returns the handler method for handling container metadata requests.
{ "resource": "" }
c168946
validation
// GetContainerResponse gets container response for v3 metadata
{ "resource": "" }
c168947
validation
// GetContainerNetworkMetadata returns the network metadata for the container
{ "resource": "" }
c168948
validation
// Initialize fills the resource fileds
{ "resource": "" }
c168949
validation
// StartDefaultTerminationHandler defines a default termination handler suitable for running in a process
{ "resource": "" }
c168950
validation
// FinalSave should be called immediately before exiting, and only before // exiting, in order to flush tasks to disk. It waits a short timeout for state // to settle if necessary. If unable to reach a steady-state and save within // this short timeout, it returns an error
{ "resource": "" }
c168951
validation
// String formats the cachKey as a string
{ "resource": "" }
c168952
validation
// NewECRAuthProvider returns a DockerAuthProvider that can handle retrieve // credentials for pulling from Amazon EC2 Container Registry
{ "resource": "" }
c168953
validation
// getAuthconfigFromCache retrieves the token from cache
{ "resource": "" }
c168954
validation
// getAuthConfigFromECR calls the ECR API to get docker auth config
{ "resource": "" }
c168955
validation
// IsTokenValid checks the token is still within it's expiration window. We early expire to allow // for timing in calls and add jitter to avoid refreshing all of the tokens at once.
{ "resource": "" }
c168956
validation
// createTaskResponse creates JSON response and sets the http status code for the task queried.
{ "resource": "" }
c168957
validation
// NewTaskStateChangeEvent creates a new task state change event
{ "resource": "" }
c168958
validation
// NewContainerStateChangeEvent creates a new container state change event
{ "resource": "" }
c168959
validation
// SetTaskTimestamps adds the timestamp information of task into the event // to be sent by SubmitTaskStateChange
{ "resource": "" }
c168960
validation
// ShouldBeReported checks if the statechange should be reported to backend
{ "resource": "" }
c168961
validation
// GetIPV4Addresses returns a list of ipv4 addresses allocated to the ENI
{ "resource": "" }
c168962
validation
// GetIPV6Addresses returns a list of ipv6 addresses allocated to the ENI
{ "resource": "" }
c168963
validation
// String returns a human readable version of the ENI object
{ "resource": "" }
c168964
validation
// ENIFromACS validates the information from acs message and create the ENI object
{ "resource": "" }
c168965
validation
// ValidateTaskENI validates the eni informaiton sent from acs
{ "resource": "" }
c168966
validation
// NewMockPlugins creates a new mock instance
{ "resource": "" }
c168967
validation
// Scan indicates an expected call of Scan
{ "resource": "" }
c168968
validation
// TaskFromACS translates ecsacs.Task to apitask.Task by first marshaling the received // ecsacs.Task to json and unmarshaling it as apitask.Task
{ "resource": "" }
c168969
validation
// initializeDockerVolumes checks the volume resource in the task to determine if the agent // should create the volume before creating the container
{ "resource": "" }
c168970
validation
// addTaskScopedVolumes adds the task scoped volume into task resources and updates container dependency
{ "resource": "" }
c168971
validation
// updateContainerVolumeDependency adds the volume resource to container dependency
{ "resource": "" }
c168972
validation
// initializeCredentialsEndpoint sets the credentials endpoint for all containers in a task if needed.
{ "resource": "" }
c168973
validation
// initializeContainersV3MetadataEndpoint generates an v3 endpoint id for each container, constructs the // v3 metadata endpoint, and injects it as an environment variable
{ "resource": "" }
c168974
validation
// requiresASMDockerAuthData returns true if atleast one container in the task // needs to retrieve private registry authentication data from ASM
{ "resource": "" }
c168975
validation
// initializeASMAuthResource builds the resource dependency map for the ASM auth resource
{ "resource": "" }
c168976
validation
// requiresSSMSecret returns true if at least one container in the task // needs to retrieve secret from SSM parameter
{ "resource": "" }
c168977
validation
// initializeSSMSecretResource builds the resource dependency map for the SSM ssmsecret resource
{ "resource": "" }
c168978
validation
// getAllSSMSecretRequirements stores all secrets in a map whose key is region and value is all // secrets in that region
{ "resource": "" }
c168979
validation
// requiresASMSecret returns true if at least one container in the task // needs to retrieve secret from AWS Secrets Manager
{ "resource": "" }
c168980
validation
// initializeASMSecretResource builds the resource dependency map for the asmsecret resource
{ "resource": "" }
c168981
validation
// getAllASMSecretRequirements stores secrets in a task in a map
{ "resource": "" }
c168982
validation
// BuildCNIConfig constructs the cni configuration from eni
{ "resource": "" }
c168983
validation
// convertENIToCNIConfig converts input eni config into cni config
{ "resource": "" }
c168984
validation
// convertAppMeshToCNIConfig converts input app mesh config into cni config
{ "resource": "" }
c168985
validation
// HostVolumeByName returns the task Volume for the given a volume name in that // task. The second return value indicates the presence of that volume
{ "resource": "" }
c168986
validation
// UpdateMountPoints updates the mount points of volumes that were created // without specifying a host path. This is used as part of the empty host // volume feature.
{ "resource": "" }
c168987
validation
// DockerConfig converts the given container in this task to the format of // the Docker SDK 'Config' struct
{ "resource": "" }
c168988
validation
// DockerHostConfig construct the configuration recognized by docker
{ "resource": "" }
c168989
validation
// ApplyExecutionRoleLogsAuth will check whether the task has execution role // credentials, and add the genereated credentials endpoint to the associated HostConfig
{ "resource": "" }
c168990
validation
// shouldOverrideNetworkMode returns true if the network mode of the container needs // to be overridden. It also returns the override string in this case. It returns // false otherwise
{ "resource": "" }
c168991
validation
// applyENIHostname adds the hostname provided by the ENI message to the // container's docker config. At the time of implmentation, we are only using it // to configure the pause container for awsvpc tasks
{ "resource": "" }
c168992
validation
// shouldOverridePIDMode returns true if the PIDMode of the container needs // to be overridden. It also returns the override string in this case. It returns // false otherwise
{ "resource": "" }
c168993
validation
// shouldOverrideIPCMode returns true if the IPCMode of the container needs // to be overridden. It also returns the override string in this case. It returns // false otherwise
{ "resource": "" }
c168994
validation
// UpdateStatus updates a task's known and desired statuses to be compatible // with all of its containers // It will return a bool indicating if there was a change
{ "resource": "" }
c168995
validation
// UpdateDesiredStatus sets the known status of the task
{ "resource": "" }
c168996
validation
// SetKnownStatus sets the known status of the task
{ "resource": "" }
c168997
validation
// GetKnownStatus gets the KnownStatus of the task
{ "resource": "" }
c168998
validation
// GetKnownStatusTime gets the KnownStatusTime of the task
{ "resource": "" }
c168999
validation
// SetCredentialsID sets the credentials ID for the task
{ "resource": "" }