engine

package
v0.1.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

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.

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type BadRequest

type BadRequest = Error

BadRequest defines model for BadRequest.

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 Forbidden

type Forbidden = Error

Forbidden defines model for Forbidden.

type InternalServerError

type InternalServerError = Error

InternalServerError defines model for InternalServerError.

type PolicyConflict

type PolicyConflict = Error

PolicyConflict defines model for PolicyConflict.

type Rejected

type Rejected = Error

Rejected defines model for Rejected.

type ServiceInstance

type ServiceInstance struct {
	// Spec Service specification (flexible schema)
	Spec map[string]interface{} `json:"spec"`
}

ServiceInstance defines model for ServiceInstance.

type Unauthorized

type Unauthorized = Error

Unauthorized defines model for Unauthorized.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL