_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c22500 | train | // NetworkRange calculates the first and last IP addresses in an IPNet | {
"resource": ""
} | ||
c22501 | train | // GetIfaceAddr returns the first IPv4 address and slice of IPv6 addresses for the specified network interface | {
"resource": ""
} | ||
c22502 | train | // GenerateRandomName returns a new name joined with a prefix. This size
// specified is used to truncate the randomly generated value | {
"resource": ""
} | ||
c22503 | train | // ReverseIP accepts a V4 or V6 IP string in the canonical form and returns a reversed IP in
// the dotted decimal form . This is used to setup the IP to service name mapping in the optimal
// way for the DNS PTR queries. | {
"resource": ""
} | ||
c22504 | train | // assembleService assembles a services back from a hain of netlink attributes | {
"resource": ""
} | ||
c22505 | train | // parseService given a ipvs netlink response this function will respond with a valid service entry, an error otherwise | {
"resource": ""
} | ||
c22506 | train | // doCmdWithoutAttr a simple wrapper of netlink socket execute command | {
"resource": ""
} | ||
c22507 | train | // parseDestination given a ipvs netlink response this function will respond with a valid destination entry, an error otherwise | {
"resource": ""
} | ||
c22508 | train | // parseConfig given a ipvs netlink response this function will respond with a valid config entry, an error otherwise | {
"resource": ""
} | ||
c22509 | train | // doGetConfigCmd a wrapper function to be used by GetConfig | {
"resource": ""
} | ||
c22510 | train | // doSetConfigCmd a wrapper function to be used by SetConfig | {
"resource": ""
} | ||
c22511 | train | // SetupDeviceUp ups the given bridge interface. | {
"resource": ""
} | ||
c22512 | train | // Error is the implementation of error.Error interface | {
"resource": ""
} | ||
c22513 | train | // RequestPort requests new port from global ports pool for specified ip and proto.
// If port is 0 it returns first free port. Otherwise it checks port availability
// in proto's pool and returns that port or error if port is already busy. | {
"resource": ""
} | ||
c22514 | train | // ReleasePort releases port from global ports pool for specified ip and proto. | {
"resource": ""
} | ||
c22515 | train | // ReleaseAll releases all ports for all ips. | {
"resource": ""
} | ||
c22516 | train | // Create the macvlan slave specifying the source name | {
"resource": ""
} | ||
c22517 | train | // setMacVlanMode setter for one of the four macvlan port types | {
"resource": ""
} | ||
c22518 | train | // delVlanLink verifies only sub-interfaces with a vlan id get deleted | {
"resource": ""
} | ||
c22519 | train | // GetSpecific returns the contents of the user specified resolv.conf file and its hash | {
"resource": ""
} | ||
c22520 | train | // GetLastModified retrieves the last used contents and hash of the host resolv.conf.
// Used by containers updating on restart | {
"resource": ""
} | ||
c22521 | train | // getLines parses input into lines and strips away comments. | {
"resource": ""
} | ||
c22522 | train | // Build writes a configuration file to path containing a "nameserver" entry
// for every element in dns, a "search" entry for every element in
// dnsSearch, and an "options" entry for every element in dnsOptions. | {
"resource": ""
} | ||
c22523 | train | // NewAllocator returns an instance of libnetwork ipam | {
"resource": ""
} | ||
c22524 | train | // Checks for and fixes damaged bitmask. | {
"resource": ""
} | ||
c22525 | train | // DiscoverNew informs the allocator about a new global scope datastore | {
"resource": ""
} | ||
c22526 | train | // RequestPool returns an address pool along with its unique id.
// addressSpace must be a valid address space name and must not be the empty string.
// If pool is the empty string then the default predefined pool for addressSpace will be used, otherwise pool must be a valid IP address and length in CIDR notation.
// I... | {
"resource": ""
} | ||
c22527 | train | // ReleasePool releases the address pool identified by the passed id | {
"resource": ""
} | ||
c22528 | train | // Given the address space, returns the local or global PoolConfig based on whether the
// address space is local or global. AddressSpace locality is registered with IPAM out of band. | {
"resource": ""
} | ||
c22529 | train | // parsePoolRequest parses and validates a request to create a new pool under addressSpace and returns
// a SubnetKey, network and range describing the request. | {
"resource": ""
} | ||
c22530 | train | // RequestAddress returns an address from the specified pool ID | {
"resource": ""
} | ||
c22531 | train | // ReleaseAddress releases the address from the specified pool ID | {
"resource": ""
} | ||
c22532 | train | // DumpDatabase dumps the internal info | {
"resource": ""
} | ||
c22533 | train | // Populate all loadbalancers on the network that the passed endpoint
// belongs to, into this sandbox. | {
"resource": ""
} | ||
c22534 | train | // Invoke fwmarker reexec routine to mark vip destined packets with
// the passed firewall mark. | {
"resource": ""
} | ||
c22535 | train | // IsBuiltinLocalDriver validates if network-type is a builtin local-scoped driver | {
"resource": ""
} | ||
c22536 | train | // New constructs a new bridge driver | {
"resource": ""
} | ||
c22537 | train | // GetInit returns an initializer for the given network type | {
"resource": ""
} | ||
c22538 | train | // ConvertPortBindings converts PortBindings to JSON for HNS request | {
"resource": ""
} | ||
c22539 | train | // ParsePortBindingPolicies parses HNS endpoint response message to PortBindings | {
"resource": ""
} | ||
c22540 | train | // ParseEndpointConnectivity parses options passed to CreateEndpoint, specifically port bindings, and store in a endpointConnectivity object. | {
"resource": ""
} | ||
c22541 | train | // cleanupServiceDiscovery when the network is being deleted, erase all the associated service discovery records | {
"resource": ""
} | ||
c22542 | train | //Gets the value of the kernel parameters located at the given path | {
"resource": ""
} | ||
c22543 | train | //Sets the value of the kernel parameter located at the given path | {
"resource": ""
} | ||
c22544 | train | //Checks to see if packet forwarding is enabled | {
"resource": ""
} | ||
c22545 | train | // isServiceEnabled check if service is enabled on the endpoint | {
"resource": ""
} | ||
c22546 | train | // enableService sets service enabled on the endpoint | {
"resource": ""
} | ||
c22547 | train | // disableService disables service on the endpoint | {
"resource": ""
} | ||
c22548 | train | // EndpointOptionGeneric function returns an option setter for a Generic option defined
// in a Dictionary of Key-Value pair | {
"resource": ""
} | ||
c22549 | train | // CreateOptionIpam function returns an option setter for the ipam configuration for this endpoint | {
"resource": ""
} | ||
c22550 | train | // CreateOptionDNS function returns an option setter for dns entry option to
// be passed to container Create method. | {
"resource": ""
} | ||
c22551 | train | // CreateOptionAlias function returns an option setter for setting endpoint alias | {
"resource": ""
} | ||
c22552 | train | // CreateOptionService function returns an option setter for setting service binding configuration | {
"resource": ""
} | ||
c22553 | train | // CreateOptionMyAlias function returns an option setter for setting endpoint's self alias | {
"resource": ""
} | ||
c22554 | train | // DeleteConntrackEntries deletes all the conntrack connections on the host for the specified IP
// Returns the number of flows deleted for IPv4, IPv6 else error | {
"resource": ""
} | ||
c22555 | train | // CmdServicePublish handles service create UI | {
"resource": ""
} | ||
c22556 | train | // CmdServiceUnpublish handles service delete UI | {
"resource": ""
} | ||
c22557 | train | // CmdServiceLs handles service list UI | {
"resource": ""
} | ||
c22558 | train | // CmdServiceInfo handles service info UI | {
"resource": ""
} | ||
c22559 | train | // CmdServiceAttach handles service attach UI | {
"resource": ""
} | ||
c22560 | train | // CmdServiceDetach handles service detach UI | {
"resource": ""
} | ||
c22561 | train | // SetValue unmarshalls the data from the KV store. | {
"resource": ""
} | ||
c22562 | train | // New provides a new ipvs handle in the namespace pointed to by the
// passed path. It will return a valid handle or an error in case an
// error occurred while creating the handle. | {
"resource": ""
} | ||
c22563 | train | // NewService creates a new ipvs service in the passed handle. | {
"resource": ""
} | ||
c22564 | train | // IsServicePresent queries for the ipvs service in the passed handle. | {
"resource": ""
} | ||
c22565 | train | // UpdateService updates an already existing service in the passed
// handle. | {
"resource": ""
} | ||
c22566 | train | // DelService deletes an already existing service in the passed
// handle. | {
"resource": ""
} | ||
c22567 | train | // Flush deletes all existing services in the passed
// handle. | {
"resource": ""
} | ||
c22568 | train | // NewDestination creates a new real server in the passed ipvs
// service which should already be existing in the passed handle. | {
"resource": ""
} | ||
c22569 | train | // UpdateDestination updates an already existing real server in the
// passed ipvs service in the passed handle. | {
"resource": ""
} | ||
c22570 | train | // DelDestination deletes an already existing real server in the
// passed ipvs service in the passed handle. | {
"resource": ""
} | ||
c22571 | train | // GetDestinations returns an array of Destinations configured for this Service | {
"resource": ""
} | ||
c22572 | train | // GetService gets details of a specific IPVS services, useful in updating statisics etc., | {
"resource": ""
} | ||
c22573 | train | // NewWithPortAllocator returns a new instance of PortMapper which will use the specified PortAllocator | {
"resource": ""
} | ||
c22574 | train | // Map maps the specified container transport address to the host's network address and transport port | {
"resource": ""
} | ||
c22575 | train | // Unmap removes stored mapping for the specified host transport address | {
"resource": ""
} | ||
c22576 | train | //ReMapAll will re-apply all port mappings | {
"resource": ""
} | ||
c22577 | train | // Get the value at "key", returns the last modified index
// to use in conjunction to CAS calls | {
"resource": ""
} | ||
c22578 | train | // Put a value at "key" | {
"resource": ""
} | ||
c22579 | train | // Delete a value at "key" | {
"resource": ""
} | ||
c22580 | train | // Exists checks that the key exists inside the store | {
"resource": ""
} | ||
c22581 | train | // List gets a range of values at "directory" | {
"resource": ""
} | ||
c22582 | train | // DeleteTree deletes a range of values at "directory" | {
"resource": ""
} | ||
c22583 | train | // Watch a single key for modifications | {
"resource": ""
} | ||
c22584 | train | // WatchTree triggers a watch on a range of values at "directory" | {
"resource": ""
} | ||
c22585 | train | // AtomicPut put a value at "key" if the key has not been
// modified in the meantime, throws an error if this is the case | {
"resource": ""
} | ||
c22586 | train | // AtomicDelete deletes a value at "key" if the key has not
// been modified in the meantime, throws an error if this is the case | {
"resource": ""
} | ||
c22587 | train | // NewResolver creates a new instance of the Resolver | {
"resource": ""
} | ||
c22588 | train | // It generates the ip address in the passed subnet specified by
// the passed host address ordinal | {
"resource": ""
} | ||
c22589 | train | // Adds the ordinal IP to the current array
// 192.168.0.0 + 53 => 192.168.0.53 | {
"resource": ""
} | ||
c22590 | train | // Convert an ordinal to the respective IP address | {
"resource": ""
} | ||
c22591 | train | // Key extracts the key portion of the label | {
"resource": ""
} | ||
c22592 | train | // Value extracts the value portion of the label | {
"resource": ""
} | ||
c22593 | train | // GetInit registers the built-in ipam service with libnetwork | {
"resource": ""
} | ||
c22594 | train | // RequestPool returns an address pool along with its unique id. This is a null ipam driver. It allocates the
// subnet user asked and does not validate anything. Doesn't support subpool allocation | {
"resource": ""
} | ||
c22595 | train | // ReleasePool releases the address pool - always succeeds | {
"resource": ""
} | ||
c22596 | train | // ReleaseAddress releases the address - always succeeds | {
"resource": ""
} | ||
c22597 | train | // ToCapability converts the capability response into the internal ipam driver capability structure | {
"resource": ""
} | ||
c22598 | train | // IsValidType validates the passed in type against the valid object types | {
"resource": ""
} | ||
c22599 | train | // Validate checks whether the configuration is valid | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.