kubernetes/staging/src/k8s.io/apiserver/pkg/server/hooks.go

type PostStartHookFunc

type PreShutdownHookFunc

type PostStartHookContext

type PostStartHookProvider

type postStartHookEntry

type PostStartHookConfigEntry

type preShutdownHookEntry

// AddPostStartHook allows you to add a PostStartHook.
func (s *GenericAPIServer) AddPostStartHook(name string, hook PostStartHookFunc) error {}

// AddPostStartHookOrDie allows you to add a PostStartHook, but dies on failure
func (s *GenericAPIServer) AddPostStartHookOrDie(name string, hook PostStartHookFunc) {}

// AddPreShutdownHook allows you to add a PreShutdownHook.
func (s *GenericAPIServer) AddPreShutdownHook(name string, hook PreShutdownHookFunc) error {}

// AddPreShutdownHookOrDie allows you to add a PostStartHook, but dies on failure
func (s *GenericAPIServer) AddPreShutdownHookOrDie(name string, hook PreShutdownHookFunc) {}

// RunPostStartHooks runs the PostStartHooks for the server.
func (s *GenericAPIServer) RunPostStartHooks(ctx context.Context) {}

// RunPreShutdownHooks runs the PreShutdownHooks for the server
func (s *GenericAPIServer) RunPreShutdownHooks() error {}

// isPostStartHookRegistered checks whether a given PostStartHook is registered
func (s *GenericAPIServer) isPostStartHookRegistered(name string) bool {}

func runPostStartHook(name string, entry postStartHookEntry, context PostStartHookContext) {}

func runPreShutdownHook(name string, entry preShutdownHookEntry) error {}

type postStartHookHealthz

var _

func (h postStartHookHealthz) Name() string {}

var errHookNotFinished

func (h postStartHookHealthz) Check(req *http.Request) error {}