_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c22600
train
// MarshalJSON encodes IpamInfo into json message
{ "resource": "" }
c22601
train
// UnmarshalJSON decodes json message into PoolData
{ "resource": "" }
c22602
train
// CopyTo deep copies to the destination IpamConfig
{ "resource": "" }
c22603
train
// CopyTo deep copies to the destination IpamInfo
{ "resource": "" }
c22604
train
// Applies network specific configurations
{ "resource": "" }
c22605
train
// NetworkOptionGeneric function returns an option setter for a Generic option defined // in a Dictionary of Key-Value pair
{ "resource": "" }
c22606
train
// NetworkOptionEnableIPv6 returns an option setter to explicitly configure IPv6
{ "resource": "" }
c22607
train
// NetworkOptionInternalNetwork returns an option setter to config the network // to be internal which disables default gateway service
{ "resource": "" }
c22608
train
// NetworkOptionIpam function returns an option setter for the ipam configuration for this network
{ "resource": "" }
c22609
train
// NetworkOptionLBEndpoint function returns an option setter for the configuration of the load balancer endpoint for this network
{ "resource": "" }
c22610
train
// NetworkOptionDriverOpts function returns an option setter for any driver parameter described by a map
{ "resource": "" }
c22611
train
// NetworkOptionLabels function returns an option setter for labels specific to a network
{ "resource": "" }
c22612
train
// config-only network is looked up by name
{ "resource": "" }
c22613
train
// NewChain adds a new chain to ip table.
{ "resource": "" }
c22614
train
// RemoveExistingChain removes existing chain from the table.
{ "resource": "" }
c22615
train
// Forward adds forwarding rule to 'filter' table and corresponding nat rule to 'nat' table.
{ "resource": "" }
c22616
train
// Link adds reciprocal ACCEPT rule for two supplied IP addresses. // Traffic is allowed from ip1 to ip2 and vice-versa
{ "resource": "" }
c22617
train
// ProgramRule adds the rule specified by args only if the // rule is not already present in the chain. Reciprocally, // it removes the rule only if present.
{ "resource": "" }
c22618
train
// Remove removes the chain.
{ "resource": "" }
c22619
train
// Exists checks if a rule exists
{ "resource": "" }
c22620
train
// ExistsNative behaves as Exists with the difference it // will always invoke `iptables` binary.
{ "resource": "" }
c22621
train
// Raw calls 'iptables' system command, passing supplied arguments.
{ "resource": "" }
c22622
train
// RawCombinedOutput internally calls the Raw function and returns a non nil // error if Raw returned a non nil error or a non empty output
{ "resource": "" }
c22623
train
// RawCombinedOutputNative behave as RawCombinedOutput with the difference it // will always invoke `iptables` binary
{ "resource": "" }
c22624
train
// ExistChain checks if a chain exists
{ "resource": "" }
c22625
train
// GetVersion reads the iptables version numbers during initialization
{ "resource": "" }
c22626
train
// AddReturnRule adds a return rule for the chain in the filter table
{ "resource": "" }
c22627
train
// EnsureJumpRule ensures the jump rule is on top
{ "resource": "" }
c22628
train
// CmdNetwork handles the root Network UI
{ "resource": "" }
c22629
train
// CmdNetworkCreate handles Network Create UI
{ "resource": "" }
c22630
train
// CmdNetworkRm handles Network Delete UI
{ "resource": "" }
c22631
train
// CmdNetworkLs handles Network List UI
{ "resource": "" }
c22632
train
// CmdNetworkInfo handles Network Info UI
{ "resource": "" }
c22633
train
// Helper function to predict if a string is a name or id or partial-id // This provides a best-effort mechanism to identify an id with the help of GET Filter APIs // Being a UI, its most likely that name will be used by the user, which is used to lookup // the corresponding ID. If ID is not found, this function will a...
{ "resource": "" }
c22634
train
// Init initializes and registers the libnetwork ipvlan driver
{ "resource": "" }
c22635
train
// DefaultConfig returns a NetworkDB config with default values
{ "resource": "" }
c22636
train
// New creates a new instance of NetworkDB using the Config passed by // the caller.
{ "resource": "" }
c22637
train
// Close destroys this NetworkDB instance by leave the cluster, // stopping timers, canceling goroutines etc.
{ "resource": "" }
c22638
train
// ClusterPeers returns all the gossip cluster peers.
{ "resource": "" }
c22639
train
// Peers returns the gossip peers for a given network.
{ "resource": "" }
c22640
train
// GetTableByNetwork walks the networkdb by the give table and network id and // returns a map of keys and values
{ "resource": "" }
c22641
train
// WalkTable walks a single table in NetworkDB and invokes the passed // function for each entry in the table passing the network, key, // value. The walk stops if the passed function returns a true.
{ "resource": "" }
c22642
train
// JoinNetwork joins this node to a given network and propagates this // event across the cluster. This triggers this node joining the // sub-cluster of this network and participates in the network-scoped // gossip and bulk sync for this network.
{ "resource": "" }
c22643
train
// LeaveNetwork leaves this node from a given network and propagates // this event across the cluster. This triggers this node leaving the // sub-cluster of this network and as a result will no longer // participate in the network-scoped gossip and bulk sync for this // network. Also remove all the table entries for th...
{ "resource": "" }
c22644
train
// addNetworkNode adds the node to the list of nodes which participate // in the passed network only if it is not already present. Caller // should hold the NetworkDB lock while calling this
{ "resource": "" }
c22645
train
// Deletes the node from the list of nodes which participate in the // passed network. Caller should hold the NetworkDB lock while calling // this
{ "resource": "" }
c22646
train
// findCommonnetworks find the networks that both this node and the // passed node have joined.
{ "resource": "" }
c22647
train
// SetKey adds a new key to the key ring
{ "resource": "" }
c22648
train
// SetPrimaryKey sets the given key as the primary key. This should have // been added apriori through SetKey
{ "resource": "" }
c22649
train
// RemoveKey removes a key from the key ring. The key being removed // can't be the primary key
{ "resource": "" }
c22650
train
// mRandomNodes is used to select up to m random nodes. It is possible // that less than m nodes are returned.
{ "resource": "" }
c22651
train
// New returns a new driver registry handle.
{ "resource": "" }
c22652
train
// AddDriver adds a network driver to the registry.
{ "resource": "" }
c22653
train
// WalkIPAMs walks the IPAM drivers registered in the registry and invokes the passed walk function and each one of them.
{ "resource": "" }
c22654
train
// WalkDrivers walks the network drivers registered in the registry and invokes the passed walk function and each one of them.
{ "resource": "" }
c22655
train
// Driver returns the actual network driver instance and its capability which registered with the passed name.
{ "resource": "" }
c22656
train
// IPAM returns the actual IPAM driver instance and its capability which registered with the passed name.
{ "resource": "" }
c22657
train
// IPAMDefaultAddressSpaces returns the default address space strings for the passed IPAM driver name.
{ "resource": "" }
c22658
train
// RegisterDriver registers the network driver when it gets discovered.
{ "resource": "" }
c22659
train
// RegisterIpamDriver registers the IPAM driver discovered with default capabilities.
{ "resource": "" }
c22660
train
// RegisterIpamDriverWithCapabilities registers the IPAM driver discovered with specified capabilities.
{ "resource": "" }
c22661
train
// THIS CODE DOES NOT COMMUNICATE WITH KERNEL VIA RTNETLINK INTERFACE // IT IS HERE FOR BACKWARDS COMPATIBILITY WITH OLDER LINUX KERNELS // WHICH SHIP WITH OLDER NOT ENTIRELY FUNCTIONAL VERSION OF NETLINK
{ "resource": "" }
c22662
train
// Add a slave to a bridge device. This is more backward-compatible than // netlink.NetworkSetMaster and works on RHEL 6.
{ "resource": "" }
c22663
train
// OptionHostname function returns an option setter for hostname option to // be passed to NewSandbox method.
{ "resource": "" }
c22664
train
// OptionDomainname function returns an option setter for domainname option to // be passed to NewSandbox method.
{ "resource": "" }
c22665
train
// OptionHostsPath function returns an option setter for hostspath option to // be passed to NewSandbox method.
{ "resource": "" }
c22666
train
// OptionOriginHostsPath function returns an option setter for origin hosts file path // to be passed to NewSandbox method.
{ "resource": "" }
c22667
train
// OptionParentUpdate function returns an option setter for parent container // which needs to update the IP address for the linked container.
{ "resource": "" }
c22668
train
// OptionResolvConfPath function returns an option setter for resolvconfpath option to // be passed to net container methods.
{ "resource": "" }
c22669
train
// OptionOriginResolvConfPath function returns an option setter to set the path to the // origin resolv.conf file to be passed to net container methods.
{ "resource": "" }
c22670
train
// OptionDNS function returns an option setter for dns entry option to // be passed to container Create method.
{ "resource": "" }
c22671
train
// OptionDNSSearch function returns an option setter for dns search entry option to // be passed to container Create method.
{ "resource": "" }
c22672
train
// OptionDNSOptions function returns an option setter for dns options entry option to // be passed to container Create method.
{ "resource": "" }
c22673
train
// OptionGeneric function returns an option setter for Generic configuration // that is not managed by libNetwork but can be used by the Drivers during the call to // net container creation method. Container Labels are a good example.
{ "resource": "" }
c22674
train
// OptionExposedPorts function returns an option setter for the container exposed // ports option to be passed to container Create method.
{ "resource": "" }
c22675
train
// OptionPortMapping function returns an option setter for the mapping // ports option to be passed to container Create method.
{ "resource": "" }
c22676
train
// OptionIngress function returns an option setter for marking a // sandbox as the controller's ingress sandbox.
{ "resource": "" }
c22677
train
// OptionLoadBalancer function returns an option setter for marking a // sandbox as a load balancer sandbox.
{ "resource": "" }
c22678
train
// Init initializes a new network namespace
{ "resource": "" }
c22679
train
// SetNamespace sets the initial namespace handler
{ "resource": "" }
c22680
train
// Program a route in to the namespace routing table.
{ "resource": "" }
c22681
train
// NewSCTPProxy creates a new SCTPProxy.
{ "resource": "" }
c22682
train
// Run starts forwarding the traffic using SCTP.
{ "resource": "" }
c22683
train
// AllocatePorts allocates ports specified in bindings from the portMapper
{ "resource": "" }
c22684
train
// ReleasePorts releases ports specified in bindings from the portMapper
{ "resource": "" }
c22685
train
// NewHTTPHandler creates and initialize the HTTP handler to serve the requests for libnetwork
{ "resource": "" }
c22686
train
// findNode search the node into the 3 node lists and returns the node pointer and the list // where it got found
{ "resource": "" }
c22687
train
// changeNodeState changes the state of the node specified, returns true if the node was moved, // false if there was no need to change the node state. Error will be returned if the node does not // exists
{ "resource": "" }
c22688
train
// decodeCompoundMessage splits a compound message and returns // the slices of individual messages. Returns any potential error.
{ "resource": "" }
c22689
train
// NewHandle returns a thread-safe instance of the bitmask handler
{ "resource": "" }
c22690
train
// String returns a string representation of the block sequence starting from this block
{ "resource": "" }
c22691
train
// GetAvailableBit returns the position of the first unset bit in the bitmask represented by this sequence
{ "resource": "" }
c22692
train
// GetCopy returns a copy of the linked list rooted at this node
{ "resource": "" }
c22693
train
// Equal checks if this sequence is equal to the passed one
{ "resource": "" }
c22694
train
// ToByteArray converts the sequence into a byte array
{ "resource": "" }
c22695
train
// fromByteArray construct the sequence from the byte array
{ "resource": "" }
c22696
train
// SetAnyInRange atomically sets the first unset bit in the specified range in the sequence and returns the corresponding ordinal
{ "resource": "" }
c22697
train
// SetAny atomically sets the first unset bit in the sequence and returns the corresponding ordinal
{ "resource": "" }
c22698
train
// Set atomically sets the corresponding bit in the sequence
{ "resource": "" }
c22699
train
// Unset atomically unsets the corresponding bit in the sequence
{ "resource": "" }