_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c25400
train
// Size returns the terminal's size.
{ "resource": "" }
c25401
train
// SetRune writes a rune at the given point, relative to the top-left // corner of the terminal. It checks if the position is valid and applies // the given colors.
{ "resource": "" }
c25402
train
// Rune returns the rune contained in the cell at the given position. // It checks if the position is valid.
{ "resource": "" }
c25403
train
// SetViewOnTop sets the given view on top of the existing ones.
{ "resource": "" }
c25404
train
// View returns a pointer to the view with the given name, or error // ErrUnknownView if a view with that name does not exist.
{ "resource": "" }
c25405
train
// ViewByPosition returns a pointer to a view matching the given position, or // error ErrUnknownView if a view in that position does not exist.
{ "resource": "" }
c25406
train
// ViewPosition returns the coordinates of the view with the given name, or // error ErrUnknownView if a view with that name does not exist.
{ "resource": "" }
c25407
train
// DeleteView deletes a view by name.
{ "resource": "" }
c25408
train
// DeleteKeybinding deletes a keybinding.
{ "resource": "" }
c25409
train
// DeleteKeybindings deletes all keybindings of view.
{ "resource": "" }
c25410
train
// getKey takes an empty interface with a key and returns the corresponding // typed Key or rune.
{ "resource": "" }
c25411
train
// Update executes the passed function. This method can be called safely from a // goroutine in order to update the GUI. It is important to note that the // passed function won't be executed immediately, instead it will be added to // the user events queue. Given that Update spawns a goroutine, the order in // which th...
{ "resource": "" }
c25412
train
// SetManager sets the given GUI managers. It deletes all views and // keybindings.
{ "resource": "" }
c25413
train
// SetManagerFunc sets the given manager function. It deletes all views and // keybindings.
{ "resource": "" }
c25414
train
// MainLoop runs the main loop until an error is returned. A successful // finish should return ErrQuit.
{ "resource": "" }
c25415
train
// consumeevents handles the remaining events in the events pool.
{ "resource": "" }
c25416
train
// flush updates the gui, re-drawing frames and buffers.
{ "resource": "" }
c25417
train
// drawFrameEdges draws the horizontal and vertical edges of a view.
{ "resource": "" }
c25418
train
// drawFrameCorners draws the corners of the view.
{ "resource": "" }
c25419
train
// drawTitle draws the title of the view.
{ "resource": "" }
c25420
train
// draw manages the cursor and calls the draw function of a view.
{ "resource": "" }
c25421
train
// onKey manages key-press events. A keybinding handler is called when // a key-press or mouse event satisfies a configured keybinding. Furthermore, // currentView's internal buffer is modified if currentView.Editable is true.
{ "resource": "" }
c25422
train
// execKeybindings executes the keybinding handlers that match the passed view // and event. The value of matched is true if there is a match and no errors.
{ "resource": "" }
c25423
train
// Replace invalid identifier characters with an underscore
{ "resource": "" }
c25424
train
// Has returns true if the provided Message has the a field fld.
{ "resource": "" }
c25425
train
// Disabled returns true if validations are disabled for msg
{ "resource": "" }
c25426
train
// RequiredOneOf returns true if the oneof field requires a field to be set
{ "resource": "" }
c25427
train
// Needs returns true if a well-known string validator is needed for this // message.
{ "resource": "" }
c25428
train
// AddrSubscribe takes a chan down which notifications will be sent // when addresses change. Close the 'done' chan to stop subscription.
{ "resource": "" }
c25429
train
// AddrSubscribeWithOptions work like AddrSubscribe but enable to // provide additional options to modify the behavior. Currently, the // namespace can be provided as well as an error callback.
{ "resource": "" }
c25430
train
// GetIPFamily returns the family type of a net.IP.
{ "resource": "" }
c25431
train
// Create an IfInfomsg with family specified
{ "resource": "" }
c25432
train
// Create a new Extended RtAttr object
{ "resource": "" }
c25433
train
// AddRtAttr adds an RtAttr as a child and returns the new attribute
{ "resource": "" }
c25434
train
// AddChild adds an existing NetlinkRequestData as a child.
{ "resource": "" }
c25435
train
// Serialize the Netlink Request into a byte array
{ "resource": "" }
c25436
train
// AddRawData adds raw bytes to the end of the NetlinkRequest object during serialization
{ "resource": "" }
c25437
train
// Execute the request against a the given sockType. // Returns a list of netlink messages in serialized format, optionally filtered // by resType.
{ "resource": "" }
c25438
train
// Create a new netlink request from proto and flags // Note the Len value will be inaccurate once data is added until // the message is serialized
{ "resource": "" }
c25439
train
// GetNetlinkSocketAt opens a netlink socket in the network namespace newNs // and positions the thread back into the network namespace specified by curNs, // when done. If curNs is close, the function derives the current namespace and // moves back into it when done. If newNs is close, the socket will be opened // in ...
{ "resource": "" }
c25440
train
// SetSendTimeout allows to set a send timeout on the socket
{ "resource": "" }
c25441
train
// SetReceiveTimeout allows to set a receive timeout on the socket
{ "resource": "" }
c25442
train
// NeighListExecute returns a list of neighbour entries filtered by link, ip family, flag and state.
{ "resource": "" }
c25443
train
// NeighSubscribe takes a chan down which notifications will be sent // when neighbors are added or deleted. Close the 'done' chan to stop subscription.
{ "resource": "" }
c25444
train
// NeighSubscribeWithOptions work like NeighSubscribe but enable to // provide additional options to modify the behavior. Currently, the // namespace can be provided as well as an error callback.
{ "resource": "" }
c25445
train
// AddIP adds an IP to the conntrack filter
{ "resource": "" }
c25446
train
// MatchConntrackFlow applies the filter to the flow and returns true if the flow matches the filter // false otherwise
{ "resource": "" }
c25447
train
// String returns a list of enabled flags
{ "resource": "" }
c25448
train
// Attrs return the parameters of the service curve
{ "resource": "" }
c25449
train
// SetRsc sets the Rsc curve
{ "resource": "" }
c25450
train
// SetSC implements the SC from the tc CLI
{ "resource": "" }
c25451
train
// SetUL implements the UL from the tc CLI
{ "resource": "" }
c25452
train
// SetLS implements the LS from the tc CLI
{ "resource": "" }
c25453
train
// NewHfscClass returns a new HFSC struct with the set parameters
{ "resource": "" }
c25454
train
// StringToBondMode returns bond mode, or uknonw is the s is invalid.
{ "resource": "" }
c25455
train
// StringToBondXmitHashPolicy returns bond lacp arte, or uknonw is the s is invalid.
{ "resource": "" }
c25456
train
// StringToBondLacpRate returns bond lacp arte, or uknonw is the s is invalid.
{ "resource": "" }
c25457
train
// DevLinkGetDeviceList provides a pointer to devlink devices and nil error, // otherwise returns an error code.
{ "resource": "" }
c25458
train
// RdmaLinkByName finds a link by name and returns a pointer to the object if // found and nil error, otherwise returns error code.
{ "resource": "" }
c25459
train
// NewIPNet generates an IPNet from an ip address using a netmask of 32 or 128.
{ "resource": "" }
c25460
train
// LinkSetVfGUID sets the node or port GUID of a vf for the link.
{ "resource": "" }
c25461
train
// LinkByName finds a link by name and returns a pointer to the object.
{ "resource": "" }
c25462
train
// LinkByAlias finds a link by its alias and returns a pointer to the object. // If there are multiple links with the alias it returns the first one
{ "resource": "" }
c25463
train
// LinkByIndex finds a link by index and returns a pointer to the object.
{ "resource": "" }
c25464
train
// LinkSubscribe takes a chan down which notifications will be sent // when links change. Close the 'done' chan to stop subscription.
{ "resource": "" }
c25465
train
// LinkSubscribeWithOptions work like LinkSubscribe but enable to // provide additional options to modify the behavior. Currently, the // namespace can be provided as well as an error callback.
{ "resource": "" }
c25466
train
// LinkSetBondSlave add slave to bond link via ioctl interface.
{ "resource": "" }
c25467
train
// VethPeerIndex get veth peer index.
{ "resource": "" }
c25468
train
// GetNetNsIdByFd looks up the network namespace ID for a given fd. // fd must be an open file descriptor to a namespace file. // Returns -1 if the namespace does not have an ID set.
{ "resource": "" }
c25469
train
// SetNetNSIdByFd sets the ID of the network namespace for a given fd. // fd must be an open file descriptor to a namespace file. // The ID can only be set for namespaces without an ID already set.
{ "resource": "" }
c25470
train
// getNetNsId requests the netnsid for a given type-val pair // type should be either NETNSA_PID or NETNSA_FD
{ "resource": "" }
c25471
train
// setNetNsId sets the netnsid for a given type-val pair // type should be either NETNSA_PID or NETNSA_FD // The ID can only be set for namespaces without an ID already set
{ "resource": "" }
c25472
train
// ipNetEqual returns true iff both IPNet are equal
{ "resource": "" }
c25473
train
// newIocltSlaveReq returns filled IfreqSlave with proper interface names // It is used by ioctl to assign slave to bond master
{ "resource": "" }
c25474
train
// newIocltStringSetReq creates request to get interface string set
{ "resource": "" }
c25475
train
// Equal returns true if both Addrs have the same net.IPNet value.
{ "resource": "" }
c25476
train
// SocketGet returns the Socket identified by its local and remote addresses.
{ "resource": "" }
c25477
train
// RouteSubscribe takes a chan down which notifications will be sent // when routes are added or deleted. Close the 'done' chan to stop subscription.
{ "resource": "" }
c25478
train
// RouteSubscribeWithOptions work like RouteSubscribe but enable to // provide additional options to modify the behavior. Currently, the // namespace can be provided as well as an error callback.
{ "resource": "" }
c25479
train
// loadSimpleBpf loads a trivial bpf program for testing purposes.
{ "resource": "" }
c25480
train
// NewRule return empty rules.
{ "resource": "" }
c25481
train
// NOTE function is here because it uses other linux functions
{ "resource": "" }
c25482
train
// SupportsNetlinkFamily reports whether the passed netlink family is supported by this Handle
{ "resource": "" }
c25483
train
// NewHandle returns a netlink handle on the current network namespace. // Caller may specify the netlink families the handle should support. // If no families are specified, all the families the netlink package // supports will be automatically added.
{ "resource": "" }
c25484
train
// SetSocketTimeout sets the send and receive timeout for each socket in the // netlink handle. Although the socket timeout has granularity of one // microsecond, the effective granularity is floored by the kernel timer tick, // which default value is four milliseconds.
{ "resource": "" }
c25485
train
// GetSocketReceiveBufferSize gets the receiver buffer size for each // socket in the netlink handle. The retrieved value should be the // double to the one set for SetSocketReceiveBufferSize.
{ "resource": "" }
c25486
train
// NewHandleAtFrom works as NewHandle but allows client to specify the // new and the origin netns Handle.
{ "resource": "" }
c25487
train
// Delete releases the resources allocated to this handle
{ "resource": "" }
c25488
train
// MakeSnapshotName makes a full name for a snapshot that includes // the namespace and the short name
{ "resource": "" }
c25489
train
// NewProvisionerConfig create ProvisionerConfig from parameters of StorageClass
{ "resource": "" }
c25490
train
// Export exports the given directory using NFS Ganesha, assuming it is running // and can be connected to using D-Bus.
{ "resource": "" }
c25491
train
// NewReconciler is the constructor of Reconciler
{ "resource": "" }
c25492
train
// AfterRetry is added to the AfterRetry chain; called after any error
{ "resource": "" }
c25493
train
// Init inits volume plugin
{ "resource": "" }
c25494
train
// VolumeDelete deletes the specified volume passed on pv
{ "resource": "" }
c25495
train
// SnapshotCreate creates a VolumeSnapshot from a PersistentVolumeSpec
{ "resource": "" }
c25496
train
// SnapshotDelete deletes a VolumeSnapshot // PersistentVolume is provided for volume types, if any, that need PV Spec to delete snapshot
{ "resource": "" }
c25497
train
// SnapshotRestore creates a new Volume using the data on the specified Snapshot
{ "resource": "" }
c25498
train
// DescribeSnapshot retrieves info for the specified Snapshot
{ "resource": "" }
c25499
train
// convertSnapshotStatus converts Cinder snapshot status to crdv1.VolumeSnapshotCondition
{ "resource": "" }