-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 314-update-to-micronaut-41
- Loading branch information
Showing
23 changed files
with
166 additions
and
568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.10.1 | ||
1.10.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/groovy/io/seqera/wave/auth/RegistryTokenCacheStore.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Wave, containers provisioning service | ||
* Copyright (c) 2023-2024, Seqera Labs | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package io.seqera.wave.auth | ||
|
||
import java.time.Duration | ||
|
||
import groovy.transform.CompileStatic | ||
import groovy.util.logging.Slf4j | ||
import io.seqera.wave.encoder.MoshiEncodeStrategy | ||
import io.seqera.wave.service.cache.AbstractCacheStore | ||
import io.seqera.wave.service.cache.impl.CacheProvider | ||
import jakarta.inject.Singleton | ||
/** | ||
* Implement a cache store for {@link io.seqera.wave.auth.RegistryAuthServiceImpl.CacheKey} object and token that | ||
* can be distributed across wave replicas | ||
* | ||
* @author Munish Chouhan <[email protected]> | ||
*/ | ||
@Slf4j | ||
@Singleton | ||
@CompileStatic | ||
class RegistryTokenCacheStore extends AbstractCacheStore<String> { | ||
|
||
RegistryTokenCacheStore(CacheProvider<String, String> provider) { | ||
super(provider, new MoshiEncodeStrategy<String>() {}) | ||
log.info "Creating Registry Auth token cache store" | ||
} | ||
|
||
@Override | ||
protected String getPrefix() { | ||
return 'registry-token/v1:' | ||
} | ||
|
||
@Override | ||
protected Duration getDuration() { | ||
return RegistryAuthServiceImpl._1_HOUR | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 0 additions & 83 deletions
83
src/main/groovy/io/seqera/wave/storage/LazyDigestStore.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ | |
import java.util.Optional; | ||
|
||
import io.seqera.wave.api.ContainerLayer; | ||
import io.seqera.wave.storage.reader.ContentReader; | ||
|
||
/** | ||
* @author : jorge <[email protected]> | ||
|
@@ -39,8 +38,5 @@ public interface Storage { | |
|
||
DigestStore saveBlob(String path, byte[] content, String type, String digest); | ||
|
||
@Deprecated | ||
DigestStore saveBlob(String path, ContentReader content, String type, String digest, int size); | ||
|
||
DigestStore saveBlob(String path, ContainerLayer layer); | ||
} |
Oops, something went wrong.