_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c26400
train
// Bytes returns the netlink representation of the service flags.
{ "resource": "" }
c26401
train
// SetBytes sets the service flags from its netlink representation.
{ "resource": "" }
c26402
train
// Equal returns true if two Services are the same.
{ "resource": "" }
c26403
train
// String returns a string representation of a Service.
{ "resource": "" }
c26404
train
// Equal returns true if two Destinations are the same.
{ "resource": "" }
c26405
train
// String returns a string representation of a Destination.
{ "resource": "" }
c26406
train
// Init intialises IPVS.
{ "resource": "" }
c26407
train
// Version returns the version number for IPVS.
{ "resource": "" }
c26408
train
// AddService adds the specified service to the IPVS table. Any destinations // associated with the given service will also be added.
{ "resource": "" }
c26409
train
// UpdateService updates the specified service in the IPVS table.
{ "resource": "" }
c26410
train
// DeleteService deletes the specified service from the IPVS table.
{ "resource": "" }
c26411
train
// AddDestination adds the specified destination to the IPVS table.
{ "resource": "" }
c26412
train
// UpdateDestination updates the specified destination in the IPVS table.
{ "resource": "" }
c26413
train
// DeleteDestination deletes the specified destination from the IPVS table.
{ "resource": "" }
c26414
train
// destinations returns a list of destinations that are currently // configured in the kernel IPVS table for the specified service.
{ "resource": "" }
c26415
train
// services returns a list of services that are currently configured in the // kernel IPVS table. If a specific service is given, an exact match will be // attempted and a single service will be returned if it is found.
{ "resource": "" }
c26416
train
// GetService returns the service entry that is currently configured in the // kernel IPVS table, which matches the specified service.
{ "resource": "" }
c26417
train
// HAStatus requests the HA status of the Seesaw Node.
{ "resource": "" }
c26418
train
// ConfigSource requests the configuration source be changed to the // specified source. An empty string results in the source remaining // unchanged. The current configuration source is returned.
{ "resource": "" }
c26419
train
// BGPNeighbors requests a list of all BGP neighbors that this seesaw is // peering with.
{ "resource": "" }
c26420
train
// VLANs requests a list of VLANs configured on the cluster.
{ "resource": "" }
c26421
train
// Vservers requests a list of all vservers that are configured on the cluster.
{ "resource": "" }
c26422
train
// OverrideVserver requests that the specified VserverOverride be applied.
{ "resource": "" }
c26423
train
// HAConfig requests the HAConfig from the Seesaw Engine.
{ "resource": "" }
c26424
train
// HAUpdate informs the Seesaw Engine of the current HAStatus. // The Seesaw Engine may request a failover in response.
{ "resource": "" }
c26425
train
// HAUpdate does nothing.
{ "resource": "" }
c26426
train
// signalName returns a string containing the standard name for a given signal.
{ "resource": "" }
c26427
train
// ShutdownHandler configures signal handling and initiates a shutdown if a // SIGINT, SIGQUIT or SIGTERM is received by the process.
{ "resource": "" }
c26428
train
// RemoveUnixSocket checks to see if the given socket already exists and // removes it if nothing responds to connections.
{ "resource": "" }
c26429
train
// ServerRunDirectory ensures that the run directory exists and has the // appropriate ownership and permissions.
{ "resource": "" }
c26430
train
// RPCAccept accepts connections on the listener and dispatches them to the // RPC server for service. Unfortunately the native Go rpc.Accept function // fatals on any accept error, including temporary failures and closure of // the listener.
{ "resource": "" }
c26431
train
// SourceByName returns the source that has the given name.
{ "resource": "" }
c26432
train
// String returns the string representation of a source.
{ "resource": "" }
c26433
train
// ReadConfig reads a cluster configuration file.
{ "resource": "" }
c26434
train
// ConfigFromServer fetches the cluster configuration for the given cluster.
{ "resource": "" }
c26435
train
// pruneArchive removes files from the given directory to ensure that the specified // maximums are not exceeded. It returns the number of the files removed along with // the maximums observed in the current archive.
{ "resource": "" }
c26436
train
// NewServer returns an initialised NCC Server struct.
{ "resource": "" }
c26437
train
// Run starts the NCC server.
{ "resource": "" }
c26438
train
// NewNode creates a new Node with the given NodeConfig and HAConn.
{ "resource": "" }
c26439
train
// resetMasterDownInterval calculates masterDownInterval per RFC 5798.
{ "resource": "" }
c26440
train
// state returns the current HA state for this node.
{ "resource": "" }
c26441
train
// setState changes the HA state for this node.
{ "resource": "" }
c26442
train
// status returns the current HA status for this node.
{ "resource": "" }
c26443
train
// newAdvertisement creates a new advertisement with this Node's VRID and priority.
{ "resource": "" }
c26444
train
// Run sends and receives advertisements, changes this Node's state in response to incoming // advertisements, and periodically notifies the engine of the current state. Run does not return // until Shutdown is called or an unrecoverable error occurs.
{ "resource": "" }
c26445
train
// registerCallback registers a callback and returns the allocated callback ID.
{ "resource": "" }
c26446
train
// unregisterCallback unregisters a callback.
{ "resource": "" }
c26447
train
// callback is the Go callback trampoline that is called from the // callbackGateway C function, which in turn gets called from libnl. // //export callback
{ "resource": "" }
c26448
train
// NewMessage returns an initialised netlink message.
{ "resource": "" }
c26449
train
// NewMessageFromBytes returns a netlink message that is initialised from the // given byte slice.
{ "resource": "" }
c26450
train
// Free frees resources associated with a netlink message.
{ "resource": "" }
c26451
train
// Bytes returns the byte slice representation of a netlink message.
{ "resource": "" }
c26452
train
// Unmarshal parses the netlink message and fills the struct referenced by the // given pointer. The supported data types and netlink encodings are the same // as for Marshal.
{ "resource": "" }
c26453
train
// SendCallback sends the netlink message. The specified callback function // will be called for each message that is received in response.
{ "resource": "" }
c26454
train
// SendMessage creates and sends a netlink message.
{ "resource": "" }
c26455
train
// SendMessageCallback creates and sends a netlink message. The specified // callback function will be called for each message that is received in // response.
{ "resource": "" }
c26456
train
// SendMessageMarshalled creates a netlink message and marshals the given // struct into the message, before sending it.
{ "resource": "" }
c26457
train
// SendMessageUnmarshal creates and sends a netlink message. All messages // received in response will be unmarshalled into the given struct.
{ "resource": "" }
c26458
train
// config reads the HAConfig from the engine. It does not return until it // successfully retrieves an HAConfig that has HA peering enabled.
{ "resource": "" }
c26459
train
// newBGPManager returns an initialised bgpManager struct.
{ "resource": "" }
c26460
train
// run runs the BGP configuration manager.
{ "resource": "" }
c26461
train
// update updates BGP related state and statistics from the BGP daemon.
{ "resource": "" }
c26462
train
// NewHTTPChecker returns an initialised HTTPChecker.
{ "resource": "" }
c26463
train
// String returns the string representation of an HTTP healthcheck.
{ "resource": "" }
c26464
train
// NewTCPChecker returns an initialised TCPChecker.
{ "resource": "" }
c26465
train
// String returns the string representation of a TCP healthcheck.
{ "resource": "" }
c26466
train
// Check executes a TCP healthcheck.
{ "resource": "" }
c26467
train
// Interface returns the network interface associated with the LBInterface.
{ "resource": "" }
c26468
train
// label returns a string containing the label with indentation and padding.
{ "resource": "" }
c26469
train
// printFmt formats and prints a given value with the specified label.
{ "resource": "" }
c26470
train
// printVal prints the given value with the specified label.
{ "resource": "" }
c26471
train
// String returns the string representation of a synchronisation notification // type.
{ "resource": "" }
c26472
train
// Register registers our Seesaw peer for synchronisation notifications.
{ "resource": "" }
c26473
train
// Deregister deregisters a Seesaw peer for synchronisation.
{ "resource": "" }
c26474
train
// Poll returns one or more synchronisation notifications to the caller, // blocking until at least one notification becomes available or the poll // timeout is reached.
{ "resource": "" }
c26475
train
// Config requests the current configuration from the peer Seesaw node.
{ "resource": "" }
c26476
train
// Failover requests that we relinquish master state.
{ "resource": "" }
c26477
train
// Healthchecks requests the current healthchecks from the peer Seesaw node.
{ "resource": "" }
c26478
train
// newSyncSession returns an initialised synchronisation session.
{ "resource": "" }
c26479
train
// addNote adds a notification to the synchronisation session. If the notes // channel is full the session is marked as desynchronised and the notification // is discarded.
{ "resource": "" }
c26480
train
// newSyncServer returns an initalised synchronisation server.
{ "resource": "" }
c26481
train
// serve accepts connections from the given TCP listener and dispatches each // connection to the RPC server. Connections are only accepted from localhost // and the seesaw node that we are configured to peer with.
{ "resource": "" }
c26482
train
// notify queues a synchronisation notification with each of the active // synchronisation sessions.
{ "resource": "" }
c26483
train
// run runs the synchronisation server, which is responsible for queueing // heartbeat notifications and removing expired synchronisation sessions.
{ "resource": "" }
c26484
train
// newSyncClient returns an initialised synchronisation client.
{ "resource": "" }
c26485
train
// dial establishes a connection to our peer Seesaw node.
{ "resource": "" }
c26486
train
// close closes an existing connection to our peer Seesaw node.
{ "resource": "" }
c26487
train
// failover requests that the peer node initiate a failover.
{ "resource": "" }
c26488
train
// runOnce establishes a connection to the synchronisation server, registers // for notifications, polls for notifications, then deregisters.
{ "resource": "" }
c26489
train
// poll polls the synchronisation server for notifications, then dispatches // them for processing.
{ "resource": "" }
c26490
train
// handleNote dispatches a synchronisation note to the appropriate handler.
{ "resource": "" }
c26491
train
// handleOverride handles an override notification.
{ "resource": "" }
c26492
train
// run runs the synchronisation client.
{ "resource": "" }
c26493
train
// enable enables synchronisation with our peer Seesaw node.
{ "resource": "" }
c26494
train
// disable disables synchronisation with our peer Seesaw node.
{ "resource": "" }
c26495
train
// String returns the string representation of a Component.
{ "resource": "" }
c26496
train
// String returns the name for the given HealthcheckType.
{ "resource": "" }
c26497
train
// String returns the string representation of a VIP.
{ "resource": "" }
c26498
train
// NewVIP returns a seesaw VIP.
{ "resource": "" }
c26499
train
// NewIP returns a seesaw IP initialised from a net.IP address.
{ "resource": "" }