template

package
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 DeleteTemplateBadRequestCode int = 400

DeleteTemplateBadRequestCode is the HTTP code returned for type DeleteTemplateBadRequest

View Source
const DeleteTemplateNoContentCode int = 204

DeleteTemplateNoContentCode is the HTTP code returned for type DeleteTemplateNoContent

View Source
const DeleteTemplateNotFoundCode int = 404

DeleteTemplateNotFoundCode is the HTTP code returned for type DeleteTemplateNotFound

View Source
const DeleteTemplatesNoContentCode int = 204

DeleteTemplatesNoContentCode is the HTTP code returned for type DeleteTemplatesNoContent

View Source
const GetTemplatesOKCode int = 200

GetTemplatesOKCode is the HTTP code returned for type GetTemplatesOK

View Source
const PostTemplatesBadRequestCode int = 400

PostTemplatesBadRequestCode is the HTTP code returned for type PostTemplatesBadRequest

View Source
const PostTemplatesOKCode int = 200

PostTemplatesOKCode is the HTTP code returned for type PostTemplatesOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteTemplate

type DeleteTemplate struct {
	Context *middleware.Context
	Handler DeleteTemplateHandler
}

DeleteTemplate swagger:route DELETE /templates/{templateKey} template deleteTemplate

delete a specific template that has been added by key

func NewDeleteTemplate

func NewDeleteTemplate(ctx *middleware.Context, handler DeleteTemplateHandler) *DeleteTemplate

NewDeleteTemplate creates a new http.Handler for the delete template operation

func (*DeleteTemplate) ServeHTTP

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

type DeleteTemplateBadRequest

