_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c26300
train
// Walk takes the watchdog component for a walk so that it can run the // configured services.
{ "resource": "" }
c26301
train
// mapDependencies maps service dependency names to configured services.
{ "resource": "" }
c26302
train
// VLANs returns a list of currently configured VLANs.
{ "resource": "" }
c26303
train
// DNSType returns the dnsType that corresponds with the given name.
{ "resource": "" }
c26304
train
// NewDNSChecker returns an initialised DNSChecker.
{ "resource": "" }
c26305
train
// String returns the string representation of a DNS healthcheck.
{ "resource": "" }
c26306
train
// NewVTY returns an initialised VTY struct.
{ "resource": "" }
c26307
train
// Dial establishes a connection to a Quagga VTY socket.
{ "resource": "" }
c26308
train
// Close closes a connection to a Quagga VTY socket.
{ "resource": "" }
c26309
train
// Commands issues a sequence of commands over the Quagga VTY, discarding // responses.
{ "resource": "" }
c26310
train
// Command issues the given command over the Quagga VTY and reads the response.
{ "resource": "" }
c26311
train
// String returns the string representation of an AuthType.
{ "resource": "" }
c26312
train
// NewContext returns a new context for the given component.
{ "resource": "" }
c26313
train
// NewAuthContext returns a new authenticated context for the given component.
{ "resource": "" }
c26314
train
// NewTrustedContext returns a new trusted context for the given component.
{ "resource": "" }
c26315
train
// String returns the string representation of a context.
{ "resource": "" }
c26316
train
// NewECU returns an initialised ECU struct.
{ "resource": "" }
c26317
train
// Run starts the ECU.
{ "resource": "" }
c26318
train
// monitoring starts an HTTP server for monitoring purposes.
{ "resource": "" }
c26319
train
// controlTLSConfig returns a TLS configuration for use by the control server.
{ "resource": "" }
c26320
train
// control starts an HTTP server to handle control RPC via a TCP socket. This // interface is used to control the Seesaw Node via the CLI or web console.
{ "resource": "" }
c26321
train
// sysctlInitLB initialises sysctls required for load balancing.
{ "resource": "" }
c26322
train
// sysctlInitIface initialises sysctls required for a load balancing interface.
{ "resource": "" }
c26323
train
// sysctlIface sets a sysctl for a given address family and network interface.
{ "resource": "" }
c26324
train
// sysctl sets the named sysctl to the value specified and returns its // original value as a string. Note that this cannot be used if a sysctl // component includes a period it its name - in that case use // sysctlByComponents instead.
{ "resource": "" }
c26325
train
// sysctlByComponents sets the sysctl specified by the individual components // to the value specified and returns its original value as a string.
{ "resource": "" }
c26326
train
// newIPTRuleTemplate creates a new iptRuleTemplate.
{ "resource": "" }
c26327
train
// execute generates the list of iptRules for this iptTemplateExecuter.
{ "resource": "" }
c26328
train
// initIPTRuleTemplates initialises the iptRuleTemplates.
{ "resource": "" }
c26329
train
// iptablesInit initialises the iptables rules for a Seesaw Node.
{ "resource": "" }
c26330
train
// iptablesFlush removes all IPv4 and IPv6 iptables rules.
{ "resource": "" }
c26331
train
// iptablesRules returns the list of iptRules for a Vserver.
{ "resource": "" }
c26332
train
// iptablesAddRules installs the iptables rules for a given Vserver and Seesaw // Cluster VIP.
{ "resource": "" }
c26333
train
// initIPVS initialises the IPVS sub-component.
{ "resource": "" }
c26334
train
// IPVSFlush flushes all services and destinations from the IPVS table.
{ "resource": "" }
c26335
train
// IPVSGetServices gets the currently configured services from the IPVS table.
{ "resource": "" }
c26336
train
// IPVSGetService gets the currently configured service from the IPVS table, // which matches the specified service.
{ "resource": "" }
c26337
train
// IPVSAddService adds the specified service to the IPVS table.
{ "resource": "" }
c26338
train
// IPVSUpdateService updates the specified service in the IPVS table.
{ "resource": "" }
c26339
train
// IPVSDeleteService deletes the specified service from the IPVS table.
{ "resource": "" }
c26340
train
// IPVSAddDestination adds the specified destination to the IPVS table.
{ "resource": "" }
c26341
train
// IPVSUpdateDestination updates the specified destination in the IPVS table.
{ "resource": "" }
c26342
train
// IPVSDeleteDestination deletes the specified destination from the IPVS table.
{ "resource": "" }
c26343
train
// Copy deep copies from the given Seesaw Node.
{ "resource": "" }
c26344
train
// Clone creates an identical copy of the given Seesaw Node.
{ "resource": "" }
c26345
train
// Copy deep copies from the given Seesaw Host.
{ "resource": "" }
c26346
train
// Clone creates an identical copy of the given Seesaw Host.
{ "resource": "" }
c26347
train
// Equal returns whether two hosts are equal.
{ "resource": "" }
c26348
train
// IPv4Net returns a net.IPNet for the host's IPv4 address.
{ "resource": "" }
c26349
train
// IPv6Net returns a net.IPNet for the host's IPv6 address.
{ "resource": "" }
c26350
train
// IPv4Printable returns a printable representation of the host's IPv4 address.
{ "resource": "" }
c26351
train
// IPv6Printable returns a printable representation of the host's IPv4 address.
{ "resource": "" }
c26352
train
// Copy deep copies from the given Seesaw Backend.
{ "resource": "" }
c26353
train
// Clone creates an identical copy of the given Seesaw Backend.
{ "resource": "" }
c26354
train
// Copy deep copies from the given Seesaw HAConfig.
{ "resource": "" }
c26355
train
// Clone creates an identical copy of the given Seesaw HAConfig.
{ "resource": "" }
c26356
train
// Equal reports whether this HAConfig is equal to the given HAConfig.
{ "resource": "" }
c26357
train
// String returns the string representation of an HAConfig.
{ "resource": "" }
c26358
train
// String returns the string representation of an HAState.
{ "resource": "" }
c26359
train
// Equal reports whether this VLAN is equal to the given VLAN.
{ "resource": "" }
c26360
train
// String returns the string representation of a VLAN.
{ "resource": "" }
c26361
train
// String returns the string representation of a ServiceKey.
{ "resource": "" }
c26362
train
// IP returns the destination IP address for a given address family.
{ "resource": "" }
c26363
train
// copyIP creates a copy of an IP.
{ "resource": "" }
c26364
train
// copyIPMask creates a copy of an IPMask.
{ "resource": "" }
c26365
train
// copyBytes creates a copy of a byte slice.
{ "resource": "" }
c26366
train
// IsAnycast reports whether an IP address is an anycast address.
{ "resource": "" }
c26367
train
// InSubnets reports whether an IP address is in one of a map of subnets.
{ "resource": "" }
c26368
train
// NewEngine returns an initialised Engine struct.
{ "resource": "" }
c26369
train
// Run starts the Engine.
{ "resource": "" }
c26370
train
// haStatus returns the current HA status from the engine.
{ "resource": "" }
c26371
train
// setHAState tells the engine what its current HAState should be.
{ "resource": "" }
c26372
train
// setHAStatus tells the engine what the current HA status is.
{ "resource": "" }
c26373
train
// haConfig returns the HAConfig for an engine.
{ "resource": "" }
c26374
train
// thisNode returns the Node for the machine on which this engine is running.
{ "resource": "" }
c26375
train
// engineIPC starts an RPC server to handle IPC via a Unix Domain socket.
{ "resource": "" }
c26376
train
// syncRPC starts a server to handle synchronisation RPCs via a TCP socket.
{ "resource": "" }
c26377
train
// initNetwork initialises the network configuration for load balancing.
{ "resource": "" }
c26378
train
// initAnycast initialises the anycast configuration.
{ "resource": "" }
c26379
train
// gratuitousARP sends gratuitous ARP messages at regular intervals, if this // node is the HA master.
{ "resource": "" }
c26380
train
// updateVservers processes a list of vserver configurations then stops // deleted vservers, spawns new vservers and updates the existing vservers.
{ "resource": "" }
c26381
train
// shutdownVservers shuts down all running vservers.
{ "resource": "" }
c26382
train
// updateVLANs creates and destroys VLAN interfaces for the load balancer per // the cluster configuration.
{ "resource": "" }
c26383
train
// deleteVLANs removes all the VLAN interfaces that have been created by this // engine.
{ "resource": "" }
c26384
train
// handleOverride handles an incoming Override.
{ "resource": "" }
c26385
train
// distributeOverride distributes an Override to the appropriate vservers.
{ "resource": "" }
c26386
train
// becomeMaster performs the necessary actions for the Seesaw Engine to // become the master node.
{ "resource": "" }
c26387
train
// becomeBackup performs the neccesary actions for the Seesaw Engine to // stop being the master node and become the backup node.
{ "resource": "" }
c26388
train
// newMarkAllocator returns a mark allocator initialised with the specified // base and size.
{ "resource": "" }
c26389
train
// get returns the next available mark from the mark allocator.
{ "resource": "" }
c26390
train
// put returns the specified mark to the mark allocator.
{ "resource": "" }
c26391
train
// authenticate attempts to validate the given authentication token.
{ "resource": "" }
c26392
train
// authConnect attempts to authenticate the user using the given context. If // authentication succeeds an authenticated IPC connection to the Seesaw // Engine is returned.
{ "resource": "" }
c26393
train
// commandChain builds a command chain from the given command slice.
{ "resource": "" }
c26394
train
// autoComplete attempts to complete the user's input when certain // characters are typed.
{ "resource": "" }
c26395
train
// interactive invokes the interactive CLI interface.
{ "resource": "" }
c26396
train
// newIPVSService converts a service to its IPVS representation.
{ "resource": "" }
c26397
train
// newIPVSDestination converts a destination to its IPVS representation.
{ "resource": "" }
c26398
train
// toService converts a service entry from its IPVS representation to the Go // equivalent Service structure.
{ "resource": "" }
c26399
train
// toDestination converts a destination entry from its IPVS representation // to the Go equivalent Destination structure.
{ "resource": "" }