Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data scratch - artifacts #1758

Closed
jan-goral opened this issue Mar 29, 2021 · 0 comments · Fixed by #1875
Closed

Data scratch - artifacts #1758

jan-goral opened this issue Mar 29, 2021 · 0 comments · Fixed by #1875

Comments

@jan-goral
Copy link
Contributor

jan-goral commented Mar 29, 2021

Plan

According to the specification described in epic #1727
add abstraction and implementation for the following part of the data layer:

Abstraction

ftl/api/Artifacts.kt

package ftl.api

val fetchArtifacts: Artifacts.Fetch get() = TODO()

object Artifacts {
    
    data class Identity(
        val gcsPathWithoutRootBucket: String,
        val gcsRootBucket: String,
        val regex: List<Regex>,
        val blobPath: String,
        val downloadPath: DownloadPath,
    )
    
    data class DownloadPath(
        val localResultDir: String,
        val useLocalResultDir: Boolean,
        val keepFilePath: Boolean,
    )
    
    interface Fetch: (Identity) -> List<String> 
}

Target

  • FetchArtifacts.kt

Adapter

ftl/adapter/GoogleArtifactsFetch.kt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants