persistentfile

package
v2.2.0-beta.0+incompat... Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotExist

func IsNotExist(err error) bool

Types

type Config

type Config struct {
	Type FileProvider
	// File parameters
	Path string
	Perm os.FileMode
	// ConfigMap parameters
	ConfigMapName      string
	ConfigMapNamespace string
	Key                string
	ConfigMapClient    v1.ConfigMapsGetter
}

type FileProvider

type FileProvider string
const (
	FSFile        FileProvider = "fs"
	ConfigMapFile FileProvider = "cm"
)

type Interface

type Interface interface {
	Info() string
	Read() ([]byte, error)
	Write(data []byte) error
}

func New

func New(c Config) (Interface, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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