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 CreateMonitor

func CreateMonitor(c storagebackend.Config) (metrics.Monitor, error)

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.28.0-rc.0
Published
Jul 27, 2023
Platform
js/wasm
Imports
35 packages
Last checked
4 seconds ago

Tools for package owners.