_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c168500 | validation | // ReleaseIPResource marks the ip available in the ipam db | {
"resource": ""
} | ||
c168501 | validation | // add invokes the ADD command of the given plugin | {
"resource": ""
} | ||
c168502 | validation | // del invokes the DEL command of the given plugin | {
"resource": ""
} | ||
c168503 | validation | // createBridgeNetworkConfigWithIPAM creates the config of bridge for ADD command, where
// bridge plugin acquires the IP and route information from IPAM | {
"resource": ""
} | ||
c168504 | validation | // createBridgeNetworkConfigWithoutIPAM creates the config of the bridge for removal | {
"resource": ""
} | ||
c168505 | validation | // constructNetworkConfig takes in the config from agent and construct the configuration
// that's accepted by the libcni | {
"resource": ""
} | ||
c168506 | validation | // createIPAMNetworkConfig constructs the ipam configuration accepted by libcni | {
"resource": ""
} | ||
c168507 | validation | // Version returns the version of the plugin | {
"resource": ""
} | ||
c168508 | validation | // Capabilities returns the capabilities supported by a plugin | {
"resource": ""
} | ||
c168509 | validation | // New is used to return an instance of the UdevWatcher struct | {
"resource": ""
} | ||
c168510 | validation | // newWatcher is used to nest the return of the UdevWatcher struct | {
"resource": ""
} | ||
c168511 | validation | // performPeriodicReconciliation is used to periodically invoke the
// reconciliation process based on a ticker | {
"resource": ""
} | ||
c168512 | validation | // reconcileOnce is used to reconcile the state of ENIs attached to the instance | {
"resource": ""
} | ||
c168513 | validation | // sendENIStateChange handles the eni event from udev or reconcile phase | {
"resource": ""
} | ||
c168514 | validation | // buildState is used to build a state of the system for reconciliation | {
"resource": ""
} | ||
c168515 | validation | // sendENIStateChangeWithRetries invokes the sendENIStateChange method, with backoff and
// retries. Retries are only effective if sendENIStateChange returns an unmanagedENIError.
// We're effectively waiting for the ENI attachment message from ACS for a network device
// at this point of time. | {
"resource": ""
} | ||
c168516 | validation | // Close closes the underlying connection. | {
"resource": ""
} | ||
c168517 | validation | // signRequestFunc is a MakeRequestHookFunc that signs each generated request | {
"resource": ""
} | ||
c168518 | validation | // publishMetrics invokes the PublishMetricsRequest on the clientserver object. | {
"resource": ""
} | ||
c168519 | validation | // publishMetricsOnce is invoked by the ticker to periodically publish metrics to backend. | {
"resource": ""
} | ||
c168520 | validation | // metricsToPublishMetricRequests gets task metrics and converts them to a list of PublishMetricRequest
// objects. | {
"resource": ""
} | ||
c168521 | validation | // publishHealthMetrics send the container health information to backend | {
"resource": ""
} | ||
c168522 | validation | // publishHealthMetricsOnce is invoked by the ticker to periodically publish metrics to backend. | {
"resource": ""
} | ||
c168523 | validation | // createPublishHealthRequests creates the requests to publish container health | {
"resource": ""
} | ||
c168524 | validation | // copyMetricsMetadata creates a new MetricsMetadata object from a given MetricsMetadata object.
// It copies all the fields from the source object to the new object and sets the 'Fin' field
// as specified by the argument. | {
"resource": ""
} | ||
c168525 | validation | // copyTaskMetrics copies a slice of TaskMetric objects to another slice. This is needed as we
// reset the source slice after creating a new PublishMetricsRequest object. | {
"resource": ""
} | ||
c168526 | validation | // copyHealthMetadata performs a deep copy of HealthMetadata object | {
"resource": ""
} | ||
c168527 | validation | // copyTaskHealthMetrics copies a slice of taskHealthMetrics to another slice | {
"resource": ""
} | ||
c168528 | validation | // UnmarshalJSON unmarshals ResourcesMap object | {
"resource": ""
} | ||
c168529 | validation | // NewVolumeResource returns a docker volume wrapper object | {
"resource": ""
} | ||
c168530 | validation | // KnownCreated returns true if the volume's known status is CREATED | {
"resource": ""
} | ||
c168531 | validation | // setMountPoint sets the mountpoint of the created volume.
// This is a read-only field, hence making this a private function. | {
"resource": ""
} | ||
c168532 | validation | // GetMountPoint gets the mountpoint of the created volume. | {
"resource": ""
} | ||
c168533 | validation | // Create performs resource creation | {
"resource": ""
} | ||
c168534 | validation | // Cleanup performs resource cleanup | {
"resource": ""
} | ||
c168535 | validation | // MarshalJSON marshals VolumeResource object using duplicate struct VolumeResourceJSON | {
"resource": ""
} | ||
c168536 | validation | // UnmarshalJSON unmarshals VolumeResource object using duplicate struct VolumeResourceJSON | {
"resource": ""
} | ||
c168537 | validation | // NewMockClientCreator creates a new mock instance | {
"resource": ""
} | ||
c168538 | validation | // NewASMClient mocks base method | {
"resource": ""
} | ||
c168539 | validation | // NewASMClient indicates an expected call of NewASMClient | {
"resource": ""
} | ||
c168540 | validation | // NewTransportProtocol returns a TransportProtocol from a string in the task | {
"resource": ""
} | ||
c168541 | validation | // String converts TransportProtocol to a string | {
"resource": ""
} | ||
c168542 | validation | // UnmarshalJSON for TransportProtocol determines whether to use TCP or UDP,
// setting TCP as the zero-value but treating other unrecognized values as
// errors | {
"resource": ""
} | ||
c168543 | validation | // MarshalJSON overrides the logic for JSON-encoding the TransportProtocol type | {
"resource": ""
} | ||
c168544 | validation | // NewMockManager creates a new mock instance | {
"resource": ""
} | ||
c168545 | validation | // GetTaskCredentials mocks base method | {
"resource": ""
} | ||
c168546 | validation | // RemoveCredentials mocks base method | {
"resource": ""
} | ||
c168547 | validation | // SetTaskCredentials mocks base method | {
"resource": ""
} | ||
c168548 | validation | // GetDockerAuthFromASM makes the api call to the AWS Secrets Manager service to
// retrieve the docker auth data | {
"resource": ""
} | ||
c168549 | validation | // GetSecretFromASM makes the api call to the AWS Secrets Manager service to
// retrieve the secret value | {
"resource": ""
} | ||
c168550 | validation | // NewMockCgroupFactory creates a new mock instance | {
"resource": ""
} | ||
c168551 | validation | // Load mocks base method | {
"resource": ""
} | ||
c168552 | validation | // Load indicates an expected call of Load | {
"resource": ""
} | ||
c168553 | validation | // LoadImage helps load the pause container image for the agent | {
"resource": ""
} | ||
c168554 | validation | // NewCgroupResource is used to return an object that implements the Resource interface | {
"resource": ""
} | ||
c168555 | validation | // Create creates cgroup root for the task | {
"resource": ""
} | ||
c168556 | validation | // Cleanup removes the cgroup root created for the task | {
"resource": ""
} | ||
c168557 | validation | // MarshalJSON marshals CgroupResource object using duplicate struct CgroupResourceJSON | {
"resource": ""
} | ||
c168558 | validation | // UnmarshalJSON unmarshals CgroupResource object using duplicate struct CgroupResourceJSON | {
"resource": ""
} | ||
c168559 | validation | // GetCgroupRoot returns cgroup root of the resource | {
"resource": ""
} | ||
c168560 | validation | // GetCgroupMountPath returns cgroup mount path of the resource | {
"resource": ""
} | ||
c168561 | validation | // Initialize initializes the resource fileds in cgroup | {
"resource": ""
} | ||
c168562 | validation | // LoadImage returns UnsupportedPlatformError on the unsupported platform | {
"resource": ""
} | ||
c168563 | validation | // NewECRFactory returns an ECRFactory capable of producing ECRSDK clients | {
"resource": ""
} | ||
c168564 | validation | // GetClient creates the ECR SDK client based on the authdata | {
"resource": ""
} | ||
c168565 | validation | // getClientConfig returns the config for the ecr client based on authData | {
"resource": ""
} | ||
c168566 | validation | // NewMockAuditLogger creates a new mock instance | {
"resource": ""
} | ||
c168567 | validation | // GetContainerInstanceArn mocks base method | {
"resource": ""
} | ||
c168568 | validation | // GetContainerInstanceArn indicates an expected call of GetContainerInstanceArn | {
"resource": ""
} | ||
c168569 | validation | // Log mocks base method | {
"resource": ""
} | ||
c168570 | validation | // Log indicates an expected call of Log | {
"resource": ""
} | ||
c168571 | validation | // NewMockInfoLogger creates a new mock instance | {
"resource": ""
} | ||
c168572 | validation | // Info mocks base method | {
"resource": ""
} | ||
c168573 | validation | // Info indicates an expected call of Info | {
"resource": ""
} | ||
c168574 | validation | // taskShouldBeSent checks whether the event should be sent, this includes
// both task state change and container state change events | {
"resource": ""
} | ||
c168575 | validation | // send tries to send an event, specified by 'eventToSubmit', of type
// 'eventType' to ECS | {
"resource": ""
} | ||
c168576 | validation | // sendContainerStatusToECS invokes the SubmitContainerStateChange API to send a
// container status change to ECS | {
"resource": ""
} | ||
c168577 | validation | // sendTaskStatusToECS invokes the SubmitTaskStateChange API to send a task
// status change to ECS | {
"resource": ""
} | ||
c168578 | validation | // setContainerChangeSent sets the event's container change object as sent | {
"resource": ""
} | ||
c168579 | validation | // setTaskChangeSent sets the event's task change object as sent | {
"resource": ""
} | ||
c168580 | validation | // setTaskAttachmentSent sets the event's task attachment object as sent | {
"resource": ""
} | ||
c168581 | validation | // GetSecretFromSSM makes the api call to the AWS SSM parameter store to
// retrieve secrets value in batches | {
"resource": ""
} | ||
c168582 | validation | // version-gen is a simple program that generates the agent's version file,
// containing information about the agent's version, commit hash, and repository
// cleanliness. | {
"resource": ""
} | ||
c168583 | validation | // IsRetriableError returns a boolean indicating whether the call that
// generated the error can be retried.
// When stopping a container, most errors that we can get should be
// considered retriable. However, in the case where the container is
// already stopped or doesn't exist at all, there's no sense in
// retryi... | {
"resource": ""
} | ||
c168584 | validation | // NewMockFile creates a new mock instance | {
"resource": ""
} | ||
c168585 | validation | // Chmod mocks base method | {
"resource": ""
} | ||
c168586 | validation | // Chmod indicates an expected call of Chmod | {
"resource": ""
} | ||
c168587 | validation | // Write mocks base method | {
"resource": ""
} | ||
c168588 | validation | // NewMockOS creates a new mock instance | {
"resource": ""
} | ||
c168589 | validation | // Create indicates an expected call of Create | {
"resource": ""
} | ||
c168590 | validation | // IsNotExist mocks base method | {
"resource": ""
} | ||
c168591 | validation | // OpenFile mocks base method | {
"resource": ""
} | ||
c168592 | validation | // RemoveAll mocks base method | {
"resource": ""
} | ||
c168593 | validation | // NewMockSSMClientCreator creates a new mock instance | {
"resource": ""
} | ||
c168594 | validation | // NewSSMClient mocks base method | {
"resource": ""
} | ||
c168595 | validation | // NewSSMClient indicates an expected call of NewSSMClient | {
"resource": ""
} | ||
c168596 | validation | // NewMockEC2MetadataClient creates a new mock instance | {
"resource": ""
} | ||
c168597 | validation | // DefaultCredentials mocks base method | {
"resource": ""
} | ||
c168598 | validation | // DefaultCredentials indicates an expected call of DefaultCredentials | {
"resource": ""
} | ||
c168599 | validation | // GetDynamicData mocks base method | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.