Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Common ¶
type Common struct { Host string `json:"host"` StartedAt time.Time `json:"startedAt"` Uptime time.Duration `json:"uptime"` Version string `json:"version"` }
Common is a common health status report contained in both liveness and readiness reports.
type Component ¶
type Component interface { Identifier() string Check(context.Context) *ComponentStatus }
type ComponentStatus ¶
type Interface ¶
type Interface interface { Liveness(ctx context.Context) *LivenessStatus Readiness(ctx context.Context) *ReadinessStatus }
type LivenessStatus ¶
func NewLivenessStatus ¶
func NewLivenessStatus(startedAt time.Time, version string) *LivenessStatus
NewLivenessStatus creates a new liveness status report.
type PostgresComponent ¶
type PostgresComponent struct {
// contains filtered or unexported fields
}
func NewPostgresComponent ¶
func NewPostgresComponent(pool *pgxpool.Pool) *PostgresComponent
func (*PostgresComponent) Check ¶
func (c *PostgresComponent) Check(ctx context.Context) *ComponentStatus
func (*PostgresComponent) Identifier ¶
func (c *PostgresComponent) Identifier() string
type ReadinessStatus ¶
type ReadinessStatus struct { Common Healthy bool `json:"healthy"` ComponentStatuses []*ComponentStatus `json:"componentStatuses"` }
func NewReadinessStatus ¶
func NewReadinessStatus(startedAt time.Time, version string, componentStatuses []*ComponentStatus) *ReadinessStatus
NewReadinessStatus creates a new aggregated readiness status report.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
type YunikornComponent ¶
type YunikornComponent struct {
// contains filtered or unexported fields
}
func NewYunikornComponent ¶
func NewYunikornComponent(client yunikorn.Client) *YunikornComponent
func (*YunikornComponent) Check ¶
func (c *YunikornComponent) Check(ctx context.Context) *ComponentStatus
func (*YunikornComponent) Identifier ¶
func (c *YunikornComponent) Identifier() string
Click to show internal directories.
Click to hide internal directories.