github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/model/integrationsystem.go (about) 1 package model 2 3 import ( 4 "github.com/kyma-incubator/compass/components/director/pkg/pagination" 5 ) 6 7 // IntegrationSystem missing godoc 8 type IntegrationSystem struct { 9 ID string 10 Name string 11 Description *string 12 } 13 14 // IntegrationSystemPage missing godoc 15 type IntegrationSystemPage struct { 16 Data []*IntegrationSystem 17 PageInfo *pagination.Page 18 TotalCount int 19 } 20 21 // IntegrationSystemInput missing godoc 22 type IntegrationSystemInput struct { 23 Name string 24 Description *string 25 } 26 27 // ToIntegrationSystem missing godoc 28 func (i *IntegrationSystemInput) ToIntegrationSystem(id string) IntegrationSystem { 29 if i == nil { 30 return IntegrationSystem{} 31 } 32 33 return IntegrationSystem{ 34 ID: id, 35 Name: i.Name, 36 Description: i.Description, 37 } 38 }