Documentation ¶
Index ¶
- Constants
- type CreateProject
- type CreateProjectCreated
- func (o *CreateProjectCreated) SetPayload(payload *models.Project)
- func (o *CreateProjectCreated) SetXErrorCode(xErrorCode string)
- func (o *CreateProjectCreated) WithPayload(payload *models.Project) *CreateProjectCreated
- func (o *CreateProjectCreated) WithXErrorCode(xErrorCode string) *CreateProjectCreated
- func (o *CreateProjectCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateProjectHandler
- type CreateProjectHandlerFunc
- type CreateProjectInternalServerError
- func (o *CreateProjectInternalServerError) SetPayload(payload *models.Error)
- func (o *CreateProjectInternalServerError) SetXErrorCode(xErrorCode string)
- func (o *CreateProjectInternalServerError) WithPayload(payload *models.Error) *CreateProjectInternalServerError
- func (o *CreateProjectInternalServerError) WithXErrorCode(xErrorCode string) *CreateProjectInternalServerError
- func (o *CreateProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateProjectParams
- type CreateProjectURL
- func (o *CreateProjectURL) Build() (*url.URL, error)
- func (o *CreateProjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateProjectURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateProjectURL) SetBasePath(bp string)
- func (o *CreateProjectURL) String() string
- func (o *CreateProjectURL) StringFull(scheme, host string) string
- func (o *CreateProjectURL) WithBasePath(bp string) *CreateProjectURL
- type ListProjects
- type ListProjectsHandler
- type ListProjectsHandlerFunc
- type ListProjectsInternalServerError
- func (o *ListProjectsInternalServerError) SetPayload(payload *models.Error)
- func (o *ListProjectsInternalServerError) SetXErrorCode(xErrorCode string)
- func (o *ListProjectsInternalServerError) WithPayload(payload *models.Error) *ListProjectsInternalServerError
- func (o *ListProjectsInternalServerError) WithXErrorCode(xErrorCode string) *ListProjectsInternalServerError
- func (o *ListProjectsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListProjectsOK
- type ListProjectsParams
- type ListProjectsURL
- func (o *ListProjectsURL) Build() (*url.URL, error)
- func (o *ListProjectsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListProjectsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListProjectsURL) SetBasePath(bp string)
- func (o *ListProjectsURL) String() string
- func (o *ListProjectsURL) StringFull(scheme, host string) string
- func (o *ListProjectsURL) WithBasePath(bp string) *ListProjectsURL
- type ReadProject
- type ReadProjectHandler
- type ReadProjectHandlerFunc
- type ReadProjectInternalServerError
- func (o *ReadProjectInternalServerError) SetPayload(payload *models.Error)
- func (o *ReadProjectInternalServerError) SetXErrorCode(xErrorCode string)
- func (o *ReadProjectInternalServerError) WithPayload(payload *models.Error) *ReadProjectInternalServerError
- func (o *ReadProjectInternalServerError) WithXErrorCode(xErrorCode string) *ReadProjectInternalServerError
- func (o *ReadProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReadProjectNotFound
- func (o *ReadProjectNotFound) SetPayload(payload *models.Project)
- func (o *ReadProjectNotFound) SetXErrorCode(xErrorCode string)
- func (o *ReadProjectNotFound) WithPayload(payload *models.Project) *ReadProjectNotFound
- func (o *ReadProjectNotFound) WithXErrorCode(xErrorCode string) *ReadProjectNotFound
- func (o *ReadProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReadProjectOK
- func (o *ReadProjectOK) SetPayload(payload *models.Project)
- func (o *ReadProjectOK) SetXErrorCode(xErrorCode string)
- func (o *ReadProjectOK) WithPayload(payload *models.Project) *ReadProjectOK
- func (o *ReadProjectOK) WithXErrorCode(xErrorCode string) *ReadProjectOK
- func (o *ReadProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReadProjectParams
- type ReadProjectURL
- func (o *ReadProjectURL) Build() (*url.URL, error)
- func (o *ReadProjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReadProjectURL) Must(u *url.URL, err error) *url.URL
- func (o *ReadProjectURL) SetBasePath(bp string)
- func (o *ReadProjectURL) String() string
- func (o *ReadProjectURL) StringFull(scheme, host string) string
- func (o *ReadProjectURL) WithBasePath(bp string) *ReadProjectURL
- type UpdateProject
- type UpdateProjectHandler
- type UpdateProjectHandlerFunc
- type UpdateProjectInternalServerError
- func (o *UpdateProjectInternalServerError) SetPayload(payload *models.Error)
- func (o *UpdateProjectInternalServerError) SetXErrorCode(xErrorCode string)
- func (o *UpdateProjectInternalServerError) WithPayload(payload *models.Error) *UpdateProjectInternalServerError
- func (o *UpdateProjectInternalServerError) WithXErrorCode(xErrorCode string) *UpdateProjectInternalServerError
- func (o *UpdateProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateProjectNotFound
- func (o *UpdateProjectNotFound) SetPayload(payload *models.Project)
- func (o *UpdateProjectNotFound) SetXErrorCode(xErrorCode string)
- func (o *UpdateProjectNotFound) WithPayload(payload *models.Project) *UpdateProjectNotFound
- func (o *UpdateProjectNotFound) WithXErrorCode(xErrorCode string) *UpdateProjectNotFound
- func (o *UpdateProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateProjectOK
- func (o *UpdateProjectOK) SetPayload(payload *models.Project)
- func (o *UpdateProjectOK) SetXErrorCode(xErrorCode string)
- func (o *UpdateProjectOK) WithPayload(payload *models.Project) *UpdateProjectOK
- func (o *UpdateProjectOK) WithXErrorCode(xErrorCode string) *UpdateProjectOK
- func (o *UpdateProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateProjectParams
- type UpdateProjectURL
- func (o *UpdateProjectURL) Build() (*url.URL, error)
- func (o *UpdateProjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateProjectURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateProjectURL) SetBasePath(bp string)
- func (o *UpdateProjectURL) String() string
- func (o *UpdateProjectURL) StringFull(scheme, host string) string
- func (o *UpdateProjectURL) WithBasePath(bp string) *UpdateProjectURL
Constants ¶
const CreateProjectCreatedCode int = 201
CreateProjectCreatedCode is the HTTP code returned for type CreateProjectCreated
const CreateProjectInternalServerErrorCode int = 500
CreateProjectInternalServerErrorCode is the HTTP code returned for type CreateProjectInternalServerError
const ListProjectsInternalServerErrorCode int = 500
ListProjectsInternalServerErrorCode is the HTTP code returned for type ListProjectsInternalServerError
const ListProjectsOKCode int = 200
ListProjectsOKCode is the HTTP code returned for type ListProjectsOK
const ReadProjectInternalServerErrorCode int = 500
ReadProjectInternalServerErrorCode is the HTTP code returned for type ReadProjectInternalServerError
const ReadProjectNotFoundCode int = 404
ReadProjectNotFoundCode is the HTTP code returned for type ReadProjectNotFound
const ReadProjectOKCode int = 200
ReadProjectOKCode is the HTTP code returned for type ReadProjectOK
const UpdateProjectInternalServerErrorCode int = 500
UpdateProjectInternalServerErrorCode is the HTTP code returned for type UpdateProjectInternalServerError
const UpdateProjectNotFoundCode int = 404
UpdateProjectNotFoundCode is the HTTP code returned for type UpdateProjectNotFound
const UpdateProjectOKCode int = 200
UpdateProjectOKCode is the HTTP code returned for type UpdateProjectOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateProject ¶
type CreateProject struct { Context *middleware.Context Handler CreateProjectHandler }
CreateProject swagger:route POST /projects project createProject
Create new projects
func NewCreateProject ¶
func NewCreateProject(ctx *middleware.Context, handler CreateProjectHandler) *CreateProject
NewCreateProject creates a new http.Handler for the create project operation
func (*CreateProject) ServeHTTP ¶
func (o *CreateProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateProjectCreated ¶
type CreateProjectCreated struct { /* */ XErrorCode string `json:"X-Error-Code"` /* In: Body */ Payload *models.Project `json:"body,omitempty"` }
CreateProjectCreated Project response
swagger:response createProjectCreated
func NewCreateProjectCreated ¶
func NewCreateProjectCreated() *CreateProjectCreated
NewCreateProjectCreated creates CreateProjectCreated with default headers values
func (*CreateProjectCreated) SetPayload ¶
func (o *CreateProjectCreated) SetPayload(payload *models.Project)
SetPayload sets the payload to the create project created response
func (*CreateProjectCreated) SetXErrorCode ¶
func (o *CreateProjectCreated) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the create project created response
func (*CreateProjectCreated) WithPayload ¶
func (o *CreateProjectCreated) WithPayload(payload *models.Project) *CreateProjectCreated
WithPayload adds the payload to the create project created response
func (*CreateProjectCreated) WithXErrorCode ¶
func (o *CreateProjectCreated) WithXErrorCode(xErrorCode string) *CreateProjectCreated
WithXErrorCode adds the xErrorCode to the create project created response
func (*CreateProjectCreated) WriteResponse ¶
func (o *CreateProjectCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateProjectHandler ¶
type CreateProjectHandler interface {
Handle(CreateProjectParams) middleware.Responder
}
CreateProjectHandler interface for that can handle valid create project params
type CreateProjectHandlerFunc ¶
type CreateProjectHandlerFunc func(CreateProjectParams) middleware.Responder
CreateProjectHandlerFunc turns a function with the right signature into a create project handler
func (CreateProjectHandlerFunc) Handle ¶
func (fn CreateProjectHandlerFunc) Handle(params CreateProjectParams) middleware.Responder
Handle executing the request and returning a response
type CreateProjectInternalServerError ¶
type CreateProjectInternalServerError struct { /* */ XErrorCode string `json:"X-Error-Code"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateProjectInternalServerError Error response
swagger:response createProjectInternalServerError
func NewCreateProjectInternalServerError ¶
func NewCreateProjectInternalServerError() *CreateProjectInternalServerError
NewCreateProjectInternalServerError creates CreateProjectInternalServerError with default headers values
func (*CreateProjectInternalServerError) SetPayload ¶
func (o *CreateProjectInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create project internal server error response
func (*CreateProjectInternalServerError) SetXErrorCode ¶
func (o *CreateProjectInternalServerError) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the create project internal server error response
func (*CreateProjectInternalServerError) WithPayload ¶
func (o *CreateProjectInternalServerError) WithPayload(payload *models.Error) *CreateProjectInternalServerError
WithPayload adds the payload to the create project internal server error response
func (*CreateProjectInternalServerError) WithXErrorCode ¶
func (o *CreateProjectInternalServerError) WithXErrorCode(xErrorCode string) *CreateProjectInternalServerError
WithXErrorCode adds the xErrorCode to the create project internal server error response
func (*CreateProjectInternalServerError) WriteResponse ¶
func (o *CreateProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateProjectParams ¶
type CreateProjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.Project }
CreateProjectParams contains all the bound params for the create project operation typically these are obtained from a http.Request
swagger:parameters createProject
func NewCreateProjectParams ¶
func NewCreateProjectParams() CreateProjectParams
NewCreateProjectParams creates a new CreateProjectParams object no default values defined in spec.
func (*CreateProjectParams) BindRequest ¶
func (o *CreateProjectParams) 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 NewCreateProjectParams() beforehand.
type CreateProjectURL ¶ added in v0.3.0
type CreateProjectURL struct {
// contains filtered or unexported fields
}
CreateProjectURL generates an URL for the create project operation
func (*CreateProjectURL) Build ¶ added in v0.3.0
func (o *CreateProjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateProjectURL) BuildFull ¶ added in v0.3.0
func (o *CreateProjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateProjectURL) Must ¶ added in v0.3.0
Must is a helper function to panic when the url builder returns an error
func (*CreateProjectURL) SetBasePath ¶ added in v0.3.0
func (o *CreateProjectURL) 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 (*CreateProjectURL) String ¶ added in v0.3.0
func (o *CreateProjectURL) String() string
String returns the string representation of the path with query string
func (*CreateProjectURL) StringFull ¶ added in v0.3.0
func (o *CreateProjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateProjectURL) WithBasePath ¶ added in v0.3.0
func (o *CreateProjectURL) WithBasePath(bp string) *CreateProjectURL
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 ListProjects ¶
type ListProjects struct { Context *middleware.Context Handler ListProjectsHandler }
ListProjects swagger:route GET /projects project listProjects
List the projects ¶
Get all projects list.
func NewListProjects ¶
func NewListProjects(ctx *middleware.Context, handler ListProjectsHandler) *ListProjects
NewListProjects creates a new http.Handler for the list projects operation
func (*ListProjects) ServeHTTP ¶
func (o *ListProjects) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListProjectsHandler ¶
type ListProjectsHandler interface {
Handle(ListProjectsParams) middleware.Responder
}
ListProjectsHandler interface for that can handle valid list projects params
type ListProjectsHandlerFunc ¶
type ListProjectsHandlerFunc func(ListProjectsParams) middleware.Responder
ListProjectsHandlerFunc turns a function with the right signature into a list projects handler
func (ListProjectsHandlerFunc) Handle ¶
func (fn ListProjectsHandlerFunc) Handle(params ListProjectsParams) middleware.Responder
Handle executing the request and returning a response
type ListProjectsInternalServerError ¶
type ListProjectsInternalServerError struct { /* */ XErrorCode string `json:"X-Error-Code"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ListProjectsInternalServerError Error response
swagger:response listProjectsInternalServerError
func NewListProjectsInternalServerError ¶
func NewListProjectsInternalServerError() *ListProjectsInternalServerError
NewListProjectsInternalServerError creates ListProjectsInternalServerError with default headers values
func (*ListProjectsInternalServerError) SetPayload ¶
func (o *ListProjectsInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the list projects internal server error response
func (*ListProjectsInternalServerError) SetXErrorCode ¶
func (o *ListProjectsInternalServerError) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the list projects internal server error response
func (*ListProjectsInternalServerError) WithPayload ¶
func (o *ListProjectsInternalServerError) WithPayload(payload *models.Error) *ListProjectsInternalServerError
WithPayload adds the payload to the list projects internal server error response
func (*ListProjectsInternalServerError) WithXErrorCode ¶
func (o *ListProjectsInternalServerError) WithXErrorCode(xErrorCode string) *ListProjectsInternalServerError
WithXErrorCode adds the xErrorCode to the list projects internal server error response
func (*ListProjectsInternalServerError) WriteResponse ¶
func (o *ListProjectsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListProjectsOK ¶
type ListProjectsOK struct { /* In: Body */ Payload models.ListProjectsOKBody `json:"body,omitempty"` }
ListProjectsOK Successful response
swagger:response listProjectsOK
func NewListProjectsOK ¶
func NewListProjectsOK() *ListProjectsOK
NewListProjectsOK creates ListProjectsOK with default headers values
func (*ListProjectsOK) SetPayload ¶
func (o *ListProjectsOK) SetPayload(payload models.ListProjectsOKBody)
SetPayload sets the payload to the list projects o k response
func (*ListProjectsOK) WithPayload ¶
func (o *ListProjectsOK) WithPayload(payload models.ListProjectsOKBody) *ListProjectsOK
WithPayload adds the payload to the list projects o k response
func (*ListProjectsOK) WriteResponse ¶
func (o *ListProjectsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListProjectsParams ¶
ListProjectsParams contains all the bound params for the list projects operation typically these are obtained from a http.Request
swagger:parameters listProjects
func NewListProjectsParams ¶
func NewListProjectsParams() ListProjectsParams
NewListProjectsParams creates a new ListProjectsParams object no default values defined in spec.
func (*ListProjectsParams) BindRequest ¶
func (o *ListProjectsParams) 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 NewListProjectsParams() beforehand.
type ListProjectsURL ¶ added in v0.3.0
type ListProjectsURL struct {
// contains filtered or unexported fields
}
ListProjectsURL generates an URL for the list projects operation
func (*ListProjectsURL) Build ¶ added in v0.3.0
func (o *ListProjectsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListProjectsURL) BuildFull ¶ added in v0.3.0
func (o *ListProjectsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListProjectsURL) Must ¶ added in v0.3.0
Must is a helper function to panic when the url builder returns an error
func (*ListProjectsURL) SetBasePath ¶ added in v0.3.0
func (o *ListProjectsURL) 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 (*ListProjectsURL) String ¶ added in v0.3.0
func (o *ListProjectsURL) String() string
String returns the string representation of the path with query string
func (*ListProjectsURL) StringFull ¶ added in v0.3.0
func (o *ListProjectsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListProjectsURL) WithBasePath ¶ added in v0.3.0
func (o *ListProjectsURL) WithBasePath(bp string) *ListProjectsURL
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 ReadProject ¶
type ReadProject struct { Context *middleware.Context Handler ReadProjectHandler }
ReadProject swagger:route GET /projects/{id} project readProject
Read the projects ¶
Get all projects list
func NewReadProject ¶
func NewReadProject(ctx *middleware.Context, handler ReadProjectHandler) *ReadProject
NewReadProject creates a new http.Handler for the read project operation
func (*ReadProject) ServeHTTP ¶
func (o *ReadProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReadProjectHandler ¶
type ReadProjectHandler interface {
Handle(ReadProjectParams) middleware.Responder
}
ReadProjectHandler interface for that can handle valid read project params
type ReadProjectHandlerFunc ¶
type ReadProjectHandlerFunc func(ReadProjectParams) middleware.Responder
ReadProjectHandlerFunc turns a function with the right signature into a read project handler
func (ReadProjectHandlerFunc) Handle ¶
func (fn ReadProjectHandlerFunc) Handle(params ReadProjectParams) middleware.Responder
Handle executing the request and returning a response
type ReadProjectInternalServerError ¶
type ReadProjectInternalServerError struct { /* */ XErrorCode string `json:"X-Error-Code"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReadProjectInternalServerError Error response
swagger:response readProjectInternalServerError
func NewReadProjectInternalServerError ¶
func NewReadProjectInternalServerError() *ReadProjectInternalServerError
NewReadProjectInternalServerError creates ReadProjectInternalServerError with default headers values
func (*ReadProjectInternalServerError) SetPayload ¶
func (o *ReadProjectInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the read project internal server error response
func (*ReadProjectInternalServerError) SetXErrorCode ¶
func (o *ReadProjectInternalServerError) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the read project internal server error response
func (*ReadProjectInternalServerError) WithPayload ¶
func (o *ReadProjectInternalServerError) WithPayload(payload *models.Error) *ReadProjectInternalServerError
WithPayload adds the payload to the read project internal server error response
func (*ReadProjectInternalServerError) WithXErrorCode ¶
func (o *ReadProjectInternalServerError) WithXErrorCode(xErrorCode string) *ReadProjectInternalServerError
WithXErrorCode adds the xErrorCode to the read project internal server error response
func (*ReadProjectInternalServerError) WriteResponse ¶
func (o *ReadProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadProjectNotFound ¶
type ReadProjectNotFound struct { /* */ XErrorCode string `json:"X-Error-Code"` /* In: Body */ Payload *models.Project `json:"body,omitempty"` }
ReadProjectNotFound Project response
swagger:response readProjectNotFound
func NewReadProjectNotFound ¶
func NewReadProjectNotFound() *ReadProjectNotFound
NewReadProjectNotFound creates ReadProjectNotFound with default headers values
func (*ReadProjectNotFound) SetPayload ¶
func (o *ReadProjectNotFound) SetPayload(payload *models.Project)
SetPayload sets the payload to the read project not found response
func (*ReadProjectNotFound) SetXErrorCode ¶
func (o *ReadProjectNotFound) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the read project not found response
func (*ReadProjectNotFound) WithPayload ¶
func (o *ReadProjectNotFound) WithPayload(payload *models.Project) *ReadProjectNotFound
WithPayload adds the payload to the read project not found response
func (*ReadProjectNotFound) WithXErrorCode ¶
func (o *ReadProjectNotFound) WithXErrorCode(xErrorCode string) *ReadProjectNotFound
WithXErrorCode adds the xErrorCode to the read project not found response
func (*ReadProjectNotFound) WriteResponse ¶
func (o *ReadProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadProjectOK ¶
type ReadProjectOK struct { /* */ XErrorCode string `json:"X-Error-Code"` /* In: Body */ Payload *models.Project `json:"body,omitempty"` }
ReadProjectOK Project response
swagger:response readProjectOK
func NewReadProjectOK ¶
func NewReadProjectOK() *ReadProjectOK
NewReadProjectOK creates ReadProjectOK with default headers values
func (*ReadProjectOK) SetPayload ¶
func (o *ReadProjectOK) SetPayload(payload *models.Project)
SetPayload sets the payload to the read project o k response
func (*ReadProjectOK) SetXErrorCode ¶
func (o *ReadProjectOK) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the read project o k response
func (*ReadProjectOK) WithPayload ¶
func (o *ReadProjectOK) WithPayload(payload *models.Project) *ReadProjectOK
WithPayload adds the payload to the read project o k response
func (*ReadProjectOK) WithXErrorCode ¶
func (o *ReadProjectOK) WithXErrorCode(xErrorCode string) *ReadProjectOK
WithXErrorCode adds the xErrorCode to the read project o k response
func (*ReadProjectOK) WriteResponse ¶
func (o *ReadProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadProjectParams ¶
type ReadProjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID uint64 }
ReadProjectParams contains all the bound params for the read project operation typically these are obtained from a http.Request
swagger:parameters readProject
func NewReadProjectParams ¶
func NewReadProjectParams() ReadProjectParams
NewReadProjectParams creates a new ReadProjectParams object no default values defined in spec.
func (*ReadProjectParams) BindRequest ¶
func (o *ReadProjectParams) 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 NewReadProjectParams() beforehand.
type ReadProjectURL ¶ added in v0.3.0
type ReadProjectURL struct { ID uint64 // contains filtered or unexported fields }
ReadProjectURL generates an URL for the read project operation
func (*ReadProjectURL) Build ¶ added in v0.3.0
func (o *ReadProjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReadProjectURL) BuildFull ¶ added in v0.3.0
func (o *ReadProjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReadProjectURL) Must ¶ added in v0.3.0
Must is a helper function to panic when the url builder returns an error
func (*ReadProjectURL) SetBasePath ¶ added in v0.3.0
func (o *ReadProjectURL) 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 (*ReadProjectURL) String ¶ added in v0.3.0
func (o *ReadProjectURL) String() string
String returns the string representation of the path with query string
func (*ReadProjectURL) StringFull ¶ added in v0.3.0
func (o *ReadProjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReadProjectURL) WithBasePath ¶ added in v0.3.0
func (o *ReadProjectURL) WithBasePath(bp string) *ReadProjectURL
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 UpdateProject ¶
type UpdateProject struct { Context *middleware.Context Handler UpdateProjectHandler }
UpdateProject swagger:route PUT /projects/{id} project updateProject
UpdateProject update project API
func NewUpdateProject ¶
func NewUpdateProject(ctx *middleware.Context, handler UpdateProjectHandler) *UpdateProject
NewUpdateProject creates a new http.Handler for the update project operation
func (*UpdateProject) ServeHTTP ¶
func (o *UpdateProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateProjectHandler ¶
type UpdateProjectHandler interface {
Handle(UpdateProjectParams) middleware.Responder
}
UpdateProjectHandler interface for that can handle valid update project params
type UpdateProjectHandlerFunc ¶
type UpdateProjectHandlerFunc func(UpdateProjectParams) middleware.Responder
UpdateProjectHandlerFunc turns a function with the right signature into a update project handler
func (UpdateProjectHandlerFunc) Handle ¶
func (fn UpdateProjectHandlerFunc) Handle(params UpdateProjectParams) middleware.Responder
Handle executing the request and returning a response
type UpdateProjectInternalServerError ¶
type UpdateProjectInternalServerError struct { /* */ XErrorCode string `json:"X-Error-Code"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
UpdateProjectInternalServerError Error response
swagger:response updateProjectInternalServerError
func NewUpdateProjectInternalServerError ¶
func NewUpdateProjectInternalServerError() *UpdateProjectInternalServerError
NewUpdateProjectInternalServerError creates UpdateProjectInternalServerError with default headers values
func (*UpdateProjectInternalServerError) SetPayload ¶
func (o *UpdateProjectInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the update project internal server error response
func (*UpdateProjectInternalServerError) SetXErrorCode ¶
func (o *UpdateProjectInternalServerError) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the update project internal server error response
func (*UpdateProjectInternalServerError) WithPayload ¶
func (o *UpdateProjectInternalServerError) WithPayload(payload *models.Error) *UpdateProjectInternalServerError
WithPayload adds the payload to the update project internal server error response
func (*UpdateProjectInternalServerError) WithXErrorCode ¶
func (o *UpdateProjectInternalServerError) WithXErrorCode(xErrorCode string) *UpdateProjectInternalServerError
WithXErrorCode adds the xErrorCode to the update project internal server error response
func (*UpdateProjectInternalServerError) WriteResponse ¶
func (o *UpdateProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectNotFound ¶
type UpdateProjectNotFound struct { /* */ XErrorCode string `json:"X-Error-Code"` /* In: Body */ Payload *models.Project `json:"body,omitempty"` }
UpdateProjectNotFound Project response
swagger:response updateProjectNotFound
func NewUpdateProjectNotFound ¶
func NewUpdateProjectNotFound() *UpdateProjectNotFound
NewUpdateProjectNotFound creates UpdateProjectNotFound with default headers values
func (*UpdateProjectNotFound) SetPayload ¶
func (o *UpdateProjectNotFound) SetPayload(payload *models.Project)
SetPayload sets the payload to the update project not found response
func (*UpdateProjectNotFound) SetXErrorCode ¶
func (o *UpdateProjectNotFound) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the update project not found response
func (*UpdateProjectNotFound) WithPayload ¶
func (o *UpdateProjectNotFound) WithPayload(payload *models.Project) *UpdateProjectNotFound
WithPayload adds the payload to the update project not found response
func (*UpdateProjectNotFound) WithXErrorCode ¶
func (o *UpdateProjectNotFound) WithXErrorCode(xErrorCode string) *UpdateProjectNotFound
WithXErrorCode adds the xErrorCode to the update project not found response
func (*UpdateProjectNotFound) WriteResponse ¶
func (o *UpdateProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectOK ¶
type UpdateProjectOK struct { /* */ XErrorCode string `json:"X-Error-Code"` /* In: Body */ Payload *models.Project `json:"body,omitempty"` }
UpdateProjectOK Project response
swagger:response updateProjectOK
func NewUpdateProjectOK ¶
func NewUpdateProjectOK() *UpdateProjectOK
NewUpdateProjectOK creates UpdateProjectOK with default headers values
func (*UpdateProjectOK) SetPayload ¶
func (o *UpdateProjectOK) SetPayload(payload *models.Project)
SetPayload sets the payload to the update project o k response
func (*UpdateProjectOK) SetXErrorCode ¶
func (o *UpdateProjectOK) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the update project o k response
func (*UpdateProjectOK) WithPayload ¶
func (o *UpdateProjectOK) WithPayload(payload *models.Project) *UpdateProjectOK
WithPayload adds the payload to the update project o k response
func (*UpdateProjectOK) WithXErrorCode ¶
func (o *UpdateProjectOK) WithXErrorCode(xErrorCode string) *UpdateProjectOK
WithXErrorCode adds the xErrorCode to the update project o k response
func (*UpdateProjectOK) WriteResponse ¶
func (o *UpdateProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectParams ¶
type UpdateProjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.Project /* Required: true In: path */ ID uint64 }
UpdateProjectParams contains all the bound params for the update project operation typically these are obtained from a http.Request
swagger:parameters updateProject
func NewUpdateProjectParams ¶
func NewUpdateProjectParams() UpdateProjectParams
NewUpdateProjectParams creates a new UpdateProjectParams object no default values defined in spec.
func (*UpdateProjectParams) BindRequest ¶
func (o *UpdateProjectParams) 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 NewUpdateProjectParams() beforehand.
type UpdateProjectURL ¶ added in v0.3.0
type UpdateProjectURL struct { ID uint64 // contains filtered or unexported fields }
UpdateProjectURL generates an URL for the update project operation
func (*UpdateProjectURL) Build ¶ added in v0.3.0
func (o *UpdateProjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateProjectURL) BuildFull ¶ added in v0.3.0
func (o *UpdateProjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateProjectURL) Must ¶ added in v0.3.0
Must is a helper function to panic when the url builder returns an error
func (*UpdateProjectURL) SetBasePath ¶ added in v0.3.0
func (o *UpdateProjectURL) 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 (*UpdateProjectURL) String ¶ added in v0.3.0
func (o *UpdateProjectURL) String() string
String returns the string representation of the path with query string
func (*UpdateProjectURL) StringFull ¶ added in v0.3.0
func (o *UpdateProjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateProjectURL) WithBasePath ¶ added in v0.3.0
func (o *UpdateProjectURL) WithBasePath(bp string) *UpdateProjectURL
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
Source Files ¶
- create_project.go
- create_project_parameters.go
- create_project_responses.go
- create_project_urlbuilder.go
- list_projects.go
- list_projects_parameters.go
- list_projects_responses.go
- list_projects_urlbuilder.go
- read_project.go
- read_project_parameters.go
- read_project_responses.go
- read_project_urlbuilder.go
- update_project.go
- update_project_parameters.go
- update_project_responses.go
- update_project_urlbuilder.go