package
0.24.2
Repository: https://github.com/peripli/service-manager.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Code generated by counterfeiter.

# Functions

AppendQueryParamToRequest adds a new query parameter to the request url.
BodyToBytes of the request inside given struct.
BodyToObject of the request inside given struct.
BytesToObject converts the provided bytes to object and validates it.
No description provided by the author
No description provided by the author
GenerateCredential generates a 32bit random string which can be used as broker platform credential.
No description provided by the author
HandleInterrupts handles process signal interrupts.
No description provided by the author
HandleResponseError builds an error from the given response.
HandleStorageError handles storage errors by converting them to relevant HTTPErrors.
HasRFC3986ReservedSymbols returns true if input contains any reserver characters as defined in RFC3986 section oidc_authn.oidc_authn.
No description provided by the author
No description provided by the author
ListAll retrieves all the objects from the given url by loading all the pages items should be a pointer to a slice, that will be populated with all the items doRequest function executes the HTTP request, it is responsible for authentication.
NewJSONResponse turns plain object into a byte array representing JSON value and wraps it in web.Response.
No description provided by the author
No description provided by the author
RequestBodyToBytes reads the request body and returns []byte with its content or an error if the media type is unsupported or if the body is not a valid JSON.
SendRequest sends a request to the specified client and the provided URL with the specified parameters and body.
SendRequestWithHeaders sends a request to the specified client and the provided URL with the specified parameters, body and headers.
No description provided by the author
No description provided by the author
No description provided by the author
ToRFCNanoFormat converts a time.Time timestamp to RFC3339Nano format.
tsprintf stands for "template Sprintf" and fills the specified templated string with the provided data.
No description provided by the author
WriteError sends a JSON containing the error to the response writer.
WriteJSON writes a JSON value and sets the specified HTTP Status code.

# Variables

ErrAlreadyExistsInStorage error returned from storage when entity has conflicting fields.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrConcurrentResourceModification error returned when concurrent resource updates are happening.
ErrInvalidNotificationRevision provided notification revision is not valid, must return http status GONE.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrNotFoundInStorage error returned from storage when entity is not found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrSharedInstanceHasReferences error returned when shared instance has references.
No description provided by the author
ErrUnsharingInstanceWithReferences error returned when un-sharing an instance with references.

# Structs

EmptyResponseBody represents an empty response body value.
ErrBadRequestStorage represents a storage error that should be translated to http.StatusBadRequest.
ErrForeignKeyViolation represents a foreign key constraint storage error that should be translated to a user-friendly http.StatusBadRequest.
HTTPError is an error type that provides error details that Service Manager error handlers would propagate to the client.
ListIterator lists the objects from the given url by loading one page at a time.
StateContext is a Context which only holds values.
UnsupportedQueryError is an error to show that the provided query cannot be executed.

# Interfaces

InputValidator should be implemented by types that need input validation check.

# Type aliases

DoRequestFunc is an alias for any function that takes an http request and returns a response and error.
No description provided by the author