Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("no endpoints found")
Functions ¶
func TestInject ¶
Types ¶
type BackgroundLookup ¶
type Containerd ¶
type Containerd struct {
Log *slog.Logger
Namespace string `asm:"namespace"`
Client *containerd.Client
}
func (*Containerd) FindInContainerd ¶
func (*Containerd) Lookup ¶
func (c *Containerd) Lookup(ctx context.Context, app string) (Endpoint, chan BackgroundLookup, error)
type EndpointFunc ¶
type EndpointFunc func(w http.ResponseWriter, req *http.Request)
func (EndpointFunc) ServeHTTP ¶
func (e EndpointFunc) ServeHTTP(w http.ResponseWriter, req *http.Request)
type HTTPEndpoint ¶
type HTTPEndpoint struct {
Host string
}
func (*HTTPEndpoint) ServeHTTP ¶
func (h *HTTPEndpoint) ServeHTTP(w http.ResponseWriter, req *http.Request)
type LocalContainerEndpoint ¶
type LocalContainerEndpoint struct {
Log *slog.Logger
HTTP HTTPEndpoint
Client *containerd.Client
Namespace string
Dir string `asm:"static_dir"`
Id string
}
func (*LocalContainerEndpoint) ServeHTTP ¶
func (h *LocalContainerEndpoint) ServeHTTP(w http.ResponseWriter, req *http.Request)
type Lookup ¶
type Lookup interface {
Lookup(ctx context.Context, name string) (Endpoint, chan BackgroundLookup, error)
}
func FailLookup ¶
Click to show internal directories.
Click to hide internal directories.