terminator

package
v0.24.34 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreateTerminatorBadRequestCode int = 400

CreateTerminatorBadRequestCode is the HTTP code returned for type CreateTerminatorBadRequest

View Source
const CreateTerminatorCreatedCode int = 201

CreateTerminatorCreatedCode is the HTTP code returned for type CreateTerminatorCreated

View Source
const CreateTerminatorUnauthorizedCode int = 401

CreateTerminatorUnauthorizedCode is the HTTP code returned for type CreateTerminatorUnauthorized

View Source
const DeleteTerminatorBadRequestCode int = 400

DeleteTerminatorBadRequestCode is the HTTP code returned for type DeleteTerminatorBadRequest

View Source
const DeleteTerminatorConflictCode int = 409

DeleteTerminatorConflictCode is the HTTP code returned for type DeleteTerminatorConflict

View Source
const DeleteTerminatorOKCode int = 200

DeleteTerminatorOKCode is the HTTP code returned for type DeleteTerminatorOK

View Source
const DeleteTerminatorUnauthorizedCode int = 401

DeleteTerminatorUnauthorizedCode is the HTTP code returned for type DeleteTerminatorUnauthorized

View Source
const DetailTerminatorNotFoundCode int = 404

DetailTerminatorNotFoundCode is the HTTP code returned for type DetailTerminatorNotFound

View Source
const DetailTerminatorOKCode int = 200

DetailTerminatorOKCode is the HTTP code returned for type DetailTerminatorOK

View Source
const DetailTerminatorUnauthorizedCode int = 401

DetailTerminatorUnauthorizedCode is the HTTP code returned for type DetailTerminatorUnauthorized

View Source
const ListTerminatorsBadRequestCode int = 400

ListTerminatorsBadRequestCode is the HTTP code returned for type ListTerminatorsBadRequest

View Source
const ListTerminatorsOKCode int = 200

ListTerminatorsOKCode is the HTTP code returned for type ListTerminatorsOK

View Source
const ListTerminatorsUnauthorizedCode int = 401

ListTerminatorsUnauthorizedCode is the HTTP code returned for type ListTerminatorsUnauthorized

View Source
const PatchTerminatorBadRequestCode int = 400

PatchTerminatorBadRequestCode is the HTTP code returned for type PatchTerminatorBadRequest

View Source
const PatchTerminatorNotFoundCode int = 404

PatchTerminatorNotFoundCode is the HTTP code returned for type PatchTerminatorNotFound

View Source
const PatchTerminatorOKCode int = 200

PatchTerminatorOKCode is the HTTP code returned for type PatchTerminatorOK

View Source
const PatchTerminatorUnauthorizedCode int = 401

PatchTerminatorUnauthorizedCode is the HTTP code returned for type PatchTerminatorUnauthorized

View Source
const UpdateTerminatorBadRequestCode int = 400

UpdateTerminatorBadRequestCode is the HTTP code returned for type UpdateTerminatorBadRequest

View Source
const UpdateTerminatorNotFoundCode int = 404

UpdateTerminatorNotFoundCode is the HTTP code returned for type UpdateTerminatorNotFound

View Source
const UpdateTerminatorOKCode int = 200

UpdateTerminatorOKCode is the HTTP code returned for type UpdateTerminatorOK

View Source
const UpdateTerminatorUnauthorizedCode int = 401

UpdateTerminatorUnauthorizedCode is the HTTP code returned for type UpdateTerminatorUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTerminator

type CreateTerminator struct {
	Context *middleware.Context
	Handler CreateTerminatorHandler
}
CreateTerminator swagger:route POST /terminators Terminator createTerminator

Create a terminator resource

Create a terminator resource. Requires admin access.

func NewCreateTerminator

func NewCreateTerminator(ctx *middleware.Context, handler CreateTerminatorHandler) *CreateTerminator

NewCreateTerminator creates a new http.Handler for the create terminator operation

func (*CreateTerminator) ServeHTTP

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

type CreateTerminatorBadRequest

type CreateTerminatorBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

CreateTerminatorBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response createTerminatorBadRequest

func NewCreateTerminatorBadRequest

