(domainName string, routerGroupGUID string)
| 137 | } |
| 138 | |
| 139 | func (repo CloudControllerDomainRepository) CreateSharedDomain(domainName string, routerGroupGUID string) error { |
| 140 | data, err := json.Marshal(resources.DomainEntity{ |
| 141 | Name: domainName, |
| 142 | RouterGroupGUID: routerGroupGUID, |
| 143 | Wildcard: true, |
| 144 | }) |
| 145 | if err != nil { |
| 146 | return err |
| 147 | } |
| 148 | |
| 149 | return repo.gateway.CreateResource( |
| 150 | repo.config.APIEndpoint(), |
| 151 | "/v2/shared_domains", |
| 152 | bytes.NewReader(data), |
| 153 | ) |
| 154 | } |
| 155 | |
| 156 | func (repo CloudControllerDomainRepository) Delete(domainGUID string) error { |
| 157 | path := fmt.Sprintf("/v2/private_domains/%s?recursive=true", domainGUID) |
nothing calls this directly
no test coverage detected