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, URI prefix, boolean includeDirectories) createDirectory(String tenantId, URI uri) booleandeleteByPrefix(String tenantId, URI storagePrefix) booleanio.kestra.core.storages.FileAttributesgetAttributes(String tenantId, URI uri) io.kestra.core.storages.StorageObjectgetWithMetadata(String tenantId, URI uri) voidinit()List<io.kestra.core.storages.FileAttributes> 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, put
-
Constructor Details
-
LocalStorage
public LocalStorage()
-
-
Method Details
-
init
- Specified by:
initin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
get
- Specified by:
getin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
getWithMetadata
public io.kestra.core.storages.StorageObject getWithMetadata(String tenantId, URI uri) throws IOException - Specified by:
getWithMetadatain 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
public URI put(String tenantId, 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, 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
-