added kubernetes support
This commit is contained in:
@@ -18,15 +18,14 @@ type ImageData struct {
|
||||
}
|
||||
|
||||
func convertImageToImageData(instanceImage instancemanager.Image) *ImageData {
|
||||
imageId := instanceImage.Registry + ":" + instanceImage.Tag
|
||||
|
||||
return &ImageData{
|
||||
Id: imageId,
|
||||
Id: instanceImage.Id,
|
||||
Name: instanceImage.Registry,
|
||||
Version: instanceImage.Tag,
|
||||
DisplayName: fmt.Sprintf("%s %s", instanceImage.Registry, instanceImage.Tag),
|
||||
}
|
||||
}
|
||||
|
||||
func (con ServersApi) GetImages(ctx *gin.Context) {
|
||||
images, err := con.InstanceManager.ListImages(ctx)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user