Package io.kestra.repository.memory
Class MemoryFlowRepository
java.lang.Object
io.kestra.repository.memory.MemoryFlowRepository
- All Implemented Interfaces:
io.kestra.core.repositories.FlowRepositoryInterface
@Singleton
@MemoryRepositoryEnabled
public class MemoryFlowRepository
extends Object
implements io.kestra.core.repositories.FlowRepositoryInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.kestra.core.models.flows.FlowWithSourcecreate(io.kestra.core.models.flows.Flow flow, String flowSource, io.kestra.core.models.flows.Flow flowWithDefaults) io.kestra.core.models.flows.Flowdelete(io.kestra.core.models.flows.Flow flow) io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.flows.Flow>find(io.micronaut.data.model.Pageable pageable, String query, String namespace, Map<String, String> labels) List<io.kestra.core.models.flows.Flow>findAll()Optional<io.kestra.core.models.flows.Flow>Optional<io.kestra.core.models.flows.FlowWithSource>findByIdWithSource(String namespace, String id, Optional<Integer> revision) List<io.kestra.core.models.flows.Flow>findByNamespace(String namespace) List<io.kestra.core.models.flows.FlowWithSource>findRevisions(String namespace, String id) io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.SearchResult<io.kestra.core.models.flows.Flow>>findSourceCode(io.micronaut.data.model.Pageable pageable, String query, String namespace) List<io.kestra.core.models.flows.FlowWithSource>io.kestra.core.models.flows.FlowWithSourceupdate(io.kestra.core.models.flows.Flow flow, io.kestra.core.models.flows.Flow previous, String flowSource, io.kestra.core.models.flows.Flow flowWithDefaults) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kestra.core.repositories.FlowRepositoryInterface
findByExecution, findById, findByIdWithSource
-
Constructor Details
-
MemoryFlowRepository
public MemoryFlowRepository()
-
-
Method Details
-
findById
public Optional<io.kestra.core.models.flows.Flow> findById(String namespace, String id, Optional<Integer> revision) - Specified by:
findByIdin interfaceio.kestra.core.repositories.FlowRepositoryInterface
-
findByIdWithSource
public Optional<io.kestra.core.models.flows.FlowWithSource> findByIdWithSource(String namespace, String id, Optional<Integer> revision) - Specified by:
findByIdWithSourcein interfaceio.kestra.core.repositories.FlowRepositoryInterface
-
findRevisions
- Specified by:
findRevisionsin interfaceio.kestra.core.repositories.FlowRepositoryInterface
-
findAll
- Specified by:
findAllin interfaceio.kestra.core.repositories.FlowRepositoryInterface
-
findByNamespace
- Specified by:
findByNamespacein interfaceio.kestra.core.repositories.FlowRepositoryInterface
-
find
public io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.flows.Flow> find(io.micronaut.data.model.Pageable pageable, @Nullable String query, @Nullable String namespace, @Nullable Map<String, String> labels) - Specified by:
findin interfaceio.kestra.core.repositories.FlowRepositoryInterface
-
findWithSource
public List<io.kestra.core.models.flows.FlowWithSource> findWithSource(@Nullable String query, @Nullable String namespace, @Nullable Map<String, String> labels) - Specified by:
findWithSourcein interfaceio.kestra.core.repositories.FlowRepositoryInterface
-
findSourceCode
public io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.SearchResult<io.kestra.core.models.flows.Flow>> findSourceCode(io.micronaut.data.model.Pageable pageable, @Nullable String query, @Nullable String namespace) - Specified by:
findSourceCodein interfaceio.kestra.core.repositories.FlowRepositoryInterface
-
create
public io.kestra.core.models.flows.FlowWithSource create(io.kestra.core.models.flows.Flow flow, String flowSource, io.kestra.core.models.flows.Flow flowWithDefaults) - Specified by:
createin interfaceio.kestra.core.repositories.FlowRepositoryInterface
-
update
public io.kestra.core.models.flows.FlowWithSource update(io.kestra.core.models.flows.Flow flow, io.kestra.core.models.flows.Flow previous, String flowSource, io.kestra.core.models.flows.Flow flowWithDefaults) throws javax.validation.ConstraintViolationException - Specified by:
updatein interfaceio.kestra.core.repositories.FlowRepositoryInterface- Throws:
javax.validation.ConstraintViolationException
-
delete
public io.kestra.core.models.flows.Flow delete(io.kestra.core.models.flows.Flow flow) - Specified by:
deletein interfaceio.kestra.core.repositories.FlowRepositoryInterface
-
findDistinctNamespace
- Specified by:
findDistinctNamespacein interfaceio.kestra.core.repositories.FlowRepositoryInterface
-