Documentation
¶
Overview ¶
Package prober provides a framework for implementing Chainguard probers that expose an HTTP endpoint for health checking.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Func ¶
Func is a convenience wrapper for turning a function into an Interface.
Example ¶
package main
import (
"context"
"fmt"
"github.com/chainguard-dev/terraform-infra-common/pkg/prober"
)
func main() {
// Func adapts a plain function into a prober.Interface.
p := prober.Func(func(_ context.Context) error {
fmt.Println("probing...")
return nil
})
_ = p
}
Output:
Click to show internal directories.
Click to hide internal directories.