factory

package
v0.20.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 23 Imported by: 172

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHealthCheck

func CreateHealthCheck(c storagebackend.Config) (func() error, error)

CreateHealthCheck creates a healthcheck function based on given config.

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.Config, newFunc func() runtime.Object) (storage.Interface, DestroyFunc, error)

Create creates a storage backend based on given config.

Jump to

Keyboard shortcuts

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