_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c6700 | train | // Count mocks base method
// nolint | {
"resource": ""
} | ||
c6701 | train | // Count indicates an expected call of Count
// nolint | {
"resource": ""
} | ||
c6702 | train | // GetAllRecords mocks base method
// nolint | {
"resource": ""
} | ||
c6703 | train | // GetAllDataPathPacketRecords mocks base method
// nolint | {
"resource": ""
} | ||
c6704 | train | // CollectUserEvent indicates an expected call of CollectUserEvent
// nolint | {
"resource": ""
} | ||
c6705 | train | // NewPortSpec creates a new port spec | {
"resource": ""
} | ||
c6706 | train | // NewPortSpecFromString creates a new port spec | {
"resource": ""
} | ||
c6707 | train | // SinglePort returns the port of a non multi-port spec | {
"resource": ""
} | ||
c6708 | train | // MultiPort returns the multi-port range as a string. | {
"resource": ""
} | ||
c6709 | train | // Overlaps returns true if the provided port spect overlaps with the given one. | {
"resource": ""
} | ||
c6710 | train | // IsIncluded returns trues if a port is within the range of the portspec | {
"resource": ""
} | ||
c6711 | train | // Helpher functions for the package, mainly for debugging and validation
// They are not used by the main package
// VerifyIPChecksum returns true if the IP header checksum is correct
// for this packet, false otherwise. Note that the checksum is not
// modified. | {
"resource": ""
} | ||
c6712 | train | // UpdateIPChecksum computes the IP header checksum and updates the
// packet with the value. | {
"resource": ""
} | ||
c6713 | train | // VerifyTCPChecksum returns true if the TCP header checksum is correct
// for this packet, false otherwise. Note that the checksum is not
// modified. | {
"resource": ""
} | ||
c6714 | train | // UpdateTCPChecksum computes the TCP header checksum and updates the
// packet with the value. | {
"resource": ""
} | ||
c6715 | train | //PacketToStringTCP returns a string representation of fields contained in this packet. | {
"resource": ""
} | ||
c6716 | train | // Computes the IP header checksum. The packet is not modified. | {
"resource": ""
} | ||
c6717 | train | // Computes the TCP header checksum. The packet is not modified. | {
"resource": ""
} | ||
c6718 | train | // incCsum16 implements rfc1624, equation 3. | {
"resource": ""
} | ||
c6719 | train | // Computes a sum of 16 bit numbers | {
"resource": ""
} | ||
c6720 | train | // Computes a checksum over the given slice. | {
"resource": ""
} | ||
c6721 | train | // UpdateUDPChecksum updates the UDP checksum field of packet | {
"resource": ""
} | ||
c6722 | train | // ReadUDPToken returnthe UDP token. Gets called only during the handshake process. | {
"resource": ""
} | ||
c6723 | train | // UDPTokenAttach attached udp packet signature and tokens. | {
"resource": ""
} | ||
c6724 | train | // UDPDataAttach Attaches UDP data post encryption. | {
"resource": ""
} | ||
c6725 | train | // CreateReverseFlowPacket modifies the packet for reverse flow. | {
"resource": ""
} | ||
c6726 | train | // GetUDPType returns udp type of packet. | {
"resource": ""
} | ||
c6727 | train | // GetUDPTypeFromBuffer gets the UDP packet from a raw buffer., | {
"resource": ""
} | ||
c6728 | train | // CreateUDPAuthMarker creates a UDP auth marker. | {
"resource": ""
} | ||
c6729 | train | // NewJWT creates a new JWT token processor | {
"resource": ""
} | ||
c6730 | train | // CreateAndSign creates a new token, attaches an ephemeral key pair and signs with the issuer
// key. It also randomizes the source nonce of the token. It returns back the token and the private key. | {
"resource": ""
} | ||
c6731 | train | // Randomize adds a nonce to an existing token. Returns the nonce | {
"resource": ""
} | ||
c6732 | train | // RetrieveNonce returns the nonce of a token. It copies the value | {
"resource": ""
} | ||
c6733 | train | // addTransmitterLabel adds the enforcerconstants.TransmitterLabel as a fixed label in the policy.
// The ManagementID part of the policy is used as the enforcerconstants.TransmitterLabel.
// If the Policy didn't set the ManagementID, we use the Local contextID as the
// default enforcerconstants.TransmitterLabel. | {
"resource": ""
} | ||
c6734 | train | // SubOptionMonitorLinuxExtractor provides a way to specify metadata extractor for linux monitors. | {
"resource": ""
} | ||
c6735 | train | // SubOptionMonitorCNIExtractor provides a way to specify metadata extractor for CNI monitors. | {
"resource": ""
} | ||
c6736 | train | // SubOptionMonitorUIDExtractor provides a way to specify metadata extractor for UID monitors. | {
"resource": ""
} | ||
c6737 | train | // SubOptionMonitorSSHExtractor provides a way to specify metadata extractor for SSH monitors. | {
"resource": ""
} | ||
c6738 | train | // SubOptionMonitorDockerExtractor provides a way to specify metadata extractor for docker. | {
"resource": ""
} | ||
c6739 | train | // SubOptionMonitorDockerSocket provides a way to specify socket info for docker. | {
"resource": ""
} | ||
c6740 | train | // SubOptionMonitorDockerFlags provides a way to specify configuration flags info for docker. | {
"resource": ""
} | ||
c6741 | train | // SubOptionMonitorKubernetesKubeconfig provides a way to specify a kubeconfig to use to connect to Kubernetes.
// In case of an in-cluter config, leave the kubeconfig field blank | {
"resource": ""
} | ||
c6742 | train | // SubOptionMonitorKubernetesNodename provides a way to specify the kubernetes node name.
// This is useful for filtering | {
"resource": ""
} | ||
c6743 | train | // SubOptionMonitorKubernetesHostPod provides a way to specify if we want to activate Pods launched in host mode. | {
"resource": ""
} | ||
c6744 | train | // SubOptionMonitorKubernetesExtractor provides a way to specify metadata extractor for Kubernetes | {
"resource": ""
} | ||
c6745 | train | // SubOptionMonitorKubernetesDockerExtractor provides a way to specify metadata extractor for docker. | {
"resource": ""
} | ||
c6746 | train | // SubOptionMonitorPodKubeconfig provides a way to specify a kubeconfig to use to connect to Kubernetes.
// In case of an in-cluter config, leave the kubeconfig field blank | {
"resource": ""
} | ||
c6747 | train | // SubOptionMonitorPodNodename provides a way to specify the kubernetes node name.
// This is useful for filtering | {
"resource": ""
} | ||
c6748 | train | // SubOptionMonitorPodActivateHostPods provides a way to specify if we want to activate Pods launched in host mode. | {
"resource": ""
} | ||
c6749 | train | // SubOptionMonitorPodMetadataExtractor provides a way to specify metadata extractor for Kubernetes | {
"resource": ""
} | ||
c6750 | train | // SubOptionMonitorPodNetclsProgrammer provides a way to program the net_cls cgroup for host network pods in Kubernetes | {
"resource": ""
} | ||
c6751 | train | // OptionCollector provide a way to add to the docker monitor the collector instance | {
"resource": ""
} | ||
c6752 | train | // OptionPolicyResolver provides a way to add to the docker monitor the policy resolver instance | {
"resource": ""
} | ||
c6753 | train | // NewMonitor provides a configuration for monitors. | {
"resource": ""
} | ||
c6754 | train | //AddEthernetLayer creates an Ethernet layer | {
"resource": ""
} | ||
c6755 | train | //AddIPLayer creates an IP layer | {
"resource": ""
} | ||
c6756 | train | //AddTCPLayer creates a TCP layer | {
"resource": ""
} | ||
c6757 | train | //SetTCPSynAck changes the TCP SYN and ACK flag to true | {
"resource": ""
} | ||
c6758 | train | //NewTCPPayload adds new payload to TCP layer | {
"resource": ""
} | ||
c6759 | train | //DecodePacket returns decoded packet which implements PacketManipulator | {
"resource": ""
} | ||
c6760 | train | //NewPacketFlow returns PacketFlow struct which implements PacketFlowManipulator | {
"resource": ""
} | ||
c6761 | train | //AppendPacket adds the packet to Flow field of PacketFlowManipulator interface | {
"resource": ""
} | ||
c6762 | train | //GetMatchPackets implicitly returns the matching packets requested by the user | {
"resource": ""
} | ||
c6763 | train | //GetUptoFirstSynAckPacket will return packets upto first SynAck packet | {
"resource": ""
} | ||
c6764 | train | //GetNthPacket returns the packet requested by the user from the array | {
"resource": ""
} | ||
c6765 | train | // ConvertServicesToPortList converts an array of services to a port list | {
"resource": ""
} | ||
c6766 | train | // NewDebugClient initializes a new Debug Client | {
"resource": ""
} | ||
c6767 | train | // CreateSocket returns a handle to SocketWriter interface | {
"resource": ""
} | ||
c6768 | train | // NewPUInfo instantiates a new ContainerPolicy | {
"resource": ""
} | ||
c6769 | train | // PUInfoFromPolicyAndRuntime generates a ContainerInfo Struct from an existing RuntimeInfo and PolicyInfo | {
"resource": ""
} | ||
c6770 | train | // ErrPUNotFound creates a new context not found error | {
"resource": ""
} | ||
c6771 | train | // ErrPUNotUnique creates a new not unique error | {
"resource": ""
} | ||
c6772 | train | // ErrPUCreateFailed creates a new PU create failed error | {
"resource": ""
} | ||
c6773 | train | // ErrPUAlreadyActivated creates a new PU already activated error | {
"resource": ""
} | ||
c6774 | train | // ErrPUPolicyPending creates a new PU policy pending error. | {
"resource": ""
} | ||
c6775 | train | // ErrPUPolicyEnforcementFailed creates a new PU policy pending error. | {
"resource": ""
} | ||
c6776 | train | // IsErrPUNotFound checks if this error is a PU not found error | {
"resource": ""
} | ||
c6777 | train | // IsErrPUNotUnique checks if this error is a PU not unique error | {
"resource": ""
} | ||
c6778 | train | // IsErrPUCreateFailed checks if this error is a PU not unique error | {
"resource": ""
} | ||
c6779 | train | // IsErrPUAlreadyActivated checks if this error is a PU already activated error | {
"resource": ""
} | ||
c6780 | train | // IsErrPUPolicyPending checks if this error is a PU policy pending error. | {
"resource": ""
} | ||
c6781 | train | // IsErrPUEnforcementFailed checks if this error is a PU policy pending error. | {
"resource": ""
} | ||
c6782 | train | // ExecuteCommandFromArguments processes the command from the arguments | {
"resource": ""
} | ||
c6783 | train | // NewCustomRequestProcessor creates a new request processor | {
"resource": ""
} | ||
c6784 | train | // CreateAndRun creates a processing unit | {
"resource": ""
} | ||
c6785 | train | // DeleteService will issue a delete command | {
"resource": ""
} | ||
c6786 | train | // DeleteCgroup will issue a delete command based on the cgroup
// This is used mainly by the cleaner. | {
"resource": ""
} | ||
c6787 | train | // ExecuteRequest executes the command with an RPC request | {
"resource": ""
} | ||
c6788 | train | // sendRequest sends an RPC request to the provided address | {
"resource": ""
} | ||
c6789 | train | // ParseServices parses strings with the services and returns them in an
// validated slice | {
"resource": ""
} | ||
c6790 | train | // ComputeHmac256 computes the HMAC256 of the message | {
"resource": ""
} | ||
c6791 | train | // VerifyHmac verifies if the HMAC of the message matches the one provided | {
"resource": ""
} | ||
c6792 | train | // GenerateRandomBytes returns securely generated random bytes.
// It will return an error if the system's secure random
// number generator fails to function correctly, in which
// case the caller should not continue. | {
"resource": ""
} | ||
c6793 | train | // GenerateRandomString returns a URL-safe, base64 encoded
// securely generated random string.
// It will return an error if the system's secure random
// number generator fails to function correctly, in which
// case the caller should not continue. | {
"resource": ""
} | ||
c6794 | train | // LoadRootCertificates loads the certificates in the provide PEM buffer in a CertPool | {
"resource": ""
} | ||
c6795 | train | // LoadEllipticCurveKey parses and creates an EC key | {
"resource": ""
} | ||
c6796 | train | // LoadAndVerifyCertificate parses, validates, and creates a certificate structure from a PEM buffer
// It must be provided with the a CertPool | {
"resource": ""
} | ||
c6797 | train | // LoadAndVerifyECSecrets loads all the certificates and keys to memory in the right data structures | {
"resource": ""
} | ||
c6798 | train | // LoadCertificate loads a certificate from a PEM file without verifying
// Should only be used for loading a root CA certificate. It will only read
// the first certificate | {
"resource": ""
} | ||
c6799 | train | // NewRPCClient mocks base method
// nolint | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.