_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c169300
validation
// NewContainerResponse creates ContainerResponse for a container.
{ "resource": "" }
c169301
validation
// NewPortBindingsResponse creates PortResponse for a container.
{ "resource": "" }
c169302
validation
// NewVolumesResponse creates VolumeResponse for a container
{ "resource": "" }
c169303
validation
// NewTasksResponse creates TasksResponse for all the tasks.
{ "resource": "" }
c169304
validation
// NewPublishMetricsRequest creates a PublishMetricsRequest object.
{ "resource": "" }
c169305
validation
// NewPublishHealthMetricsRequest creates a PublishHealthRequest
{ "resource": "" }
c169306
validation
// StartListening starts reading from the input channel and writes to the buffer // When context is cancelled, stop listening
{ "resource": "" }
c169307
validation
// CopyEvents copies the event into the buffer
{ "resource": "" }
c169308
validation
// Consume reads the buffer and write to a listener channel
{ "resource": "" }
c169309
validation
// ContainerStatsHandler returns the handler method for handling container stats requests.
{ "resource": "" }
c169310
validation
// A factory method that enables various MetricsClients to be created.
{ "resource": "" }
c169311
validation
// NewMockECRSDK creates a new mock instance
{ "resource": "" }
c169312
validation
// NewMockECRFactory creates a new mock instance
{ "resource": "" }
c169313
validation
// GetClient indicates an expected call of GetClient
{ "resource": "" }
c169314
validation
// NewMockECRClient creates a new mock instance
{ "resource": "" }
c169315
validation
// GetCredentialsEventType is the type for a GetCredentials request
{ "resource": "" }
c169316
validation
// NewMockGPUManager creates a new mock instance
{ "resource": "" }
c169317
validation
// GetDevices mocks base method
{ "resource": "" }
c169318
validation
// GetGPUIDsUnsafe mocks base method
{ "resource": "" }
c169319
validation
// SetDevices indicates an expected call of SetDevices
{ "resource": "" }
c169320
validation
// SetDriverVersion mocks base method
{ "resource": "" }
c169321
validation
// SetDriverVersion indicates an expected call of SetDriverVersion
{ "resource": "" }
c169322
validation
// SetGPUIDs mocks base method
{ "resource": "" }
c169323
validation
// SetRuntimeVersion mocks base method
{ "resource": "" }
c169324
validation
// NewMockRoundTripper creates a new mock instance
{ "resource": "" }
c169325
validation
// RoundTrip mocks base method
{ "resource": "" }
c169326
validation
// RoundTrip indicates an expected call of RoundTrip
{ "resource": "" }
c169327
validation
// NewMockNetLink creates a new mock instance
{ "resource": "" }
c169328
validation
// LinkByName mocks base method
{ "resource": "" }
c169329
validation
// LinkByName indicates an expected call of LinkByName
{ "resource": "" }
c169330
validation
// LinkList mocks base method
{ "resource": "" }
c169331
validation
// LinkList indicates an expected call of LinkList
{ "resource": "" }
c169332
validation
// NewMockCNI creates a new mock instance
{ "resource": "" }
c169333
validation
// AddNetwork mocks base method
{ "resource": "" }
c169334
validation
// AddNetworkList mocks base method
{ "resource": "" }
c169335
validation
// DelNetwork mocks base method
{ "resource": "" }
c169336
validation
// DelNetwork indicates an expected call of DelNetwork
{ "resource": "" }
c169337
validation
// DelNetworkList mocks base method
{ "resource": "" }
c169338
validation
// Creates an LRUCache with maximum size, ttl for items.
{ "resource": "" }
c169339
validation
// Get returns the value associated with the key
{ "resource": "" }
c169340
validation
// Set sets the key-value pair in the cache
{ "resource": "" }
c169341
validation
// Delete removes the entry associated with the key from cache
{ "resource": "" }
c169342
validation
// StartTimer starts the ack timer to record the expiration of ENI attachment
{ "resource": "" }
c169343
validation
// IsSent checks if the eni attached status has been sent
{ "resource": "" }
c169344
validation
// SetSentStatus marks the eni attached status has been sent
{ "resource": "" }
c169345
validation
// StopAckTimer stops the ack timer set on the ENI attachment
{ "resource": "" }
c169346
validation
// HasExpired returns true if the ENI attachment object has exceeded the // threshold for notifying the backend of the attachment
{ "resource": "" }
c169347
validation
// String returns a string representation of the ENI Attachment
{ "resource": "" }
c169348
validation
// stringUnsafe returns a string representation of the ENI Attachment
{ "resource": "" }
c169349
validation
// StartMetricsSession starts a metric session. It initializes the stats engine // and invokes StartSession.
{ "resource": "" }
c169350
validation
// StartSession creates a session with the backend and handles requests // using the passed in arguments. // The engine is expected to initialized and gathering container metrics by // the time the websocket client starts using it.
{ "resource": "" }
c169351
validation
// heartbeatHandler resets the heartbeat timer when HeartbeatMessage message is received from tcs.
{ "resource": "" }
c169352
validation
// ackPublishMetricHandler consumes the ack message from the backend. THe backend sends // the ack each time it processes a metric message.
{ "resource": "" }
c169353
validation
// ackPublishHealthMetricHandler consumes the ack message from backend. The backend sends // the ack each time it processes a health message
{ "resource": "" }
c169354
validation
// anyMessageHandler handles any server message. Any server message means the // connection is active
{ "resource": "" }
c169355
validation
// formatURL returns formatted url for tcs endpoint.
{ "resource": "" }
c169356
validation
// native returns a pointer to the underlying GtkStackSwitcher.
{ "resource": "" }
c169357
validation
// native returns a pointer to the underlying GtkComboBox.
{ "resource": "" }
c169358
validation
// native returns a pointer to the underlying GtkComboBoxText.
{ "resource": "" }
c169359
validation
// native returns a pointer to the underlying GtkAppChooser.
{ "resource": "" }
c169360
validation
// native returns a pointer to the underlying GtkAppChooserWidget.
{ "resource": "" }
c169361
validation
// native returns a pointer to the underlying GdkPixbuf.
{ "resource": "" }
c169362
validation
// native returns a pointer to the underlying GtkAlignment.
{ "resource": "" }
c169363
validation
// native returns a pointer to the underlying GtkMisc.
{ "resource": "" }
c169364
validation
// native returns a pointer to the underlying GtkApplicationWindow.
{ "resource": "" }
c169365
validation
// TypeString returns the g variant type string for this variant.
{ "resource": "" }
c169366
validation
// GetString returns the string value of the variant.
{ "resource": "" }
c169367
validation
// GetStrv returns a slice of strings from this variant. It wraps // g_variant_get_strv, but returns copies of the strings instead.
{ "resource": "" }
c169368
validation
// IsType returns true if the variant's type matches t.
{ "resource": "" }
c169369
validation
// native returns a pointer to the underlying GdkFrameClock.
{ "resource": "" }
c169370
validation
// native returns a pointer to the underlying GdkFrameTimings.
{ "resource": "" }
c169371
validation
// native returns a pointer to the underlying GdkMonitor.
{ "resource": "" }
c169372
validation
// native returns a pointer to the underlying GdkScreen.
{ "resource": "" }
c169373
validation
// native returns a pointer to the underlying GVariantBuilder.
{ "resource": "" }
c169374
validation
// String returns a readable status messsage usable in texts.
{ "resource": "" }
c169375
validation
// ToError returns the error for the status. Returns nil if success.
{ "resource": "" }
c169376
validation
// native returns a pointer to the underlying GtkLevelBar.
{ "resource": "" }
c169377
validation
// native returns a pointer to the underlying GtkAccelGroup.
{ "resource": "" }
c169378
validation
// native returns a pointer to the underlying GtkAccelMap.
{ "resource": "" }
c169379
validation
// dataRaw is a wrapper around the data struct field
{ "resource": "" }
c169380
validation
// native returns a pointer to the underlying cairo_t.
{ "resource": "" }
c169381
validation
// native returns a pointer to the underlying GtkTextView.
{ "resource": "" }
c169382
validation
// String returns a copy of this VariantType's type string.
{ "resource": "" }
c169383
validation
// native returns a pointer to the underlying GtkApplication.
{ "resource": "" }
c169384
validation
// native returns a pointer to the underlying GtkMenuShell.
{ "resource": "" }
c169385
validation
// native returns a pointer to the underlying GtkStyleContext.
{ "resource": "" }
c169386
validation
// NewMatrix creates a new identiy matrix
{ "resource": "" }
c169387
validation
// Native returns native c pointer to a matrix
{ "resource": "" }
c169388
validation
// InitTranslate initializes a matrix with the given translation
{ "resource": "" }
c169389
validation
// InitScale initializes a matrix with the give scale
{ "resource": "" }
c169390
validation
// InitRotate initializes a matrix with the given rotation
{ "resource": "" }
c169391
validation
// Translate translates a matrix by the given amount
{ "resource": "" }
c169392
validation
// Scale scales the matrix by the given amounts
{ "resource": "" }
c169393
validation
// Rotate rotates the matrix by the given amount
{ "resource": "" }
c169394
validation
// Multiply multiplies the matrix by another matrix
{ "resource": "" }
c169395
validation
// native returns a pointer to the underlying GtkPaperSize.
{ "resource": "" }
c169396
validation
// native returns a pointer to the underlying GdkGLContext.
{ "resource": "" }
c169397
validation
// native returns a pointer to the underlying GtkButtonBox.
{ "resource": "" }
c169398
validation
// native returns a pointer to the underlying GtkTextIter.
{ "resource": "" }
c169399
validation
// native returns a pointer to the underlying GMainContext.
{ "resource": "" }