Documentation
¶
Index ¶
- type AddUserToTeam
- type AddUserToTeamBody
- type AddUserToTeamDefault
- func (o *AddUserToTeamDefault) SetPayload(payload *models.GenericError)
- func (o *AddUserToTeamDefault) SetStatusCode(code int)
- func (o *AddUserToTeamDefault) WithPayload(payload *models.GenericError) *AddUserToTeamDefault
- func (o *AddUserToTeamDefault) WithStatusCode(code int) *AddUserToTeamDefault
- func (o *AddUserToTeamDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddUserToTeamHandler
- type AddUserToTeamHandlerFunc
- type AddUserToTeamOK
- type AddUserToTeamParams
- type CreateTeam
- type CreateTeamBadRequest
- type CreateTeamCreated
- type CreateTeamDefault
- func (o *CreateTeamDefault) SetPayload(payload *models.Unauthorized)
- func (o *CreateTeamDefault) SetStatusCode(code int)
- func (o *CreateTeamDefault) WithPayload(payload *models.Unauthorized) *CreateTeamDefault
- func (o *CreateTeamDefault) WithStatusCode(code int) *CreateTeamDefault
- func (o *CreateTeamDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTeamForbidden
- type CreateTeamHandler
- type CreateTeamHandlerFunc
- type CreateTeamParams
- type CreateTeamUnauthorized
- type DeleteTeam
- type DeleteTeamDefault
- func (o *DeleteTeamDefault) SetPayload(payload *models.GenericError)
- func (o *DeleteTeamDefault) SetStatusCode(code int)
- func (o *DeleteTeamDefault) WithPayload(payload *models.GenericError) *DeleteTeamDefault
- func (o *DeleteTeamDefault) WithStatusCode(code int) *DeleteTeamDefault
- func (o *DeleteTeamDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteTeamHandler
- type DeleteTeamHandlerFunc
- type DeleteTeamNoContent
- type DeleteTeamParams
- type GetTeamDetail
- type GetTeamDetailDefault
- func (o *GetTeamDetailDefault) SetPayload(payload *models.GenericError)
- func (o *GetTeamDetailDefault) SetStatusCode(code int)
- func (o *GetTeamDetailDefault) WithPayload(payload *models.GenericError) *GetTeamDetailDefault
- func (o *GetTeamDetailDefault) WithStatusCode(code int) *GetTeamDetailDefault
- func (o *GetTeamDetailDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTeamDetailForbidden
- type GetTeamDetailHandler
- type GetTeamDetailHandlerFunc
- type GetTeamDetailOK
- type GetTeamDetailParams
- type GetTeamDetailUnauthorized
- type GetTeams
- type GetTeamsDefault
- func (o *GetTeamsDefault) SetPayload(payload *models.Error)
- func (o *GetTeamsDefault) SetStatusCode(code int)
- func (o *GetTeamsDefault) WithPayload(payload *models.Error) *GetTeamsDefault
- func (o *GetTeamsDefault) WithStatusCode(code int) *GetTeamsDefault
- func (o *GetTeamsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTeamsHandler
- type GetTeamsHandlerFunc
- type GetTeamsOK
- type GetTeamsParams
- type UpdateTeam
- type UpdateTeamDefault
- func (o *UpdateTeamDefault) SetPayload(payload *models.GenericError)
- func (o *UpdateTeamDefault) SetStatusCode(code int)
- func (o *UpdateTeamDefault) WithPayload(payload *models.GenericError) *UpdateTeamDefault
- func (o *UpdateTeamDefault) WithStatusCode(code int) *UpdateTeamDefault
- func (o *UpdateTeamDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateTeamHandler
- type UpdateTeamHandlerFunc
- type UpdateTeamOK
- type UpdateTeamParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUserToTeam ¶
type AddUserToTeam struct { Context *middleware.Context Handler AddUserToTeamHandler }
AddUserToTeam swagger:route POST /teams/{team_name}/users teams addUserToTeam
Add user to team
func NewAddUserToTeam ¶
func NewAddUserToTeam(ctx *middleware.Context, handler AddUserToTeamHandler) *AddUserToTeam
NewAddUserToTeam creates a new http.Handler for the add user to team operation
func (*AddUserToTeam) ServeHTTP ¶
func (o *AddUserToTeam) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddUserToTeamBody ¶
type AddUserToTeamBody struct { /* email Required: true Min Length: 1 */ Email *strfmt.Email `json:"email"` }
AddUserToTeamBody add user to team body
swagger:model AddUserToTeamBody
type AddUserToTeamDefault ¶
type AddUserToTeamDefault struct { // In: body Payload *models.GenericError `json:"body,omitempty"` // contains filtered or unexported fields }
AddUserToTeamDefault Error
swagger:response addUserToTeamDefault
func NewAddUserToTeamDefault ¶
func NewAddUserToTeamDefault(code int) *AddUserToTeamDefault
NewAddUserToTeamDefault creates AddUserToTeamDefault with default headers values
func (*AddUserToTeamDefault) SetPayload ¶
func (o *AddUserToTeamDefault) SetPayload(payload *models.GenericError)
SetPayload sets the payload to the add user to team default response
func (*AddUserToTeamDefault) SetStatusCode ¶
func (o *AddUserToTeamDefault) SetStatusCode(code int)
SetStatusCode sets the status to the add user to team default response
func (*AddUserToTeamDefault) WithPayload ¶
func (o *AddUserToTeamDefault) WithPayload(payload *models.GenericError) *AddUserToTeamDefault
WithPayload adds the payload to the add user to team default response
func (*AddUserToTeamDefault) WithStatusCode ¶
func (o *AddUserToTeamDefault) WithStatusCode(code int) *AddUserToTeamDefault
WithStatusCode adds the status to the add user to team default response
func (*AddUserToTeamDefault) WriteResponse ¶
func (o *AddUserToTeamDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddUserToTeamHandler ¶
type AddUserToTeamHandler interface {
Handle(AddUserToTeamParams, interface{}) middleware.Responder
}
AddUserToTeamHandler interface for that can handle valid add user to team params
type AddUserToTeamHandlerFunc ¶
type AddUserToTeamHandlerFunc func(AddUserToTeamParams, interface{}) middleware.Responder
AddUserToTeamHandlerFunc turns a function with the right signature into a add user to team handler
func (AddUserToTeamHandlerFunc) Handle ¶
func (fn AddUserToTeamHandlerFunc) Handle(params AddUserToTeamParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type AddUserToTeamOK ¶
AddUserToTeamOK Team details
swagger:response addUserToTeamOK
func NewAddUserToTeamOK ¶
func NewAddUserToTeamOK() *AddUserToTeamOK
NewAddUserToTeamOK creates AddUserToTeamOK with default headers values
func (*AddUserToTeamOK) SetPayload ¶
func (o *AddUserToTeamOK) SetPayload(payload *models.Team)
SetPayload sets the payload to the add user to team o k response
func (*AddUserToTeamOK) WithPayload ¶
func (o *AddUserToTeamOK) WithPayload(payload *models.Team) *AddUserToTeamOK
WithPayload adds the payload to the add user to team o k response
func (*AddUserToTeamOK) WriteResponse ¶
func (o *AddUserToTeamOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddUserToTeamParams ¶
type AddUserToTeamParams struct { // HTTP Request Object HTTPRequest *http.Request /*Team name Required: true Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ In: path */ TeamName string /* In: body */ User AddUserToTeamBody }
AddUserToTeamParams contains all the bound params for the add user to team operation typically these are obtained from a http.Request
swagger:parameters addUserToTeam
func NewAddUserToTeamParams ¶
func NewAddUserToTeamParams() AddUserToTeamParams
NewAddUserToTeamParams creates a new AddUserToTeamParams object with the default values initialized.
func (*AddUserToTeamParams) BindRequest ¶
func (o *AddUserToTeamParams) 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
type CreateTeam ¶
type CreateTeam struct { Context *middleware.Context Handler CreateTeamHandler }
CreateTeam swagger:route POST /teams teams createTeam
Create teams ¶
Create a team.
func NewCreateTeam ¶
func NewCreateTeam(ctx *middleware.Context, handler CreateTeamHandler) *CreateTeam
NewCreateTeam creates a new http.Handler for the create team operation
func (*CreateTeam) ServeHTTP ¶
func (o *CreateTeam) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateTeamBadRequest ¶
type CreateTeamBadRequest struct { // In: body Payload *models.BadRequest `json:"body,omitempty"` }
CreateTeamBadRequest User sent a bad request
swagger:response createTeamBadRequest
func NewCreateTeamBadRequest ¶
func NewCreateTeamBadRequest() *CreateTeamBadRequest
NewCreateTeamBadRequest creates CreateTeamBadRequest with default headers values
func (*CreateTeamBadRequest) SetPayload ¶
func (o *CreateTeamBadRequest) SetPayload(payload *models.BadRequest)
SetPayload sets the payload to the create team bad request response
func (*CreateTeamBadRequest) WithPayload ¶
func (o *CreateTeamBadRequest) WithPayload(payload *models.BadRequest) *CreateTeamBadRequest
WithPayload adds the payload to the create team bad request response
func (*CreateTeamBadRequest) WriteResponse ¶
func (o *CreateTeamBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTeamCreated ¶
CreateTeamCreated Newly created team
swagger:response createTeamCreated
func NewCreateTeamCreated ¶
func NewCreateTeamCreated() *CreateTeamCreated
NewCreateTeamCreated creates CreateTeamCreated with default headers values
func (*CreateTeamCreated) SetPayload ¶
func (o *CreateTeamCreated) SetPayload(payload *models.Team)
SetPayload sets the payload to the create team created response
func (*CreateTeamCreated) WithPayload ¶
func (o *CreateTeamCreated) WithPayload(payload *models.Team) *CreateTeamCreated
WithPayload adds the payload to the create team created response
func (*CreateTeamCreated) WriteResponse ¶
func (o *CreateTeamCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTeamDefault ¶
type CreateTeamDefault struct { // In: body Payload *models.Unauthorized `json:"body,omitempty"` // contains filtered or unexported fields }
CreateTeamDefault User not authorized
swagger:response createTeamDefault
func NewCreateTeamDefault ¶
func NewCreateTeamDefault(code int) *CreateTeamDefault
NewCreateTeamDefault creates CreateTeamDefault with default headers values
func (*CreateTeamDefault) SetPayload ¶
func (o *CreateTeamDefault) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the create team default response
func (*CreateTeamDefault) SetStatusCode ¶
func (o *CreateTeamDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create team default response
func (*CreateTeamDefault) WithPayload ¶
func (o *CreateTeamDefault) WithPayload(payload *models.Unauthorized) *CreateTeamDefault
WithPayload adds the payload to the create team default response
func (*CreateTeamDefault) WithStatusCode ¶
func (o *CreateTeamDefault) WithStatusCode(code int) *CreateTeamDefault
WithStatusCode adds the status to the create team default response
func (*CreateTeamDefault) WriteResponse ¶
func (o *CreateTeamDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTeamForbidden ¶
type CreateTeamForbidden struct { // In: body Payload *models.Unauthorized `json:"body,omitempty"` }
CreateTeamForbidden User does not have the credentials to access this resource
swagger:response createTeamForbidden
func NewCreateTeamForbidden ¶
func NewCreateTeamForbidden() *CreateTeamForbidden
NewCreateTeamForbidden creates CreateTeamForbidden with default headers values
func (*CreateTeamForbidden) SetPayload ¶
func (o *CreateTeamForbidden) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the create team forbidden response
func (*CreateTeamForbidden) WithPayload ¶
func (o *CreateTeamForbidden) WithPayload(payload *models.Unauthorized) *CreateTeamForbidden
WithPayload adds the payload to the create team forbidden response
func (*CreateTeamForbidden) WriteResponse ¶
func (o *CreateTeamForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTeamHandler ¶
type CreateTeamHandler interface {
Handle(CreateTeamParams, interface{}) middleware.Responder
}
CreateTeamHandler interface for that can handle valid create team params
type CreateTeamHandlerFunc ¶
type CreateTeamHandlerFunc func(CreateTeamParams, interface{}) middleware.Responder
CreateTeamHandlerFunc turns a function with the right signature into a create team handler
func (CreateTeamHandlerFunc) Handle ¶
func (fn CreateTeamHandlerFunc) Handle(params CreateTeamParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateTeamParams ¶
type CreateTeamParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: body */ Body *models.Team }
CreateTeamParams contains all the bound params for the create team operation typically these are obtained from a http.Request
swagger:parameters createTeam
func NewCreateTeamParams ¶
func NewCreateTeamParams() CreateTeamParams
NewCreateTeamParams creates a new CreateTeamParams object with the default values initialized.
func (*CreateTeamParams) BindRequest ¶
func (o *CreateTeamParams) 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
type CreateTeamUnauthorized ¶
type CreateTeamUnauthorized struct { models.Unauthorized `json:"body,omitempty"` }Payload *
CreateTeamUnauthorized User not authorized
swagger:response createTeamUnauthorized
func NewCreateTeamUnauthorized ¶
func NewCreateTeamUnauthorized() *CreateTeamUnauthorized
NewCreateTeamUnauthorized creates CreateTeamUnauthorized with default headers values
func (*CreateTeamUnauthorized) SetPayload ¶
func (o *CreateTeamUnauthorized) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the create team unauthorized response
func (*CreateTeamUnauthorized) WithPayload ¶
func (o *CreateTeamUnauthorized) WithPayload(payload *models.Unauthorized) *CreateTeamUnauthorized
WithPayload adds the payload to the create team unauthorized response
func (*CreateTeamUnauthorized) WriteResponse ¶
func (o *CreateTeamUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTeam ¶
type DeleteTeam struct { Context *middleware.Context Handler DeleteTeamHandler }
DeleteTeam swagger:route DELETE /teams/{team_id} teams deleteTeam
Delete team ¶
Delete team
func NewDeleteTeam ¶
func NewDeleteTeam(ctx *middleware.Context, handler DeleteTeamHandler) *DeleteTeam
NewDeleteTeam creates a new http.Handler for the delete team operation
func (*DeleteTeam) ServeHTTP ¶
func (o *DeleteTeam) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteTeamDefault ¶
type DeleteTeamDefault struct { // In: body Payload *models.GenericError `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteTeamDefault Error
swagger:response deleteTeamDefault
func NewDeleteTeamDefault ¶
func NewDeleteTeamDefault(code int) *DeleteTeamDefault
NewDeleteTeamDefault creates DeleteTeamDefault with default headers values
func (*DeleteTeamDefault) SetPayload ¶
func (o *DeleteTeamDefault) SetPayload(payload *models.GenericError)
SetPayload sets the payload to the delete team default response
func (*DeleteTeamDefault) SetStatusCode ¶
func (o *DeleteTeamDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete team default response
func (*DeleteTeamDefault) WithPayload ¶
func (o *DeleteTeamDefault) WithPayload(payload *models.GenericError) *DeleteTeamDefault
WithPayload adds the payload to the delete team default response
func (*DeleteTeamDefault) WithStatusCode ¶
func (o *DeleteTeamDefault) WithStatusCode(code int) *DeleteTeamDefault
WithStatusCode adds the status to the delete team default response
func (*DeleteTeamDefault) WriteResponse ¶
func (o *DeleteTeamDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTeamHandler ¶
type DeleteTeamHandler interface {
Handle(DeleteTeamParams, interface{}) middleware.Responder
}
DeleteTeamHandler interface for that can handle valid delete team params
type DeleteTeamHandlerFunc ¶
type DeleteTeamHandlerFunc func(DeleteTeamParams, interface{}) middleware.Responder
DeleteTeamHandlerFunc turns a function with the right signature into a delete team handler
func (DeleteTeamHandlerFunc) Handle ¶
func (fn DeleteTeamHandlerFunc) Handle(params DeleteTeamParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteTeamNoContent ¶
type DeleteTeamNoContent struct { }
DeleteTeamNoContent No content
swagger:response deleteTeamNoContent
func NewDeleteTeamNoContent ¶
func NewDeleteTeamNoContent() *DeleteTeamNoContent
NewDeleteTeamNoContent creates DeleteTeamNoContent with default headers values
func (*DeleteTeamNoContent) WriteResponse ¶
func (o *DeleteTeamNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTeamParams ¶
type DeleteTeamParams struct { // HTTP Request Object HTTPRequest *http.Request /*Team ID Required: true In: path */ TeamID int64 }
DeleteTeamParams contains all the bound params for the delete team operation typically these are obtained from a http.Request
swagger:parameters deleteTeam
func NewDeleteTeamParams ¶
func NewDeleteTeamParams() DeleteTeamParams
NewDeleteTeamParams creates a new DeleteTeamParams object with the default values initialized.
func (*DeleteTeamParams) BindRequest ¶
func (o *DeleteTeamParams) 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
type GetTeamDetail ¶
type GetTeamDetail struct { Context *middleware.Context Handler GetTeamDetailHandler }
GetTeamDetail swagger:route GET /teams/{team_id} teams getTeamDetail
Get team details ¶
Get the details of a specific team
func NewGetTeamDetail ¶
func NewGetTeamDetail(ctx *middleware.Context, handler GetTeamDetailHandler) *GetTeamDetail
NewGetTeamDetail creates a new http.Handler for the get team detail operation
func (*GetTeamDetail) ServeHTTP ¶
func (o *GetTeamDetail) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTeamDetailDefault ¶
type GetTeamDetailDefault struct { // In: body Payload *models.GenericError `json:"body,omitempty"` // contains filtered or unexported fields }
GetTeamDetailDefault Error
swagger:response getTeamDetailDefault
func NewGetTeamDetailDefault ¶
func NewGetTeamDetailDefault(code int) *GetTeamDetailDefault
NewGetTeamDetailDefault creates GetTeamDetailDefault with default headers values
func (*GetTeamDetailDefault) SetPayload ¶
func (o *GetTeamDetailDefault) SetPayload(payload *models.GenericError)
SetPayload sets the payload to the get team detail default response
func (*GetTeamDetailDefault) SetStatusCode ¶
func (o *GetTeamDetailDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get team detail default response
func (*GetTeamDetailDefault) WithPayload ¶
func (o *GetTeamDetailDefault) WithPayload(payload *models.GenericError) *GetTeamDetailDefault
WithPayload adds the payload to the get team detail default response
func (*GetTeamDetailDefault) WithStatusCode ¶
func (o *GetTeamDetailDefault) WithStatusCode(code int) *GetTeamDetailDefault
WithStatusCode adds the status to the get team detail default response
func (*GetTeamDetailDefault) WriteResponse ¶
func (o *GetTeamDetailDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeamDetailForbidden ¶
type GetTeamDetailForbidden struct { // In: body Payload *models.Unauthorized `json:"body,omitempty"` }
GetTeamDetailForbidden User does not have the credentials to access this resource
swagger:response getTeamDetailForbidden
func NewGetTeamDetailForbidden ¶
func NewGetTeamDetailForbidden() *GetTeamDetailForbidden
NewGetTeamDetailForbidden creates GetTeamDetailForbidden with default headers values
func (*GetTeamDetailForbidden) SetPayload ¶
func (o *GetTeamDetailForbidden) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the get team detail forbidden response
func (*GetTeamDetailForbidden) WithPayload ¶
func (o *GetTeamDetailForbidden) WithPayload(payload *models.Unauthorized) *GetTeamDetailForbidden
WithPayload adds the payload to the get team detail forbidden response
func (*GetTeamDetailForbidden) WriteResponse ¶
func (o *GetTeamDetailForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeamDetailHandler ¶
type GetTeamDetailHandler interface {
Handle(GetTeamDetailParams, interface{}) middleware.Responder
}
GetTeamDetailHandler interface for that can handle valid get team detail params
type GetTeamDetailHandlerFunc ¶
type GetTeamDetailHandlerFunc func(GetTeamDetailParams, interface{}) middleware.Responder
GetTeamDetailHandlerFunc turns a function with the right signature into a get team detail handler
func (GetTeamDetailHandlerFunc) Handle ¶
func (fn GetTeamDetailHandlerFunc) Handle(params GetTeamDetailParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetTeamDetailOK ¶
GetTeamDetailOK Team details
swagger:response getTeamDetailOK
func NewGetTeamDetailOK ¶
func NewGetTeamDetailOK() *GetTeamDetailOK
NewGetTeamDetailOK creates GetTeamDetailOK with default headers values
func (*GetTeamDetailOK) SetPayload ¶
func (o *GetTeamDetailOK) SetPayload(payload *models.Team)
SetPayload sets the payload to the get team detail o k response
func (*GetTeamDetailOK) WithPayload ¶
func (o *GetTeamDetailOK) WithPayload(payload *models.Team) *GetTeamDetailOK
WithPayload adds the payload to the get team detail o k response
func (*GetTeamDetailOK) WriteResponse ¶
func (o *GetTeamDetailOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeamDetailParams ¶
type GetTeamDetailParams struct { // HTTP Request Object HTTPRequest *http.Request /*Team ID Required: true In: path */ TeamID int64 }
GetTeamDetailParams contains all the bound params for the get team detail operation typically these are obtained from a http.Request
swagger:parameters getTeamDetail
func NewGetTeamDetailParams ¶
func NewGetTeamDetailParams() GetTeamDetailParams
NewGetTeamDetailParams creates a new GetTeamDetailParams object with the default values initialized.
func (*GetTeamDetailParams) BindRequest ¶
func (o *GetTeamDetailParams) 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
type GetTeamDetailUnauthorized ¶
type GetTeamDetailUnauthorized struct { models.Unauthorized `json:"body,omitempty"` }Payload *
GetTeamDetailUnauthorized User not authorized
swagger:response getTeamDetailUnauthorized
func NewGetTeamDetailUnauthorized ¶
func NewGetTeamDetailUnauthorized() *GetTeamDetailUnauthorized
NewGetTeamDetailUnauthorized creates GetTeamDetailUnauthorized with default headers values
func (*GetTeamDetailUnauthorized) SetPayload ¶
func (o *GetTeamDetailUnauthorized) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the get team detail unauthorized response
func (*GetTeamDetailUnauthorized) WithPayload ¶
func (o *GetTeamDetailUnauthorized) WithPayload(payload *models.Unauthorized) *GetTeamDetailUnauthorized
WithPayload adds the payload to the get team detail unauthorized response
func (*GetTeamDetailUnauthorized) WriteResponse ¶
func (o *GetTeamDetailUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeams ¶
type GetTeams struct { Context *middleware.Context Handler GetTeamsHandler }
GetTeams swagger:route GET /teams teams getTeams
Get teams ¶
Get a list of teams
func NewGetTeams ¶
func NewGetTeams(ctx *middleware.Context, handler GetTeamsHandler) *GetTeams
NewGetTeams creates a new http.Handler for the get teams operation
type GetTeamsDefault ¶
type GetTeamsDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetTeamsDefault Unexpected error
swagger:response getTeamsDefault
func NewGetTeamsDefault ¶
func NewGetTeamsDefault(code int) *GetTeamsDefault
NewGetTeamsDefault creates GetTeamsDefault with default headers values
func (*GetTeamsDefault) SetPayload ¶
func (o *GetTeamsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get teams default response
func (*GetTeamsDefault) SetStatusCode ¶
func (o *GetTeamsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get teams default response
func (*GetTeamsDefault) WithPayload ¶
func (o *GetTeamsDefault) WithPayload(payload *models.Error) *GetTeamsDefault
WithPayload adds the payload to the get teams default response
func (*GetTeamsDefault) WithStatusCode ¶
func (o *GetTeamsDefault) WithStatusCode(code int) *GetTeamsDefault
WithStatusCode adds the status to the get teams default response
func (*GetTeamsDefault) WriteResponse ¶
func (o *GetTeamsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeamsHandler ¶
type GetTeamsHandler interface {
Handle(GetTeamsParams, interface{}) middleware.Responder
}
GetTeamsHandler interface for that can handle valid get teams params
type GetTeamsHandlerFunc ¶
type GetTeamsHandlerFunc func(GetTeamsParams, interface{}) middleware.Responder
GetTeamsHandlerFunc turns a function with the right signature into a get teams handler
func (GetTeamsHandlerFunc) Handle ¶
func (fn GetTeamsHandlerFunc) Handle(params GetTeamsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetTeamsOK ¶
GetTeamsOK list of teams
swagger:response getTeamsOK
func NewGetTeamsOK ¶
func NewGetTeamsOK() *GetTeamsOK
NewGetTeamsOK creates GetTeamsOK with default headers values
func (*GetTeamsOK) SetPayload ¶
func (o *GetTeamsOK) SetPayload(payload []*models.Team)
SetPayload sets the payload to the get teams o k response
func (*GetTeamsOK) WithPayload ¶
func (o *GetTeamsOK) WithPayload(payload []*models.Team) *GetTeamsOK
WithPayload adds the payload to the get teams o k response
func (*GetTeamsOK) WriteResponse ¶
func (o *GetTeamsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeamsParams ¶
GetTeamsParams contains all the bound params for the get teams operation typically these are obtained from a http.Request
swagger:parameters getTeams
func NewGetTeamsParams ¶
func NewGetTeamsParams() GetTeamsParams
NewGetTeamsParams creates a new GetTeamsParams object with the default values initialized.
func (*GetTeamsParams) BindRequest ¶
func (o *GetTeamsParams) 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
type UpdateTeam ¶
type UpdateTeam struct { Context *middleware.Context Handler UpdateTeamHandler }
UpdateTeam swagger:route PUT /teams/{team_id} teams updateTeam
Update team ¶
Update team details
func NewUpdateTeam ¶
func NewUpdateTeam(ctx *middleware.Context, handler UpdateTeamHandler) *UpdateTeam
NewUpdateTeam creates a new http.Handler for the update team operation
func (*UpdateTeam) ServeHTTP ¶
func (o *UpdateTeam) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateTeamDefault ¶
type UpdateTeamDefault struct { // In: body Payload *models.GenericError `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateTeamDefault Error
swagger:response updateTeamDefault
func NewUpdateTeamDefault ¶
func NewUpdateTeamDefault(code int) *UpdateTeamDefault
NewUpdateTeamDefault creates UpdateTeamDefault with default headers values
func (*UpdateTeamDefault) SetPayload ¶
func (o *UpdateTeamDefault) SetPayload(payload *models.GenericError)
SetPayload sets the payload to the update team default response
func (*UpdateTeamDefault) SetStatusCode ¶
func (o *UpdateTeamDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update team default response
func (*UpdateTeamDefault) WithPayload ¶
func (o *UpdateTeamDefault) WithPayload(payload *models.GenericError) *UpdateTeamDefault
WithPayload adds the payload to the update team default response
func (*UpdateTeamDefault) WithStatusCode ¶
func (o *UpdateTeamDefault) WithStatusCode(code int) *UpdateTeamDefault
WithStatusCode adds the status to the update team default response
func (*UpdateTeamDefault) WriteResponse ¶
func (o *UpdateTeamDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTeamHandler ¶
type UpdateTeamHandler interface {
Handle(UpdateTeamParams, interface{}) middleware.Responder
}
UpdateTeamHandler interface for that can handle valid update team params
type UpdateTeamHandlerFunc ¶
type UpdateTeamHandlerFunc func(UpdateTeamParams, interface{}) middleware.Responder
UpdateTeamHandlerFunc turns a function with the right signature into a update team handler
func (UpdateTeamHandlerFunc) Handle ¶
func (fn UpdateTeamHandlerFunc) Handle(params UpdateTeamParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateTeamOK ¶
UpdateTeamOK Team details
swagger:response updateTeamOK
func NewUpdateTeamOK ¶
func NewUpdateTeamOK() *UpdateTeamOK
NewUpdateTeamOK creates UpdateTeamOK with default headers values
func (*UpdateTeamOK) SetPayload ¶
func (o *UpdateTeamOK) SetPayload(payload *models.Team)
SetPayload sets the payload to the update team o k response
func (*UpdateTeamOK) WithPayload ¶
func (o *UpdateTeamOK) WithPayload(payload *models.Team) *UpdateTeamOK
WithPayload adds the payload to the update team o k response
func (*UpdateTeamOK) WriteResponse ¶
func (o *UpdateTeamOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTeamParams ¶
type UpdateTeamParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: body */ Body *models.Team /*Team ID Required: true In: path */ TeamID int64 }
UpdateTeamParams contains all the bound params for the update team operation typically these are obtained from a http.Request
swagger:parameters updateTeam
func NewUpdateTeamParams ¶
func NewUpdateTeamParams() UpdateTeamParams
NewUpdateTeamParams creates a new UpdateTeamParams object with the default values initialized.
func (*UpdateTeamParams) BindRequest ¶
func (o *UpdateTeamParams) 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
Source Files
¶
- add_user_to_team.go
- add_user_to_team_parameters.go
- add_user_to_team_responses.go
- create_team.go
- create_team_parameters.go
- create_team_responses.go
- delete_team.go
- delete_team_parameters.go
- delete_team_responses.go
- get_team_detail.go
- get_team_detail_parameters.go
- get_team_detail_responses.go
- get_teams.go
- get_teams_parameters.go
- get_teams_responses.go
- update_team.go
- update_team_parameters.go
- update_team_responses.go