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 Details

    • LocalStorage

      public LocalStorage()
  • Method Details

    • init

      public void init() throws IOException
      Specified by:
      init in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException
    • get

      public InputStream get(String tenantId, URI uri) throws IOException
      Specified by:
      get in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException
    • allByPrefix

      public List<URI> allByPrefix(String tenantId, URI prefix, boolean includeDirectories) throws IOException
      Specified by:
      allByPrefix in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException
    • exists

      public boolean exists(String tenantId, URI uri)
      Specified by:
      exists in interface io.kestra.core.storages.StorageInterface
    • list

      public List<io.kestra.core.storages.FileAttributes> list(String tenantId, URI uri) throws IOException
      Specified by:
      list in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException
    • put

      public URI put(String tenantId, URI uri, InputStream data) throws IOException
      Specified by:
      put in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException
    • getAttributes

      public io.kestra.core.storages.FileAttributes getAttributes(String tenantId, URI uri) throws IOException
      Specified by:
      getAttributes in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException
    • createDirectory

      public URI createDirectory(String tenantId, URI uri)
      Specified by:
      createDirectory in interface io.kestra.core.storages.StorageInterface
    • move

      public URI move(String tenantId, URI from, URI to) throws IOException
      Specified by:
      move in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException
    • delete

      public boolean delete(String tenantId, URI uri) throws IOException
      Specified by:
      delete in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException
    • deleteByPrefix

      public List<URI> deleteByPrefix(String tenantId, URI storagePrefix) throws IOException
      Specified by:
      deleteByPrefix in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException