File tree Expand file tree Collapse file tree 3 files changed +19
-56
lines changed Expand file tree Collapse file tree 3 files changed +19
-56
lines changed Original file line number Diff line number Diff 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 },
Original file line number Diff line number Diff line change @@ -1348,15 +1348,15 @@ type CommitResponse struct {
13481348}
13491349
13501350type 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}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments