_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c7700 | train | // NewDaemonPen creates a new DaemonPen | {
"resource": ""
} | ||
c7701 | train | // Restart all daemons in the pen, or start them if they're not running yet. | {
"resource": ""
} | ||
c7702 | train | // Shutdown all daemons in the pen | {
"resource": ""
} | ||
c7703 | train | // NewDaemonWorld creates a DaemonWorld | {
"resource": ""
} | ||
c7704 | train | // Shutdown all daemons with signal s | {
"resource": ""
} | ||
c7705 | train | // shortCommand shortens a command to a name we can use in a notification
// header. | {
"resource": ""
} | ||
c7706 | train | // niceHeader tries to produce a nicer process name. We condense whitespace to
// make commands split over multiple lines with indentation more legible, and
// limit the line length to 80 characters. | {
"resource": ""
} | ||
c7707 | train | // Dreadfully naive at the momet, but then so is the lexer. | {
"resource": ""
} | ||
c7708 | train | // Parse parses a string, and returns a completed Config | {
"resource": ""
} | ||
c7709 | train | // Equals checks if this Config equals another | {
"resource": ""
} | ||
c7710 | train | // IncludePatterns retrieves all include patterns from all blocks. | {
"resource": ""
} | ||
c7711 | train | // GetVariables returns a copy of the Variables map | {
"resource": ""
} | ||
c7712 | train | // CommonExcludes extends all blocks that require it with a common exclusion
// set | {
"resource": ""
} | ||
c7713 | train | // CheckShell checks that a shell is supported, and returns the correct command name | {
"resource": ""
} | ||
c7714 | train | // RegisterService Register a service
// Service is registered with a ttl for 60sec and a goroutine is created
// to refresh the ttl. | {
"resource": ""
} | ||
c7715 | train | // GetService lists all end points for a service | {
"resource": ""
} | ||
c7716 | train | // initServiceState reads the current state and injects it to the channel
// additionally, it returns the next index to watch | {
"resource": ""
} | ||
c7717 | train | // DeregisterService Deregister a service
// This removes the service from the registry and stops the refresh groutine | {
"resource": ""
} | ||
c7718 | train | // Keep refreshing the service every 30sec | {
"resource": ""
} | ||
c7719 | train | // Matches matches the fields updated from configuration state | {
"resource": ""
} | ||
c7720 | train | // ReadAll reads all state into separate objects. | {
"resource": ""
} | ||
c7721 | train | // Initialize the etcd client | {
"resource": ""
} | ||
c7722 | train | // GetObj Get an object | {
"resource": ""
} | ||
c7723 | train | // Recursive function to look thru each directory and get the files | {
"resource": ""
} | ||
c7724 | train | // ListDir Get a list of objects in a directory | {
"resource": ""
} | ||
c7725 | train | // SetObj Save an object, create if it doesnt exist | {
"resource": ""
} | ||
c7726 | train | // DelObj Remove an object | {
"resource": ""
} | ||
c7727 | train | // Add routes for existing vxlan networks | {
"resource": ""
} | ||
c7728 | train | // Process Infra Nw Create
// Auto allocate an endpoint for this node | {
"resource": ""
} | ||
c7729 | train | // Process Infra Nw Delete
// Delete the auto allocated endpoint | {
"resource": ""
} | ||
c7730 | train | // processEpState restores endpoint state | {
"resource": ""
} | ||
c7731 | train | // processRemoteEpState updates endpoint state | {
"resource": ""
} | ||
c7732 | train | //processServiceLBEvent processes service load balancer object events | {
"resource": ""
} | ||
c7733 | train | //processSvcProviderUpdEvent updates service provider events | {
"resource": ""
} | ||
c7734 | train | // processPolicyRuleState updates policy rule state | {
"resource": ""
} | ||
c7735 | train | // ReadAll reads all the state from the resource. | {
"resource": ""
} | ||
c7736 | train | // Init the resource. | {
"resource": ""
} | ||
c7737 | train | // Reinit the resource. | {
"resource": ""
} | ||
c7738 | train | // Allocate allocates a new resource. | {
"resource": ""
} | ||
c7739 | train | // Deallocate removes and cleans up a resource. | {
"resource": ""
} | ||
c7740 | train | // ReadAll the state for the given type. | {
"resource": ""
} | ||
c7741 | train | // Init the driver | {
"resource": ""
} | ||
c7742 | train | // Write value to key | {
"resource": ""
} | ||
c7743 | train | // Read value from key | {
"resource": ""
} | ||
c7744 | train | // ReadAll values from baseKey | {
"resource": ""
} | ||
c7745 | train | // WatchAll values from baseKey | {
"resource": ""
} | ||
c7746 | train | // ClearState clears key | {
"resource": ""
} | ||
c7747 | train | // ReadAllState reads all state from baseKey of a given type | {
"resource": ""
} | ||
c7748 | train | // WatchAllState reads all state from baseKey of a given type | {
"resource": ""
} | ||
c7749 | train | //DeleteServiceLB deletes from etcd state | {
"resource": ""
} | ||
c7750 | train | //RestoreServiceProviderLBDb restores provider and servicelb db | {
"resource": ""
} | ||
c7751 | train | // IsOverlappingSubnetv6 verifies the Overlapping of subnet for v6 networks | {
"resource": ""
} | ||
c7752 | train | // IsOverlappingSubnet verifies the Overlapping of subnet | {
"resource": ""
} | ||
c7753 | train | // ValidateNetworkRangeParams verifies the network range format | {
"resource": ""
} | ||
c7754 | train | // ClearReservedEntries clears reserved bits | {
"resource": ""
} | ||
c7755 | train | // ClearIPAddrRange marks range of IP address as used | {
"resource": ""
} | ||
c7756 | train | // GetIPAddrRange returns IP CIDR as a ip address range | {
"resource": ""
} | ||
c7757 | train | // ClearBitsOutsideRange sets all IPs outside range as used | {
"resource": ""
} | ||
c7758 | train | // CreateBitset initializes a bit set with 2^numBitsWide bits | {
"resource": ""
} | ||
c7759 | train | // GetSubnetIP given a subnet IP and host identifier, calculates an IP within
// the subnet for use. | {
"resource": ""
} | ||
c7760 | train | // GetIPNumber obtains the host id from the host IP. SEe `GetSubnetIP` for more information. | {
"resource": ""
} | ||
c7761 | train | // ReserveIPv6HostID sets the hostId in the AllocMap | {
"resource": ""
} | ||
c7762 | train | // GetNextIPv6HostID returns the next available hostId in the AllocMap | {
"resource": ""
} | ||
c7763 | train | // GetSubnetIPv6 given a subnet IP and host identifier, calculates an IPv6 address
// within the subnet for use. | {
"resource": ""
} | ||
c7764 | train | // GetIPv6HostID obtains the host id from the host IP. SEe `GetSubnetIP` for more information. | {
"resource": ""
} | ||
c7765 | train | // ParseTagRanges takes a string such as 12-24,48-64 and turns it into a series
// of TagRange. | {
"resource": ""
} | ||
c7766 | train | // ParseCIDR parses a CIDR string into a gateway IP and length. | {
"resource": ""
} | ||
c7767 | train | // GetInterfaceIP obtains the ip addr of a local interface on the host. | {
"resource": ""
} | ||
c7768 | train | // GetNetlinkAddrList returns a list of local IP addresses | {
"resource": ""
} | ||
c7769 | train | // GetLocalAddrList returns a list of local IP addresses | {
"resource": ""
} | ||
c7770 | train | //GetHostLowestLinkMtu return lowest mtu for host interface(excluding ovs
//interface | {
"resource": ""
} | ||
c7771 | train | // IsAddrLocal check if an address is local | {
"resource": ""
} | ||
c7772 | train | // GetFirstLocalAddr returns the first ip address | {
"resource": ""
} | ||
c7773 | train | // GetDefaultAddr gets default address of local hostname | {
"resource": ""
} | ||
c7774 | train | // GetSubnetAddr returns a subnet given a subnet range | {
"resource": ""
} | ||
c7775 | train | // getLastAddrInSubnet returns the last address in a subnet | {
"resource": ""
} | ||
c7776 | train | // getFirstAddrInRange returns the first IP in the subnet range | {
"resource": ""
} | ||
c7777 | train | // getLastAddrInRange returns the first IP in the subnet range | {
"resource": ""
} | ||
c7778 | train | // GetMyAddr returns ip address of current host | {
"resource": ""
} | ||
c7779 | train | // PortToHostIPMAC gets IP and MAC based on port number | {
"resource": ""
} | ||
c7780 | train | // SetIPMasquerade sets a ip masquerade rule. | {
"resource": ""
} | ||
c7781 | train | // HostIPToGateway gets the gateway based on the IP | {
"resource": ""
} | ||
c7782 | train | // CIDRToMask converts a CIDR to corresponding network number | {
"resource": ""
} | ||
c7783 | train | // NextClear wrapper around Bitset to check max id | {
"resource": ""
} | ||
c7784 | train | // AddIPRoute adds the specified ip route | {
"resource": ""
} | ||
c7785 | train | // DelIPRoute deletes the specified ip route | {
"resource": ""
} | ||
c7786 | train | // ReadAll global config state | {
"resource": ""
} | ||
c7787 | train | // Clear the state | {
"resource": ""
} | ||
c7788 | train | // ReadAll the global oper state | {
"resource": ""
} | ||
c7789 | train | // GetVxlansInUse gets the vlans that are currently in use | {
"resource": ""
} | ||
c7790 | train | // AllocVXLAN allocates a new vxlan; ids for both the vxlan and vlan are returned. | {
"resource": ""
} | ||
c7791 | train | // FreeVXLAN returns a VXLAN id to the pool. | {
"resource": ""
} | ||
c7792 | train | // GetVlansInUse gets the vlans that are currently in use | {
"resource": ""
} | ||
c7793 | train | // AllocVLAN allocates a new VLAN resource. Returns an ID. | {
"resource": ""
} | ||
c7794 | train | // FreeVLAN releases a VLAN for a given ID. | {
"resource": ""
} | ||
c7795 | train | // DeleteResources deletes associated resources | {
"resource": ""
} | ||
c7796 | train | // UpdateResources deletes associated resources | {
"resource": ""
} | ||
c7797 | train | //CheckInBitRange to check if range includes inuse vlans | {
"resource": ""
} | ||
c7798 | train | // ClearState removes key from etcd | {
"resource": ""
} | ||
c7799 | train | // WriteState writes a value of core.State into a key with a given marshaling function. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.