upu

package
v0.0.0-...-b1a38c4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

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

View Source
const (
	OAuth2ClientCredentialsScopes = "oAuth2ClientCredentials.Scopes"
)

Variables

This section is empty.

Functions

func GetKinOpenApi3Document

func GetKinOpenApi3Document() (*openapi3.T, error)

func GetKinOpenApi3DocumentMust

func GetKinOpenApi3DocumentMust() *openapi3.T

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

func (c *Client) PostSupiUeUpuWithBody(ctx context.Context, supi externalRef1.Supi, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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 CounterUpu

type CounterUpu = string

CounterUpu defines model for CounterUpu.

type GinServerOptions

type GinServerOptions struct {
	BaseURL      string
	Middlewares  []MiddlewareFunc
	ErrorHandler func(*gin.Context, error, int)
}

GinServerOptions provides options for the Gin server.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type MiddlewareFunc

type MiddlewareFunc func(c *gin.Context)

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 PostSupiUeUpu308ResponseHeaders

type PostSupiUeUpu308ResponseHeaders struct {
	N3gppSbiTargetNfId *string
	Location           string
}

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

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

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 UpuAckInd

type UpuAckInd = bool

UpuAckInd defines model for UpuAckInd.

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

func (a UpuData) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for UpuData. Returns the specified element and whether it was found

func (UpuData) MarshalJSON

func (a UpuData) MarshalJSON() ([]byte, error)

Override default JSON handling for UpuData to handle AdditionalProperties

func (*UpuData) Set

func (a *UpuData) Set(fieldName string, value interface{})

Setter for additional properties for UpuData

func (*UpuData) UnmarshalJSON

func (a *UpuData) UnmarshalJSON(b []byte) error

Override default JSON handling for UpuData to handle AdditionalProperties

type UpuHeader

type UpuHeader = string

UpuHeader defines model for UpuHeader.

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

func (a UpuInfo) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for UpuInfo. Returns the specified element and whether it was found

func (UpuInfo) MarshalJSON

func (a UpuInfo) MarshalJSON() ([]byte, error)

Override default JSON handling for UpuInfo to handle AdditionalProperties

func (*UpuInfo) Set

func (a *UpuInfo) Set(fieldName string, value interface{})

Setter for additional properties for UpuInfo

func (*UpuInfo) UnmarshalJSON

func (a *UpuInfo) UnmarshalJSON(b []byte) error

Override default JSON handling for UpuInfo to handle AdditionalProperties

type UpuMac

type UpuMac = string

UpuMac defines model for UpuMac.

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

Jump to

Keyboard shortcuts

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