storage

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(path string, mode fs.FileMode) error

EnsureDir will create the directory for the provided path on the server operating system. New directories will have the execute mode set for any level of read permission if execute isn't provided in the fs.FileMode.

Types

type FileStore

type FileStore interface {
	Stat(charmID string, path string) (fs.FileInfo, error)
	Get(charmID string, path string) (fs.File, error)
	Put(charmID string, path string, r io.Reader, mode fs.FileMode) error
	Delete(charmID string, path string) error
}

FileStore is the interface storage backends need to implement to act as a the datastore for the Charm Cloud server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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