github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/models/domain.go (about) 1 package models 2 3 type DomainFields struct { 4 GUID string 5 Name string 6 OwningOrganizationGUID string 7 RouterGroupGUID string 8 RouterGroupType string 9 Shared bool 10 } 11 12 func (model DomainFields) URLForHostAndPath(host, path string, port int) string { 13 return (&RoutePresenter{ 14 Host: host, 15 Domain: model.Name, 16 Path: path, 17 Port: port, 18 }).URL() 19 }