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