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