nfs

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	storage.AbstractUnit
	encryption.NoConvergentEncryption
	// contains filtered or unexported fields
}

func (*Buffer) BufferType

func (n *Buffer) BufferType() storage.CDNBufferType

func (*Buffer) Connect

func (n *Buffer) Connect() (*gonfs.Mount, *gonfs.Target, error)

func (*Buffer) GetDriverName

func (n *Buffer) GetDriverName() string

func (*Buffer) Init

func (n *Buffer) Init(ctx context.Context, cfg interface{}, bufferType storage.CDNBufferType) error

func (*Buffer) ItemExists

func (n *Buffer) ItemExists(ctx context.Context, m *gorpmapper.Mapper, db gorp.SqlExecutor, i sdk.CDNItem) (bool, error)

func (*Buffer) NewReader

func (n *Buffer) NewReader(ctx context.Context, i sdk.CDNItemUnit) (io.ReadCloser, error)

func (*Buffer) NewWriter

func (n *Buffer) NewWriter(ctx context.Context, i sdk.CDNItemUnit) (io.WriteCloser, error)

func (*Buffer) Remove

func (n *Buffer) Remove(ctx context.Context, i sdk.CDNItemUnit) error

func (*Buffer) ResyncWithDatabase

func (n *Buffer) ResyncWithDatabase(ctx context.Context, db gorp.SqlExecutor, t sdk.CDNItemType, dryRun bool)

func (*Buffer) Size

func (n *Buffer) Size(_ sdk.CDNItemUnit) (int64, error)

func (*Buffer) Status

type Reader

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

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

type Writer

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

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) Write

func (w *Writer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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