Documentation ¶
Index ¶
Constants ¶
View Source
const ( PathLivenessProbe = "/liveness" PathReadinessProbe = "/readiness" PathStartupProbe = "/startup" )
Variables ¶
View Source
var (
ErrorProbeNotImplemented = errors.New("probe not implemented")
)
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Types ¶
type CAASProbes ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(probes CAASProbes, mux Mux) (*Controller, error)
func (*Controller) Kill ¶
func (c *Controller) Kill()
func (*Controller) Wait ¶
func (c *Controller) Wait() error
type ManifoldConfig ¶
type ManifoldConfig struct {
MuxName string
}
func (ManifoldConfig) Start ¶
func (c ManifoldConfig) Start(context dependency.Context) (worker.Worker, error)
func (ManifoldConfig) Validate ¶
func (c ManifoldConfig) Validate() error
type ProbeNotImplemented ¶
type ProbeNotImplemented struct{}
func (*ProbeNotImplemented) Probe ¶
func (p *ProbeNotImplemented) Probe() (bool, error)
type ProbeSuccess ¶
type ProbeSuccess struct{}
func (*ProbeSuccess) Probe ¶
func (p *ProbeSuccess) Probe() (bool, error)
type ProberFunc ¶
func (ProberFunc) Probe ¶
func (p ProberFunc) Probe() (bool, error)
Click to show internal directories.
Click to hide internal directories.