_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c6800 | train | // NewRPCClient indicates an expected call of NewRPCClient
// nolint | {
"resource": ""
} | ||
c6801 | train | // GetRPCClient mocks base method
// nolint | {
"resource": ""
} | ||
c6802 | train | // RemoteCall mocks base method
// nolint | {
"resource": ""
} | ||
c6803 | train | // RemoteCall indicates an expected call of RemoteCall
// nolint | {
"resource": ""
} | ||
c6804 | train | // DestroyRPCClient mocks base method
// nolint | {
"resource": ""
} | ||
c6805 | train | // DestroyRPCClient indicates an expected call of DestroyRPCClient
// nolint | {
"resource": ""
} | ||
c6806 | train | // ContextList mocks base method
// nolint | {
"resource": ""
} | ||
c6807 | train | // CheckValidity indicates an expected call of CheckValidity
// nolint | {
"resource": ""
} | ||
c6808 | train | // StartServer mocks base method
// nolint | {
"resource": ""
} | ||
c6809 | train | // StartServer indicates an expected call of StartServer
// nolint | {
"resource": ""
} | ||
c6810 | train | // ProcessMessage indicates an expected call of ProcessMessage
// nolint | {
"resource": ""
} | ||
c6811 | train | // CheckValidity mocks base method
// nolint | {
"resource": ""
} | ||
c6812 | train | // Map implements the handler.Mapper interface to emit reconciles for corev1.Pods. It effectively
// filters the pods by looking for a matching nodeName and filters them out if host networking is requested,
// but we don't want to enable those. | {
"resource": ""
} | ||
c6813 | train | // NewPKIIssuer initializes a new signer structure | {
"resource": ""
} | ||
c6814 | train | // NewPKIVerifier returns a new PKIConfiguration. | {
"resource": ""
} | ||
c6815 | train | // Verify verifies a token and returns the public key | {
"resource": ""
} | ||
c6816 | train | // CreateTokenFromCertificate creates and signs a token | {
"resource": ""
} | ||
c6817 | train | // KeyFromClaims creates the public key structure from the claims | {
"resource": ""
} | ||
c6818 | train | // NewTCPProxy creates a new instance of proxy reate a new instance of Proxy | {
"resource": ""
} | ||
c6819 | train | // RunNetworkServer implements enforcer.Enforcer interface | {
"resource": ""
} | ||
c6820 | train | // UpdateSecrets updates the secrets of the connections. | {
"resource": ""
} | ||
c6821 | train | // handle handles a connection | {
"resource": ""
} | ||
c6822 | train | // Initiate the downstream connection | {
"resource": ""
} | ||
c6823 | train | // RefreshPUs is used to resend an update event to the Upstream Policy Resolver in case of an update is needed. | {
"resource": ""
} | ||
c6824 | train | // getKubernetesInformation returns the name and namespace from a standard Docker runtime, if the docker container is associated at all with Kubernetes | {
"resource": ""
} | ||
c6825 | train | // decorateRuntime decorates the docker runtime with puid of the pause container. | {
"resource": ""
} | ||
c6826 | train | // NewMockStatsClient creates a new mock instance
// nolint | {
"resource": ""
} | ||
c6827 | train | // SendStats indicates an expected call of SendStats
// nolint | {
"resource": ""
} | ||
c6828 | train | // processNetUDPPacket processes a network UDP packet and dispatches it to different methods based on the flags.
// This applies only to control packets. | {
"resource": ""
} | ||
c6829 | train | // ProcessApplicationUDPPacket processes packets arriving from an application and are destined to the network | {
"resource": ""
} | ||
c6830 | train | // processApplicationUDPSynPacket processes a single Syn Packet | {
"resource": ""
} | ||
c6831 | train | // sendUDPSynAckPacket processes a UDP SynAck packet | {
"resource": ""
} | ||
c6832 | train | // processNetworkUDPSynPacket processes a syn packet arriving from the network | {
"resource": ""
} | ||
c6833 | train | // sendUDPFinPacket sends a Fin packet to Peer. | {
"resource": ""
} | ||
c6834 | train | // Update the udp fin cache and delete the connmark. | {
"resource": ""
} | ||
c6835 | train | // newRemoteEnforcer starts a new server | {
"resource": ""
} | ||
c6836 | train | // Enforce this method calls the enforce method on the enforcer created during initenforcer | {
"resource": ""
} | ||
c6837 | train | // Unenforce this method calls the unenforce method on the enforcer created from initenforcer | {
"resource": ""
} | ||
c6838 | train | // SetTargetNetworks calls the same method on the actual enforcer | {
"resource": ""
} | ||
c6839 | train | // EnforcerExit is processing messages from the remote that are requesting an exit. In this
// case we simply cancel the context. | {
"resource": ""
} | ||
c6840 | train | // UpdateSecrets updates the secrets used by the remote enforcer | {
"resource": ""
} | ||
c6841 | train | // EnableIPTablesPacketTracing enables iptables trace packet tracing | {
"resource": ""
} | ||
c6842 | train | // setup an enforcer | {
"resource": ""
} | ||
c6843 | train | // cleanup cleans all the acls and any state of the local enforcer. | {
"resource": ""
} | ||
c6844 | train | // LaunchRemoteEnforcer launches a remote enforcer | {
"resource": ""
} | ||
c6845 | train | // getCEnvVariable returns an environment variable set in the c context | {
"resource": ""
} | ||
c6846 | train | // NewAPICache creates a new API cache | {
"resource": ""
} | ||
c6847 | train | // FindRule finds a rule in the APICache without validating scopes | {
"resource": ""
} | ||
c6848 | train | // FindAndMatchScope finds the rule and returns true only if the scope matches
// as well. It also returns true of this was a public rule, allowing the callers
// to decide how to present the data or potentially what to do if authorization
// fails. | {
"resource": ""
} | ||
c6849 | train | // MatchClaims receives a set of claim matchibg rules and a set of claims
// and returns true of the claims match the rules. | {
"resource": ""
} | ||
c6850 | train | // Find finds a URI in the cache and returns true and the data if found.
// If not found it returns false. | {
"resource": ""
} | ||
c6851 | train | // parse parses a URI and splits into prefix, suffix | {
"resource": ""
} | ||
c6852 | train | // insert adds an api to the api cache | {
"resource": ""
} | ||
c6853 | train | // getPausePUID returns puid of pause container. | {
"resource": ""
} | ||
c6854 | train | // PolicyExtensions retrieves policy extensions | {
"resource": ""
} | ||
c6855 | train | // IsHostNetworkContainer returns true if container has hostnetwork set
// to true or is linked to container with hostnetwork set to true. | {
"resource": ""
} | ||
c6856 | train | // IsKubernetesContainer checks if the container is in K8s. | {
"resource": ""
} | ||
c6857 | train | // KubePodIdentifier returns identifier for K8s pod. | {
"resource": ""
} | ||
c6858 | train | //NewPolicyDB creates a new PolicyDB for efficient search of policies | {
"resource": ""
} | ||
c6859 | train | // Custom implementation for splitting strings. Gives significant performance
// improvement. Do not allocate new strings | {
"resource": ""
} | ||
c6860 | train | // Search searches for a set of tags in the database to find a policy match | {
"resource": ""
} | ||
c6861 | train | // PrintPolicyDB is a debugging function to dump the map | {
"resource": ""
} | ||
c6862 | train | // cgroupChainRules provides the rules for redirecting to a processing unit
// specific chain based for Linux processed and based on the cgroups and net_cls
// configuration. | {
"resource": ""
} | ||
c6863 | train | // containerChainRules provides the list of rules that are used to send traffic to
// a particular chain | {
"resource": ""
} | ||
c6864 | train | // proxyRules creates the rules that allow traffic to go through if it is handled
// by the services. | {
"resource": ""
} | ||
c6865 | train | // trapRules provides the packet capture rules that are defined for each processing unit. | {
"resource": ""
} | ||
c6866 | train | // addContainerChain adds a chain for the specific container and redirects traffic there
// This simplifies significantly the management and makes the iptable rules more readable
// All rules related to a container are contained within the dedicated chain | {
"resource": ""
} | ||
c6867 | train | // processRulesFromList is a generic helper that parses a set of rules and sends the corresponding
// ACL commands. | {
"resource": ""
} | ||
c6868 | train | // addPacketTrap adds the necessary iptables rules to capture control packets to user space | {
"resource": ""
} | ||
c6869 | train | // programExtensionsRules programs iptable rules for the given extensions | {
"resource": ""
} | ||
c6870 | train | // sortACLsInBuckets will process all the rules and add them in a list of buckets
// based on their priority. We need an explicit order of these buckets
// in order to support observation only of ACL actions. The parameters
// must provide the chain and whether it is App or Net ACLs so that the rules
// can be created ... | {
"resource": ""
} | ||
c6871 | train | // addExternalACLs adds a set of rules to the external services that are initiated
// by an application. The allow rules are inserted with highest priority. | {
"resource": ""
} | ||
c6872 | train | // deleteChainRules deletes the rules that send traffic to our chain | {
"resource": ""
} | ||
c6873 | train | // deletePUChains removes all the container specific chains and basic rules | {
"resource": ""
} | ||
c6874 | train | // setGlobalRules installs the global rules | {
"resource": ""
} | ||
c6875 | train | // cleanACLSection flushes and deletes all chains with Prefix - Trireme | {
"resource": ""
} | ||
c6876 | train | // NewMockRuntimeReader creates a new mock instance
// nolint | {
"resource": ""
} | ||
c6877 | train | // Pid mocks base method
// nolint | {
"resource": ""
} | ||
c6878 | train | // Tag mocks base method
// nolint | {
"resource": ""
} | ||
c6879 | train | // Tag indicates an expected call of Tag
// nolint | {
"resource": ""
} | ||
c6880 | train | // Tags mocks base method
// nolint | {
"resource": ""
} | ||
c6881 | train | // Options mocks base method
// nolint | {
"resource": ""
} | ||
c6882 | train | // IPAddresses mocks base method
// nolint | {
"resource": ""
} | ||
c6883 | train | // PUType mocks base method
// nolint | {
"resource": ""
} | ||
c6884 | train | // PUType indicates an expected call of PUType
// nolint | {
"resource": ""
} | ||
c6885 | train | // SetServices mocks base method
// nolint | {
"resource": ""
} | ||
c6886 | train | // SetServices indicates an expected call of SetServices
// nolint | {
"resource": ""
} | ||
c6887 | train | // PortMap mocks base method
// nolint | {
"resource": ""
} | ||
c6888 | train | // NewMockResolver creates a new mock instance
// nolint | {
"resource": ""
} | ||
c6889 | train | // HandlePUEvent mocks base method
// nolint | {
"resource": ""
} | ||
c6890 | train | // HandlePUEvent indicates an expected call of HandlePUEvent
// nolint | {
"resource": ""
} | ||
c6891 | train | // Code returns collector reason | {
"resource": ""
} | ||
c6892 | train | // CodeFromErr returns the collector code from ErrToken | {
"resource": ""
} | ||
c6893 | train | // Run runs the Nf Logger | {
"resource": ""
} | ||
c6894 | train | // newAppConnectionState will create the initial connection state object. | {
"resource": ""
} | ||
c6895 | train | // newNetworkConnectionState will create the initial connection state object. | {
"resource": ""
} | ||
c6896 | train | // KubernetesMetadataExtractor is a systemd based metadata extractor | {
"resource": ""
} | ||
c6897 | train | // CleanAllTriremeACLs cleans up all previous Trireme ACLs. It can be called from
// other packages for housekeeping. | {
"resource": ""
} | ||
c6898 | train | // ActionString returns if the action if accepted of rejected as a long string. | {
"resource": ""
} | ||
c6899 | train | // LogPrefix is the prefix used in nf-log action. It must be less than | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.