github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/destination/entity.go (about) 1 package destination 2 3 import "database/sql" 4 5 // Entity is a representation of a destination entity in the database. 6 type Entity struct { 7 ID string `db:"id"` 8 Name string `db:"name"` 9 Type string `db:"type"` 10 URL string `db:"url"` 11 Authentication string `db:"authentication"` 12 TenantID string `db:"tenant_id"` 13 BundleID sql.NullString `db:"bundle_id"` 14 Revision sql.NullString `db:"revision"` 15 FormationAssignmentID sql.NullString `db:"formation_assignment_id"` 16 } 17 18 // EntityCollection missing godoc 19 type EntityCollection []Entity 20 21 // Len missing godoc 22 func (e EntityCollection) Len() int { 23 return len(e) 24 }