Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("no endpoints found")
Functions ¶
This section is empty.
Types ¶
type BackgroundLookup ¶
type Containerd ¶
type Containerd struct {
Log *slog.Logger
Namespace string
Client *containerd.Client
}
func NewContainerd ¶ added in v0.3.0
func NewContainerd(log *slog.Logger, namespace string, client *containerd.Client) *Containerd
NewContainerd creates a new Containerd discovery.
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
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.