_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c22400
train
// DefaultScopes returns a map of default scopes and its config for clients to use.
{ "resource": "" }
c22401
train
// IsValid checks if the scope config has valid configuration.
{ "resource": "" }
c22402
train
//Key provides convenient method to create a Key
{ "resource": "" }
c22403
train
//ParseKey provides convenient method to unpack the key to complement the Key function
{ "resource": "" }
c22404
train
// newClient used to connect to KV Store
{ "resource": "" }
c22405
train
// NewDataStore creates a new instance of LibKV data store
{ "resource": "" }
c22406
train
// NewDataStoreFromConfig creates a new instance of LibKV data store starting from the datastore config data
{ "resource": "" }
c22407
train
// PutObjectAtomic adds a new Record based on an object into the datastore
{ "resource": "" }
c22408
train
// PutObject adds a new Record based on an object into the datastore
{ "resource": "" }
c22409
train
// GetObject returns a record matching the key
{ "resource": "" }
c22410
train
// DeleteObject unconditionally deletes a record from the store
{ "resource": "" }
c22411
train
// DeleteObjectAtomic performs atomic delete on a record
{ "resource": "" }
c22412
train
// DeleteTree unconditionally deletes a record from the store
{ "resource": "" }
c22413
train
// Init makes sure a remote driver is registered when a network driver // plugin is activated.
{ "resource": "" }
c22414
train
// Get capability from client
{ "resource": "" }
c22415
train
// ProgramExternalConnectivity is invoked to program the rules to allow external connectivity for the endpoint.
{ "resource": "" }
c22416
train
// RevokeExternalConnectivity method is invoked to remove any external connectivity programming related to the endpoint.
{ "resource": "" }
c22417
train
// parseInterfaces validates all the parameters of an Interface and returns them.
{ "resource": "" }
c22418
train
// Close stops forwarding the traffic.
{ "resource": "" }
c22419
train
// For a given subsystem getKeys sorts the keys by lamport time and returns // slice of keys and lamport time which can used as a unique tag for the keys
{ "resource": "" }
c22420
train
// getPrimaryKeyTag returns the primary key for a given subsystem from the // list of sorted key and the associated tag
{ "resource": "" }
c22421
train
// getSubnetforIPv4 returns the ipv4 subnet to which the given IP belongs
{ "resource": "" }
c22422
train
// getSubnetforIPv6 returns the ipv6 subnet to which the given IP belongs
{ "resource": "" }
c22423
train
// Out returns the destination for usage and error messages.
{ "resource": "" }
c22424
train
// IsSet indicates whether the specified flag is set in the given FlagSet
{ "resource": "" }
c22425
train
// Set sets the value of the named flag.
{ "resource": "" }
c22426
train
// PrintDefaults prints, to standard error unless configured // otherwise, the default values of all defined flags in the set.
{ "resource": "" }
c22427
train
// FlagCountUndeprecated returns the number of undeprecated flags that have been defined.
{ "resource": "" }
c22428
train
// usage calls the Usage method for the flag set, or the usage function if // the flag set is CommandLine.
{ "resource": "" }
c22429
train
// ReportError is a utility method that prints a user-friendly message // containing the error that occurred during parsing and a suggestion to get help
{ "resource": "" }
c22430
train
// Name returns the name of a mergeVal. // If the original value had a name, return the original name, // otherwise, return the key assigned to this mergeVal.
{ "resource": "" }
c22431
train
// Merge is an helper function that merges n FlagSets into a single dest FlagSet // In case of name collision between the flagsets it will apply // the destination FlagSet's errorHandling behavior.
{ "resource": "" }
c22432
train
// Embedded DNS server has to be enabled for this sandbox. Rebuild the container's // resolv.conf by doing the following // - Add only the embedded server's IP to container's resolv.conf // - If the embedded server needs any resolv.conf options add it to the current list
{ "resource": "" }
c22433
train
// NewNetworkCli is a convenient function to create a NetworkCli object
{ "resource": "" }
c22434
train
// getMethod is Borrowed from Docker UI which uses reflection to identify the UI Handler
{ "resource": "" }
c22435
train
// Cmd is borrowed from Docker UI and acts as the entry point for network UI commands. // network UI commands are designed to be invoked from multiple parent chains
{ "resource": "" }
c22436
train
// Subcmd is borrowed from Docker UI and performs the same function of configuring the subCmds
{ "resource": "" }
c22437
train
// WriteTo writes record to file and returns bytes written or error
{ "resource": "" }
c22438
train
// Drop drops the path string from the path cache
{ "resource": "" }
c22439
train
// Build function // path is path to host file string required // IP, hostname, and domainname set main record leave empty for no master record // extraContent is an array of extra host records.
{ "resource": "" }
c22440
train
// Update all IP addresses where hostname matches. // path is path to host file // IP is new IP address // hostname is hostname to search for to replace IP
{ "resource": "" }
c22441
train
// Endpoints are stored in the local store. Restore them and reconstruct the overlay sandbox
{ "resource": "" }
c22442
train
// Fini cleans up the driver resources
{ "resource": "" }
c22443
train
// Init registers a new instance of host driver
{ "resource": "" }
c22444
train
// newInterface creates a new bridge interface structure. It attempts to find // an already existing device identified by the configuration BridgeName field, // or the default bridge name when unspecified, but doesn't attempt to create // one when missing
{ "resource": "" }
c22445
train
// addresses returns all IPv4 addresses and all IPv6 addresses for the bridge interface.
{ "resource": "" }
c22446
train
// Init initialize the mux for the http handling and register the base hooks
{ "resource": "" }
c22447
train
// RegisterHandler allows to register new handlers to the mux and to a specific path
{ "resource": "" }
c22448
train
// EnableDiagnostic opens a TCP socket to debug the passed network DB
{ "resource": "" }
c22449
train
// DisableDiagnostic stop the dubug and closes the tcp socket
{ "resource": "" }
c22450
train
// IsDiagnosticEnabled returns true when the debug is enabled
{ "resource": "" }
c22451
train
// DebugHTTPForm helper to print the form url parameters
{ "resource": "" }
c22452
train
// ParseHTTPFormOptions easily parse the JSON printing options
{ "resource": "" }
c22453
train
// HTTPReply helper function that takes care of sending the message out
{ "resource": "" }
c22454
train
// GetDefaultAddressSpaces returns the local and global default address spaces
{ "resource": "" }
c22455
train
// RequestPool requests an address pool in the specified address space
{ "resource": "" }
c22456
train
// ReleasePool removes an address pool from the specified address space
{ "resource": "" }
c22457
train
// RequestAddress requests an address from the address pool
{ "resource": "" }
c22458
train
// ReleaseAddress releases the address from the specified address pool
{ "resource": "" }
c22459
train
// FailCommand creates a failure message with error
{ "resource": "" }
c22460
train
// WrongCommand creates a wrong command response
{ "resource": "" }
c22461
train
// Init registers a new instance of bridge driver
{ "resource": "" }
c22462
train
// Validate performs a static validation on the network configuration parameters. // Whatever can be assessed a priori before attempting any programming.
{ "resource": "" }
c22463
train
// Conflicts check if two NetworkConfiguration objects overlap
{ "resource": "" }
c22464
train
// Returns the non link-local IPv6 subnet for the containers attached to this bridge if found, nil otherwise
{ "resource": "" }
c22465
train
// Create a new network using bridge plugin
{ "resource": "" }
c22466
train
// assignIPToEndpoint inserts the mapping between the IP and the endpoint identifier // returns true if the mapping was not present, false otherwise // returns also the number of endpoints associated to the IP
{ "resource": "" }
c22467
train
// removeIPToEndpoint removes the mapping between the IP and the endpoint identifier // returns true if the mapping was deleted, false otherwise // returns also the number of endpoints associated to the IP
{ "resource": "" }
c22468
train
// New creates a new instance of network controller.
{ "resource": "" }
c22469
train
// libnetwork side of agent depends on the keys. On the first receipt of // keys setup the agent. For subsequent key set handle the key change
{ "resource": "" }
c22470
train
// AgentInitWait waits for agent initialization to be completed in the controller.
{ "resource": "" }
c22471
train
// AgentStopWait waits for the Agent stop to be completed in the controller
{ "resource": "" }
c22472
train
// agentOperationStart marks the start of an Agent Init or Agent Stop
{ "resource": "" }
c22473
train
// agentInitComplete notifies the successful completion of the Agent initialization
{ "resource": "" }
c22474
train
// agentStopComplete notifies the successful completion of the Agent stop
{ "resource": "" }
c22475
train
// SandboxDestroy destroys a sandbox given a container ID
{ "resource": "" }
c22476
train
// SandboxContainerWalker returns a Sandbox Walker function which looks for an existing Sandbox with the passed containerID
{ "resource": "" }
c22477
train
// SandboxKeyWalker returns a Sandbox Walker function which looks for an existing Sandbox with the passed key
{ "resource": "" }
c22478
train
// StartDiagnostic start the network dias mode
{ "resource": "" }
c22479
train
// StopDiagnostic start the network dias mode
{ "resource": "" }
c22480
train
// IsDiagnosticEnabled returns true if the dias is enabled
{ "resource": "" }
c22481
train
// to be called while holding network lock
{ "resource": "" }
c22482
train
// Must be called with the network lock
{ "resource": "" }
c22483
train
// Restore a network from the store to the driver if it is present. // Must be called with the driver locked!
{ "resource": "" }
c22484
train
// createNetwork is used by new network callbacks and persistent network cache
{ "resource": "" }
c22485
train
// DeleteNetwork the network for the specified driver type
{ "resource": "" }
c22486
train
// parseNetworkOptions parse docker network options
{ "resource": "" }
c22487
train
// parseNetworkGenericOptions parse generic driver docker network options
{ "resource": "" }
c22488
train
// fromOptions binds the generic options to networkConfiguration to cache
{ "resource": "" }
c22489
train
// processIPAM parses v4 and v6 IP information and binds it to the network configuration
{ "resource": "" }
c22490
train
// NewHostDiscovery function creates a host discovery object
{ "resource": "" }
c22491
train
// MarshalJSON encodes IPAMData into json message
{ "resource": "" }
c22492
train
// UnmarshalJSON decodes a json message into IPAMData
{ "resource": "" }
c22493
train
// Validate checks whether the IPAMData structure contains congruent data
{ "resource": "" }
c22494
train
// If present, detach and remove the endpoint connecting the sandbox to the default gw network.
{ "resource": "" }
c22495
train
// Evaluate whether the sandbox requires a default gateway based // on the endpoints to which it is connected. It does not account // for the default gateway network endpoint.
{ "resource": "" }
c22496
train
// Looks for the default gw network and creates it if not there. // Parallel executions are serialized.
{ "resource": "" }
c22497
train
// Returns the endpoint which is providing external connectivity to the sandbox
{ "resource": "" }
c22498
train
// CheckNameserverOverlaps checks whether the passed network overlaps with any of the nameservers
{ "resource": "" }
c22499
train
// NetworkOverlaps detects overlap between one IPNet and another
{ "resource": "" }