INNER CODE UNIT · Go

resolve

Netis/cloud-probe · cptools/cripid/main.go:34

func resolve(ctx context.Context, containerID string) (int, error) {
	var lastErr error
	for _, ep := range endpoints() {
		if err := ctx.Err(); err != nil {
			if lastErr == nil {
				lastErr = err
			}
			break
		}
		exists, err := socketExists(ep)
		if err != nil {
			lastErr = err
			continue
		}
		if !exists {
			continue
		}
		pid, err := getContainerPID(ctx, ep, containerID)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…