_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c163600
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FQDNSelector.
{ "resource": "" }
c163601
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FQDNSelectorSlice.
{ "resource": "" }
c163602
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sServiceNamespace.
{ "resource": "" }
c163603
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sServiceSelectorNamespace.
{ "resource": "" }
c163604
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaRole.
{ "resource": "" }
c163605
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L7Rules.
{ "resource": "" }
c163606
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortProtocol.
{ "resource": "" }
c163607
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRule.
{ "resource": "" }
c163608
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleDNS.
{ "resource": "" }
c163609
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleHTTP.
{ "resource": "" }
c163610
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleKafka.
{ "resource": "" }
c163611
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleL7.
{ "resource": "" }
c163612
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rules.
{ "resource": "" }
c163613
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSelector.
{ "resource": "" }
c163614
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToGroups.
{ "resource": "" }
c163615
train
// String converts the specified flags into a human-readable form.
{ "resource": "" }
c163616
train
// GetConfig creates a EndpointConfig structure using the endpoint's // configuration. The endpoint parameter should have its mutex held.
{ "resource": "" }
c163617
train
// Update pushes the configuration options from the specified endpoint into the // configuration map.
{ "resource": "" }
c163618
train
// OpenMapWithName attempts to open or create a BPF config map at the specified // path with the specified name. // On success, it returns a map and whether the map was newly created, or // otherwise an error.
{ "resource": "" }
c163619
train
// k8sErrorUpdateCheckUnmuteTime returns a boolean indicating whether we should // log errmsg or not. It manages once-per-k8sErrLogTimeout entry in k8sErrMsg. // When errmsg is new or more than k8sErrLogTimeout has passed since the last // invocation that returned true, it returns true.
{ "resource": "" }
c163620
train
// K8sErrorHandler handles the error messages in a non verbose way by omitting // repeated instances of the same error message for a timeout defined with // k8sErrLogTimeout.
{ "resource": "" }
c163621
train
// NewRuleGen creates an initialized RuleGen. // When config.Cache is nil, the global fqdn.DefaultDNSCache is used.
{ "resource": "" }
c163622
train
// StartManageDNSName begins managing sourceRules that contain toFQDNs // sections. When the DNS data of the included matchNames changes, RuleGen will // emit a replacement rule that contains the IPs for each matchName. // It only adds rules with the ToFQDN-UUID label, added by MarkToFQDNRules, and // repeat inserts ar...
{ "resource": "" }
c163623
train
// GetDNSNames returns a snapshot of the DNS names managed by this RuleGen
{ "resource": "" }
c163624
train
// UpdateGenerateDNS inserts the new DNS information into the cache. If the IPs // have changed for a name, store which rules must be updated in rulesToUpdate, // regenerate them, and emit via AddGeneratedRules.
{ "resource": "" }
c163625
train
// ForceGenerateDNS unconditionally regenerates all rules that refer to DNS // names in namesToRegen. These names are FQDNs and toFQDNs.matchPatterns or // matchNames that match them will cause these rules to regenerate.
{ "resource": "" }
c163626
train
// addRule places an api.Rule in the source list for a DNS name. // uuid must be the unique identifier generated for the ToFQDN-UUID label. // newDNSNames and oldDNSNames indicate names that were newly added from this // rule, or that were seen in this rule but were already managed. // If newDNSNames and oldDNSNames ar...
{ "resource": "" }
c163627
train
// removeRule removes an api.Rule from the source rule set for each DNS name, // and from the IPs if no rules depend on that DNS name. // uuid must be a unique identifier for the sourceRule // noLongerManaged indicates that no more rules rely on this DNS target
{ "resource": "" }
c163628
train
// removeFromDNSName removes the uuid from the list attached to a dns name. It // will clean up gen.sourceRules if needed. // shouldStopManaging indicates that no more rules rely on this DNS target
{ "resource": "" }
c163629
train
// updateIPsName will update the IPs for dnsName. It always retains a copy of // newIPs. // updated is true when the new IPs differ from the old IPs
{ "resource": "" }
c163630
train
// WithTimeout adds the timeout to the get identity params
{ "resource": "" }
c163631
train
// WithContext adds the context to the get identity params
{ "resource": "" }
c163632
train
// WithHTTPClient adds the HTTPClient to the get identity params
{ "resource": "" }
c163633
train
// WithLabels adds the labels to the get identity params
{ "resource": "" }
c163634
train
// NewGetHello creates a new http.Handler for the get hello operation
{ "resource": "" }
c163635
train
// ParseMAC parses s only as an IEEE 802 MAC-48.
{ "resource": "" }
c163636
train
// bindFamily binds and validates parameter Family from query.
{ "resource": "" }
c163637
train
// validateFamily carries on validations for parameter Family
{ "resource": "" }
c163638
train
// bindOwner binds and validates parameter Owner from query.
{ "resource": "" }
c163639
train
// WithPayload adds the payload to the get identity Id o k response
{ "resource": "" }
c163640
train
// WithPayload adds the payload to the get identity Id unreachable response
{ "resource": "" }
c163641
train
// WithPayload adds the payload to the get identity Id invalid storage format response
{ "resource": "" }
c163642
train
// WithPayload adds the payload to the post Ip a m Ip failure response
{ "resource": "" }
c163643
train
// dryRun creates the configuration file to show the user what would have been run. // The same file can be used to modify what will be run by the bugtool.
{ "resource": "" }
c163644
train
// writeCmdToFile will execute command and write markdown output to a file
{ "resource": "" }
c163645
train
// split takes a command prompt and returns the command and arguments separately
{ "resource": "" }
c163646
train
// WithTimeout adds the timeout to the patch config params
{ "resource": "" }
c163647
train
// WithContext adds the context to the patch config params
{ "resource": "" }
c163648
train
// WithHTTPClient adds the HTTPClient to the patch config params
{ "resource": "" }
c163649
train
// WithConfiguration adds the configuration to the patch config params
{ "resource": "" }
c163650
train
// PolicyTrace logs the given message into the SearchContext logger only if // TRACE_ENABLED or TRACE_VERBOSE is enabled in the receiver's SearchContext.
{ "resource": "" }
c163651
train
// PolicyTraceVerbose logs the given message into the SearchContext logger only // if TRACE_VERBOSE is enabled in the receiver's SearchContext.
{ "resource": "" }
c163652
train
// WithLogger returns a shallow copy of the received SearchContext with the // logging set to write to 'log'.
{ "resource": "" }
c163653
train
// EnableIPv6Forwarding sets proc file to enable IPv6 forwarding
{ "resource": "" }
c163654
train
// SetupDummy sets up kvstore for tests
{ "resource": "" }
c163655
train
// fetchK8sLabels returns the kubernetes labels from the given container labels
{ "resource": "" }
c163656
train
// setOpts validates the specified options against the selected workload runtime // and then modifies the configuration
{ "resource": "" }
c163657
train
// Setup sets up the workload runtime specified in workloadRuntime and configures it // with the options provided in opts
{ "resource": "" }
c163658
train
// AddService adds a service to list of loadbalancers and returns true if created.
{ "resource": "" }
c163659
train
// DeleteService deletes svc from lb's SVCMap and SVCMapID.
{ "resource": "" }
c163660
train
// NewL4Addr creates a new L4Addr.
{ "resource": "" }
c163661
train
// Equals returns true if both L4Addr are considered equal.
{ "resource": "" }
c163662
train
// DeepCopy returns a DeepCopy of the given L4Addr.
{ "resource": "" }
c163663
train
// NewFEPort creates a new FEPort with the ID set to 0.
{ "resource": "" }
c163664
train
// EqualsIgnoreID returns true if both L4Addr are considered equal without // comparing its ID.
{ "resource": "" }
c163665
train
// NewL3n4Addr creates a new L3n4Addr.
{ "resource": "" }
c163666
train
// NewLBBackEnd creates the LBBackEnd struct instance from given params.
{ "resource": "" }
c163667
train
// DeepCopy returns a DeepCopy of the given L3n4Addr.
{ "resource": "" }
c163668
train
// SHA256Sum calculates L3n4Addr's internal SHA256Sum.
{ "resource": "" }
c163669
train
// NewL3n4AddrID creates a new L3n4AddrID.
{ "resource": "" }
c163670
train
// DeepCopy returns a DeepCopy of the given L3n4AddrID.
{ "resource": "" }
c163671
train
// AddFEnBE adds the given 'fe' and 'be' to the SVCMap. If 'fe' exists and beIndex is 0, // the new 'be' will be appended to the list of existing backends. If beIndex is bigger // than the size of existing backends slice, it will be created a new array with size of // beIndex and the new 'be' will be inserted on index ...
{ "resource": "" }
c163672
train
// allocateBuffers initializes the buffers for sharing between Golang and C.
{ "resource": "" }
c163673
train
// Debug returns string with internal information about PerfEvent
{ "resource": "" }
c163674
train
// ReadAll reads perf events
{ "resource": "" }
c163675
train
// decode uses reflection to read bytes directly from 'reader' into the object // pointed to from 'i'. Assumes that 'i' is a pointer. // // This function should not be used from performance-sensitive code.
{ "resource": "" }
c163676
train
// Decode populates 'r' based on the bytes read from the specified reader. // // This function should not be used from performance-sensitive code.
{ "resource": "" }
c163677
train
// Decode populates 'p' base on the bytes read from the specified reader. // // This function should not be used from performance-sensitive code.
{ "resource": "" }
c163678
train
// mountCgroup mounts the Cgroup v2 filesystem into the desired cgroupRoot directory.
{ "resource": "" }
c163679
train
// CheckOrMountCgrpFS this checks if the cilium cgroup2 root mount point is // mounted and if not mounts it. If mapRoot is "" it will mount the default // location. It is harmless to have multiple cgroupv2 root mounts so unlike // BPFFS case we simply mount at the cilium default regardless if the system // has another ...
{ "resource": "" }
c163680
train
// fillEndpointInfo tries to resolve the IP address and fills the EndpointInfo // fields with either ReservedIdentityHost or ReservedIdentityWorld
{ "resource": "" }
c163681
train
// fillIngressSourceInfo fills the EndpointInfo fields using identity sent by // source. This is needed in ingress proxy while logging the source endpoint // info. Since there will be 2 proxies on the same host, if both egress and // ingress policies are set, the ingress policy cannot determine the source // endpoint ...
{ "resource": "" }
c163682
train
// fillEgressDestinationInfo returns the destination EndpointInfo for a flow // leaving the proxy at egress.
{ "resource": "" }
c163683
train
// Verdict attachs verdict information to the log record
{ "resource": "" }
c163684
train
// Timestamp overwrites the starting timestamp of the log record
{ "resource": "" }
c163685
train
// Addressing attaches addressing information about the source and destination // to the logrecord
{ "resource": "" }
c163686
train
// HTTP attaches HTTP information to the log record
{ "resource": "" }
c163687
train
// Kafka attaches Kafka information to the log record
{ "resource": "" }
c163688
train
// DNS attaches DNS information to the log record
{ "resource": "" }
c163689
train
// L7 attaches generic L7 information to the log record
{ "resource": "" }
c163690
train
// Log logs a record to the logfile and flushes the buffer
{ "resource": "" }
c163691
train
// Called with lock held
{ "resource": "" }
c163692
train
// OpenLogfile opens a file for logging
{ "resource": "" }
c163693
train
// GetCiliumEndpointStatus creates a cilium_v2.EndpointStatus of an endpoint. // See cilium_v2.EndpointStatus for a detailed explanation of each field.
{ "resource": "" }
c163694
train
// WithTimeout adds the timeout to the get map name params
{ "resource": "" }
c163695
train
// WithContext adds the context to the get map name params
{ "resource": "" }
c163696
train
// WithHTTPClient adds the HTTPClient to the get map name params
{ "resource": "" }
c163697
train
// WithName adds the name to the get map name params
{ "resource": "" }
c163698
train
// NewSockmapKey returns a new key using 5-tuple input.
{ "resource": "" }
c163699
train
// NewDeletePolicy creates a new http.Handler for the delete policy operation
{ "resource": "" }