Documentation
¶
Index ¶
- Constants
- type ExecTransformation
- type ExecTransformationHandler
- type ExecTransformationHandlerFunc
- type ExecTransformationInternalServerError
- func (o *ExecTransformationInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ExecTransformationInternalServerError) WithPayload(payload *models.ErrorResponse) *ExecTransformationInternalServerError
- func (o *ExecTransformationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ExecTransformationOK
- type ExecTransformationParams
- type ExecTransformationURL
- func (o *ExecTransformationURL) Build() (*url.URL, error)
- func (o *ExecTransformationURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ExecTransformationURL) Must(u *url.URL, err error) *url.URL
- func (o *ExecTransformationURL) SetBasePath(bp string)
- func (o *ExecTransformationURL) String() string
- func (o *ExecTransformationURL) StringFull(scheme, host string) string
- func (o *ExecTransformationURL) WithBasePath(bp string) *ExecTransformationURL
Constants ¶
const ExecTransformationInternalServerErrorCode int = 500
ExecTransformationInternalServerErrorCode is the HTTP code returned for type ExecTransformationInternalServerError
const ExecTransformationOKCode int = 200
ExecTransformationOKCode is the HTTP code returned for type ExecTransformationOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecTransformation ¶
type ExecTransformation struct { Context *middleware.Context Handler ExecTransformationHandler }
ExecTransformation swagger:route GET /trigger/transform triggerManagement execTransformation
Transformation of UDR to CDR task trigger
func NewExecTransformation ¶
func NewExecTransformation(ctx *middleware.Context, handler ExecTransformationHandler) *ExecTransformation
NewExecTransformation creates a new http.Handler for the exec transformation operation
func (*ExecTransformation) ServeHTTP ¶
func (o *ExecTransformation) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ExecTransformationHandler ¶
type ExecTransformationHandler interface {
Handle(ExecTransformationParams, interface{}) middleware.Responder
}
ExecTransformationHandler interface for that can handle valid exec transformation params
type ExecTransformationHandlerFunc ¶
type ExecTransformationHandlerFunc func(ExecTransformationParams, interface{}) middleware.Responder
ExecTransformationHandlerFunc turns a function with the right signature into a exec transformation handler
func (ExecTransformationHandlerFunc) Handle ¶
func (fn ExecTransformationHandlerFunc) Handle(params ExecTransformationParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ExecTransformationInternalServerError ¶
type ExecTransformationInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ExecTransformationInternalServerError Something unexpected happend, error raised
swagger:response execTransformationInternalServerError
func NewExecTransformationInternalServerError ¶
func NewExecTransformationInternalServerError() *ExecTransformationInternalServerError
NewExecTransformationInternalServerError creates ExecTransformationInternalServerError with default headers values
func (*ExecTransformationInternalServerError) SetPayload ¶
func (o *ExecTransformationInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the exec transformation internal server error response
func (*ExecTransformationInternalServerError) WithPayload ¶
func (o *ExecTransformationInternalServerError) WithPayload(payload *models.ErrorResponse) *ExecTransformationInternalServerError
WithPayload adds the payload to the exec transformation internal server error response
func (*ExecTransformationInternalServerError) WriteResponse ¶
func (o *ExecTransformationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExecTransformationOK ¶
type ExecTransformationOK struct { }
ExecTransformationOK Transformation task executed successfully.
swagger:response execTransformationOK
func NewExecTransformationOK ¶
func NewExecTransformationOK() *ExecTransformationOK
NewExecTransformationOK creates ExecTransformationOK with default headers values
func (*ExecTransformationOK) WriteResponse ¶
func (o *ExecTransformationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExecTransformationParams ¶
type ExecTransformationParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Switch for using 15m boundaries instead of 8h In: query */ FastMode *bool /*Datetime from which to get the usage report In: query */ From *strfmt.DateTime /*Datetime until which to get the usage report In: query */ To *strfmt.DateTime }
ExecTransformationParams contains all the bound params for the exec transformation operation typically these are obtained from a http.Request
swagger:parameters execTransformation
func NewExecTransformationParams ¶
func NewExecTransformationParams() ExecTransformationParams
NewExecTransformationParams creates a new ExecTransformationParams object no default values defined in spec.
func (*ExecTransformationParams) BindRequest ¶
func (o *ExecTransformationParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewExecTransformationParams() beforehand.
type ExecTransformationURL ¶
type ExecTransformationURL struct { FastMode *bool From *strfmt.DateTime To *strfmt.DateTime // contains filtered or unexported fields }
ExecTransformationURL generates an URL for the exec transformation operation
func (*ExecTransformationURL) Build ¶
func (o *ExecTransformationURL) Build() (*url.URL, error)
Build a url path and query string
func (*ExecTransformationURL) BuildFull ¶
func (o *ExecTransformationURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ExecTransformationURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ExecTransformationURL) SetBasePath ¶
func (o *ExecTransformationURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ExecTransformationURL) String ¶
func (o *ExecTransformationURL) String() string
String returns the string representation of the path with query string
func (*ExecTransformationURL) StringFull ¶
func (o *ExecTransformationURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ExecTransformationURL) WithBasePath ¶
func (o *ExecTransformationURL) WithBasePath(bp string) *ExecTransformationURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string