trigger_management

package
v0.0.0-...-33e56a9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ExecSampleInternalServerErrorCode int = 500

ExecSampleInternalServerErrorCode is the HTTP code returned for type ExecSampleInternalServerError

View Source
const ExecSampleOKCode int = 200

ExecSampleOKCode is the HTTP code returned for type ExecSampleOK

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecSample

type ExecSample struct {
	Context *middleware.Context
	Handler ExecSampleHandler
}

ExecSample swagger:route GET /trigger/sample triggerManagement execSample

Sample task trigger

func NewExecSample

func NewExecSample(ctx *middleware.Context, handler ExecSampleHandler) *ExecSample

NewExecSample creates a new http.Handler for the exec sample operation

func (*ExecSample) ServeHTTP

func (o *ExecSample) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ExecSampleHandler

type ExecSampleHandler interface {
	Handle(ExecSampleParams, interface{}) middleware.Responder
}

ExecSampleHandler interface for that can handle valid exec sample params

type ExecSampleHandlerFunc

type ExecSampleHandlerFunc func(ExecSampleParams, interface{}) middleware.Responder

ExecSampleHandlerFunc turns a function with the right signature into a exec sample handler

func (ExecSampleHandlerFunc) Handle

func (fn ExecSampleHandlerFunc) Handle(params ExecSampleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ExecSampleInternalServerError

type ExecSampleInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ExecSampleInternalServerError Something unexpected happend, error raised

swagger:response execSampleInternalServerError

func NewExecSampleInternalServerError

func NewExecSampleInternalServerError() *ExecSampleInternalServerError

NewExecSampleInternalServerError creates ExecSampleInternalServerError with default headers values

func (*ExecSampleInternalServerError) SetPayload

func (o *ExecSampleInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the exec sample internal server error response

func (*ExecSampleInternalServerError) WithPayload

WithPayload adds the payload to the exec sample internal server error response

func (*ExecSampleInternalServerError) WriteResponse

func (o *ExecSampleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ExecSampleOK

type ExecSampleOK struct {
}

ExecSampleOK Sample task executed successfully

swagger:response execSampleOK

func NewExecSampleOK

func NewExecSampleOK() *ExecSampleOK

NewExecSampleOK creates ExecSampleOK with default headers values

func (*ExecSampleOK) WriteResponse

func (o *ExecSampleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ExecSampleParams

type ExecSampleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

ExecSampleParams contains all the bound params for the exec sample operation typically these are obtained from a http.Request

swagger:parameters execSample

func NewExecSampleParams

func NewExecSampleParams() ExecSampleParams

NewExecSampleParams creates a new ExecSampleParams object no default values defined in spec.

func (*ExecSampleParams) BindRequest

func (o *ExecSampleParams) 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 NewExecSampleParams() beforehand.

type ExecSampleURL

type ExecSampleURL struct {
	// contains filtered or unexported fields
}

ExecSampleURL generates an URL for the exec sample operation

func (*ExecSampleURL) Build

func (o *ExecSampleURL) Build() (*url.URL, error)

Build a url path and query string

func (*ExecSampleURL) BuildFull

func (o *ExecSampleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ExecSampleURL) Must

func (o *ExecSampleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ExecSampleURL) SetBasePath

func (o *ExecSampleURL) 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 (*ExecSampleURL) String

func (o *ExecSampleURL) String() string

String returns the string representation of the path with query string

func (*ExecSampleURL) StringFull

func (o *ExecSampleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ExecSampleURL) WithBasePath

func (o *ExecSampleURL) WithBasePath(bp string) *ExecSampleURL

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

Jump to

Keyboard shortcuts

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