Documentation
¶
Index ¶
- type FileStore
- func (fs *FileStore) Delete(ctx context.Context, path string) error
- func (fs *FileStore) Exists(ctx context.Context, path string) (bool, error)
- func (fs *FileStore) GetFileURL(ctx context.Context, path string) (string, error)
- func (fs *FileStore) ListFilesInPath(ctx context.Context, path string) ([]string, error)
- func (fs *FileStore) Retrieve(ctx context.Context, path string) ([]byte, error)
- func (fs *FileStore) Store(ctx context.Context, path string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new FileStore instance, examples: rootPath: /var/lib/unstructured/ s3Bucket: unstructured-data-bucket
func (*FileStore) GetFileURL ¶
func (*FileStore) ListFilesInPath ¶
Note: this function is not thread safe and is prone to race conditions as we do not have directory level locks implemented
Click to show internal directories.
Click to hide internal directories.