_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c7400 | // NewVerifier initializes data structures based on the interface that
// is transmitted over the RPC between main and remote enforcers. | |
c7401 | // NewMockEnforcer creates a new mock instance
// nolint | |
c7402 | // Unenforce mocks base method
// nolint | |
c7403 | // GetFilterQueue mocks base method
// nolint | |
c7404 | // GetFilterQueue indicates an expected call of GetFilterQueue
// nolint | |
c7405 | // CleanUp mocks base method
// nolint | |
c7406 | // EnableIPTablesPacketTracing mocks base method
// nolint | |
c7407 | // GetUDPData return additional data in packet | |
c7408 | // DropTCPDetachedBytes removes any bytes that have been detached and stored locally | |
c7409 | // Print is a print helper function | |
c7410 | //GetTCPBytes returns the bytes in the packet. It consolidates in case of changes as well | |
c7411 | // ReadTCPData returns ths payload in a string variable
// It does not remove the payload from the packet | |
c7412 | // CheckTCPAuthenticationOption ensures authentication option exists at the offset provided | |
c7413 | // FixupIPHdrOnDataModify modifies the IP header fields and checksum | |
c7414 | // IncreaseTCPSeq increases TCP seq number by incr | |
c7415 | // DecreaseTCPSeq decreases TCP seq number by decr | |
c7416 | // IncreaseTCPAck increases TCP ack number by incr | |
c7417 | // DecreaseTCPAck decreases TCP ack number by decr | |
c7418 | // FixuptcpHdrOnTCPDataDetach modifies the TCP header fields and checksum | |
c7419 | // FixuptcpHdrOnTCPDataAttach modifies the TCP header fields and checksum | |
c7420 | // TCPDataAttach modifies the TCP and IP header fields and checksum | |
c7421 | // L4FlowHash calculate a hash string based on the 4-tuple | |
c7422 | // ID returns the IP ID of the packet | |
c7423 | //GetBuffer returns the slice representing the buffer at offset specified | |
c7424 | // NewInstance creates a new iptables controller instance | |
c7425 | // newInstanceWithProviders is called after ipt and ips have been created. This helps
// with all the unit testing to be able to mock the providers. | |
c7426 | // Run starts the iptables controller | |
c7427 | // ConfigureRules implments the ConfigureRules interface. It will create the
// port sets and then it will call install rules to create all the ACLs for
// the given chains. PortSets are only created here. Updates will use the
// exact same logic. | |
c7428 | // DeleteRules implements the DeleteRules interface. This is responsible
// for cleaning all ACLs and associated chains, as well as ll the sets
// that we have created. Note, that this only clears up the state
// for a given processing unit. | |
c7429 | // UpdateRules implements the update part of the interface. Update will call
// installrules to install the new rules and then it will delete the old rules.
// For installations that do not have latests iptables-restore we time
// the operations so that the switch is almost atomic, by creating the new rules
// first. F... | |
c7430 | // CleanUp requires the implementor to clean up all ACLs and destroy all
// the IP sets. | |
c7431 | // InitializeChains initializes the chains. | |
c7432 | // configureLinuxRules adds the chain rules for a linux process or a UID process. | |
c7433 | // Install rules will install all the rules and update the port sets. | |
c7434 | // puPortSetName returns the name of the pu portset. | |
c7435 | // NewProtoListener creates a listener for a particular protocol. | |
c7436 | // Accept accepts new connections over the channel. | |
c7437 | // NewMultiplexedListener returns a new multiplexed listener. Caller
// must register protocols outside of the new object creation. | |
c7438 | // RegisterListener registers a new listener. It returns the listener that the various
// protocol servers should use. If defaultListener is set, this will become
// the default listener if no match is found. Obviously, there cannot be more
// than one default. | |
c7439 | // UnregisterListener unregisters a listener. It returns an error if there are services
// associated with this listener. | |
c7440 | // RegisterDefaultListener registers a default listener. | |
c7441 | // UnregisterDefaultListener unregisters the default listener. | |
c7442 | // Serve will demux the connections | |
c7443 | // GetParameters retrieves log parameters for Remote Enforcer. | |
c7444 | // isPodInfraContainer returns true if the runtime represents the infra container for the POD | |
c7445 | // NewStatsClient initializes a new stats client | |
c7446 | // sendStats async function which makes a rpc call to send stats every STATS_INTERVAL | |
c7447 | // SendStats sends all the stats from the cache | |
c7448 | // Start This is an private function called by the remoteenforcer to connect back
// to the controller over a stats channel | |
c7449 | // New returns a trireme interface implementation based on configuration provided. | |
c7450 | // Run starts the supervisor and the enforcer and go routines. It doesn't try to clean
// up if something went wrong. It will be up to the caller to decide what to do. | |
c7451 | // CleanUp cleans all the acls and all the remote supervisors | |
c7452 | // Enforce asks the controller to enforce policy to a processing unit | |
c7453 | // UpdateSecrets updates the secrets of the controllers. | |
c7454 | // UpdateConfiguration updates the configuration of the controller. Only
// a limited number of parameters can be updated at run time. | |
c7455 | // doHandleCreate is the detailed implementation of the create event. | |
c7456 | // doHandleDelete is the detailed implementation of the delete event. | |
c7457 | // doUpdatePolicy is the detailed implementation of the update policy event. | |
c7458 | // TCPFlagsToStr converts the TCP Flags to a string value that is human readable | |
c7459 | // DialMarkedWithContext will dial a TCP connection to the provide address and mark the socket
// with the provided mark. | |
c7460 | // NewSocketListener will create a listener and mark the socket with the provided mark. | |
c7461 | // LocalAddr implements the corresponding method of net.Conn, but returns the original
// address. | |
c7462 | // SetDeadline passes the read deadline to the original TCP connection. | |
c7463 | // SetReadDeadline implements the call by passing it to the original connection. | |
c7464 | // SetWriteDeadline implements the call by passing it to the original connection. | |
c7465 | // GetInterfaces retrieves all the local interfaces. | |
c7466 | // GetCgroupList geta list of all cgroup names | |
c7467 | // OptionCollector is an option to provide an external collector implementation. | |
c7468 | // OptionDatapathService is an option to provide an external datapath service implementation. | |
c7469 | // OptionSecret is an option to provide an external datapath service implementation. | |
c7470 | // OptionEnforceFqConfig is an option to override filter queues. | |
c7471 | // OptionRuntimeConfiguration is an option to provide target network configuration. | |
c7472 | // OptionRuntimeErrorChannel configures the error channel for the policy engine. | |
c7473 | // OptionRemoteParameters is an option to set the parameters for the remote | |
c7474 | // newTrireme returns a reference to the trireme object based on the parameter subelements. | |
c7475 | // generateContextID creates the puID from the event information | |
c7476 | // nolint
//export pam_sm_open_session | |
c7477 | // nolint
//export pam_sm_close_session | |
c7478 | // NewMockProcessManager creates a new mock instance
// nolint | |
c7479 | // KillRemoteEnforcer mocks base method
// nolint | |
c7480 | // KillRemoteEnforcer indicates an expected call of KillRemoteEnforcer
// nolint | |
c7481 | // LaunchRemoteEnforcer mocks base method
// nolint | |
c7482 | // LaunchRemoteEnforcer indicates an expected call of LaunchRemoteEnforcer
// nolint | |
c7483 | // NewClaimsHeader returns claims header handler | |
c7484 | // NewCompactPKI creates new secrets for PKI implementation based on compact encoding | |
c7485 | // PublicSecrets returns the secrets that are marshallable over the RPC interface. | |
c7486 | // NewPUPolicyWithDefaults sets up a PU policy with defaults | |
c7487 | // ManagementID returns the management ID | |
c7488 | // TriremeAction returns the TriremeAction | |
c7489 | // SetTriremeAction returns the TriremeAction | |
c7490 | // ApplicationACLs returns a copy of IPRuleList | |
c7491 | // NetworkACLs returns a copy of IPRuleList | |
c7492 | // DNSNameACLs returns a copy of DNSRuleList | |
c7493 | // ReceiverRules returns a copy of TagSelectorList | |
c7494 | // AddReceiverRules adds a receiver rule | |
c7495 | // TransmitterRules returns a copy of TagSelectorList | |
c7496 | // AddTransmitterRules adds a transmitter rule | |
c7497 | // Identity returns a copy of the Identity | |
c7498 | // Annotations returns a copy of the annotations | |
c7499 | // AddIdentityTag adds a policy tag |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.