evaluation

package
v0.0.0-...-318a3d5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TriggerEvaluationBadRequestCode int = 400

TriggerEvaluationBadRequestCode is the HTTP code returned for type TriggerEvaluationBadRequest

View Source
const TriggerEvaluationOKCode int = 200

TriggerEvaluationOKCode is the HTTP code returned for type TriggerEvaluationOK

Variables

This section is empty.

Functions

This section is empty.

Types

type TriggerEvaluation

type TriggerEvaluation struct {
	Context *middleware.Context
	Handler TriggerEvaluationHandler
}

TriggerEvaluation swagger:route POST /project/{projectName}/stage/{stageName}/service/{serviceName}/evaluation evaluation triggerEvaluation

Trigger a new evaluation

func NewTriggerEvaluation

func NewTriggerEvaluation(ctx *middleware.Context, handler TriggerEvaluationHandler) *TriggerEvaluation

NewTriggerEvaluation creates a new http.Handler for the trigger evaluation operation

func (*TriggerEvaluation) ServeHTTP

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

type TriggerEvaluationBadRequest

type TriggerEvaluationBadRequest struct {

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

TriggerEvaluationBadRequest Evaluation could not be triggered

swagger:response triggerEvaluationBadRequest

func NewTriggerEvaluationBadRequest

func NewTriggerEvaluationBadRequest() *TriggerEvaluationBadRequest

NewTriggerEvaluationBadRequest creates TriggerEvaluationBadRequest with default headers values

func (*TriggerEvaluationBadRequest) SetPayload

func (o *TriggerEvaluationBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the trigger evaluation bad request response

func (*TriggerEvaluationBadRequest) WithPayload

WithPayload adds the payload to the trigger evaluation bad request response

func (*TriggerEvaluationBadRequest) WriteResponse

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

WriteResponse to the client

type TriggerEvaluationDefault

type TriggerEvaluationDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

TriggerEvaluationDefault Error

swagger:response triggerEvaluationDefault

func NewTriggerEvaluationDefault

func NewTriggerEvaluationDefault(code int) *TriggerEvaluationDefault

NewTriggerEvaluationDefault creates TriggerEvaluationDefault with default headers values

func (*TriggerEvaluationDefault) SetPayload

func (o *TriggerEvaluationDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the trigger evaluation default response

func (*TriggerEvaluationDefault) SetStatusCode

func (o *TriggerEvaluationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the trigger evaluation default response

func (*TriggerEvaluationDefault) WithPayload

WithPayload adds the payload to the trigger evaluation default response

func (*TriggerEvaluationDefault) WithStatusCode

func (o *TriggerEvaluationDefault) WithStatusCode(code int) *TriggerEvaluationDefault

WithStatusCode adds the status to the trigger evaluation default response

func (*TriggerEvaluationDefault) WriteResponse

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

WriteResponse to the client

type TriggerEvaluationHandler

type TriggerEvaluationHandler interface {
	Handle(TriggerEvaluationParams, *models.Principal) middleware.Responder
}

TriggerEvaluationHandler interface for that can handle valid trigger evaluation params

type TriggerEvaluationHandlerFunc

type TriggerEvaluationHandlerFunc func(TriggerEvaluationParams, *models.Principal) middleware.Responder

TriggerEvaluationHandlerFunc turns a function with the right signature into a trigger evaluation handler

func (TriggerEvaluationHandlerFunc) Handle

Handle executing the request and returning a response

type TriggerEvaluationOK

type TriggerEvaluationOK struct {

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

TriggerEvaluationOK Evaluation has been triggered

swagger:response triggerEvaluationOK

func NewTriggerEvaluationOK

func NewTriggerEvaluationOK() *TriggerEvaluationOK

NewTriggerEvaluationOK creates TriggerEvaluationOK with default headers values

func (*TriggerEvaluationOK) SetPayload

func (o *TriggerEvaluationOK) SetPayload(payload *models.EventContext)

SetPayload sets the payload to the trigger evaluation o k response

func (*TriggerEvaluationOK) WithPayload

func (o *TriggerEvaluationOK) WithPayload(payload *models.EventContext) *TriggerEvaluationOK

WithPayload adds the payload to the trigger evaluation o k response

func (*TriggerEvaluationOK) WriteResponse

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

WriteResponse to the client

type TriggerEvaluationParams

type TriggerEvaluationParams struct {

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

	/*Evaluation
	  In: body
	*/
	Evaluation *models.Evaluation
	/*Name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
	/*Name of the service
	  Required: true
	  In: path
	*/
	ServiceName string
	/*Name of the stage
	  Required: true
	  In: path
	*/
	StageName string
}

TriggerEvaluationParams contains all the bound params for the trigger evaluation operation typically these are obtained from a http.Request

swagger:parameters triggerEvaluation

func NewTriggerEvaluationParams

func NewTriggerEvaluationParams() TriggerEvaluationParams

NewTriggerEvaluationParams creates a new TriggerEvaluationParams object no default values defined in spec.

func (*TriggerEvaluationParams) BindRequest

func (o *TriggerEvaluationParams) 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 NewTriggerEvaluationParams() beforehand.

type TriggerEvaluationURL

type TriggerEvaluationURL struct {
	ProjectName string
	ServiceName string
	StageName   string
	// contains filtered or unexported fields
}

TriggerEvaluationURL generates an URL for the trigger evaluation operation

func (*TriggerEvaluationURL) Build

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

Build a url path and query string

func (*TriggerEvaluationURL) BuildFull

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

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

func (*TriggerEvaluationURL) Must

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

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

func (*TriggerEvaluationURL) SetBasePath

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

func (o *TriggerEvaluationURL) String() string

String returns the string representation of the path with query string

func (*TriggerEvaluationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*TriggerEvaluationURL) WithBasePath

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

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