Documentation ¶
Index ¶
- Constants
- type ConsumeVersion
- type ConsumeVersionDefault
- func (o *ConsumeVersionDefault) SetPayload(payload *models.DefaultError)
- func (o *ConsumeVersionDefault) SetStatusCode(code int)
- func (o *ConsumeVersionDefault) WithPayload(payload *models.DefaultError) *ConsumeVersionDefault
- func (o *ConsumeVersionDefault) WithStatusCode(code int) *ConsumeVersionDefault
- func (o *ConsumeVersionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ConsumeVersionHandler
- type ConsumeVersionHandlerFunc
- type ConsumeVersionOK
- type ConsumeVersionParams
- type ConsumeVersionURL
- func (o *ConsumeVersionURL) Build() (*url.URL, error)
- func (o *ConsumeVersionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ConsumeVersionURL) Must(u *url.URL, err error) *url.URL
- func (o *ConsumeVersionURL) SetBasePath(bp string)
- func (o *ConsumeVersionURL) String() string
- func (o *ConsumeVersionURL) StringFull(scheme, host string) string
- func (o *ConsumeVersionURL) WithBasePath(bp string) *ConsumeVersionURL
- type GetVersion
- type GetVersionDefault
- func (o *GetVersionDefault) SetPayload(payload *models.DefaultError)
- func (o *GetVersionDefault) SetStatusCode(code int)
- func (o *GetVersionDefault) WithPayload(payload *models.DefaultError) *GetVersionDefault
- func (o *GetVersionDefault) WithStatusCode(code int) *GetVersionDefault
- func (o *GetVersionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetVersionHandler
- type GetVersionHandlerFunc
- type GetVersionNotFound
- type GetVersionOK
- type GetVersionParams
- type GetVersionURL
- func (o *GetVersionURL) Build() (*url.URL, error)
- func (o *GetVersionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetVersionURL) Must(u *url.URL, err error) *url.URL
- func (o *GetVersionURL) SetBasePath(bp string)
- func (o *GetVersionURL) String() string
- func (o *GetVersionURL) StringFull(scheme, host string) string
- func (o *GetVersionURL) WithBasePath(bp string) *GetVersionURL
Constants ¶
const ConsumeVersionOKCode int = 200
ConsumeVersionOKCode is the HTTP code returned for type ConsumeVersionOK
const GetVersionNotFoundCode int = 404
GetVersionNotFoundCode is the HTTP code returned for type GetVersionNotFound
const GetVersionOKCode int = 200
GetVersionOKCode is the HTTP code returned for type GetVersionOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumeVersion ¶
type ConsumeVersion struct { Context *middleware.Context Handler ConsumeVersionHandler }
ConsumeVersion swagger:route PUT /applications/{applicationId} Applications consumeVersion
Increment and Return Version
func NewConsumeVersion ¶
func NewConsumeVersion(ctx *middleware.Context, handler ConsumeVersionHandler) *ConsumeVersion
NewConsumeVersion creates a new http.Handler for the consume version operation
func (*ConsumeVersion) ServeHTTP ¶
func (o *ConsumeVersion) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ConsumeVersionDefault ¶
type ConsumeVersionDefault struct { /* In: Body */ Payload *models.DefaultError `json:"body,omitempty"` // contains filtered or unexported fields }
ConsumeVersionDefault Unexpected Error
swagger:response consumeVersionDefault
func NewConsumeVersionDefault ¶
func NewConsumeVersionDefault(code int) *ConsumeVersionDefault
NewConsumeVersionDefault creates ConsumeVersionDefault with default headers values
func (*ConsumeVersionDefault) SetPayload ¶
func (o *ConsumeVersionDefault) SetPayload(payload *models.DefaultError)
SetPayload sets the payload to the consume version default response
func (*ConsumeVersionDefault) SetStatusCode ¶
func (o *ConsumeVersionDefault) SetStatusCode(code int)
SetStatusCode sets the status to the consume version default response
func (*ConsumeVersionDefault) WithPayload ¶
func (o *ConsumeVersionDefault) WithPayload(payload *models.DefaultError) *ConsumeVersionDefault
WithPayload adds the payload to the consume version default response
func (*ConsumeVersionDefault) WithStatusCode ¶
func (o *ConsumeVersionDefault) WithStatusCode(code int) *ConsumeVersionDefault
WithStatusCode adds the status to the consume version default response
func (*ConsumeVersionDefault) WriteResponse ¶
func (o *ConsumeVersionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ConsumeVersionHandler ¶
type ConsumeVersionHandler interface {
Handle(ConsumeVersionParams) middleware.Responder
}
ConsumeVersionHandler interface for that can handle valid consume version params
type ConsumeVersionHandlerFunc ¶
type ConsumeVersionHandlerFunc func(ConsumeVersionParams) middleware.Responder
ConsumeVersionHandlerFunc turns a function with the right signature into a consume version handler
func (ConsumeVersionHandlerFunc) Handle ¶
func (fn ConsumeVersionHandlerFunc) Handle(params ConsumeVersionParams) middleware.Responder
Handle executing the request and returning a response
type ConsumeVersionOK ¶
type ConsumeVersionOK struct { /* In: Body */ Payload *models.ApplicationVersion `json:"body,omitempty"` }
ConsumeVersionOK New Version Number
swagger:response consumeVersionOK
func NewConsumeVersionOK ¶
func NewConsumeVersionOK() *ConsumeVersionOK
NewConsumeVersionOK creates ConsumeVersionOK with default headers values
func (*ConsumeVersionOK) SetPayload ¶
func (o *ConsumeVersionOK) SetPayload(payload *models.ApplicationVersion)
SetPayload sets the payload to the consume version o k response
func (*ConsumeVersionOK) WithPayload ¶
func (o *ConsumeVersionOK) WithPayload(payload *models.ApplicationVersion) *ConsumeVersionOK
WithPayload adds the payload to the consume version o k response
func (*ConsumeVersionOK) WriteResponse ¶
func (o *ConsumeVersionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ConsumeVersionParams ¶
type ConsumeVersionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the application. Required: true In: path */ ApplicationID string /*Options for new version generation Required: true In: body */ Options *models.ConsumeOptions }
ConsumeVersionParams contains all the bound params for the consume version operation typically these are obtained from a http.Request
swagger:parameters consumeVersion
func NewConsumeVersionParams ¶
func NewConsumeVersionParams() ConsumeVersionParams
NewConsumeVersionParams creates a new ConsumeVersionParams object
There are no default values defined in the spec.
func (*ConsumeVersionParams) BindRequest ¶
func (o *ConsumeVersionParams) 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 NewConsumeVersionParams() beforehand.
type ConsumeVersionURL ¶
type ConsumeVersionURL struct { ApplicationID string // contains filtered or unexported fields }
ConsumeVersionURL generates an URL for the consume version operation
func (*ConsumeVersionURL) Build ¶
func (o *ConsumeVersionURL) Build() (*url.URL, error)
Build a url path and query string
func (*ConsumeVersionURL) BuildFull ¶
func (o *ConsumeVersionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ConsumeVersionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ConsumeVersionURL) SetBasePath ¶
func (o *ConsumeVersionURL) 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 (*ConsumeVersionURL) String ¶
func (o *ConsumeVersionURL) String() string
String returns the string representation of the path with query string
func (*ConsumeVersionURL) StringFull ¶
func (o *ConsumeVersionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ConsumeVersionURL) WithBasePath ¶
func (o *ConsumeVersionURL) WithBasePath(bp string) *ConsumeVersionURL
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 GetVersion ¶
type GetVersion struct { Context *middleware.Context Handler GetVersionHandler }
GetVersion swagger:route GET /applications/{applicationId} Applications getVersion
Get Current Version
func NewGetVersion ¶
func NewGetVersion(ctx *middleware.Context, handler GetVersionHandler) *GetVersion
NewGetVersion creates a new http.Handler for the get version operation
func (*GetVersion) ServeHTTP ¶
func (o *GetVersion) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetVersionDefault ¶
type GetVersionDefault struct { /* In: Body */ Payload *models.DefaultError `json:"body,omitempty"` // contains filtered or unexported fields }
GetVersionDefault Unexpected Error
swagger:response getVersionDefault
func NewGetVersionDefault ¶
func NewGetVersionDefault(code int) *GetVersionDefault
NewGetVersionDefault creates GetVersionDefault with default headers values
func (*GetVersionDefault) SetPayload ¶
func (o *GetVersionDefault) SetPayload(payload *models.DefaultError)
SetPayload sets the payload to the get version default response
func (*GetVersionDefault) SetStatusCode ¶
func (o *GetVersionDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get version default response
func (*GetVersionDefault) WithPayload ¶
func (o *GetVersionDefault) WithPayload(payload *models.DefaultError) *GetVersionDefault
WithPayload adds the payload to the get version default response
func (*GetVersionDefault) WithStatusCode ¶
func (o *GetVersionDefault) WithStatusCode(code int) *GetVersionDefault
WithStatusCode adds the status to the get version default response
func (*GetVersionDefault) WriteResponse ¶
func (o *GetVersionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetVersionHandler ¶
type GetVersionHandler interface {
Handle(GetVersionParams) middleware.Responder
}
GetVersionHandler interface for that can handle valid get version params
type GetVersionHandlerFunc ¶
type GetVersionHandlerFunc func(GetVersionParams) middleware.Responder
GetVersionHandlerFunc turns a function with the right signature into a get version handler
func (GetVersionHandlerFunc) Handle ¶
func (fn GetVersionHandlerFunc) Handle(params GetVersionParams) middleware.Responder
Handle executing the request and returning a response
type GetVersionNotFound ¶
type GetVersionNotFound struct { }
GetVersionNotFound No version on record
swagger:response getVersionNotFound
func NewGetVersionNotFound ¶
func NewGetVersionNotFound() *GetVersionNotFound
NewGetVersionNotFound creates GetVersionNotFound with default headers values
func (*GetVersionNotFound) WriteResponse ¶
func (o *GetVersionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetVersionOK ¶
type GetVersionOK struct { /* In: Body */ Payload *models.ApplicationVersion `json:"body,omitempty"` }
GetVersionOK Current Version Number
swagger:response getVersionOK
func NewGetVersionOK ¶
func NewGetVersionOK() *GetVersionOK
NewGetVersionOK creates GetVersionOK with default headers values
func (*GetVersionOK) SetPayload ¶
func (o *GetVersionOK) SetPayload(payload *models.ApplicationVersion)
SetPayload sets the payload to the get version o k response
func (*GetVersionOK) WithPayload ¶
func (o *GetVersionOK) WithPayload(payload *models.ApplicationVersion) *GetVersionOK
WithPayload adds the payload to the get version o k response
func (*GetVersionOK) WriteResponse ¶
func (o *GetVersionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetVersionParams ¶
type GetVersionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the application. Required: true In: path */ ApplicationID string }
GetVersionParams contains all the bound params for the get version operation typically these are obtained from a http.Request
swagger:parameters getVersion
func NewGetVersionParams ¶
func NewGetVersionParams() GetVersionParams
NewGetVersionParams creates a new GetVersionParams object
There are no default values defined in the spec.
func (*GetVersionParams) BindRequest ¶
func (o *GetVersionParams) 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 NewGetVersionParams() beforehand.
type GetVersionURL ¶
type GetVersionURL struct { ApplicationID string // contains filtered or unexported fields }
GetVersionURL generates an URL for the get version operation
func (*GetVersionURL) Build ¶
func (o *GetVersionURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetVersionURL) BuildFull ¶
func (o *GetVersionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetVersionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetVersionURL) SetBasePath ¶
func (o *GetVersionURL) 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 (*GetVersionURL) String ¶
func (o *GetVersionURL) String() string
String returns the string representation of the path with query string
func (*GetVersionURL) StringFull ¶
func (o *GetVersionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetVersionURL) WithBasePath ¶
func (o *GetVersionURL) WithBasePath(bp string) *GetVersionURL
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