Documentation ¶
Index ¶
- func GetContentType(content []byte) string
- func GetDeletedObjectMeta(obj interface{}) metav1.Object
- func GetNamespace(request *restful.Request) string
- func MakeFlushWriter(writer io.Writer) io.Writer
- func Proxy(request *http.Request, response http.ResponseWriter, url string, ...) (int, error)
- func RespondError(response *restful.Response, err error, statusCode int)
- func RespondErrorMessage(response *restful.Response, message string, statusCode int)
- func RespondMessageAndLogError(response *restful.Response, err error, message string, statusCode int)
- func WriteResponseLocation(request *restful.Request, response *restful.Response, identifier string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentType ¶
func GetDeletedObjectMeta ¶ added in v0.7.0
Adapted from https://github.com/kubernetes-sigs/controller-runtime/blob/v0.5.2/pkg/source/internal/eventsource.go#L131-L149
func GetNamespace ¶
func RespondError ¶
RespondError - logs and writes an error response with a desired status code
func RespondErrorMessage ¶
RespondErrorMessage - logs and writes an error message with a desired status code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.