code.cloudfoundry.org/cli@v7.1.0+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  }