type DeleteTemplateBadRequest struct {

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

DeleteTemplateBadRequest invalid key

swagger:response deleteTemplateBadRequest

func NewDeleteTemplateBadRequest

func NewDeleteTemplateBadRequest() *DeleteTemplateBadRequest

NewDeleteTemplateBadRequest creates DeleteTemplateBadRequest with default headers values

func (*DeleteTemplateBadRequest) SetPayload

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

SetPayload sets the payload to the delete template bad request response

func (*DeleteTemplateBadRequest) WithPayload

WithPayload adds the payload to the delete template bad request response

func (*DeleteTemplateBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteTemplateDefault

type DeleteTemplateDefault struct {

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

DeleteTemplateDefault server error

swagger:response deleteTemplateDefault

func NewDeleteTemplateDefault

func NewDeleteTemplateDefault(code int) *DeleteTemplateDefault

NewDeleteTemplateDefault creates DeleteTemplateDefault with default headers values

func (*DeleteTemplateDefault) SetPayload

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

SetPayload sets the payload to the delete template default response

func (*DeleteTemplateDefault) SetStatusCode

func (o *DeleteTemplateDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete template default response

func (*DeleteTemplateDefault) WithPayload

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

WithPayload adds the payload to the delete template default response

func (*DeleteTemplateDefault) WithStatusCode

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

WithStatusCode adds the status to the delete template default response

func (*DeleteTemplateDefault) WriteResponse

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

WriteResponse to the client

type DeleteTemplateHandler

type DeleteTemplateHandler interface {
	Handle(DeleteTemplateParams) middleware.Responder
}

DeleteTemplateHandler interface for that can handle valid delete template params

type DeleteTemplateHandlerFunc

type DeleteTemplateHandlerFunc func(DeleteTemplateParams) middleware.Responder

DeleteTemplateHandlerFunc turns a function with the right signature into a delete template handler

func (DeleteTemplateHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteTemplateNoContent

type DeleteTemplateNoContent struct {
}

DeleteTemplateNoContent when successfully deleted

swagger:response deleteTemplateNoContent

func NewDeleteTemplateNoContent

func NewDeleteTemplateNoContent() *DeleteTemplateNoContent

NewDeleteTemplateNoContent creates DeleteTemplateNoContent with default headers values

func (*DeleteTemplateNoContent) WriteResponse

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

WriteResponse to the client

type DeleteTemplateNotFound

type DeleteTemplateNotFound struct {

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

DeleteTemplateNotFound not found

swagger:response deleteTemplateNotFound

func NewDeleteTemplateNotFound

func NewDeleteTemplateNotFound() *DeleteTemplateNotFound

NewDeleteTemplateNotFound creates DeleteTemplateNotFound with default headers values

func (*DeleteTemplateNotFound) SetPayload

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

SetPayload sets the payload to the delete template not found response

func (*DeleteTemplateNotFound) WithPayload

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

WithPayload adds the payload to the delete template not found response

func (*DeleteTemplateNotFound) WriteResponse

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

WriteResponse to the client

type DeleteTemplateParams

type DeleteTemplateParams struct {

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

	/*key of template to delete
	  Required: true
	  In: path
	*/
	TemplateKey string
}

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

swagger:parameters deleteTemplate

func NewDeleteTemplateParams

func NewDeleteTemplateParams() DeleteTemplateParams

NewDeleteTemplateParams creates a new DeleteTemplateParams object no default values defined in spec.

func (*DeleteTemplateParams) BindRequest

func (o *DeleteTemplateParams) 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 NewDeleteTemplateParams() beforehand.

type DeleteTemplateURL

type DeleteTemplateURL struct {
	TemplateKey string
	// contains filtered or unexported fields
}

DeleteTemplateURL generates an URL for the delete template operation

func (*DeleteTemplateURL) Build

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

Build a url path and query string

func (*DeleteTemplateURL) BuildFull

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

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

func (*DeleteTemplateURL) Must

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

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

func (*DeleteTemplateURL) SetBasePath

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

func (o *DeleteTemplateURL) String() string

String returns the string representation of the path with query string

func (*DeleteTemplateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteTemplateURL) WithBasePath

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

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 DeleteTemplates

type DeleteTemplates struct {
	Context *middleware.Context
	Handler DeleteTemplatesHandler
}

DeleteTemplates swagger:route DELETE /templates template deleteTemplates

Deletes any templates that have been added to the admin endpoint (without a setKey)

func NewDeleteTemplates

func NewDeleteTemplates(ctx *middleware.Context, handler DeleteTemplatesHandler) *DeleteTemplates

NewDeleteTemplates creates a new http.Handler for the delete templates operation

func (*DeleteTemplates) ServeHTTP

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

type DeleteTemplatesDefault

type DeleteTemplatesDefault struct {

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

DeleteTemplatesDefault server error

swagger:response deleteTemplatesDefault

func NewDeleteTemplatesDefault

func NewDeleteTemplatesDefault(code int) *DeleteTemplatesDefault

NewDeleteTemplatesDefault creates DeleteTemplatesDefault with default headers values

func (*DeleteTemplatesDefault) SetPayload

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

SetPayload sets the payload to the delete templates default response

func (*DeleteTemplatesDefault) SetStatusCode

func (o *DeleteTemplatesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete templates default response

func (*DeleteTemplatesDefault) WithPayload

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

WithPayload adds the payload to the delete templates default response

func (*DeleteTemplatesDefault) WithStatusCode

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

WithStatusCode adds the status to the delete templates default response

func (*DeleteTemplatesDefault) WriteResponse

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

WriteResponse to the client

type DeleteTemplatesHandler

type DeleteTemplatesHandler interface {
	Handle(DeleteTemplatesParams) middleware.Responder
}

DeleteTemplatesHandler interface for that can handle valid delete templates params

type DeleteTemplatesHandlerFunc

type DeleteTemplatesHandlerFunc func(DeleteTemplatesParams) middleware.Responder

DeleteTemplatesHandlerFunc turns a function with the right signature into a delete templates handler

func (DeleteTemplatesHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteTemplatesNoContent

type DeleteTemplatesNoContent struct {
}

DeleteTemplatesNoContent when successfully deleted

swagger:response deleteTemplatesNoContent

func NewDeleteTemplatesNoContent

func NewDeleteTemplatesNoContent() *DeleteTemplatesNoContent

NewDeleteTemplatesNoContent creates DeleteTemplatesNoContent with default headers values

func (*DeleteTemplatesNoContent) WriteResponse

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

WriteResponse to the client

type DeleteTemplatesParams

type DeleteTemplatesParams struct {

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

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

swagger:parameters deleteTemplates

func NewDeleteTemplatesParams

func NewDeleteTemplatesParams() DeleteTemplatesParams

NewDeleteTemplatesParams creates a new DeleteTemplatesParams object no default values defined in spec.

func (*DeleteTemplatesParams) BindRequest

func (o *DeleteTemplatesParams) 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 NewDeleteTemplatesParams() beforehand.

type DeleteTemplatesURL

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

DeleteTemplatesURL generates an URL for the delete templates operation

func (*DeleteTemplatesURL) Build

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

Build a url path and query string

func (*DeleteTemplatesURL) BuildFull

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

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

func (*DeleteTemplatesURL) Must

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

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

func (*DeleteTemplatesURL) SetBasePath

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

func (o *DeleteTemplatesURL) String() string

String returns the string representation of the path with query string

func (*DeleteTemplatesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteTemplatesURL) WithBasePath

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

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 GetTemplates

type GetTemplates struct {
	Context *middleware.Context
	Handler GetTemplatesHandler
}

GetTemplates swagger:route GET /templates template getTemplates

Get all templates in the loaded model

func NewGetTemplates

func NewGetTemplates(ctx *middleware.Context, handler GetTemplatesHandler) *GetTemplates

NewGetTemplates creates a new http.Handler for the get templates operation

func (*GetTemplates) ServeHTTP

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

type GetTemplatesDefault

type GetTemplatesDefault struct {

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

GetTemplatesDefault generic error response

swagger:response getTemplatesDefault

func NewGetTemplatesDefault

func NewGetTemplatesDefault(code int) *GetTemplatesDefault

NewGetTemplatesDefault creates GetTemplatesDefault with default headers values

func (*GetTemplatesDefault) SetPayload

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

SetPayload sets the payload to the get templates default response

func (*GetTemplatesDefault) SetStatusCode

func (o *GetTemplatesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get templates default response

func (*GetTemplatesDefault) WithPayload

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

WithPayload adds the payload to the get templates default response

func (*GetTemplatesDefault) WithStatusCode

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

WithStatusCode adds the status to the get templates default response

func (*GetTemplatesDefault) WriteResponse

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

WriteResponse to the client

type GetTemplatesHandler

type GetTemplatesHandler interface {
	Handle(GetTemplatesParams) middleware.Responder
}

GetTemplatesHandler interface for that can handle valid get templates params

type GetTemplatesHandlerFunc

type GetTemplatesHandlerFunc func(GetTemplatesParams) middleware.Responder

GetTemplatesHandlerFunc turns a function with the right signature into a get templates handler

func (GetTemplatesHandlerFunc) Handle

Handle executing the request and returning a response

type GetTemplatesOK

type GetTemplatesOK struct {

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

GetTemplatesOK all the templates

swagger:response getTemplatesOK

func NewGetTemplatesOK

func NewGetTemplatesOK() *GetTemplatesOK

NewGetTemplatesOK creates GetTemplatesOK with default headers values

func (*GetTemplatesOK) SetPayload

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

SetPayload sets the payload to the get templates o k response

func (*GetTemplatesOK) WithPayload

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

WithPayload adds the payload to the get templates o k response

func (*GetTemplatesOK) WriteResponse

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

WriteResponse to the client

type GetTemplatesParams

type GetTemplatesParams struct {

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

GetTemplatesParams contains all the bound params for the get templates operation typically these are obtained from a http.Request

swagger:parameters getTemplates

func NewGetTemplatesParams

func NewGetTemplatesParams() GetTemplatesParams

NewGetTemplatesParams creates a new GetTemplatesParams object no default values defined in spec.

func (*GetTemplatesParams) BindRequest

func (o *GetTemplatesParams) 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 NewGetTemplatesParams() beforehand.

type GetTemplatesURL

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

GetTemplatesURL generates an URL for the get templates operation

func (*GetTemplatesURL) Build

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

Build a url path and query string

func (*GetTemplatesURL) BuildFull

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

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

func (*GetTemplatesURL) Must

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

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

func (*GetTemplatesURL) SetBasePath

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

func (o *GetTemplatesURL) String() string

String returns the string representation of the path with query string

func (*GetTemplatesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetTemplatesURL) WithBasePath

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

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 PostTemplates

type PostTemplates struct {
	Context *middleware.Context
	Handler PostTemplatesHandler
}

PostTemplates swagger:route POST /templates template postTemplates

Modify templates in the base model by POSTing new ones

func NewPostTemplates

func NewPostTemplates(ctx *middleware.Context, handler PostTemplatesHandler) *PostTemplates

NewPostTemplates creates a new http.Handler for the post templates operation

func (*PostTemplates) ServeHTTP

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

type PostTemplatesBadRequest

type PostTemplatesBadRequest struct {

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

PostTemplatesBadRequest if incoming templates were invalid

swagger:response postTemplatesBadRequest

func NewPostTemplatesBadRequest

func NewPostTemplatesBadRequest() *PostTemplatesBadRequest

NewPostTemplatesBadRequest creates PostTemplatesBadRequest with default headers values

func (*PostTemplatesBadRequest) SetPayload

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

SetPayload sets the payload to the post templates bad request response

func (*PostTemplatesBadRequest) WithPayload

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

WithPayload adds the payload to the post templates bad request response

func (*PostTemplatesBadRequest) WriteResponse

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

WriteResponse to the client

type PostTemplatesDefault

type PostTemplatesDefault struct {

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

PostTemplatesDefault generic error response

swagger:response postTemplatesDefault

func NewPostTemplatesDefault

func NewPostTemplatesDefault(code int) *PostTemplatesDefault

NewPostTemplatesDefault creates PostTemplatesDefault with default headers values

func (*PostTemplatesDefault) SetPayload

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

SetPayload sets the payload to the post templates default response

func (*PostTemplatesDefault) SetStatusCode

func (o *PostTemplatesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post templates default response

func (*PostTemplatesDefault) WithPayload

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

WithPayload adds the payload to the post templates default response

func (*PostTemplatesDefault) WithStatusCode

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

WithStatusCode adds the status to the post templates default response

func (*PostTemplatesDefault) WriteResponse

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

WriteResponse to the client

type PostTemplatesHandler

type PostTemplatesHandler interface {
	Handle(PostTemplatesParams) middleware.Responder
}

PostTemplatesHandler interface for that can handle valid post templates params

type PostTemplatesHandlerFunc

type PostTemplatesHandlerFunc func(PostTemplatesParams) middleware.Responder

PostTemplatesHandlerFunc turns a function with the right signature into a post templates handler

func (PostTemplatesHandlerFunc) Handle

Handle executing the request and returning a response

type PostTemplatesOK

type PostTemplatesOK struct {

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

PostTemplatesOK returns the successfully posted templates

swagger:response postTemplatesOK

func NewPostTemplatesOK

func NewPostTemplatesOK() *PostTemplatesOK

NewPostTemplatesOK creates PostTemplatesOK with default headers values

func (*PostTemplatesOK) SetPayload

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

SetPayload sets the payload to the post templates o k response

func (*PostTemplatesOK) WithPayload

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

WithPayload adds the payload to the post templates o k response

func (*PostTemplatesOK) WriteResponse

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

WriteResponse to the client

type PostTemplatesParams

type PostTemplatesParams struct {

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

	/*mocks to add
	  Required: true
	  In: body
	*/
	Mocks models.Mocks
}

PostTemplatesParams contains all the bound params for the post templates operation typically these are obtained from a http.Request

swagger:parameters postTemplates

func NewPostTemplatesParams

func NewPostTemplatesParams() PostTemplatesParams

NewPostTemplatesParams creates a new PostTemplatesParams object no default values defined in spec.

func (*PostTemplatesParams) BindRequest

func (o *PostTemplatesParams) 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 NewPostTemplatesParams() beforehand.

type PostTemplatesURL

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

PostTemplatesURL generates an URL for the post templates operation

func (*PostTemplatesURL) Build

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

Build a url path and query string

func (*PostTemplatesURL) BuildFull

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

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

func (*PostTemplatesURL) Must

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

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

func (*PostTemplatesURL) SetBasePath

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

func (o *PostTemplatesURL) String() string

String returns the string representation of the path with query string

func (*PostTemplatesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostTemplatesURL) WithBasePath

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

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