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 Details

    • LocalStorage

      @Inject public LocalStorage(LocalConfig config)
  • Method Details

    • get

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

      public boolean exists(URI uri)
      Specified by:
      exists in interface io.kestra.core.storages.StorageInterface
    • size

      public Long size(URI uri) throws IOException
      Specified by:
      size in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException
    • lastModifiedTime

      public Long lastModifiedTime(URI uri) throws IOException
      Specified by:
      lastModifiedTime in interface io.kestra.core.storages.StorageInterface
      Throws:
      IOException
    • put

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

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

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