Documentation
¶
Overview ¶
Package engine provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Package engine provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type BadRequest
- type Error
- type EvaluateRequest
- type EvaluateRequestJSONRequestBody
- type EvaluateResponse
- type EvaluateResponseStatus
- type Forbidden
- type InternalServerError
- type PolicyConflict
- type Rejected
- type ServiceInstance
- type Unauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
Types ¶
type Error ¶
type Error struct {
// Detail Detailed error message
Detail *string `json:"detail,omitempty"`
// Status HTTP status code
Status int32 `json:"status"`
// Title Short error summary
Title string `json:"title"`
// Type Error type identifier
Type string `json:"type"`
}
Error defines model for Error.
type EvaluateRequest ¶
type EvaluateRequest struct {
ServiceInstance ServiceInstance `json:"service_instance"`
}
EvaluateRequest defines model for EvaluateRequest.
type EvaluateRequestJSONRequestBody ¶
type EvaluateRequestJSONRequestBody = EvaluateRequest
EvaluateRequestJSONRequestBody defines body for EvaluateRequest for application/json ContentType.
type EvaluateResponse ¶
type EvaluateResponse struct {
EvaluatedServiceInstance ServiceInstance `json:"evaluated_service_instance"`
// SelectedProvider Service provider selected by policies
SelectedProvider string `json:"selected_provider"`
// Status APPROVED - Request unchanged by policies
// MODIFIED - Request was modified by policies
Status EvaluateResponseStatus `json:"status"`
}
EvaluateResponse defines model for EvaluateResponse.
type EvaluateResponseStatus ¶
type EvaluateResponseStatus string
EvaluateResponseStatus APPROVED - Request unchanged by policies MODIFIED - Request was modified by policies
const ( APPROVED EvaluateResponseStatus = "APPROVED" MODIFIED EvaluateResponseStatus = "MODIFIED" )
Defines values for EvaluateResponseStatus.
type InternalServerError ¶
type InternalServerError = Error
InternalServerError defines model for InternalServerError.
type ServiceInstance ¶
type ServiceInstance struct {
// Spec Service specification (flexible schema)
Spec map[string]interface{} `json:"spec"`
}
ServiceInstance defines model for ServiceInstance.