Package io.kestra.storage.local
Class LocalStorage
java.lang.Object
io.kestra.storage.local.LocalStorage
- All Implemented Interfaces:
io.kestra.core.models.Plugin,io.kestra.core.storages.StorageInterface,AutoCloseable
@Plugin
@Id("local")
public class LocalStorage
extends Object
implements io.kestra.core.storages.StorageInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallByPrefix(String tenantId, String namespace, URI prefix, boolean includeDirectories) createDirectory(String tenantId, String namespace, URI uri) booleandeleteByPrefix(String tenantId, String namespace, URI storagePrefix) booleanio.kestra.core.storages.FileAttributesgetAttributes(String tenantId, String namespace, URI uri) protected PathgetLocalPath(String tenantId, URI uri) io.kestra.core.storages.StorageObjectgetWithMetadata(String tenantId, String namespace, URI uri) voidinit()List<io.kestra.core.storages.FileAttributes> put(String tenantId, String namespace, URI uri, io.kestra.core.storages.StorageObject storageObject) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kestra.core.models.Plugin
getTypeMethods inherited from interface io.kestra.core.storages.StorageInterface
close, from, getPath, parentTraversalGuard, put
-
Constructor Details
-
LocalStorage
public LocalStorage()
-
-
Method Details
-
init
- Specified by:
initin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
getLocalPath
-
get
- Specified by:
getin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
getWithMetadata
public io.kestra.core.storages.StorageObject getWithMetadata(String tenantId, @Nullable String namespace, URI uri) throws IOException - Specified by:
getWithMetadatain interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
allByPrefix
public List<URI> allByPrefix(String tenantId, @Nullable String namespace, 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, @Nullable String namespace, URI uri) throws IOException - Specified by:
listin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
put
public URI put(String tenantId, @Nullable String namespace, URI uri, io.kestra.core.storages.StorageObject storageObject) throws IOException - Specified by:
putin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
getAttributes
public io.kestra.core.storages.FileAttributes getAttributes(String tenantId, @Nullable String namespace, 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
public List<URI> deleteByPrefix(String tenantId, @Nullable String namespace, URI storagePrefix) throws IOException - Specified by:
deleteByPrefixin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-