_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c7300 | train | // RemoteCall is a wrapper around rpc.Call and also ensure message integrity by adding a hmac | {
"resource": ""
} | ||
c7301 | train | // CheckValidity checks if the received message is valid | {
"resource": ""
} | ||
c7302 | train | // StartServer Starts a server and waits for new connections this function never returns | {
"resource": ""
} | ||
c7303 | train | // DestroyRPCClient calls close on the rpc and cleans up the connection | {
"resource": ""
} | ||
c7304 | train | // ContextList returns the list of active context managed by the rpcwrapper | {
"resource": ""
} | ||
c7305 | train | // ProcessMessage checks if the given request is valid | {
"resource": ""
} | ||
c7306 | train | // payloadHash returns the has of the payload | {
"resource": ""
} | ||
c7307 | train | // RegisterTypes registers types that are exchanged between the controller and remoteenforcer | {
"resource": ""
} | ||
c7308 | train | // New returns a new registerer | {
"resource": ""
} | ||
c7309 | train | // RegisterProcessor registers an event processor for a given PUTYpe. Only one
// processor is allowed for a given PU Type. | {
"resource": ""
} | ||
c7310 | train | // processApplicationTCPPacket processes a TCP packet and dispatches it to other methods based on the flags | {
"resource": ""
} | ||
c7311 | train | // processApplicationSynPacket processes a single Syn Packet | {
"resource": ""
} | ||
c7312 | train | // processApplicationSynAckPacket processes an application SynAck packet | {
"resource": ""
} | ||
c7313 | train | // processNetworkTCPPacket processes a network TCP packet and dispatches it to different methods based on the flags | {
"resource": ""
} | ||
c7314 | train | // createTCPAuthenticationOption creates the TCP authentication option - | {
"resource": ""
} | ||
c7315 | train | // appSynRetrieveState retrieves state for the the application Syn packet.
// It creates a new connection by default | {
"resource": ""
} | ||
c7316 | train | // appRetrieveState retrieves the state for the rest of the application packets. It
// returns an error if it cannot find the state | {
"resource": ""
} | ||
c7317 | train | // netSynRetrieveState retrieves the state for the Syn packets on the network.
// Obviously if no state is found, it generates a new connection record. | {
"resource": ""
} | ||
c7318 | train | // netSynAckRetrieveState retrieves the state for SynAck packets at the network
// It relies on the source port cache for that | {
"resource": ""
} | ||
c7319 | train | // netRetrieveState retrieves the state of a network connection. Use the flow caches for that | {
"resource": ""
} | ||
c7320 | train | // updateTimer updates the timers for the service connections | {
"resource": ""
} | ||
c7321 | train | // releaseFlow releases the flow and updates the conntrack table | {
"resource": ""
} | ||
c7322 | train | // releaseUnmonitoredFlow releases the flow and updates the conntrack table | {
"resource": ""
} | ||
c7323 | train | // NewMockSupervisor creates a new mock instance
// nolint | {
"resource": ""
} | ||
c7324 | train | // Supervise mocks base method
// nolint | {
"resource": ""
} | ||
c7325 | train | // Supervise indicates an expected call of Supervise
// nolint | {
"resource": ""
} | ||
c7326 | train | // Unsupervise mocks base method
// nolint | {
"resource": ""
} | ||
c7327 | train | // SetTargetNetworks mocks base method
// nolint | {
"resource": ""
} | ||
c7328 | train | // NewMockImplementor creates a new mock instance
// nolint | {
"resource": ""
} | ||
c7329 | train | // ConfigureRules mocks base method
// nolint | {
"resource": ""
} | ||
c7330 | train | // ConfigureRules indicates an expected call of ConfigureRules
// nolint | {
"resource": ""
} | ||
c7331 | train | // DeleteRules mocks base method
// nolint | {
"resource": ""
} | ||
c7332 | train | // DeleteRules indicates an expected call of DeleteRules
// nolint | {
"resource": ""
} | ||
c7333 | train | // ACLProvider mocks base method
// nolint | {
"resource": ""
} | ||
c7334 | train | // NewEventServer creates a new event server | {
"resource": ""
} | ||
c7335 | train | // ServeHTTP is called for every request. | {
"resource": ""
} | ||
c7336 | train | // Run runs the server. The server will run in the background. It will
// gracefully die with the provided context. | {
"resource": ""
} | ||
c7337 | train | // create is the main hadler that process and validates the events
// before calling the actual monitor handlers to process the event. | {
"resource": ""
} | ||
c7338 | train | // processEvent processes the event by retrieving the right monitor handler. | {
"resource": ""
} | ||
c7339 | train | // validateUser validates that the originating user is not sending a request
// for a process that they don't own. Root users are allowed to send
// any event. | {
"resource": ""
} | ||
c7340 | train | // validateTypes validates the various types and prevents any bad strings. | {
"resource": ""
} | ||
c7341 | train | // validateEvent validates that this is reasonable event and
// modifies the default values. | {
"resource": ""
} | ||
c7342 | train | // createPortSets creates either UID or process port sets. This is only
// needed for Linux PUs and it returns immediately for container PUs. | {
"resource": ""
} | ||
c7343 | train | // deletePortSet delets the ports set that was created for a Linux PU.
// It returns without errors for container PUs. | {
"resource": ""
} | ||
c7344 | train | // DeletePortFromPortSet deletes ports from port sets | {
"resource": ""
} | ||
c7345 | train | // NewCollector provides a new collector interface | {
"resource": ""
} | ||
c7346 | train | // DefaultMetadataExtractor is the default metadata extractor for Docker | {
"resource": ""
} | ||
c7347 | train | // hostModeOptions creates the default options for a host-mode container. This is done
// based on the policy and the metadata extractor logic and can very by implementation | {
"resource": ""
} | ||
c7348 | train | // StatsFlowHash is a hash function to hash flows | {
"resource": ""
} | ||
c7349 | train | // StatsUserHash is a hash function to hash user records | {
"resource": ""
} | ||
c7350 | train | // NewPortCache creates a new port cache | {
"resource": ""
} | ||
c7351 | train | // AddPortSpec adds a port spec into the cache | {
"resource": ""
} | ||
c7352 | train | // AddPortSpecToEnd adds a range at the end of the cache | {
"resource": ""
} | ||
c7353 | train | // AddUnique adds a port spec into the cache and makes sure its unique | {
"resource": ""
} | ||
c7354 | train | // GetSpecValueFromPort searches the cache for a match based on a port
// It will return the first match found on exact ports or on the ranges
// of ports. If there are multiple intervals that match it will randomly
// return one of them. | {
"resource": ""
} | ||
c7355 | train | // Remove will remove a port from the cache | {
"resource": ""
} | ||
c7356 | train | // RemoveStringPorts will remove a port from the cache | {
"resource": ""
} | ||
c7357 | train | // NewMockRemoteIntf creates a new mock instance
// nolint | {
"resource": ""
} | ||
c7358 | train | // InitEnforcer mocks base method
// nolint | {
"resource": ""
} | ||
c7359 | train | // InitEnforcer indicates an expected call of InitEnforcer
// nolint | {
"resource": ""
} | ||
c7360 | train | // Run implements the run interfaces and runs the individual data paths | {
"resource": ""
} | ||
c7361 | train | // Enforce implements the enforce interface by sending the event to all the enforcers. | {
"resource": ""
} | ||
c7362 | train | // Unenforce implements the Unenforce interface by sending the event to all the enforcers. | {
"resource": ""
} | ||
c7363 | train | // Updatesecrets updates the secrets of the enforcers | {
"resource": ""
} | ||
c7364 | train | // EnableDatapathPacketTracing implemented the datapath packet tracing | {
"resource": ""
} | ||
c7365 | train | // New returns a new policy enforcer that implements both the data paths. | {
"resource": ""
} | ||
c7366 | train | // extractHeaderAttribute returns the attribute from bytes
// mask - mask specific to the attribute | {
"resource": ""
} | ||
c7367 | train | // toMask returns the mask based on the type | {
"resource": ""
} | ||
c7368 | train | // toType returns the type based on mask | {
"resource": ""
} | ||
c7369 | train | // String2CompressionType is a helper to convert string to compression type | {
"resource": ""
} | ||
c7370 | train | // newReconciler returns a new reconcile.Reconciler | {
"resource": ""
} | ||
c7371 | train | // addController adds a new Controller to mgr with r as the reconcile.Reconciler | {
"resource": ""
} | ||
c7372 | train | // NewProcessor creates an auth processor with PKI user tokens. The caller
// must provide a valid secrets structure and an optional list of trustedCertificates
// that can be used to validate tokens. If the list is empty, the CA from the secrets
// will be used for token validation. | {
"resource": ""
} | ||
c7373 | train | // UpdateSecrets will update the Aporeto secrets for the validation of the
// Aporeto tokens. | {
"resource": ""
} | ||
c7374 | train | // AddOrUpdateService adds or replaces a service in the authorization db. | {
"resource": ""
} | ||
c7375 | train | // UpdateServiceAPIs updates an existing service with a new API definition. | {
"resource": ""
} | ||
c7376 | train | // DecodeUserClaims decodes the user claims with the user authorization method. | {
"resource": ""
} | ||
c7377 | train | // DecodeAporetoClaims decodes the Aporeto claims | {
"resource": ""
} | ||
c7378 | train | // Callback is function called by and IDP auth provider will exchange the provided
// authorization code with a JWT token. This closes the Oauth loop. | {
"resource": ""
} | ||
c7379 | train | // Check is the main method that will search API cache and validate whether the call should
// be allowed. It returns two values. If the access is allowed, and whether the access
// public or not. This allows callers to decide what to do when there is a failure, and
// potentially issue a redirect. | {
"resource": ""
} | ||
c7380 | train | // RedirectURI returns the redirect URI in order to start the authentication dance. | {
"resource": ""
} | ||
c7381 | train | // UpdateRequestHeaders will update the request headers based on the user claims
// and the corresponding mappings. | {
"resource": ""
} | ||
c7382 | train | // NewFilterQueueWithDefaults return a default filter queue config | {
"resource": ""
} | ||
c7383 | train | // hasSynced sends an event on the Sync chan when the attachedController finished syncing. | {
"resource": ""
} | ||
c7384 | train | // Synchronize reads from file and parses it | {
"resource": ""
} | ||
c7385 | train | // RetrieveByQueue returns layout for a specific queue number | {
"resource": ""
} | ||
c7386 | train | // RetrieveAll returns all layouts | {
"resource": ""
} | ||
c7387 | train | // String returns string renresentation of nfqueue data | {
"resource": ""
} | ||
c7388 | train | // NewMockProcessor creates a new mock instance
// nolint | {
"resource": ""
} | ||
c7389 | train | // Start mocks base method
// nolint | {
"resource": ""
} | ||
c7390 | train | // Start indicates an expected call of Start
// nolint | {
"resource": ""
} | ||
c7391 | train | // NewTagStoreFromMap creates a tag store from an input map | {
"resource": ""
} | ||
c7392 | train | // Copy copies a TagStore | {
"resource": ""
} | ||
c7393 | train | // Get does a lookup in the list of tags | {
"resource": ""
} | ||
c7394 | train | // Merge merges tags from m into native tag store. if the key exists, the provided
// tag from m is ignored. | {
"resource": ""
} | ||
c7395 | train | // AppendKeyValue appends a key and value to the tag store | {
"resource": ""
} | ||
c7396 | train | // RoundTrip implements the RoundTripper interface. It will add a cookie
// in the response in case of OIDC requests with refresh tokens. | {
"resource": ""
} | ||
c7397 | train | // Resync asks the monitor to do a resync | {
"resource": ""
} | ||
c7398 | train | // NewMockDebugClient creates a new mock instance
// nolint | {
"resource": ""
} | ||
c7399 | train | // Run 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.