Documentation
¶
Index ¶
- type Local
- func (l *Local) Exists(ctx context.Context, storagePath string) bool
- func (l *Local) Init(ctx context.Context, cfg config.StorageConfig) error
- func (l *Local) JoinStoragePath(path string) string
- func (l *Local) ListFiles(ctx context.Context, dirPath string) ([]storagetypes.FileInfo, error)
- func (l *Local) Name() string
- func (l *Local) OpenFile(ctx context.Context, filePath string) (io.ReadCloser, int64, error)
- func (l *Local) Save(ctx context.Context, r io.Reader, storagePath string) error
- func (l *Local) Type() storenum.StorageType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
func (*Local) JoinStoragePath ¶ added in v0.11.0
func (*Local) Type ¶ added in v0.11.0
func (l *Local) Type() storenum.StorageType
Click to show internal directories.
Click to hide internal directories.