Documentation ¶
Overview ¶
Package upu provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.1-0.20240123090344-d326c01d279a DO NOT EDIT.
Index ¶
- Constants
- func GetKinOpenApi3Document() (*openapi3.T, error)
- func GetKinOpenApi3DocumentMust() *openapi3.T
- func NewPostSupiUeUpuRequest(server string, supi externalRef1.Supi, body PostSupiUeUpuJSONRequestBody) (*http.Request, error)
- func NewPostSupiUeUpuRequestWithBody(server string, supi externalRef1.Supi, contentType string, body io.Reader) (*http.Request, error)
- func RegisterHandlers(router gin.IRouter, si ServerInterface)
- func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
- type Client
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) PostSupiUeUpuWithBodyWithResponse(ctx context.Context, supi externalRef1.Supi, contentType string, ...) (*PostSupiUeUpuResponse, error)
- func (c *ClientWithResponses) PostSupiUeUpuWithResponse(ctx context.Context, supi externalRef1.Supi, body PostSupiUeUpuJSONRequestBody, ...) (*PostSupiUeUpuResponse, error)
- type ClientWithResponsesInterface
- type CounterUpu
- type GinServerOptions
- type HttpRequestDoer
- type MiddlewareFunc
- type PostSupiUeUpu200JSONResponse
- type PostSupiUeUpu307JSONResponse
- type PostSupiUeUpu308JSONResponse
- type PostSupiUeUpu308ResponseHeaders
- type PostSupiUeUpu503ApplicationProblemPlusJSONResponse
- type PostSupiUeUpuJSONRequestBody
- type PostSupiUeUpuRequestObject
- type PostSupiUeUpuResponse
- type PostSupiUeUpuResponseObject
- type PostSupiUeUpudefaultApplicationProblemPlusJSONResponse
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type UpuAckInd
- type UpuData
- type UpuHeader
- type UpuInfo
- type UpuMac
- type UpuSecurityInfo
Constants ¶
const (
OAuth2ClientCredentialsScopes = "oAuth2ClientCredentials.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetKinOpenApi3Document ¶
func NewPostSupiUeUpuRequest ¶
func NewPostSupiUeUpuRequest(server string, supi externalRef1.Supi, body PostSupiUeUpuJSONRequestBody) (*http.Request, error)
NewPostSupiUeUpuRequest calls the generic PostSupiUeUpu builder with application/json body
func NewPostSupiUeUpuRequestWithBody ¶
func NewPostSupiUeUpuRequestWithBody(server string, supi externalRef1.Supi, contentType string, body io.Reader) (*http.Request, error)
NewPostSupiUeUpuRequestWithBody generates requests for PostSupiUeUpu with any type of body
func RegisterHandlers ¶
func RegisterHandlers(router gin.IRouter, si ServerInterface)
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) PostSupiUeUpu ¶
func (c *Client) PostSupiUeUpu(ctx context.Context, supi externalRef1.Supi, body PostSupiUeUpuJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostSupiUeUpuWithBody ¶
type ClientInterface ¶
type ClientInterface interface { // PostSupiUeUpuWithBody request with any body PostSupiUeUpuWithBody(ctx context.Context, supi externalRef1.Supi, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostSupiUeUpu(ctx context.Context, supi externalRef1.Supi, body PostSupiUeUpuJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) PostSupiUeUpuWithBodyWithResponse ¶
func (c *ClientWithResponses) PostSupiUeUpuWithBodyWithResponse(ctx context.Context, supi externalRef1.Supi, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSupiUeUpuResponse, error)
PostSupiUeUpuWithBodyWithResponse request with arbitrary body returning *PostSupiUeUpuResponse
func (*ClientWithResponses) PostSupiUeUpuWithResponse ¶
func (c *ClientWithResponses) PostSupiUeUpuWithResponse(ctx context.Context, supi externalRef1.Supi, body PostSupiUeUpuJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSupiUeUpuResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // PostSupiUeUpuWithBodyWithResponse request with any body PostSupiUeUpuWithBodyWithResponse(ctx context.Context, supi externalRef1.Supi, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSupiUeUpuResponse, error) PostSupiUeUpuWithResponse(ctx context.Context, supi externalRef1.Supi, body PostSupiUeUpuJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSupiUeUpuResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type GinServerOptions ¶
type GinServerOptions struct { BaseURL string Middlewares []MiddlewareFunc ErrorHandler func(*gin.Context, error, int) }
GinServerOptions provides options for the Gin server.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type MiddlewareFunc ¶
type PostSupiUeUpu200JSONResponse ¶
type PostSupiUeUpu200JSONResponse UpuSecurityInfo
func (PostSupiUeUpu200JSONResponse) VisitPostSupiUeUpuResponse ¶
func (response PostSupiUeUpu200JSONResponse) VisitPostSupiUeUpuResponse(w http.ResponseWriter) error
type PostSupiUeUpu307JSONResponse ¶
type PostSupiUeUpu307JSONResponse struct{ externalRef1.N307JSONResponse }
func (PostSupiUeUpu307JSONResponse) VisitPostSupiUeUpuResponse ¶
func (response PostSupiUeUpu307JSONResponse) VisitPostSupiUeUpuResponse(w http.ResponseWriter) error
type PostSupiUeUpu308JSONResponse ¶
type PostSupiUeUpu308JSONResponse struct { Body externalRef1.RedirectResponse Headers PostSupiUeUpu308ResponseHeaders }
func (PostSupiUeUpu308JSONResponse) VisitPostSupiUeUpuResponse ¶
func (response PostSupiUeUpu308JSONResponse) VisitPostSupiUeUpuResponse(w http.ResponseWriter) error
type PostSupiUeUpu503ApplicationProblemPlusJSONResponse ¶
type PostSupiUeUpu503ApplicationProblemPlusJSONResponse externalRef1.ProblemDetails
func (PostSupiUeUpu503ApplicationProblemPlusJSONResponse) VisitPostSupiUeUpuResponse ¶
func (response PostSupiUeUpu503ApplicationProblemPlusJSONResponse) VisitPostSupiUeUpuResponse(w http.ResponseWriter) error
type PostSupiUeUpuJSONRequestBody ¶
type PostSupiUeUpuJSONRequestBody = UpuInfo
PostSupiUeUpuJSONRequestBody defines body for PostSupiUeUpu for application/json ContentType.
type PostSupiUeUpuRequestObject ¶
type PostSupiUeUpuRequestObject struct { Supi externalRef1.Supi `json:"supi"` Body *PostSupiUeUpuJSONRequestBody }
type PostSupiUeUpuResponse ¶
type PostSupiUeUpuResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpuSecurityInfo JSON307 *externalRef1.N307 JSON308 *externalRef1.N307 ApplicationproblemJSON503 *externalRef1.ProblemDetails ApplicationproblemJSONDefault *externalRef1.ProblemDetails }
func ParsePostSupiUeUpuResponse ¶
func ParsePostSupiUeUpuResponse(rsp *http.Response) (*PostSupiUeUpuResponse, error)
ParsePostSupiUeUpuResponse parses an HTTP response from a PostSupiUeUpuWithResponse call
func (PostSupiUeUpuResponse) Status ¶
func (r PostSupiUeUpuResponse) Status() string
Status returns HTTPResponse.Status
func (PostSupiUeUpuResponse) StatusCode ¶
func (r PostSupiUeUpuResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostSupiUeUpuResponseObject ¶
type PostSupiUeUpuResponseObject interface {
VisitPostSupiUeUpuResponse(w http.ResponseWriter) error
}
type PostSupiUeUpudefaultApplicationProblemPlusJSONResponse ¶
type PostSupiUeUpudefaultApplicationProblemPlusJSONResponse struct { Body externalRef1.ProblemDetails StatusCode int }
func (PostSupiUeUpudefaultApplicationProblemPlusJSONResponse) VisitPostSupiUeUpuResponse ¶
func (response PostSupiUeUpudefaultApplicationProblemPlusJSONResponse) VisitPostSupiUeUpuResponse(w http.ResponseWriter) error
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface { // (POST /{supi}/ue-upu) PostSupiUeUpu(c *gin.Context, supi externalRef1.Supi) }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandler func(*gin.Context, error, int) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) PostSupiUeUpu ¶
func (siw *ServerInterfaceWrapper) PostSupiUeUpu(c *gin.Context)
PostSupiUeUpu operation middleware
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictgin.StrictGinHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictgin.StrictGinMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // (POST /{supi}/ue-upu) PostSupiUeUpu(ctx context.Context, request PostSupiUeUpuRequestObject) (PostSupiUeUpuResponseObject, error) }
StrictServerInterface represents all server handlers.
type UpuData ¶
type UpuData struct { DefaultConfNssai []externalRef1.Snssai `json:"defaultConfNssai,omitempty"` // RoutingId Original reference TS29544_Nspaf_SecuredPacket.yaml#/components/schemas/RoutingId RoutingId *string `json:"routingId,omitempty"` SecPacket *externalRef0.SecuredPacket `json:"secPacket,omitempty"` AdditionalProperties map[string]interface{} `json:"-"` }
UpuData defines model for UpuData.
func (UpuData) Get ¶
Getter for additional properties for UpuData. Returns the specified element and whether it was found
func (UpuData) MarshalJSON ¶
Override default JSON handling for UpuData to handle AdditionalProperties
func (*UpuData) UnmarshalJSON ¶
Override default JSON handling for UpuData to handle AdditionalProperties
type UpuInfo ¶
type UpuInfo struct { SupportedFeatures *externalRef1.SupportedFeatures `json:"supportedFeatures,omitempty"` UpuAckInd UpuAckInd `json:"upuAckInd"` UpuDataList []UpuData `json:"upuDataList"` UpuHeader UpuHeader `json:"upuHeader,omitempty"` AdditionalProperties map[string]interface{} `json:"-"` }
UpuInfo defines model for UpuInfo.
func (UpuInfo) Get ¶
Getter for additional properties for UpuInfo. Returns the specified element and whether it was found
func (UpuInfo) MarshalJSON ¶
Override default JSON handling for UpuInfo to handle AdditionalProperties
func (*UpuInfo) UnmarshalJSON ¶
Override default JSON handling for UpuInfo to handle AdditionalProperties
type UpuSecurityInfo ¶
type UpuSecurityInfo struct { CounterUpu CounterUpu `json:"counterUpu"` UpuMacIausf UpuMac `json:"upuMacIausf"` UpuXmacIue UpuMac `json:"upuXmacIue,omitempty"` AdditionalProperties map[string]interface{} `json:"-"` }
UpuSecurityInfo defines model for UpuSecurityInfo.
func (UpuSecurityInfo) Get ¶
func (a UpuSecurityInfo) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for UpuSecurityInfo. Returns the specified element and whether it was found
func (UpuSecurityInfo) MarshalJSON ¶
func (a UpuSecurityInfo) MarshalJSON() ([]byte, error)
Override default JSON handling for UpuSecurityInfo to handle AdditionalProperties
func (*UpuSecurityInfo) Set ¶
func (a *UpuSecurityInfo) Set(fieldName string, value interface{})
Setter for additional properties for UpuSecurityInfo
func (*UpuSecurityInfo) UnmarshalJSON ¶
func (a *UpuSecurityInfo) UnmarshalJSON(b []byte) error
Override default JSON handling for UpuSecurityInfo to handle AdditionalProperties