io

package
v0.0.0-...-920a96b Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3RegionName      = "s3.region-name"
	S3SessionToken    = "s3.session-token"
	S3SecretAccessKey = "s3.secret-access-key"
	S3AccessKeyID     = "s3.access-key-id"
	S3EndpointURL     = "s3.region"
	S3ProxyURI        = "s3.proxy-uri"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	io.ReadSeekCloser
	io.ReaderAt
	// Readdir(count int) ([]fs.FileInfo, error)
	Stat() (fs.FileInfo, error)
}

type IO

type IO interface {
	Open(name string) (File, error)
	Remove(name string) error
}

func FS

func FS(fsys fs.FS) IO

func FSPreProcName

func FSPreProcName(fsys fs.FS, fn func(string) string) IO

func LoadFS

func LoadFS(props map[string]string, location string) (IO, error)

type LocalFS

type LocalFS struct{}

func (LocalFS) Open

func (LocalFS) Open(name string) (File, error)

func (LocalFS) Remove

func (LocalFS) Remove(name string) error

type ReadFileIO

type ReadFileIO interface {
	IO

	ReadFile(name string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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