factory

package
v0.27.15 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 34 Imported by: 172

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 added in v0.25.0

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 added in v0.25.12

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 added in v0.25.12

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

Jump to

Keyboard shortcuts

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