proxy

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package proxy reads the host names a reverse proxy routes to the services of a compose project, and the host port each one is reached through. The input is `docker compose config --format json`; the proxy is told by its image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mentioned

func Mentioned(composeText string) bool

Mentioned spares the docker call to a project whose compose files name no proxy wtm knows: a false positive costs one `compose config`, nothing more.

func URLs

func URLs(services map[string]Service) (map[string][]string, string)

URLs maps each service to the addresses a known proxy routes to it, and names that proxy. A service no route names is absent.

Types

type Port

type Port struct {
	Target    int    `json:"target"`
	Published string `json:"published"`
}

type Service

type Service struct {
	Image   string            `json:"image"`
	Command []string          `json:"command"`
	Labels  map[string]string `json:"labels"`
	Ports   []Port            `json:"ports"`
	// A bare `- NAME` passes the host's value through: compose renders null.
	Environment map[string]*string `json:"environment"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL