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/etcd/s3/...
func GetBackend ¶
func GetBackend(stateConfig configloader.State) (Backend, error)
GetBackend will return a Backend by the given name.
Click to show internal directories.
Click to hide internal directories.