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) createInstanceDirectory(String namespace, URI uri) booleandeleteByPrefix(String tenantId, String namespace, URI storagePrefix) booleandeleteInstanceResource(String namespace, URI uri) booleanio.kestra.core.storages.FileAttributesgetAttributes(String tenantId, String namespace, URI uri) io.kestra.core.storages.FileAttributesgetInstanceAttributes(String namespace, URI uri) protected PathgetInstancePath(URI uri) getInstanceResource(String namespace, URI uri) protected PathgetLocalPath(String tenantId, URI uri) protected Pathio.kestra.core.storages.StorageObjectgetWithMetadata(String tenantId, String namespace, URI uri) voidinit()List<io.kestra.core.storages.FileAttributes> List<io.kestra.core.storages.FileAttributes> listInstanceResource(String namespace, URI uri) put(String tenantId, String namespace, URI uri, io.kestra.core.storages.StorageObject storageObject) putInstanceResource(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, existsInstanceResource, from, getPath, getPath, parentTraversalGuard, put, putInstanceResource
-
Constructor Details
-
LocalStorage
public LocalStorage()
-
-
Method Details
-
init
- Specified by:
initin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
getLocalPath
-
getInstancePath
-
getPath
-
get
- Specified by:
getin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
getInstanceResource
- Specified by:
getInstanceResourcein 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
-
listInstanceResource
public List<io.kestra.core.storages.FileAttributes> listInstanceResource(@Nullable String namespace, URI uri) throws IOException - Specified by:
listInstanceResourcein 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
-
putInstanceResource
public URI putInstanceResource(@Nullable String namespace, URI uri, io.kestra.core.storages.StorageObject storageObject) throws IOException - Specified by:
putInstanceResourcein 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
-
getInstanceAttributes
public io.kestra.core.storages.FileAttributes getInstanceAttributes(@Nullable String namespace, URI uri) throws IOException - Specified by:
getInstanceAttributesin interfaceio.kestra.core.storages.StorageInterface- Throws:
IOException
-
createDirectory
- Specified by:
createDirectoryin interfaceio.kestra.core.storages.StorageInterface
-
createInstanceDirectory
- Specified by:
createInstanceDirectoryin 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
-
deleteInstanceResource
- Specified by:
deleteInstanceResourcein 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
-