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

func Create(c storagebackend.ConfigForResource, newFunc, newListFunc func() runtime.Object, resourcePrefix string) (storage.Interface, DestroyFunc, error)

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.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
36 packages
Last checked
7 hours ago

Tools for package owners.