v1alpha1

package
v1.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 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

View Source
const ServerUrlApiv1 = "/api/v1"

ServerUrlApiv1 defines the Server URL for

Variables

This section is empty.

Functions

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

Types

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ServerInterface

type ServerInterface interface {

	// (GET /catalogitems)
	ListAllCatalogItems(w http.ResponseWriter, r *http.Request, params ListAllCatalogItemsParams)

	// (GET /catalogs)
	ListCatalogs(w http.ResponseWriter, r *http.Request, params ListCatalogsParams)

	// (POST /catalogs)
	CreateCatalog(w http.ResponseWriter, r *http.Request)

	// (GET /catalogs/{catalog}/items)
	ListCatalogItems(w http.ResponseWriter, r *http.Request, catalog string, params ListCatalogItemsParams)

	// (POST /catalogs/{catalog}/items)
	CreateCatalogItem(w http.ResponseWriter, r *http.Request, catalog string)

	// (DELETE /catalogs/{catalog}/items/{name})
	DeleteCatalogItem(w http.ResponseWriter, r *http.Request, catalog string, name string)

	// (GET /catalogs/{catalog}/items/{name})
	GetCatalogItem(w http.ResponseWriter, r *http.Request, catalog string, name string)

	// (PUT /catalogs/{catalog}/items/{name})
	ReplaceCatalogItem(w http.ResponseWriter, r *http.Request, catalog string, name string)

	// (DELETE /catalogs/{name})
	DeleteCatalog(w http.ResponseWriter, r *http.Request, name string)

	// (GET /catalogs/{name})
	GetCatalog(w http.ResponseWriter, r *http.Request, name string)

	// (PATCH /catalogs/{name})
	PatchCatalog(w http.ResponseWriter, r *http.Request, name string)

	// (PUT /catalogs/{name})
	ReplaceCatalog(w http.ResponseWriter, r *http.Request, name string)

	// (GET /catalogs/{name}/status)
	GetCatalogStatus(w http.ResponseWriter, r *http.Request, name string)

	// (PATCH /catalogs/{name}/status)
	PatchCatalogStatus(w http.ResponseWriter, r *http.Request, name string)

	// (PUT /catalogs/{name}/status)
	ReplaceCatalogStatus(w http.ResponseWriter, r *http.Request, name string)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) CreateCatalog

func (siw *ServerInterfaceWrapper) CreateCatalog(w http.ResponseWriter, r *http.Request)

CreateCatalog operation middleware

func (*ServerInterfaceWrapper) CreateCatalogItem

func (siw *ServerInterfaceWrapper) CreateCatalogItem(w http.ResponseWriter, r *http.Request)

CreateCatalogItem operation middleware

func (*ServerInterfaceWrapper) DeleteCatalog

func (siw *ServerInterfaceWrapper) DeleteCatalog(w http.ResponseWriter, r *http.Request)

DeleteCatalog operation middleware

func (*ServerInterfaceWrapper) DeleteCatalogItem

func (siw *ServerInterfaceWrapper) DeleteCatalogItem(w http.ResponseWriter, r *http.Request)

DeleteCatalogItem operation middleware

func (*ServerInterfaceWrapper) GetCatalog

func (siw *ServerInterfaceWrapper) GetCatalog(w http.ResponseWriter, r *http.Request)

GetCatalog operation middleware

func (*ServerInterfaceWrapper) GetCatalogItem

func (siw *ServerInterfaceWrapper) GetCatalogItem(w http.ResponseWriter, r *http.Request)

GetCatalogItem operation middleware

func (*ServerInterfaceWrapper) GetCatalogStatus

func (siw *ServerInterfaceWrapper) GetCatalogStatus(w http.ResponseWriter, r *http.Request)

GetCatalogStatus operation middleware

func (*ServerInterfaceWrapper) ListAllCatalogItems

func (siw *ServerInterfaceWrapper) ListAllCatalogItems(w http.ResponseWriter, r *http.Request)

ListAllCatalogItems operation middleware

func (*ServerInterfaceWrapper) ListCatalogItems

func (siw *ServerInterfaceWrapper) ListCatalogItems(w http.ResponseWriter, r *http.Request)

ListCatalogItems operation middleware

func (*ServerInterfaceWrapper) ListCatalogs

func (siw *ServerInterfaceWrapper) ListCatalogs(w http.ResponseWriter, r *http.Request)

