backend

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// Read is used to read data from persistent storage.
	Read() ([]byte, error)
	// Write is used to write data to persistent storage.
	Write(data []byte) error
}

Backend is used to persist data, it can be local file/s3/k8s...

func GetBackend

func GetBackend(state configmanager.State) (Backend, error)

GetBackend will return a Backend by the given name.

type Type

type Type string
const (
	LocalBackend    Type = "local"
	S3Backend       Type = "s3"
	K8sBackend      Type = "k8s"
	K8sBackendAlias Type = "kubernetes"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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