Skip to content

Commit a349379

Browse files
committed
feat: add detail to docker file
1 parent 369b56a commit a349379

File tree

3 files changed

+19
-56
lines changed

3 files changed

+19
-56
lines changed

provider/describer/artifact_dockerfile.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -219,22 +219,22 @@ func GetDockerfile(
219219
}
220220

221221
output := model.ArtifactDockerFileDescription{
222-
Sha: contentData.Sha,
223-
Name: contentData.Name,
224-
Path: contentData.Path,
225-
LastUpdatedAt: lastUpdatedAt,
226-
GitURL: contentData.GitURL,
227-
HTMLURL: contentData.HTMLURL,
228-
URI: contentData.HTMLURL,
222+
Sha: &contentData.Sha,
223+
Name: &contentData.Name,
224+
Path: &contentData.Path,
225+
LastUpdatedAt: &lastUpdatedAt,
226+
GitURL: &contentData.GitURL,
227+
HTMLURL: &contentData.HTMLURL,
228+
URI: &contentData.HTMLURL,
229229
DockerfileContent: string(decoded),
230-
DockerfileContentBase64: dockerfileB64,
230+
DockerfileContentBase64: &dockerfileB64,
231231
Repository: repoObj,
232-
Images: images,
232+
Images: images,
233233
}
234234

235235
value := models.Resource{
236-
ID: output.URI,
237-
Name: output.Name,
236+
ID: *output.URI,
237+
Name: *output.Name,
238238
Description: JSONAllFieldsMarshaller{
239239
Value: output,
240240
},

provider/model/model.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,15 +1348,15 @@ type CommitResponse struct {
13481348
}
13491349

13501350
type ArtifactDockerFileDescription struct {
1351-
Sha string `json:"sha"`
1352-
Name string `json:"name"`
1353-
Path string `json:"path"`
1354-
LastUpdatedAt string `json:"last_updated_at"`
1355-
GitURL string `json:"git_url"`
1356-
HTMLURL string `json:"html_url"`
1357-
URI string `json:"uri"` // Unique identifier
1351+
Sha *string `json:"sha"`
1352+
Name *string `json:"name"`
1353+
Path *string `json:"path"`
1354+
LastUpdatedAt *string `json:"last_updated_at"`
1355+
GitURL *string `json:"git_url"`
1356+
HTMLURL *string `json:"html_url"`
1357+
URI *string `json:"uri"` // Unique identifier
13581358
DockerfileContent string `json:"dockerfile_content"`
1359-
DockerfileContentBase64 string `json:"dockerfile_content_base64"`
1359+
DockerfileContentBase64 *string `json:"dockerfile_content_base64"`
13601360
Repository map[string]interface{} `json:"repository"`
13611361
Images []string `json:"images"` // New field to store extracted base images
13621362
}

resource_types_list.go

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)