storage

package
v2.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	GetAll() ([]string, error)
	Get(name string) (string, error)
	Delete(name string) error
	Replace(name string, config string) (string, error)
	Create(name string, contents io.ReadCloser) (string, error)
}

func New

func New(dirname string, fileType StorageFileType) (Storage, error)

type StorageFileType

type StorageFileType string
const (
	MapsType StorageFileType = "maps"
	SSLType  StorageFileType = "certificate"
)

Jump to

Keyboard shortcuts

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