package
0.0.0-20241230153215-30fbc8ec2936
Repository: https://github.com/glass-cms/glasscms.git
Documentation: pkg.go.dev
# Functions
Handler creates http.Handler with routing matching OpenAPI spec.
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
No description provided by the author
HandlerWithOptions creates http.Handler with additional options.
HashItem generates a SHA-256 hash for the given Item.
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewItemsCreateRequest calls the generic ItemsCreate builder with application/json body.
NewItemsCreateRequestWithBody generates requests for ItemsCreate with any type of body.
NewItemsGetRequest generates requests for ItemsGet.
NewItemsListRequest generates requests for ItemsList.
NewItemsUpdateRequest calls the generic ItemsUpdate builder with application/json body.
NewItemsUpdateRequestWithBody generates requests for ItemsUpdate with any type of body.
NewItemsUpsertRequest calls the generic ItemsUpsert builder with application/json body.
NewItemsUpsertRequestWithBody generates requests for ItemsUpsert with any type of body.
ParseItemsCreateResponse parses an HTTP response from a ItemsCreateWithResponse call.
ParseItemsGetResponse parses an HTTP response from a ItemsGetWithResponse call.
ParseItemsListResponse parses an HTTP response from a ItemsListWithResponse call.
ParseItemsUpdateResponse parses an HTTP response from a ItemsUpdateWithResponse call.
ParseItemsUpsertResponse parses an HTTP response from a ItemsUpsertWithResponse call.
ValidateItemFieldMask validates a field mask for the Item struct.
WithBaseURL overrides the baseURL.
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client.
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request.
# Constants
Defines values for ErrorType.
Defines values for ErrorType.
Defines values for ErrorCode.
Defines values for ErrorCode.
Defines values for ErrorCode.
Defines values for ErrorCode.
Defines values for ErrorCode.
# Variables
No description provided by the author
# Structs
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
Error Error is the response model when an API call is unsuccessful.
No description provided by the author
Item Item represents an individual content item.
ItemCreate Resource create operation model.
No description provided by the author
No description provided by the author
ItemsListParams defines parameters for ItemsList.
No description provided by the author
No description provided by the author
No description provided by the author
ItemUpdate Resource create or update operation model.
ItemUpsert Resource create operation model.
No description provided by the author
No description provided by the author
ServerInterfaceWrapper converts contexts to parameters.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
The interface specification for the client above.
ClientWithResponsesInterface is the interface specification for the client with responses above.
Doer performs HTTP requests.
ServerInterface represents all server handlers.
# Type aliases
ClientOption allows setting custom parameters during construction.
ErrorCode defines model for ErrorCode.
ErrorType defines model for ErrorType.
ItemKey defines model for ItemKey.
ItemsCreateJSONRequestBody defines body for ItemsCreate for application/json ContentType.
ItemsUpdateJSONRequestBody defines body for ItemsUpdate for application/json ContentType.
ItemsUpsertJSONBody defines parameters for ItemsUpsert.
ItemsUpsertJSONRequestBody defines body for ItemsUpsert for application/json ContentType.
No description provided by the author
RequestEditorFn is the function signature for the RequestEditor callback function.