ListCatalogs operation middleware

func (*ServerInterfaceWrapper) PatchCatalog

func (siw *ServerInterfaceWrapper) PatchCatalog(w http.ResponseWriter, r *http.Request)

PatchCatalog operation middleware

func (*ServerInterfaceWrapper) PatchCatalogStatus

func (siw *ServerInterfaceWrapper) PatchCatalogStatus(w http.ResponseWriter, r *http.Request)

PatchCatalogStatus operation middleware

func (*ServerInterfaceWrapper) ReplaceCatalog

func (siw *ServerInterfaceWrapper) ReplaceCatalog(w http.ResponseWriter, r *http.Request)

ReplaceCatalog operation middleware

func (*ServerInterfaceWrapper) ReplaceCatalogItem

func (siw *ServerInterfaceWrapper) ReplaceCatalogItem(w http.ResponseWriter, r *http.Request)

ReplaceCatalogItem operation middleware

func (*ServerInterfaceWrapper) ReplaceCatalogStatus

func (siw *ServerInterfaceWrapper) ReplaceCatalogStatus(w http.ResponseWriter, r *http.Request)

ReplaceCatalogStatus operation middleware

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type Transport

type Transport interface {
	ServerInterface
}

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type Unimplemented

type Unimplemented struct{}

func (Unimplemented) CreateCatalog

func (_ Unimplemented) CreateCatalog(w http.ResponseWriter, r *http.Request)

(POST /catalogs)

func (Unimplemented) CreateCatalogItem

func (_ Unimplemented) CreateCatalogItem(w http.ResponseWriter, r *http.Request, catalog string)

(POST /catalogs/{catalog}/items)

func (Unimplemented) DeleteCatalog

func (_ Unimplemented) DeleteCatalog(w http.ResponseWriter, r *http.Request, name string)

(DELETE /catalogs/{name})

func (Unimplemented) DeleteCatalogItem

func (_ Unimplemented) DeleteCatalogItem(w http.ResponseWriter, r *http.Request, catalog string, name string)

(DELETE /catalogs/{catalog}/items/{name})

func (Unimplemented) GetCatalog

func (_ Unimplemented) GetCatalog(w http.ResponseWriter, r *http.Request, name string)

(GET /catalogs/{name})

func (Unimplemented) GetCatalogItem

func (_ Unimplemented) GetCatalogItem(w http.ResponseWriter, r *http.Request, catalog string, name string)

(GET /catalogs/{catalog}/items/{name})

func (Unimplemented) GetCatalogStatus

func (_ Unimplemented) GetCatalogStatus(w http.ResponseWriter, r *http.Request, name string)

(GET /catalogs/{name}/status)

func (Unimplemented) ListAllCatalogItems

func (_ Unimplemented) ListAllCatalogItems(w http.ResponseWriter, r *http.Request, params ListAllCatalogItemsParams)

(GET /catalogitems)

func (Unimplemented) ListCatalogItems

func (_ Unimplemented) ListCatalogItems(w http.ResponseWriter, r *http.Request, catalog string, params ListCatalogItemsParams)

(GET /catalogs/{catalog}/items)

func (Unimplemented) ListCatalogs

func (_ Unimplemented) ListCatalogs(w http.ResponseWriter, r *http.Request, params ListCatalogsParams)

(GET /catalogs)

func (Unimplemented) PatchCatalog

func (_ Unimplemented) PatchCatalog(w http.ResponseWriter, r *http.Request, name string)

(PATCH /catalogs/{name})

func (Unimplemented) PatchCatalogStatus

func (_ Unimplemented) PatchCatalogStatus(w http.ResponseWriter, r *http.Request, name string)

(PATCH /catalogs/{name}/status)

func (Unimplemented) ReplaceCatalog

func (_ Unimplemented) ReplaceCatalog(w http.ResponseWriter, r *http.Request, name string)

(PUT /catalogs/{name})

func (Unimplemented) ReplaceCatalogItem

func (_ Unimplemented) ReplaceCatalogItem(w http.ResponseWriter, r *http.Request, catalog string, name string)

(PUT /catalogs/{catalog}/items/{name})

func (Unimplemented) ReplaceCatalogStatus

func (_ Unimplemented) ReplaceCatalogStatus(w http.ResponseWriter, r *http.Request, name string)

(PUT /catalogs/{name}/status)

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

Jump to

Keyboard shortcuts

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