_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c7000
train
// Unregister unregisters a pu from the registry.
{ "resource": "" }
c7001
train
// RetrieveServiceByID retrieves a service by the PU ID. Returns error if not found.
{ "resource": "" }
c7002
train
// RetrieveExposedServiceContext retrieves a service by the provided IP and or port. This // is called by the network side of processing to find the context.
{ "resource": "" }
c7003
train
// updateExposedPortAssociations will insert the association between a port // and a service in the global exposed service cache. This is needed // for all incoming connections, so that can determine both the type // of proxy as well the correct policy for this connection. This // association cannot have overlaps.
{ "resource": "" }
c7004
train
// buildExposedServices builds the caches for the exposed services. It assumes that an authorization
{ "resource": "" }
c7005
train
// updateDependentServices will update all the information in the // ServiceContext for the dependent services.
{ "resource": "" }
c7006
train
// resync adds new port for the PU and removes the stale ports
{ "resource": "" }
c7007
train
// FlattenClaim flattes all the generic claims in a flat array for strings.
{ "resource": "" }
c7008
train
// SetupConfig provides a configuration to implmentations. Every implementation // can have its own config type.
{ "resource": "" }
c7009
train
// Run will start the DockerPolicy Enforcement. // It applies a policy to each Container already Up and Running. // It listens to all ContainerEvents
{ "resource": "" }
c7010
train
// sendRequestToQueue sends a request to a channel based on a hash function
{ "resource": "" }
c7011
train
// eventProcessor processes docker events. We are processing multiple // queues in parallel so that we can activate containers as fast // as possible.
{ "resource": "" }
c7012
train
// eventListener listens to Docker events from the daemon and passes to // to the processor through a buffered channel. This minimizes the chances // that we will miss events because the processor is delayed
{ "resource": "" }
c7013
train
// Resync resyncs all the existing containers on the Host, using the // same process as when a container is initially spawn up
{ "resource": "" }
c7014
train
//container.HostConfig.NetworkMode == constants.DockerHostMode
{ "resource": "" }
c7015
train
// setupHostMode sets up the net_cls cgroup for the host mode
{ "resource": "" }
c7016
train
// ExtractMetadata generates the RuntimeInfo based on Docker primitive
{ "resource": "" }
c7017
train
// handleCreateEvent generates a create event type. We extract the metadata // and start the policy resolution at the create event. No need to wait // for the start event.
{ "resource": "" }
c7018
train
// handleStartEvent will notify the policy engine immediately about the event in order // to start the implementation of the functions. At this point we know the process ID // that is needed for the remote enforcers.
{ "resource": "" }
c7019
train
// handleDestroyEvent handles destroy events from Docker. It generated a "Destroy event"
{ "resource": "" }
c7020
train
// handlePauseEvent generates a create event type.
{ "resource": "" }
c7021
train
// handleCreateEvent generates a create event type.
{ "resource": "" }
c7022
train
// waitForDockerDaemon is a blocking call which will try to bring up docker, if not return err // with timeout
{ "resource": "" }
c7023
train
// NewSecrets creates a new set of secrets based on the type.
{ "resource": "" }
c7024
train
// NewTable creates a new table
{ "resource": "" }
c7025
train
// Add adds a service into the cache. Returns error of if any overlap has been detected.
{ "resource": "" }
c7026
train
// Find searches for a matching service, given an IP and port. Caller must specify // the local or remote context.
{ "resource": "" }
c7027
train
// FindListeningServicesForPU returns a service that is found and the associated // portSpecifications that refer to this service.
{ "resource": "" }
c7028
train
// DeleteByID will delete all entries related to this ID from all references.
{ "resource": "" }
c7029
train
// addPorts will only work for local ports.
{ "resource": "" }
c7030
train
// Supervise just keeps track of the active remotes so that it can initiate updates.
{ "resource": "" }
c7031
train
// NewMockMonitor creates a new mock instance // nolint
{ "resource": "" }
c7032
train
// NewMockImplementation creates a new mock instance // nolint
{ "resource": "" }
c7033
train
// SetupConfig mocks base method // nolint
{ "resource": "" }
c7034
train
// SetupConfig indicates an expected call of SetupConfig // nolint
{ "resource": "" }
c7035
train
// SetupHandlers mocks base method // nolint
{ "resource": "" }
c7036
train
// SetupHandlers indicates an expected call of SetupHandlers // nolint
{ "resource": "" }
c7037
train
// NewIpset returns an IpsetProvider interface based on the go-ipset // external package.
{ "resource": "" }
c7038
train
// GetIpset gets the ipset object from the name.
{ "resource": "" }
c7039
train
// DestroyAll destroys all the ipsets - it will fail if there are existing references
{ "resource": "" }
c7040
train
// UpdateConfiguration updates the configuration of the monitors.
{ "resource": "" }
c7041
train
// Resync resyncs the monitor
{ "resource": "" }
c7042
train
// Enforce implements the Enforce interface method and configures the data path for a new PU
{ "resource": "" }
c7043
train
// Unenforce removes the configuration for the given PU
{ "resource": "" }
c7044
train
// SetTargetNetworks sets new target networks used by datapath
{ "resource": "" }
c7045
train
// Run starts the application and network interceptors
{ "resource": "" }
c7046
train
// contextFromIP returns the PU context from the default IP if remote. Otherwise // it returns the context from the port or mark values of the packet. Synack // packets are again special and the flow is reversed. If a container doesn't supply // its IP information, we use the default IP. This will only work with remote...
{ "resource": "" }
c7047
train
//AssignMark writes the mark value to net_cls.classid file.
{ "resource": "" }
c7048
train
// AddProcess adds the process to the net_cls group
{ "resource": "" }
c7049
train
//RemoveProcess removes the process from the cgroup by writing the pid to the //top of net_cls cgroup cgroup.procs
{ "resource": "" }
c7050
train
// DeleteCgroup assumes the cgroup is already empty and destroys the directory structure. // It will return an error if the group is not empty. Use RempoveProcess to remove all processes // Before we try deletion
{ "resource": "" }
c7051
train
//Deletebasepath removes the base aporeto directory which comes as a separate event when we are not managing any processes
{ "resource": "" }
c7052
train
// ListCgroupProcesses returns lists of processes in the cgroup
{ "resource": "" }
c7053
train
// ListAllCgroups returns a list of the cgroups that are managed in the Trireme path
{ "resource": "" }
c7054
train
// NewDockerCgroupNetController returns a handle to call functions on the cgroup net_cls controller
{ "resource": "" }
c7055
train
//NewCgroupNetController returns a handle to call functions on the cgroup net_cls controller
{ "resource": "" }
c7056
train
// NewVerifier creates a new Aporeto JWT Verifier. The globalCertificate is optional // and is needed for configurations that do not transmit the token over the wire.
{ "resource": "" }
c7057
train
// UpdateSecrets updates the secrets of the token Verifier.
{ "resource": "" }
c7058
train
// CreateAndSign creates a new JWT token based on the Aporeto identities.
{ "resource": "" }
c7059
train
// generateContextID creates the contextID from the event information
{ "resource": "" }
c7060
train
// NewClient creates a new flow tracking client. s
{ "resource": "" }
c7061
train
// UpdateApplicationFlowMark will update the mark for a flow based on the packet information // received from an application. It will use the forward entries of conntrack for that.
{ "resource": "" }
c7062
train
// newReplyFlow will create a flow based on the reply tuple only. This will help us // update the mark without requiring knowledge of nats.
{ "resource": "" }
c7063
train
// String returns the configuration in string
{ "resource": "" }
c7064
train
// IsComplete checks if configuration is complete
{ "resource": "" }
c7065
train
// CollectFlowEvent collects a new flow event and adds it to a local list it shares with SendStats
{ "resource": "" }
c7066
train
// CollectUserEvent collects a new user event and adds it to a local cache.
{ "resource": "" }
c7067
train
// CollectTraceEvent collect trace events
{ "resource": "" }
c7068
train
// NewKubeClient Generate and initialize a Kubernetes client based on the parameter kubeconfig
{ "resource": "" }
c7069
train
// CreateLocalPodController creates a controller specifically for Pods.
{ "resource": "" }
c7070
train
// Pod returns the full pod object.
{ "resource": "" }
c7071
train
// DialMarkedWithContext dials a TCP connection and associates a mark. Propagates the context.
{ "resource": "" }
c7072
train
// NewSocketListener creates a socket listener with marked connections.
{ "resource": "" }
c7073
train
// GetOriginalDestination sets the original destination of the connection.
{ "resource": "" }
c7074
train
// Read implements the read interface of the connection.
{ "resource": "" }
c7075
train
// RemoteAddr implements the RemoteAddr interface of the connection. // This is the main change where we actually use the FD of the unix // socket to find the remote UID.
{ "resource": "" }
c7076
train
// SetDeadline implements the SetDeadLine interface.
{ "resource": "" }
c7077
train
// SetReadDeadline implements the SetReadDeadling interface
{ "resource": "" }
c7078
train
// SetWriteDeadline implements the SetWriteDeadline method of the interface.
{ "resource": "" }
c7079
train
// newPortAction parses a port spec and creates the action
{ "resource": "" }
c7080
train
// DefaultHostMetadataExtractor is a host specific metadata extractor
{ "resource": "" }
c7081
train
// ProcessInfo returns all metadata captured by a process
{ "resource": "" }
c7082
train
// libs returns the list of dynamic library dependencies of an executable
{ "resource": "" }
c7083
train
// IsHostPU returns true if puType stored by policy extensions is host PU
{ "resource": "" }
c7084
train
// NewAppProxy creates a new instance of the application proxy.
{ "resource": "" }
c7085
train
// Unenforce implements enforcer.Enforcer interface. It will shutdown the app side // of the proxy.
{ "resource": "" }
c7086
train
// UpdateSecrets updates the secrets of running enforcers managed by trireme. Remote enforcers will // get the secret updates with the next policy push.
{ "resource": "" }
c7087
train
// registerAndRun registers a new listener of the given type and runs the corresponding server
{ "resource": "" }
c7088
train
// processCertificateUpdates processes the certificate information and updates // the servers.
{ "resource": "" }
c7089
train
// startNetworkInterceptor will the process that processes packets from the network // Still has one more copy than needed. Can be improved.
{ "resource": "" }
c7090
train
// startApplicationInterceptor will create a interceptor that processes // packets originated from a local application
{ "resource": "" }
c7091
train
// NewPURuntime Generate a new RuntimeInfo
{ "resource": "" }
c7092
train
// MarshalJSON Marshals this struct.
{ "resource": "" }
c7093
train
// UnmarshalJSON Unmarshals this struct.
{ "resource": "" }
c7094
train
// Pid returns the PID
{ "resource": "" }
c7095
train
// SetPid sets the PID
{ "resource": "" }
c7096
train
// NSPath returns the NSPath
{ "resource": "" }
c7097
train
// SetNSPath sets the NSPath
{ "resource": "" }
c7098
train
// SetOptions sets the Options
{ "resource": "" }
c7099
train
// Name returns the PID
{ "resource": "" }