Documentation ¶
Index ¶
- Constants
- type CreateProject
- type CreateProjectCreated
- type CreateProjectDefault
- func (o *CreateProjectDefault) SetPayload(payload *models.Error)
- func (o *CreateProjectDefault) SetStatusCode(code int)
- func (o *CreateProjectDefault) WithPayload(payload *models.Error) *CreateProjectDefault
- func (o *CreateProjectDefault) WithStatusCode(code int) *CreateProjectDefault
- func (o *CreateProjectDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateProjectHandler
- type CreateProjectHandlerFunc
- 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 DeleteProject
- type DeleteProjectDefault
- func (o *DeleteProjectDefault) SetPayload(payload *models.Error)
- func (o *DeleteProjectDefault) SetStatusCode(code int)
- func (o *DeleteProjectDefault) WithPayload(payload *models.Error) *DeleteProjectDefault
- func (o *DeleteProjectDefault) WithStatusCode(code int) *DeleteProjectDefault
- func (o *DeleteProjectDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteProjectHandler
- type DeleteProjectHandlerFunc
- type DeleteProjectOK
- type DeleteProjectParams
- type DeleteProjectURL
- func (o *DeleteProjectURL) Build() (*url.URL, error)
- func (o *DeleteProjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteProjectURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteProjectURL) SetBasePath(bp string)
- func (o *DeleteProjectURL) String() string
- func (o *DeleteProjectURL) StringFull(scheme, host string) string
- func (o *DeleteProjectURL) WithBasePath(bp string) *DeleteProjectURL
- type GetProject
- type GetProjectDefault
- func (o *GetProjectDefault) SetPayload(payload *models.Error)
- func (o *GetProjectDefault) SetStatusCode(code int)
- func (o *GetProjectDefault) WithPayload(payload *models.Error) *GetProjectDefault
- func (o *GetProjectDefault) WithStatusCode(code int) *GetProjectDefault
- func (o *GetProjectDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetProjectHandler
- type GetProjectHandlerFunc
- type GetProjectOK
- type GetProjectParams
- type GetProjectURL
- func (o *GetProjectURL) Build() (*url.URL, error)
- func (o *GetProjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProjectURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProjectURL) SetBasePath(bp string)
- func (o *GetProjectURL) String() string
- func (o *GetProjectURL) StringFull(scheme, host string) string
- func (o *GetProjectURL) WithBasePath(bp string) *GetProjectURL
- type GetProjects
- type GetProjectsDefault
- func (o *GetProjectsDefault) SetPayload(payload *models.Error)
- func (o *GetProjectsDefault) SetStatusCode(code int)
- func (o *GetProjectsDefault) WithPayload(payload *models.Error) *GetProjectsDefault
- func (o *GetProjectsDefault) WithStatusCode(code int) *GetProjectsDefault
- func (o *GetProjectsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetProjectsHandler
- type GetProjectsHandlerFunc
- type GetProjectsOK
- type GetProjectsParams
- type GetProjectsURL
- func (o *GetProjectsURL) Build() (*url.URL, error)
- func (o *GetProjectsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProjectsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProjectsURL) SetBasePath(bp string)
- func (o *GetProjectsURL) String() string
- func (o *GetProjectsURL) StringFull(scheme, host string) string
- func (o *GetProjectsURL) WithBasePath(bp string) *GetProjectsURL
- type UpdateProject
- type UpdateProjectDefault
- func (o *UpdateProjectDefault) SetPayload(payload *models.Error)
- func (o *UpdateProjectDefault) SetStatusCode(code int)
- func (o *UpdateProjectDefault) WithPayload(payload *models.Error) *UpdateProjectDefault
- func (o *UpdateProjectDefault) WithStatusCode(code int) *UpdateProjectDefault
- func (o *UpdateProjectDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateProjectHandler
- type UpdateProjectHandlerFunc
- type UpdateProjectOK
- 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 DeleteProjectOKCode int = 200
DeleteProjectOKCode is the HTTP code returned for type DeleteProjectOK
const GetProjectOKCode int = 200
GetProjectOKCode is the HTTP code returned for type GetProjectOK
const GetProjectsOKCode int = 200
GetProjectsOKCode is the HTTP code returned for type GetProjectsOK
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 a project
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 { /* In: Body */ Payload *models.ProjectResponse `json:"body,omitempty"` }
CreateProjectCreated Created
swagger:response createProjectCreated
func NewCreateProjectCreated ¶
func NewCreateProjectCreated() *CreateProjectCreated
NewCreateProjectCreated creates CreateProjectCreated with default headers values
func (*CreateProjectCreated) SetPayload ¶
func (o *CreateProjectCreated) SetPayload(payload *models.ProjectResponse)
SetPayload sets the payload to the create project created response
func (*CreateProjectCreated) WithPayload ¶
func (o *CreateProjectCreated) WithPayload(payload *models.ProjectResponse) *CreateProjectCreated
WithPayload adds the payload to the create project created response
func (*CreateProjectCreated) WriteResponse ¶
func (o *CreateProjectCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateProjectDefault ¶
type CreateProjectDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateProjectDefault unexpected error
swagger:response createProjectDefault
func NewCreateProjectDefault ¶
func NewCreateProjectDefault(code int) *CreateProjectDefault
NewCreateProjectDefault creates CreateProjectDefault with default headers values
func (*CreateProjectDefault) SetPayload ¶
func (o *CreateProjectDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create project default response
func (*CreateProjectDefault) SetStatusCode ¶
func (o *CreateProjectDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create project default response
func (*CreateProjectDefault) WithPayload ¶
func (o *CreateProjectDefault) WithPayload(payload *models.Error) *CreateProjectDefault
WithPayload adds the payload to the create project default response
func (*CreateProjectDefault) WithStatusCode ¶
func (o *CreateProjectDefault) WithStatusCode(code int) *CreateProjectDefault
WithStatusCode adds the status to the create project default response
func (*CreateProjectDefault) WriteResponse ¶
func (o *CreateProjectDefault) 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 CreateProjectParams ¶
type CreateProjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The project details Required: true In: body */ Body *models.ProjectRequest }
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 ¶
type CreateProjectURL struct {
// contains filtered or unexported fields
}
CreateProjectURL generates an URL for the create project operation
func (*CreateProjectURL) Build ¶
func (o *CreateProjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateProjectURL) BuildFull ¶
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 ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateProjectURL) SetBasePath ¶
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 ¶
func (o *CreateProjectURL) String() string
String returns the string representation of the path with query string
func (*CreateProjectURL) StringFull ¶
func (o *CreateProjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateProjectURL) WithBasePath ¶
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 DeleteProject ¶
type DeleteProject struct { Context *middleware.Context Handler DeleteProjectHandler }
DeleteProject swagger:route DELETE /projects/{id} project deleteProject
Delete a project
func NewDeleteProject ¶
func NewDeleteProject(ctx *middleware.Context, handler DeleteProjectHandler) *DeleteProject
NewDeleteProject creates a new http.Handler for the delete project operation
func (*DeleteProject) ServeHTTP ¶
func (o *DeleteProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteProjectDefault ¶
type DeleteProjectDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteProjectDefault unexpected error
swagger:response deleteProjectDefault
func NewDeleteProjectDefault ¶
func NewDeleteProjectDefault(code int) *DeleteProjectDefault
NewDeleteProjectDefault creates DeleteProjectDefault with default headers values
func (*DeleteProjectDefault) SetPayload ¶
func (o *DeleteProjectDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete project default response
func (*DeleteProjectDefault) SetStatusCode ¶
func (o *DeleteProjectDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete project default response
func (*DeleteProjectDefault) WithPayload ¶
func (o *DeleteProjectDefault) WithPayload(payload *models.Error) *DeleteProjectDefault
WithPayload adds the payload to the delete project default response
func (*DeleteProjectDefault) WithStatusCode ¶
func (o *DeleteProjectDefault) WithStatusCode(code int) *DeleteProjectDefault
WithStatusCode adds the status to the delete project default response
func (*DeleteProjectDefault) WriteResponse ¶
func (o *DeleteProjectDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProjectHandler ¶
type DeleteProjectHandler interface {
Handle(DeleteProjectParams) middleware.Responder
}
DeleteProjectHandler interface for that can handle valid delete project params
type DeleteProjectHandlerFunc ¶
type DeleteProjectHandlerFunc func(DeleteProjectParams) middleware.Responder
DeleteProjectHandlerFunc turns a function with the right signature into a delete project handler
func (DeleteProjectHandlerFunc) Handle ¶
func (fn DeleteProjectHandlerFunc) Handle(params DeleteProjectParams) middleware.Responder
Handle executing the request and returning a response
type DeleteProjectOK ¶
type DeleteProjectOK struct { /* In: Body */ Payload *models.ProjectResponse `json:"body,omitempty"` }
DeleteProjectOK The project details
swagger:response deleteProjectOK
func NewDeleteProjectOK ¶
func NewDeleteProjectOK() *DeleteProjectOK
NewDeleteProjectOK creates DeleteProjectOK with default headers values
func (*DeleteProjectOK) SetPayload ¶
func (o *DeleteProjectOK) SetPayload(payload *models.ProjectResponse)
SetPayload sets the payload to the delete project o k response
func (*DeleteProjectOK) WithPayload ¶
func (o *DeleteProjectOK) WithPayload(payload *models.ProjectResponse) *DeleteProjectOK
WithPayload adds the payload to the delete project o k response
func (*DeleteProjectOK) WriteResponse ¶
func (o *DeleteProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProjectParams ¶
type DeleteProjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The project id Required: true In: path */ ID string }
DeleteProjectParams contains all the bound params for the delete project operation typically these are obtained from a http.Request
swagger:parameters deleteProject
func NewDeleteProjectParams ¶
func NewDeleteProjectParams() DeleteProjectParams
NewDeleteProjectParams creates a new DeleteProjectParams object no default values defined in spec.
func (*DeleteProjectParams) BindRequest ¶
func (o *DeleteProjectParams) 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 NewDeleteProjectParams() beforehand.
type DeleteProjectURL ¶
type DeleteProjectURL struct { ID string // contains filtered or unexported fields }
DeleteProjectURL generates an URL for the delete project operation
func (*DeleteProjectURL) Build ¶
func (o *DeleteProjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteProjectURL) BuildFull ¶
func (o *DeleteProjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteProjectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteProjectURL) SetBasePath ¶
func (o *DeleteProjectURL) 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 (*DeleteProjectURL) String ¶
func (o *DeleteProjectURL) String() string
String returns the string representation of the path with query string
func (*DeleteProjectURL) StringFull ¶
func (o *DeleteProjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteProjectURL) WithBasePath ¶
func (o *DeleteProjectURL) WithBasePath(bp string) *DeleteProjectURL
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 GetProject ¶
type GetProject struct { Context *middleware.Context Handler GetProjectHandler }
GetProject swagger:route GET /projects/{id} project getProject
Get a project
func NewGetProject ¶
func NewGetProject(ctx *middleware.Context, handler GetProjectHandler) *GetProject
NewGetProject creates a new http.Handler for the get project operation
func (*GetProject) ServeHTTP ¶
func (o *GetProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProjectDefault ¶
type GetProjectDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetProjectDefault unexpected error
swagger:response getProjectDefault
func NewGetProjectDefault ¶
func NewGetProjectDefault(code int) *GetProjectDefault
NewGetProjectDefault creates GetProjectDefault with default headers values
func (*GetProjectDefault) SetPayload ¶
func (o *GetProjectDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get project default response
func (*GetProjectDefault) SetStatusCode ¶
func (o *GetProjectDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get project default response
func (*GetProjectDefault) WithPayload ¶
func (o *GetProjectDefault) WithPayload(payload *models.Error) *GetProjectDefault
WithPayload adds the payload to the get project default response
func (*GetProjectDefault) WithStatusCode ¶
func (o *GetProjectDefault) WithStatusCode(code int) *GetProjectDefault
WithStatusCode adds the status to the get project default response
func (*GetProjectDefault) WriteResponse ¶
func (o *GetProjectDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectHandler ¶
type GetProjectHandler interface {
Handle(GetProjectParams) middleware.Responder
}
GetProjectHandler interface for that can handle valid get project params
type GetProjectHandlerFunc ¶
type GetProjectHandlerFunc func(GetProjectParams) middleware.Responder
GetProjectHandlerFunc turns a function with the right signature into a get project handler
func (GetProjectHandlerFunc) Handle ¶
func (fn GetProjectHandlerFunc) Handle(params GetProjectParams) middleware.Responder
Handle executing the request and returning a response
type GetProjectOK ¶
type GetProjectOK struct { /* In: Body */ Payload *models.ProjectResponse `json:"body,omitempty"` }
GetProjectOK The project details
swagger:response getProjectOK
func NewGetProjectOK ¶
func NewGetProjectOK() *GetProjectOK
NewGetProjectOK creates GetProjectOK with default headers values
func (*GetProjectOK) SetPayload ¶
func (o *GetProjectOK) SetPayload(payload *models.ProjectResponse)
SetPayload sets the payload to the get project o k response
func (*GetProjectOK) WithPayload ¶
func (o *GetProjectOK) WithPayload(payload *models.ProjectResponse) *GetProjectOK
WithPayload adds the payload to the get project o k response
func (*GetProjectOK) WriteResponse ¶
func (o *GetProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectParams ¶
type GetProjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The project id Required: true In: path */ ID string }
GetProjectParams contains all the bound params for the get project operation typically these are obtained from a http.Request
swagger:parameters getProject
func NewGetProjectParams ¶
func NewGetProjectParams() GetProjectParams
NewGetProjectParams creates a new GetProjectParams object no default values defined in spec.
func (*GetProjectParams) BindRequest ¶
func (o *GetProjectParams) 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 NewGetProjectParams() beforehand.
type GetProjectURL ¶
type GetProjectURL struct { ID string // contains filtered or unexported fields }
GetProjectURL generates an URL for the get project operation
func (*GetProjectURL) Build ¶
func (o *GetProjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProjectURL) BuildFull ¶
func (o *GetProjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProjectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProjectURL) SetBasePath ¶
func (o *GetProjectURL) 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 (*GetProjectURL) String ¶
func (o *GetProjectURL) String() string
String returns the string representation of the path with query string
func (*GetProjectURL) StringFull ¶
func (o *GetProjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProjectURL) WithBasePath ¶
func (o *GetProjectURL) WithBasePath(bp string) *GetProjectURL
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 GetProjects ¶
type GetProjects struct { Context *middleware.Context Handler GetProjectsHandler }
GetProjects swagger:route GET /projects project getProjects
Get the projects for the user
func NewGetProjects ¶
func NewGetProjects(ctx *middleware.Context, handler GetProjectsHandler) *GetProjects
NewGetProjects creates a new http.Handler for the get projects operation
func (*GetProjects) ServeHTTP ¶
func (o *GetProjects) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProjectsDefault ¶
type GetProjectsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetProjectsDefault unexpected error
swagger:response getProjectsDefault
func NewGetProjectsDefault ¶
func NewGetProjectsDefault(code int) *GetProjectsDefault
NewGetProjectsDefault creates GetProjectsDefault with default headers values
func (*GetProjectsDefault) SetPayload ¶
func (o *GetProjectsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get projects default response
func (*GetProjectsDefault) SetStatusCode ¶
func (o *GetProjectsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get projects default response
func (*GetProjectsDefault) WithPayload ¶
func (o *GetProjectsDefault) WithPayload(payload *models.Error) *GetProjectsDefault
WithPayload adds the payload to the get projects default response
func (*GetProjectsDefault) WithStatusCode ¶
func (o *GetProjectsDefault) WithStatusCode(code int) *GetProjectsDefault
WithStatusCode adds the status to the get projects default response
func (*GetProjectsDefault) WriteResponse ¶
func (o *GetProjectsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectsHandler ¶
type GetProjectsHandler interface {
Handle(GetProjectsParams) middleware.Responder
}
GetProjectsHandler interface for that can handle valid get projects params
type GetProjectsHandlerFunc ¶
type GetProjectsHandlerFunc func(GetProjectsParams) middleware.Responder
GetProjectsHandlerFunc turns a function with the right signature into a get projects handler
func (GetProjectsHandlerFunc) Handle ¶
func (fn GetProjectsHandlerFunc) Handle(params GetProjectsParams) middleware.Responder
Handle executing the request and returning a response
type GetProjectsOK ¶
type GetProjectsOK struct { /* In: Body */ Payload *models.ProjectsResponse `json:"body,omitempty"` }
GetProjectsOK The project list
swagger:response getProjectsOK
func NewGetProjectsOK ¶
func NewGetProjectsOK() *GetProjectsOK
NewGetProjectsOK creates GetProjectsOK with default headers values
func (*GetProjectsOK) SetPayload ¶
func (o *GetProjectsOK) SetPayload(payload *models.ProjectsResponse)
SetPayload sets the payload to the get projects o k response
func (*GetProjectsOK) WithPayload ¶
func (o *GetProjectsOK) WithPayload(payload *models.ProjectsResponse) *GetProjectsOK
WithPayload adds the payload to the get projects o k response
func (*GetProjectsOK) WriteResponse ¶
func (o *GetProjectsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectsParams ¶
GetProjectsParams contains all the bound params for the get projects operation typically these are obtained from a http.Request
swagger:parameters getProjects
func NewGetProjectsParams ¶
func NewGetProjectsParams() GetProjectsParams
NewGetProjectsParams creates a new GetProjectsParams object no default values defined in spec.
func (*GetProjectsParams) BindRequest ¶
func (o *GetProjectsParams) 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 NewGetProjectsParams() beforehand.
type GetProjectsURL ¶
type GetProjectsURL struct {
// contains filtered or unexported fields
}
GetProjectsURL generates an URL for the get projects operation
func (*GetProjectsURL) Build ¶
func (o *GetProjectsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProjectsURL) BuildFull ¶
func (o *GetProjectsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProjectsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProjectsURL) SetBasePath ¶
func (o *GetProjectsURL) 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 (*GetProjectsURL) String ¶
func (o *GetProjectsURL) String() string
String returns the string representation of the path with query string
func (*GetProjectsURL) StringFull ¶
func (o *GetProjectsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProjectsURL) WithBasePath ¶
func (o *GetProjectsURL) WithBasePath(bp string) *GetProjectsURL
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
Update a project
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 UpdateProjectDefault ¶
type UpdateProjectDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateProjectDefault unexpected error
swagger:response updateProjectDefault
func NewUpdateProjectDefault ¶
func NewUpdateProjectDefault(code int) *UpdateProjectDefault
NewUpdateProjectDefault creates UpdateProjectDefault with default headers values
func (*UpdateProjectDefault) SetPayload ¶
func (o *UpdateProjectDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the update project default response
func (*UpdateProjectDefault) SetStatusCode ¶
func (o *UpdateProjectDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update project default response
func (*UpdateProjectDefault) WithPayload ¶
func (o *UpdateProjectDefault) WithPayload(payload *models.Error) *UpdateProjectDefault
WithPayload adds the payload to the update project default response
func (*UpdateProjectDefault) WithStatusCode ¶
func (o *UpdateProjectDefault) WithStatusCode(code int) *UpdateProjectDefault
WithStatusCode adds the status to the update project default response
func (*UpdateProjectDefault) WriteResponse ¶
func (o *UpdateProjectDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
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 UpdateProjectOK ¶
type UpdateProjectOK struct { /* In: Body */ Payload *models.ProjectResponse `json:"body,omitempty"` }
UpdateProjectOK The project details
swagger:response updateProjectOK
func NewUpdateProjectOK ¶
func NewUpdateProjectOK() *UpdateProjectOK
NewUpdateProjectOK creates UpdateProjectOK with default headers values
func (*UpdateProjectOK) SetPayload ¶
func (o *UpdateProjectOK) SetPayload(payload *models.ProjectResponse)
SetPayload sets the payload to the update project o k response
func (*UpdateProjectOK) WithPayload ¶
func (o *UpdateProjectOK) WithPayload(payload *models.ProjectResponse) *UpdateProjectOK
WithPayload adds the payload 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:"-"` /*The project details In: body */ Body *models.ProjectRequest /*The project id Required: true In: path */ ID string }
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 ¶
type UpdateProjectURL struct { ID string // contains filtered or unexported fields }
UpdateProjectURL generates an URL for the update project operation
func (*UpdateProjectURL) Build ¶
func (o *UpdateProjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateProjectURL) BuildFull ¶
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 ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateProjectURL) SetBasePath ¶
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 ¶
func (o *UpdateProjectURL) String() string
String returns the string representation of the path with query string
func (*UpdateProjectURL) StringFull ¶
func (o *UpdateProjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateProjectURL) WithBasePath ¶
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
- delete_project.go
- delete_project_parameters.go
- delete_project_responses.go
- delete_project_urlbuilder.go
- get_project.go
- get_project_parameters.go
- get_project_responses.go
- get_project_urlbuilder.go
- get_projects.go
- get_projects_parameters.go
- get_projects_responses.go
- get_projects_urlbuilder.go
- update_project.go
- update_project_parameters.go
- update_project_responses.go
- update_project_urlbuilder.go