storage

package
v0.0.0-...-8f202a6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IStorageProviderRepository

type IStorageProviderRepository interface {
	Exists(ctx context.Context, path string) bool
	Get(ctx context.Context, path string) (string, error)
	ReadStream(ctx context.Context, path string) (io.ReadCloser, error)
	Put(ctx context.Context, path string, contents interface{}, options ...interface{}) error
	WriteStream(ctx context.Context, path string, reader io.Reader, options ...interface{}) error
	GetVisibility(ctx context.Context, path string) (string, error)
	SetVisibility(ctx context.Context, path, visibility string) error
	Prepend(ctx context.Context, path, data string) error
	Append(ctx context.Context, path, data string) error
	Delete(ctx context.Context, paths ...string) error
	Copy(ctx context.Context, from, to string) error
	Move(ctx context.Context, from, to string) error
	Size(ctx context.Context, path string) (int64, error)
	LastModified(ctx context.Context, path string) (int64, error)
	Files(ctx context.Context, directory string, recursive bool) ([]string, error)
	AllFiles(ctx context.Context, directory string) ([]string, error)
	Directories(ctx context.Context, directory string, recursive bool) ([]string, error)
	AllDirectories(ctx context.Context, directory string) ([]string, error)
	MakeDirectory(ctx context.Context, path string) error
	DeleteDirectory(ctx context.Context, directory string) error
	GenerateURL(ctx context.Context, path string, expires time.Duration) (*string, error)
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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