Commit Graph

8 Commits

Author SHA1 Message Date
Chunyi Lyu 5e98acda85
Make URL compatible with controller-gen (#2431)
- add kubebuilder marker so CRDs using URL could be
generated with controller-gen
- same change but on VolatileTime: https://github.com/knative/pkg/pull/2104
2022-02-17 06:50:12 -08:00
Dave Protasowski fb00bf88a3 Provide an semantic equality func for apis.URL (#987)
url.URL has an unexported type (UserInfo) which causes semantic
equality to panic unless we add a custom equality function
2020-01-10 10:25:57 -08:00
Ville Aikas cac31abb7f Change URIFromDestinationV1 to return apis.URL instead of string (#909) 2019-11-27 13:13:22 -08:00
Evan Anderson ea367c1342 Add utility methods for api.URL (#785)
* Add IsEmpty and HTTP/HTTPS constructors, simplify tests.

* Simplify remaining construction of URLs in tests with struct initialization.

* Reverse `nonEmpty` since most cases are now non-empty.

* Update initial tests. Also fix a bug in URL.String() and update test.
2019-10-21 19:11:25 -07:00
Jean-Rémy Bancel 2d6c3459ce Use *url.URL instead of string in request.go. (#670) 2019-09-18 11:56:47 -07:00
Scott Nichols 85d7d7ec71 correct a unmarshal error for non pointer members of apis.URL if empty string. (#594) 2019-08-22 08:03:34 -07:00
Spencer Peterson 6a881edeba document ParseURL breaking the net/url api (#571) 2019-08-14 09:58:07 -07:00
Matt Moore 57fd07886b Add support for a structured URL type. (#400)
* Add support for a structured URL type.

This type can be used to accept `url: http://asdf.com` where in code we
get a `url.URL` to interact with.

* Propagate errors parsing, cast pointer instead of copying.
2019-05-01 18:40:33 -07:00