func NewCreateTerminatorBadRequest() *CreateTerminatorBadRequest

NewCreateTerminatorBadRequest creates CreateTerminatorBadRequest with default headers values

func (*CreateTerminatorBadRequest) SetPayload

func (o *CreateTerminatorBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the create terminator bad request response

func (*CreateTerminatorBadRequest) WithPayload

WithPayload adds the payload to the create terminator bad request response

func (*CreateTerminatorBadRequest) WriteResponse

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

WriteResponse to the client

type CreateTerminatorCreated

type CreateTerminatorCreated struct {

	/*
	  In: Body
	*/
	Payload *rest_model.CreateEnvelope `json:"body,omitempty"`
}

CreateTerminatorCreated The create request was successful and the resource has been added at the following location

swagger:response createTerminatorCreated

func NewCreateTerminatorCreated

func NewCreateTerminatorCreated() *CreateTerminatorCreated

NewCreateTerminatorCreated creates CreateTerminatorCreated with default headers values

func (*CreateTerminatorCreated) SetPayload

func (o *CreateTerminatorCreated) SetPayload(payload *rest_model.CreateEnvelope)

SetPayload sets the payload to the create terminator created response

func (*CreateTerminatorCreated) WithPayload

WithPayload adds the payload to the create terminator created response

func (*CreateTerminatorCreated) WriteResponse

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

WriteResponse to the client

type CreateTerminatorHandler

type CreateTerminatorHandler interface {
	Handle(CreateTerminatorParams, interface{}) middleware.Responder
}

CreateTerminatorHandler interface for that can handle valid create terminator params

type CreateTerminatorHandlerFunc

type CreateTerminatorHandlerFunc func(CreateTerminatorParams, interface{}) middleware.Responder

CreateTerminatorHandlerFunc turns a function with the right signature into a create terminator handler

func (CreateTerminatorHandlerFunc) Handle

func (fn CreateTerminatorHandlerFunc) Handle(params CreateTerminatorParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateTerminatorParams

type CreateTerminatorParams struct {

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

	/*A terminator to create
	  Required: true
	  In: body
	*/
	Terminator *rest_model.TerminatorCreate
}

CreateTerminatorParams contains all the bound params for the create terminator operation typically these are obtained from a http.Request

swagger:parameters createTerminator

func NewCreateTerminatorParams

func NewCreateTerminatorParams() CreateTerminatorParams

NewCreateTerminatorParams creates a new CreateTerminatorParams object

There are no default values defined in the spec.

func (*CreateTerminatorParams) BindRequest

func (o *CreateTerminatorParams) 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 NewCreateTerminatorParams() beforehand.

type CreateTerminatorURL

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

CreateTerminatorURL generates an URL for the create terminator operation

func (*CreateTerminatorURL) Build

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

Build a url path and query string

func (*CreateTerminatorURL) BuildFull

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

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

func (*CreateTerminatorURL) Must

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

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

func (*CreateTerminatorURL) SetBasePath

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

func (o *CreateTerminatorURL) String() string

String returns the string representation of the path with query string

func (*CreateTerminatorURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateTerminatorURL) WithBasePath

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

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

type CreateTerminatorUnauthorized

type CreateTerminatorUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

CreateTerminatorUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response createTerminatorUnauthorized

func NewCreateTerminatorUnauthorized

func NewCreateTerminatorUnauthorized() *CreateTerminatorUnauthorized

NewCreateTerminatorUnauthorized creates CreateTerminatorUnauthorized with default headers values

func (*CreateTerminatorUnauthorized) SetPayload

SetPayload sets the payload to the create terminator unauthorized response

func (*CreateTerminatorUnauthorized) WithPayload

WithPayload adds the payload to the create terminator unauthorized response

func (*CreateTerminatorUnauthorized) WriteResponse

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

WriteResponse to the client

type DeleteTerminator

type DeleteTerminator struct {
	Context *middleware.Context
	Handler DeleteTerminatorHandler
}
DeleteTerminator swagger:route DELETE /terminators/{id} Terminator deleteTerminator

Delete a terminator

Delete a terminator by id. Requires admin access.

func NewDeleteTerminator

func NewDeleteTerminator(ctx *middleware.Context, handler DeleteTerminatorHandler) *DeleteTerminator

NewDeleteTerminator creates a new http.Handler for the delete terminator operation

func (*DeleteTerminator) ServeHTTP

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

type DeleteTerminatorBadRequest

type DeleteTerminatorBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DeleteTerminatorBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response deleteTerminatorBadRequest

func NewDeleteTerminatorBadRequest

func NewDeleteTerminatorBadRequest() *DeleteTerminatorBadRequest

NewDeleteTerminatorBadRequest creates DeleteTerminatorBadRequest with default headers values

func (*DeleteTerminatorBadRequest) SetPayload

func (o *DeleteTerminatorBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the delete terminator bad request response

func (*DeleteTerminatorBadRequest) WithPayload

WithPayload adds the payload to the delete terminator bad request response

func (*DeleteTerminatorBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteTerminatorConflict

type DeleteTerminatorConflict struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DeleteTerminatorConflict The resource requested to be removed/altered cannot be as it is referenced by another object.

swagger:response deleteTerminatorConflict

func NewDeleteTerminatorConflict

func NewDeleteTerminatorConflict() *DeleteTerminatorConflict

NewDeleteTerminatorConflict creates DeleteTerminatorConflict with default headers values

func (*DeleteTerminatorConflict) SetPayload

func (o *DeleteTerminatorConflict) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the delete terminator conflict response

func (*DeleteTerminatorConflict) WithPayload

WithPayload adds the payload to the delete terminator conflict response

func (*DeleteTerminatorConflict) WriteResponse

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

WriteResponse to the client

type DeleteTerminatorHandler

type DeleteTerminatorHandler interface {
	Handle(DeleteTerminatorParams, interface{}) middleware.Responder
}

DeleteTerminatorHandler interface for that can handle valid delete terminator params

type DeleteTerminatorHandlerFunc

type DeleteTerminatorHandlerFunc func(DeleteTerminatorParams, interface{}) middleware.Responder

DeleteTerminatorHandlerFunc turns a function with the right signature into a delete terminator handler

func (DeleteTerminatorHandlerFunc) Handle

func (fn DeleteTerminatorHandlerFunc) Handle(params DeleteTerminatorParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteTerminatorOK

type DeleteTerminatorOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

DeleteTerminatorOK The delete request was successful and the resource has been removed

swagger:response deleteTerminatorOK

func NewDeleteTerminatorOK

func NewDeleteTerminatorOK() *DeleteTerminatorOK

NewDeleteTerminatorOK creates DeleteTerminatorOK with default headers values

func (*DeleteTerminatorOK) SetPayload

func (o *DeleteTerminatorOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the delete terminator o k response

func (*DeleteTerminatorOK) WithPayload

func (o *DeleteTerminatorOK) WithPayload(payload *rest_model.Empty) *DeleteTerminatorOK

WithPayload adds the payload to the delete terminator o k response

func (*DeleteTerminatorOK) WriteResponse

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

WriteResponse to the client

type DeleteTerminatorParams

type DeleteTerminatorParams struct {

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

	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
}

DeleteTerminatorParams contains all the bound params for the delete terminator operation typically these are obtained from a http.Request

swagger:parameters deleteTerminator

func NewDeleteTerminatorParams

func NewDeleteTerminatorParams() DeleteTerminatorParams

NewDeleteTerminatorParams creates a new DeleteTerminatorParams object

There are no default values defined in the spec.

func (*DeleteTerminatorParams) BindRequest

func (o *DeleteTerminatorParams) 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 NewDeleteTerminatorParams() beforehand.

type DeleteTerminatorURL

type DeleteTerminatorURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteTerminatorURL generates an URL for the delete terminator operation

func (*DeleteTerminatorURL) Build

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

Build a url path and query string

func (*DeleteTerminatorURL) BuildFull

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

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

func (*DeleteTerminatorURL) Must

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

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

func (*DeleteTerminatorURL) SetBasePath

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

func (o *DeleteTerminatorURL) String() string

String returns the string representation of the path with query string

func (*DeleteTerminatorURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteTerminatorURL) WithBasePath

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

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

type DeleteTerminatorUnauthorized

type DeleteTerminatorUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DeleteTerminatorUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response deleteTerminatorUnauthorized

func NewDeleteTerminatorUnauthorized

func NewDeleteTerminatorUnauthorized() *DeleteTerminatorUnauthorized

NewDeleteTerminatorUnauthorized creates DeleteTerminatorUnauthorized with default headers values

func (*DeleteTerminatorUnauthorized) SetPayload

SetPayload sets the payload to the delete terminator unauthorized response

func (*DeleteTerminatorUnauthorized) WithPayload

WithPayload adds the payload to the delete terminator unauthorized response

func (*DeleteTerminatorUnauthorized) WriteResponse

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

WriteResponse to the client

type DetailTerminator

type DetailTerminator struct {
	Context *middleware.Context
	Handler DetailTerminatorHandler
}
DetailTerminator swagger:route GET /terminators/{id} Terminator detailTerminator

Retrieves a single terminator

Retrieves a single terminator by id. Requires admin access.

func NewDetailTerminator

func NewDetailTerminator(ctx *middleware.Context, handler DetailTerminatorHandler) *DetailTerminator

NewDetailTerminator creates a new http.Handler for the detail terminator operation

func (*DetailTerminator) ServeHTTP

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

type DetailTerminatorHandler

type DetailTerminatorHandler interface {
	Handle(DetailTerminatorParams, interface{}) middleware.Responder
}

DetailTerminatorHandler interface for that can handle valid detail terminator params

type DetailTerminatorHandlerFunc

type DetailTerminatorHandlerFunc func(DetailTerminatorParams, interface{}) middleware.Responder

DetailTerminatorHandlerFunc turns a function with the right signature into a detail terminator handler

func (DetailTerminatorHandlerFunc) Handle

func (fn DetailTerminatorHandlerFunc) Handle(params DetailTerminatorParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DetailTerminatorNotFound

type DetailTerminatorNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DetailTerminatorNotFound The requested resource does not exist

swagger:response detailTerminatorNotFound

func NewDetailTerminatorNotFound

func NewDetailTerminatorNotFound() *DetailTerminatorNotFound

NewDetailTerminatorNotFound creates DetailTerminatorNotFound with default headers values

func (*DetailTerminatorNotFound) SetPayload

func (o *DetailTerminatorNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the detail terminator not found response

func (*DetailTerminatorNotFound) WithPayload

WithPayload adds the payload to the detail terminator not found response

func (*DetailTerminatorNotFound) WriteResponse

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

WriteResponse to the client

type DetailTerminatorOK

type DetailTerminatorOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.DetailTerminatorEnvelope `json:"body,omitempty"`
}

DetailTerminatorOK A single terminator

swagger:response detailTerminatorOK

func NewDetailTerminatorOK

func NewDetailTerminatorOK() *DetailTerminatorOK

NewDetailTerminatorOK creates DetailTerminatorOK with default headers values

func (*DetailTerminatorOK) SetPayload

func (o *DetailTerminatorOK) SetPayload(payload *rest_model.DetailTerminatorEnvelope)

SetPayload sets the payload to the detail terminator o k response

func (*DetailTerminatorOK) WithPayload

WithPayload adds the payload to the detail terminator o k response

func (*DetailTerminatorOK) WriteResponse

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

WriteResponse to the client

type DetailTerminatorParams

type DetailTerminatorParams struct {

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

	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
}

DetailTerminatorParams contains all the bound params for the detail terminator operation typically these are obtained from a http.Request

swagger:parameters detailTerminator

func NewDetailTerminatorParams

func NewDetailTerminatorParams() DetailTerminatorParams

NewDetailTerminatorParams creates a new DetailTerminatorParams object

There are no default values defined in the spec.

func (*DetailTerminatorParams) BindRequest

func (o *DetailTerminatorParams) 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 NewDetailTerminatorParams() beforehand.

type DetailTerminatorURL

type DetailTerminatorURL struct {
	ID string
	// contains filtered or unexported fields
}

DetailTerminatorURL generates an URL for the detail terminator operation

func (*DetailTerminatorURL) Build

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

Build a url path and query string

func (*DetailTerminatorURL) BuildFull

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

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

func (*DetailTerminatorURL) Must

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

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

func (*DetailTerminatorURL) SetBasePath

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

func (o *DetailTerminatorURL) String() string

String returns the string representation of the path with query string

func (*DetailTerminatorURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DetailTerminatorURL) WithBasePath

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

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

type DetailTerminatorUnauthorized

type DetailTerminatorUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DetailTerminatorUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response detailTerminatorUnauthorized

func NewDetailTerminatorUnauthorized

func NewDetailTerminatorUnauthorized() *DetailTerminatorUnauthorized

NewDetailTerminatorUnauthorized creates DetailTerminatorUnauthorized with default headers values

func (*DetailTerminatorUnauthorized) SetPayload

SetPayload sets the payload to the detail terminator unauthorized response

func (*DetailTerminatorUnauthorized) WithPayload

WithPayload adds the payload to the detail terminator unauthorized response

func (*DetailTerminatorUnauthorized) WriteResponse

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

WriteResponse to the client

type ListTerminators

type ListTerminators struct {
	Context *middleware.Context
	Handler ListTerminatorsHandler
}
ListTerminators swagger:route GET /terminators Terminator listTerminators

List terminators

Retrieves a list of terminator resources; supports filtering, sorting, and pagination. Requires admin access.

func NewListTerminators

func NewListTerminators(ctx *middleware.Context, handler ListTerminatorsHandler) *ListTerminators

NewListTerminators creates a new http.Handler for the list terminators operation

func (*ListTerminators) ServeHTTP

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

type ListTerminatorsBadRequest added in v0.19.176

type ListTerminatorsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ListTerminatorsBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response listTerminatorsBadRequest

func NewListTerminatorsBadRequest added in v0.19.176

func NewListTerminatorsBadRequest() *ListTerminatorsBadRequest

NewListTerminatorsBadRequest creates ListTerminatorsBadRequest with default headers values

func (*ListTerminatorsBadRequest) SetPayload added in v0.19.176

func (o *ListTerminatorsBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the list terminators bad request response

func (*ListTerminatorsBadRequest) WithPayload added in v0.19.176

WithPayload adds the payload to the list terminators bad request response

func (*ListTerminatorsBadRequest) WriteResponse added in v0.19.176

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

WriteResponse to the client

type ListTerminatorsHandler

type ListTerminatorsHandler interface {
	Handle(ListTerminatorsParams, interface{}) middleware.Responder
}

ListTerminatorsHandler interface for that can handle valid list terminators params

type ListTerminatorsHandlerFunc

type ListTerminatorsHandlerFunc func(ListTerminatorsParams, interface{}) middleware.Responder

ListTerminatorsHandlerFunc turns a function with the right signature into a list terminators handler

func (ListTerminatorsHandlerFunc) Handle

func (fn ListTerminatorsHandlerFunc) Handle(params ListTerminatorsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListTerminatorsOK

type ListTerminatorsOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.ListTerminatorsEnvelope `json:"body,omitempty"`
}

ListTerminatorsOK A list of terminators

swagger:response listTerminatorsOK

func NewListTerminatorsOK

func NewListTerminatorsOK() *ListTerminatorsOK

NewListTerminatorsOK creates ListTerminatorsOK with default headers values

func (*ListTerminatorsOK) SetPayload

func (o *ListTerminatorsOK) SetPayload(payload *rest_model.ListTerminatorsEnvelope)

SetPayload sets the payload to the list terminators o k response

func (*ListTerminatorsOK) WithPayload

WithPayload adds the payload to the list terminators o k response

func (*ListTerminatorsOK) WriteResponse

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

WriteResponse to the client

type ListTerminatorsParams

type ListTerminatorsParams struct {

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

	/*
	  In: query
	*/
	Filter *string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	Offset *int64
}

ListTerminatorsParams contains all the bound params for the list terminators operation typically these are obtained from a http.Request

swagger:parameters listTerminators

func NewListTerminatorsParams

func NewListTerminatorsParams() ListTerminatorsParams

NewListTerminatorsParams creates a new ListTerminatorsParams object

There are no default values defined in the spec.

func (*ListTerminatorsParams) BindRequest

func (o *ListTerminatorsParams) 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 NewListTerminatorsParams() beforehand.

type ListTerminatorsURL

type ListTerminatorsURL struct {
	Filter *string
	Limit  *int64
	Offset *int64
	// contains filtered or unexported fields
}

ListTerminatorsURL generates an URL for the list terminators operation

func (*ListTerminatorsURL) Build

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

Build a url path and query string

func (*ListTerminatorsURL) BuildFull

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

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

func (*ListTerminatorsURL) Must

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

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

func (*ListTerminatorsURL) SetBasePath

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

func (o *ListTerminatorsURL) String() string

String returns the string representation of the path with query string

func (*ListTerminatorsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListTerminatorsURL) WithBasePath

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

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

type ListTerminatorsUnauthorized

type ListTerminatorsUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ListTerminatorsUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response listTerminatorsUnauthorized

func NewListTerminatorsUnauthorized

func NewListTerminatorsUnauthorized() *ListTerminatorsUnauthorized

NewListTerminatorsUnauthorized creates ListTerminatorsUnauthorized with default headers values

func (*ListTerminatorsUnauthorized) SetPayload

SetPayload sets the payload to the list terminators unauthorized response

func (*ListTerminatorsUnauthorized) WithPayload

WithPayload adds the payload to the list terminators unauthorized response

func (*ListTerminatorsUnauthorized) WriteResponse

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

WriteResponse to the client

type PatchTerminator

type PatchTerminator struct {
	Context *middleware.Context
	Handler PatchTerminatorHandler
}
PatchTerminator swagger:route PATCH /terminators/{id} Terminator patchTerminator

Update the supplied fields on a terminator

Update the supplied fields on a terminator. Requires admin access.

func NewPatchTerminator

func NewPatchTerminator(ctx *middleware.Context, handler PatchTerminatorHandler) *PatchTerminator

NewPatchTerminator creates a new http.Handler for the patch terminator operation

func (*PatchTerminator) ServeHTTP

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

type PatchTerminatorBadRequest

type PatchTerminatorBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

PatchTerminatorBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response patchTerminatorBadRequest

func NewPatchTerminatorBadRequest

func NewPatchTerminatorBadRequest() *PatchTerminatorBadRequest

NewPatchTerminatorBadRequest creates PatchTerminatorBadRequest with default headers values

func (*PatchTerminatorBadRequest) SetPayload

func (o *PatchTerminatorBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the patch terminator bad request response

func (*PatchTerminatorBadRequest) WithPayload

WithPayload adds the payload to the patch terminator bad request response

func (*PatchTerminatorBadRequest) WriteResponse

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

WriteResponse to the client

type PatchTerminatorHandler

type PatchTerminatorHandler interface {
	Handle(PatchTerminatorParams, interface{}) middleware.Responder
}

PatchTerminatorHandler interface for that can handle valid patch terminator params

type PatchTerminatorHandlerFunc

type PatchTerminatorHandlerFunc func(PatchTerminatorParams, interface{}) middleware.Responder

PatchTerminatorHandlerFunc turns a function with the right signature into a patch terminator handler

func (PatchTerminatorHandlerFunc) Handle

func (fn PatchTerminatorHandlerFunc) Handle(params PatchTerminatorParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type PatchTerminatorNotFound

type PatchTerminatorNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

PatchTerminatorNotFound The requested resource does not exist

swagger:response patchTerminatorNotFound

func NewPatchTerminatorNotFound

func NewPatchTerminatorNotFound() *PatchTerminatorNotFound

NewPatchTerminatorNotFound creates PatchTerminatorNotFound with default headers values

func (*PatchTerminatorNotFound) SetPayload

func (o *PatchTerminatorNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the patch terminator not found response

func (*PatchTerminatorNotFound) WithPayload

WithPayload adds the payload to the patch terminator not found response

func (*PatchTerminatorNotFound) WriteResponse

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

WriteResponse to the client

type PatchTerminatorOK

type PatchTerminatorOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

PatchTerminatorOK The patch request was successful and the resource has been altered

swagger:response patchTerminatorOK

func NewPatchTerminatorOK

func NewPatchTerminatorOK() *PatchTerminatorOK

NewPatchTerminatorOK creates PatchTerminatorOK with default headers values

func (*PatchTerminatorOK) SetPayload

func (o *PatchTerminatorOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the patch terminator o k response

func (*PatchTerminatorOK) WithPayload

func (o *PatchTerminatorOK) WithPayload(payload *rest_model.Empty) *PatchTerminatorOK

WithPayload adds the payload to the patch terminator o k response

func (*PatchTerminatorOK) WriteResponse

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

WriteResponse to the client

type PatchTerminatorParams

type PatchTerminatorParams struct {

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

	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
	/*A terminator patch object
	  Required: true
	  In: body
	*/
	Terminator *rest_model.TerminatorPatch
}

PatchTerminatorParams contains all the bound params for the patch terminator operation typically these are obtained from a http.Request

swagger:parameters patchTerminator

func NewPatchTerminatorParams

func NewPatchTerminatorParams() PatchTerminatorParams

NewPatchTerminatorParams creates a new PatchTerminatorParams object

There are no default values defined in the spec.

func (*PatchTerminatorParams) BindRequest

func (o *PatchTerminatorParams) 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 NewPatchTerminatorParams() beforehand.

type PatchTerminatorURL

type PatchTerminatorURL struct {
	ID string
	// contains filtered or unexported fields
}

PatchTerminatorURL generates an URL for the patch terminator operation

func (*PatchTerminatorURL) Build

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

Build a url path and query string

func (*PatchTerminatorURL) BuildFull

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

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

func (*PatchTerminatorURL) Must

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

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

func (*PatchTerminatorURL) SetBasePath

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

func (o *PatchTerminatorURL) String() string

String returns the string representation of the path with query string

func (*PatchTerminatorURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PatchTerminatorURL) WithBasePath

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

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

type PatchTerminatorUnauthorized

type PatchTerminatorUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

PatchTerminatorUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response patchTerminatorUnauthorized

func NewPatchTerminatorUnauthorized

func NewPatchTerminatorUnauthorized() *PatchTerminatorUnauthorized

NewPatchTerminatorUnauthorized creates PatchTerminatorUnauthorized with default headers values

func (*PatchTerminatorUnauthorized) SetPayload

SetPayload sets the payload to the patch terminator unauthorized response

func (*PatchTerminatorUnauthorized) WithPayload

WithPayload adds the payload to the patch terminator unauthorized response

func (*PatchTerminatorUnauthorized) WriteResponse

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

WriteResponse to the client

type UpdateTerminator

type UpdateTerminator struct {
	Context *middleware.Context
	Handler UpdateTerminatorHandler
}
UpdateTerminator swagger:route PUT /terminators/{id} Terminator updateTerminator

Update all fields on a terminator

Update all fields on a terminator by id. Requires admin access.

func NewUpdateTerminator

func NewUpdateTerminator(ctx *middleware.Context, handler UpdateTerminatorHandler) *UpdateTerminator

NewUpdateTerminator creates a new http.Handler for the update terminator operation

func (*UpdateTerminator) ServeHTTP

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

type UpdateTerminatorBadRequest

type UpdateTerminatorBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

UpdateTerminatorBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response updateTerminatorBadRequest

func NewUpdateTerminatorBadRequest

func NewUpdateTerminatorBadRequest() *UpdateTerminatorBadRequest

NewUpdateTerminatorBadRequest creates UpdateTerminatorBadRequest with default headers values

func (*UpdateTerminatorBadRequest) SetPayload

func (o *UpdateTerminatorBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the update terminator bad request response

func (*UpdateTerminatorBadRequest) WithPayload

WithPayload adds the payload to the update terminator bad request response

func (*UpdateTerminatorBadRequest) WriteResponse

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

WriteResponse to the client

type UpdateTerminatorHandler

type UpdateTerminatorHandler interface {
	Handle(UpdateTerminatorParams, interface{}) middleware.Responder
}

UpdateTerminatorHandler interface for that can handle valid update terminator params

type UpdateTerminatorHandlerFunc

type UpdateTerminatorHandlerFunc func(UpdateTerminatorParams, interface{}) middleware.Responder

UpdateTerminatorHandlerFunc turns a function with the right signature into a update terminator handler

func (UpdateTerminatorHandlerFunc) Handle

func (fn UpdateTerminatorHandlerFunc) Handle(params UpdateTerminatorParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateTerminatorNotFound

type UpdateTerminatorNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

UpdateTerminatorNotFound The requested resource does not exist

swagger:response updateTerminatorNotFound

func NewUpdateTerminatorNotFound

func NewUpdateTerminatorNotFound() *UpdateTerminatorNotFound

NewUpdateTerminatorNotFound creates UpdateTerminatorNotFound with default headers values

func (*UpdateTerminatorNotFound) SetPayload

func (o *UpdateTerminatorNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the update terminator not found response

func (*UpdateTerminatorNotFound) WithPayload

WithPayload adds the payload to the update terminator not found response

func (*UpdateTerminatorNotFound) WriteResponse

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

WriteResponse to the client

type UpdateTerminatorOK

type UpdateTerminatorOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

UpdateTerminatorOK The update request was successful and the resource has been altered

swagger:response updateTerminatorOK

func NewUpdateTerminatorOK

func NewUpdateTerminatorOK() *UpdateTerminatorOK

NewUpdateTerminatorOK creates UpdateTerminatorOK with default headers values

func (*UpdateTerminatorOK) SetPayload

func (o *UpdateTerminatorOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the update terminator o k response

func (*UpdateTerminatorOK) WithPayload

func (o *UpdateTerminatorOK) WithPayload(payload *rest_model.Empty) *UpdateTerminatorOK

WithPayload adds the payload to the update terminator o k response

func (*UpdateTerminatorOK) WriteResponse

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

WriteResponse to the client

type UpdateTerminatorParams

type UpdateTerminatorParams struct {

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

	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
	/*A terminator update object
	  Required: true
	  In: body
	*/
	Terminator *rest_model.TerminatorUpdate
}

UpdateTerminatorParams contains all the bound params for the update terminator operation typically these are obtained from a http.Request

swagger:parameters updateTerminator

func NewUpdateTerminatorParams

func NewUpdateTerminatorParams() UpdateTerminatorParams

NewUpdateTerminatorParams creates a new UpdateTerminatorParams object

There are no default values defined in the spec.

func (*UpdateTerminatorParams) BindRequest

func (o *UpdateTerminatorParams) 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 NewUpdateTerminatorParams() beforehand.

type UpdateTerminatorURL

type UpdateTerminatorURL struct {
	ID string
	// contains filtered or unexported fields
}

UpdateTerminatorURL generates an URL for the update terminator operation

func (*UpdateTerminatorURL) Build

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

Build a url path and query string

func (*UpdateTerminatorURL) BuildFull

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

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

func (*UpdateTerminatorURL) Must

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

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

func (*UpdateTerminatorURL) SetBasePath

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

func (o *UpdateTerminatorURL) String() string

String returns the string representation of the path with query string

func (*UpdateTerminatorURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateTerminatorURL) WithBasePath

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

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

type UpdateTerminatorUnauthorized

type UpdateTerminatorUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

UpdateTerminatorUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response updateTerminatorUnauthorized

func NewUpdateTerminatorUnauthorized

func NewUpdateTerminatorUnauthorized() *UpdateTerminatorUnauthorized

NewUpdateTerminatorUnauthorized creates UpdateTerminatorUnauthorized with default headers values

func (*UpdateTerminatorUnauthorized) SetPayload

SetPayload sets the payload to the update terminator unauthorized response

func (*UpdateTerminatorUnauthorized) WithPayload

WithPayload adds the payload to the update terminator unauthorized response

func (*UpdateTerminatorUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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