template_set

package
Version: v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteTemplateSetNoContentCode int = 204

DeleteTemplateSetNoContentCode is the HTTP code returned for type DeleteTemplateSetNoContent

View Source
const PostTemplateSetBadRequestCode int = 400

PostTemplateSetBadRequestCode is the HTTP code returned for type PostTemplateSetBadRequest

View Source
const PostTemplateSetOKCode int = 200

PostTemplateSetOKCode is the HTTP code returned for type PostTemplateSetOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteTemplateSet

type DeleteTemplateSet struct {
	Context *middleware.Context
	Handler DeleteTemplateSetHandler
}

DeleteTemplateSet swagger:route DELETE /template_sets/{setKey} template_set deleteTemplateSet

deletes specified template set

func NewDeleteTemplateSet

func NewDeleteTemplateSet(ctx *middleware.Context, handler DeleteTemplateSetHandler) *DeleteTemplateSet

NewDeleteTemplateSet creates a new http.Handler for the delete template set operation

func (*DeleteTemplateSet) ServeHTTP

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

type DeleteTemplateSetDefault

type DeleteTemplateSetDefault struct {

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

DeleteTemplateSetDefault server error

swagger:response deleteTemplateSetDefault

func NewDeleteTemplateSetDefault

func NewDeleteTemplateSetDefault(code int) *DeleteTemplateSetDefault

NewDeleteTemplateSetDefault creates DeleteTemplateSetDefault with default headers values

func (*DeleteTemplateSetDefault) SetPayload

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

SetPayload sets the payload to the delete template set default response

func (*DeleteTemplateSetDefault) SetStatusCode

func (o *DeleteTemplateSetDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete template set default response

func (*DeleteTemplateSetDefault) WithPayload

WithPayload adds the payload to the delete template set default response

func (*DeleteTemplateSetDefault) WithStatusCode

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

WithStatusCode adds the status to the delete template set default response

func (*DeleteTemplateSetDefault) WriteResponse

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

WriteResponse to the client

type DeleteTemplateSetHandler

type DeleteTemplateSetHandler interface {
	Handle(DeleteTemplateSetParams) middleware.Responder
}

DeleteTemplateSetHandler interface for that can handle valid delete template set params

type DeleteTemplateSetHandlerFunc

type DeleteTemplateSetHandlerFunc func(DeleteTemplateSetParams) middleware.Responder

DeleteTemplateSetHandlerFunc turns a function with the right signature into a delete template set handler

func (DeleteTemplateSetHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteTemplateSetNoContent

type DeleteTemplateSetNoContent struct {
}

DeleteTemplateSetNoContent when successfully deleted

swagger:response deleteTemplateSetNoContent

func NewDeleteTemplateSetNoContent

func NewDeleteTemplateSetNoContent() *DeleteTemplateSetNoContent

NewDeleteTemplateSetNoContent creates DeleteTemplateSetNoContent with default headers values

func (*DeleteTemplateSetNoContent) WriteResponse

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

WriteResponse to the client

type DeleteTemplateSetParams

type DeleteTemplateSetParams struct {

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

	/*set key to delete
	  Required: true
	  In: path
	*/
	SetKey string
}

DeleteTemplateSetParams contains all the bound params for the delete template set operation typically these are obtained from a http.Request

swagger:parameters deleteTemplateSet

func NewDeleteTemplateSetParams

func NewDeleteTemplateSetParams() DeleteTemplateSetParams

NewDeleteTemplateSetParams creates a new DeleteTemplateSetParams object no default values defined in spec.

func (*DeleteTemplateSetParams) BindRequest

func (o *DeleteTemplateSetParams) 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 NewDeleteTemplateSetParams() beforehand.

type DeleteTemplateSetURL

type DeleteTemplateSetURL struct {
	SetKey string
	// contains filtered or unexported fields
}

DeleteTemplateSetURL generates an URL for the delete template set operation

func (*DeleteTemplateSetURL) Build

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

Build a url path and query string

func (*DeleteTemplateSetURL) BuildFull

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

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

func (*DeleteTemplateSetURL) Must

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

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

func (*DeleteTemplateSetURL) SetBasePath

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

func (o *DeleteTemplateSetURL) String() string

String returns the string representation of the path with query string

func (*DeleteTemplateSetURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteTemplateSetURL) WithBasePath

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

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 PostTemplateSet

type PostTemplateSet struct {
	Context *middleware.Context
	Handler PostTemplateSetHandler
}

PostTemplateSet swagger:route POST /template_sets/{setKey} template_set postTemplateSet

creates / overrides the template set with setKey to the body contents

func NewPostTemplateSet

func NewPostTemplateSet(ctx *middleware.Context, handler PostTemplateSetHandler) *PostTemplateSet

NewPostTemplateSet creates a new http.Handler for the post template set operation

func (*PostTemplateSet) ServeHTTP

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

type PostTemplateSetBadRequest

type PostTemplateSetBadRequest struct {

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

PostTemplateSetBadRequest if incoming templates were invalid

swagger:response postTemplateSetBadRequest

func NewPostTemplateSetBadRequest

func NewPostTemplateSetBadRequest() *PostTemplateSetBadRequest

NewPostTemplateSetBadRequest creates PostTemplateSetBadRequest with default headers values

func (*PostTemplateSetBadRequest) SetPayload

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

SetPayload sets the payload to the post template set bad request response

func (*PostTemplateSetBadRequest) WithPayload

WithPayload adds the payload to the post template set bad request response

func (*PostTemplateSetBadRequest) WriteResponse

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

WriteResponse to the client

type PostTemplateSetDefault

type PostTemplateSetDefault struct {

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

PostTemplateSetDefault generic error response

swagger:response postTemplateSetDefault

func NewPostTemplateSetDefault

func NewPostTemplateSetDefault(code int) *PostTemplateSetDefault

NewPostTemplateSetDefault creates PostTemplateSetDefault with default headers values

func (*PostTemplateSetDefault) SetPayload

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

SetPayload sets the payload to the post template set default response

func (*PostTemplateSetDefault) SetStatusCode

func (o *PostTemplateSetDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post template set default response

func (*PostTemplateSetDefault) WithPayload

func (o *PostTemplateSetDefault) WithPayload(payload *models.Error) *PostTemplateSetDefault

WithPayload adds the payload to the post template set default response

func (*PostTemplateSetDefault) WithStatusCode

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

WithStatusCode adds the status to the post template set default response

func (*PostTemplateSetDefault) WriteResponse

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

WriteResponse to the client

type PostTemplateSetHandler

type PostTemplateSetHandler interface {
	Handle(PostTemplateSetParams) middleware.Responder
}

PostTemplateSetHandler interface for that can handle valid post template set params

type PostTemplateSetHandlerFunc

type PostTemplateSetHandlerFunc func(PostTemplateSetParams) middleware.Responder

PostTemplateSetHandlerFunc turns a function with the right signature into a post template set handler

func (PostTemplateSetHandlerFunc) Handle

Handle executing the request and returning a response

type PostTemplateSetOK

type PostTemplateSetOK struct {

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

PostTemplateSetOK returns the successfully posted templates

swagger:response postTemplateSetOK

func NewPostTemplateSetOK

func NewPostTemplateSetOK() *PostTemplateSetOK

NewPostTemplateSetOK creates PostTemplateSetOK with default headers values

func (*PostTemplateSetOK) SetPayload

func (o *PostTemplateSetOK) SetPayload(payload models.Mocks)

SetPayload sets the payload to the post template set o k response

func (*PostTemplateSetOK) WithPayload

func (o *PostTemplateSetOK) WithPayload(payload models.Mocks) *PostTemplateSetOK

WithPayload adds the payload to the post template set o k response

func (*PostTemplateSetOK) WriteResponse

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

WriteResponse to the client

type PostTemplateSetParams

type PostTemplateSetParams struct {

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

	/*mocks to add
	  Required: true
	  In: body
	*/
	Mocks models.Mocks
	/*set key to create
	  Required: true
	  In: path
	*/
	SetKey string
}

PostTemplateSetParams contains all the bound params for the post template set operation typically these are obtained from a http.Request

swagger:parameters postTemplateSet

func NewPostTemplateSetParams

func NewPostTemplateSetParams() PostTemplateSetParams

NewPostTemplateSetParams creates a new PostTemplateSetParams object no default values defined in spec.

func (*PostTemplateSetParams) BindRequest

func (o *PostTemplateSetParams) 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 NewPostTemplateSetParams() beforehand.

type PostTemplateSetURL

type PostTemplateSetURL struct {
	SetKey string
	// contains filtered or unexported fields
}

PostTemplateSetURL generates an URL for the post template set operation

func (*PostTemplateSetURL) Build

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

Build a url path and query string

func (*PostTemplateSetURL) BuildFull

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

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

func (*PostTemplateSetURL) Must

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

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

func (*PostTemplateSetURL) SetBasePath

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

func (o *PostTemplateSetURL) String() string

String returns the string representation of the path with query string

func (*PostTemplateSetURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostTemplateSetURL) WithBasePath

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

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL