Package io.kestra.storage.local
Class LocalStorage
java.lang.Object
io.kestra.storage.local.LocalStorage
- All Implemented Interfaces:
io.kestra.core.storages.StorageInterface
@Singleton
@LocalStorageEnabled
public class LocalStorage
extends Object
implements io.kestra.core.storages.StorageInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallByPrefix(String tenantId, URI prefix, boolean includeDirectories) createDirectory(String tenantId, URI uri) booleandeleteByPrefix(String tenantId, URI storagePrefix) booleanio.kestra.core.storages.FileAttributesgetAttributes(String tenantId, URI uri) List<io.kestra.core.storages.FileAttributes>put(String tenantId, URI uri, InputStream data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kestra.core.storages.StorageInterface
cachePrefix, executionPrefix, executionPrefix, executionPrefix, extractExecutionId, from, from, namespaceFilePrefix, outputPrefix, outputPrefix, outputPrefix, statePrefix, uri
-
Constructor Details
-
LocalStorage
- Throws:
IOException
-
-
Method Details
-
get
- Specified by:
getin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
allByPrefix
public List<URI> allByPrefix(String tenantId, URI prefix, boolean includeDirectories) throws IOException - Specified by:
allByPrefixin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
exists
- Specified by:
existsin interfaceio.kestra.core.storages.StorageInterface
-
list
public List<io.kestra.core.storages.FileAttributes> list(String tenantId, URI uri) throws IOException - Specified by:
listin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
put
- Specified by:
putin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
getAttributes
public io.kestra.core.storages.FileAttributes getAttributes(String tenantId, URI uri) throws IOException - Specified by:
getAttributesin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
createDirectory
- Specified by:
createDirectoryin interfaceio.kestra.core.storages.StorageInterface
-
move
- Specified by:
movein interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
delete
- Specified by:
deletein interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
deleteByPrefix
- Specified by:
deleteByPrefixin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-