Help us shape the future of Go! Take the 2026 Go Developer Survey

ready

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ready

type Ready interface {
	// Set ensures that future readiness/liveness probes will indicate that
	// the controller is ready.
	Set() error

	// Unset ensures that future readiness/liveness probes will indicate
	// that the controller is not ready.
	Unset() error
}

Ready holds state about whether the controller is ready and communicates that to a Kubernetes readiness/liveness probe.

func NewFileReady

func NewFileReady(filename string) Ready

NewFileReady returns a Ready that uses the presence of a file on disk to communicate whether the controller is ready.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL