file

package
v0.0.0-...-e0473b6 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EOF = io.EOF

Functions

This section is empty.

Types

type File

type File interface {
	io.Writer
	io.ReaderAt
	io.Seeker
	io.Reader
	io.Closer
}

type LocalFile

type LocalFile struct {
	// contains filtered or unexported fields
}

func NewLocalFile

func NewLocalFile(f *os.File) *LocalFile

func (*LocalFile) Close

func (l *LocalFile) Close() error

func (*LocalFile) Read

func (l *LocalFile) Read(p []byte) (n int, err error)

func (*LocalFile) ReadAt

func (l *LocalFile) ReadAt(p []byte, off int64) (n int, err error)

func (*LocalFile) Seek

func (l *LocalFile) Seek(offset int64, whence int) (int64, error)

func (*LocalFile) Write

func (l *LocalFile) Write(p []byte) (n int, err error)

type MemoryFile

type MemoryFile struct {
	// contains filtered or unexported fields
}

func NewMemoryFile

func NewMemoryFile(b []byte) *MemoryFile

func (*MemoryFile) Bytes

func (f *MemoryFile) Bytes() []byte

func (*MemoryFile) Close

func (f *MemoryFile) Close() error

func (*MemoryFile) Read

func (f *MemoryFile) Read(p []byte) (n int, err error)

func (*MemoryFile) ReadAt

func (f *MemoryFile) ReadAt(b []byte, off int64) (n int, err error)

func (*MemoryFile) Seek

func (f *MemoryFile) Seek(offset int64, whence int) (int64, error)

func (*MemoryFile) Write

func (f *MemoryFile) Write(b []byte) (int, error)

type MinioFile

type MinioFile struct {
	*minio.Object
	// contains filtered or unexported fields
}

func NewMinioFile

func NewMinioFile(client *minio.Client, fileName string, bucketName string) (*MinioFile, error)

func (*MinioFile) Close

func (f *MinioFile) Close() error

func (*MinioFile) Write

func (f *MinioFile) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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