package factory

import "k8s.io/apiserver/pkg/storage/storagebackend/factory"

Index

Functions

func CreateHealthCheck

func CreateHealthCheck(c storagebackend.Config, stopCh <-chan struct{}) (func() error, error)

CreateHealthCheck creates a healthcheck function based on given config.

func CreateReadyCheck

func CreateReadyCheck(c storagebackend.Config, stopCh <-chan struct{}) (func() error, error)

Types

type DestroyFunc

type DestroyFunc func()

DestroyFunc is to destroy any resources used by the storage returned in Create() together.

func Create

Create creates a storage backend based on given config.

type Prober

type Prober interface {
	Probe(ctx context.Context) error
	Close() error
}

Prober is an interface that defines the Probe function for doing etcd readiness/liveness checks.

func CreateProber

func CreateProber(c storagebackend.Config) (Prober, error)

Source Files

etcd3.go factory.go

Version
v0.25.12
Published
Jul 19, 2023
Platform
js/wasm
Imports
33 packages
Last checked
1 minute ago

Tools for package owners.