Documentation ¶
Index ¶
Constants ¶
View Source
const ( DetailedResponseQueryKey = "detailed" PathLivenessProbe = "/liveness" PathReadinessProbe = "/readiness" PathStartupProbe = "/startup" )
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Types ¶
type CAASProbes ¶
type CAASProbes struct { Liveness *probe.Aggregate Readiness *probe.Aggregate Startup *probe.Aggregate }
CaasProbes provides a private internal implementation of CAASProbes.
func NewCAASProbes ¶
func NewCAASProbes() *CAASProbes
NewCAASProbes is responsible for constructing a new CAASProbes struct with its members initialised.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(probes *CAASProbes, mux Mux) (*Controller, error)
NewController constructs a new caas prober Controller.
type ManifoldConfig ¶
type ManifoldConfig struct { // MuxName is the name of http api server used to register the probe // endpoints for this worker. MuxName string // DefaultProviders is a list of probe providers that are given to this // worker at instantiation and not fetched from the dependency engine. DefaultProviders map[string]probe.ProbeProvider // Providers is a list of worker providers that can offer one of the Prober // interfaces to be registered in this worker. Expects at least one of // LivenessProber, ReadinessProber or StartupProber. Providers []string }
ManifoldConfig is the configuration used to setup a new caasprober.
func (ManifoldConfig) Start ¶
func (c ManifoldConfig) Start(context context.Context, getter dependency.Getter) (worker.Worker, error)
func (ManifoldConfig) Validate ¶
func (c ManifoldConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.