Documentation ¶
Index ¶
- Constants
- type AddGroupForUser
- type AddGroupForUserHandler
- type AddGroupForUserHandlerFunc
- type AddGroupForUserInternalServerError
- func (o *AddGroupForUserInternalServerError) SetPayload(payload *models.Error)
- func (o *AddGroupForUserInternalServerError) WithPayload(payload *models.Error) *AddGroupForUserInternalServerError
- func (o *AddGroupForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddGroupForUserNoContent
- type AddGroupForUserNotFound
- type AddGroupForUserParams
- type AddGroupForUserURL
- func (o *AddGroupForUserURL) Build() (*url.URL, error)
- func (o *AddGroupForUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddGroupForUserURL) Must(u *url.URL, err error) *url.URL
- func (o *AddGroupForUserURL) SetBasePath(bp string)
- func (o *AddGroupForUserURL) String() string
- func (o *AddGroupForUserURL) StringFull(scheme, host string) string
- func (o *AddGroupForUserURL) WithBasePath(bp string) *AddGroupForUserURL
- type AddGroupForUserUnauthorized
- type CancelBooking
- type CancelBookingHandler
- type CancelBookingHandlerFunc
- type CancelBookingInternalServerError
- type CancelBookingNotFound
- type CancelBookingParams
- type CancelBookingURL
- func (o *CancelBookingURL) Build() (*url.URL, error)
- func (o *CancelBookingURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CancelBookingURL) Must(u *url.URL, err error) *url.URL
- func (o *CancelBookingURL) SetBasePath(bp string)
- func (o *CancelBookingURL) String() string
- func (o *CancelBookingURL) StringFull(scheme, host string) string
- func (o *CancelBookingURL) WithBasePath(bp string) *CancelBookingURL
- type CancelBookingUnauthorized
- type GetAccessToken
- type GetAccessTokenHandler
- type GetAccessTokenHandlerFunc
- type GetAccessTokenInternalServerError
- func (o *GetAccessTokenInternalServerError) SetPayload(payload *models.Error)
- func (o *GetAccessTokenInternalServerError) WithPayload(payload *models.Error) *GetAccessTokenInternalServerError
- func (o *GetAccessTokenInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetAccessTokenNotFound
- type GetAccessTokenOK
- type GetAccessTokenParams
- type GetAccessTokenURL
- func (o *GetAccessTokenURL) Build() (*url.URL, error)
- func (o *GetAccessTokenURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAccessTokenURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAccessTokenURL) SetBasePath(bp string)
- func (o *GetAccessTokenURL) String() string
- func (o *GetAccessTokenURL) StringFull(scheme, host string) string
- func (o *GetAccessTokenURL) WithBasePath(bp string) *GetAccessTokenURL
- type GetAccessTokenUnauthorized
- type GetActivity
- type GetActivityHandler
- type GetActivityHandlerFunc
- type GetActivityInternalServerError
- type GetActivityNotFound
- type GetActivityOK
- type GetActivityParams
- type GetActivityURL
- func (o *GetActivityURL) Build() (*url.URL, error)
- func (o *GetActivityURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetActivityURL) Must(u *url.URL, err error) *url.URL
- func (o *GetActivityURL) SetBasePath(bp string)
- func (o *GetActivityURL) String() string
- func (o *GetActivityURL) StringFull(scheme, host string) string
- func (o *GetActivityURL) WithBasePath(bp string) *GetActivityURL
- type GetActivityUnauthorized
- type GetAvailability
- type GetAvailabilityHandler
- type GetAvailabilityHandlerFunc
- type GetAvailabilityInternalServerError
- func (o *GetAvailabilityInternalServerError) SetPayload(payload *models.Error)
- func (o *GetAvailabilityInternalServerError) WithPayload(payload *models.Error) *GetAvailabilityInternalServerError
- func (o *GetAvailabilityInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetAvailabilityNotFound
- type GetAvailabilityOK
- type GetAvailabilityParams
- type GetAvailabilityURL
- func (o *GetAvailabilityURL) Build() (*url.URL, error)
- func (o *GetAvailabilityURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAvailabilityURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAvailabilityURL) SetBasePath(bp string)
- func (o *GetAvailabilityURL) String() string
- func (o *GetAvailabilityURL) StringFull(scheme, host string) string
- func (o *GetAvailabilityURL) WithBasePath(bp string) *GetAvailabilityURL
- type GetAvailabilityUnauthorized
- type GetBookingsForUser
- type GetBookingsForUserHandler
- type GetBookingsForUserHandlerFunc
- type GetBookingsForUserInternalServerError
- func (o *GetBookingsForUserInternalServerError) SetPayload(payload *models.Error)
- func (o *GetBookingsForUserInternalServerError) WithPayload(payload *models.Error) *GetBookingsForUserInternalServerError
- func (o *GetBookingsForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBookingsForUserNotFound
- type GetBookingsForUserOK
- type GetBookingsForUserParams
- type GetBookingsForUserURL
- func (o *GetBookingsForUserURL) Build() (*url.URL, error)
- func (o *GetBookingsForUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBookingsForUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBookingsForUserURL) SetBasePath(bp string)
- func (o *GetBookingsForUserURL) String() string
- func (o *GetBookingsForUserURL) StringFull(scheme, host string) string
- func (o *GetBookingsForUserURL) WithBasePath(bp string) *GetBookingsForUserURL
- type GetBookingsForUserUnauthorized
- type GetDescription
- type GetDescriptionHandler
- type GetDescriptionHandlerFunc
- type GetDescriptionInternalServerError
- func (o *GetDescriptionInternalServerError) SetPayload(payload *models.Error)
- func (o *GetDescriptionInternalServerError) WithPayload(payload *models.Error) *GetDescriptionInternalServerError
- func (o *GetDescriptionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetDescriptionNotFound
- type GetDescriptionOK
- type GetDescriptionParams
- type GetDescriptionURL
- func (o *GetDescriptionURL) Build() (*url.URL, error)
- func (o *GetDescriptionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetDescriptionURL) Must(u *url.URL, err error) *url.URL
- func (o *GetDescriptionURL) SetBasePath(bp string)
- func (o *GetDescriptionURL) String() string
- func (o *GetDescriptionURL) StringFull(scheme, host string) string
- func (o *GetDescriptionURL) WithBasePath(bp string) *GetDescriptionURL
- type GetDescriptionUnauthorized
- type GetGroup
- type GetGroupHandler
- type GetGroupHandlerFunc
- type GetGroupInternalServerError
- type GetGroupNotFound
- type GetGroupOK
- type GetGroupParams
- type GetGroupURL
- func (o *GetGroupURL) Build() (*url.URL, error)
- func (o *GetGroupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetGroupURL) Must(u *url.URL, err error) *url.URL
- func (o *GetGroupURL) SetBasePath(bp string)
- func (o *GetGroupURL) String() string
- func (o *GetGroupURL) StringFull(scheme, host string) string
- func (o *GetGroupURL) WithBasePath(bp string) *GetGroupURL
- type GetGroupUnauthorized
- type GetGroupsForUser
- type GetGroupsForUserHandler
- type GetGroupsForUserHandlerFunc
- type GetGroupsForUserInternalServerError
- func (o *GetGroupsForUserInternalServerError) SetPayload(payload *models.Error)
- func (o *GetGroupsForUserInternalServerError) WithPayload(payload *models.Error) *GetGroupsForUserInternalServerError
- func (o *GetGroupsForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetGroupsForUserNotFound
- type GetGroupsForUserOK
- type GetGroupsForUserParams
- type GetGroupsForUserURL
- func (o *GetGroupsForUserURL) Build() (*url.URL, error)
- func (o *GetGroupsForUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetGroupsForUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetGroupsForUserURL) SetBasePath(bp string)
- func (o *GetGroupsForUserURL) String() string
- func (o *GetGroupsForUserURL) StringFull(scheme, host string) string
- func (o *GetGroupsForUserURL) WithBasePath(bp string) *GetGroupsForUserURL
- type GetGroupsForUserUnauthorized
- type GetOldBookingsForUser
- type GetOldBookingsForUserHandler
- type GetOldBookingsForUserHandlerFunc
- type GetOldBookingsForUserInternalServerError
- func (o *GetOldBookingsForUserInternalServerError) SetPayload(payload *models.Error)
- func (o *GetOldBookingsForUserInternalServerError) WithPayload(payload *models.Error) *GetOldBookingsForUserInternalServerError
- func (o *GetOldBookingsForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetOldBookingsForUserNotFound
- type GetOldBookingsForUserOK
- type GetOldBookingsForUserParams
- type GetOldBookingsForUserURL
- func (o *GetOldBookingsForUserURL) Build() (*url.URL, error)
- func (o *GetOldBookingsForUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetOldBookingsForUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetOldBookingsForUserURL) SetBasePath(bp string)
- func (o *GetOldBookingsForUserURL) String() string
- func (o *GetOldBookingsForUserURL) StringFull(scheme, host string) string
- func (o *GetOldBookingsForUserURL) WithBasePath(bp string) *GetOldBookingsForUserURL
- type GetOldBookingsForUserUnauthorized
- func (o *GetOldBookingsForUserUnauthorized) SetPayload(payload *models.Error)
- func (o *GetOldBookingsForUserUnauthorized) WithPayload(payload *models.Error) *GetOldBookingsForUserUnauthorized
- func (o *GetOldBookingsForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetPolicy
- type GetPolicyHandler
- type GetPolicyHandlerFunc
- type GetPolicyInternalServerError
- type GetPolicyNotFound
- type GetPolicyOK
- type GetPolicyParams
- type GetPolicyStatusForUser
- type GetPolicyStatusForUserHandler
- type GetPolicyStatusForUserHandlerFunc
- type GetPolicyStatusForUserInternalServerError
- func (o *GetPolicyStatusForUserInternalServerError) SetPayload(payload *models.Error)
- func (o *GetPolicyStatusForUserInternalServerError) WithPayload(payload *models.Error) *GetPolicyStatusForUserInternalServerError
- func (o *GetPolicyStatusForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetPolicyStatusForUserNotFound
- type GetPolicyStatusForUserOK
- type GetPolicyStatusForUserParams
- type GetPolicyStatusForUserURL
- func (o *GetPolicyStatusForUserURL) Build() (*url.URL, error)
- func (o *GetPolicyStatusForUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetPolicyStatusForUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetPolicyStatusForUserURL) SetBasePath(bp string)
- func (o *GetPolicyStatusForUserURL) String() string
- func (o *GetPolicyStatusForUserURL) StringFull(scheme, host string) string
- func (o *GetPolicyStatusForUserURL) WithBasePath(bp string) *GetPolicyStatusForUserURL
- type GetPolicyStatusForUserUnauthorized
- func (o *GetPolicyStatusForUserUnauthorized) SetPayload(payload *models.Error)
- func (o *GetPolicyStatusForUserUnauthorized) WithPayload(payload *models.Error) *GetPolicyStatusForUserUnauthorized
- func (o *GetPolicyStatusForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetPolicyURL
- func (o *GetPolicyURL) Build() (*url.URL, error)
- func (o *GetPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetPolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *GetPolicyURL) SetBasePath(bp string)
- func (o *GetPolicyURL) String() string
- func (o *GetPolicyURL) StringFull(scheme, host string) string
- func (o *GetPolicyURL) WithBasePath(bp string) *GetPolicyURL
- type GetPolicyUnauthorized
- type GetStoreStatusUser
- type GetStoreStatusUserHandler
- type GetStoreStatusUserHandlerFunc
- type GetStoreStatusUserInternalServerError
- func (o *GetStoreStatusUserInternalServerError) SetPayload(payload *models.Error)
- func (o *GetStoreStatusUserInternalServerError) WithPayload(payload *models.Error) *GetStoreStatusUserInternalServerError
- func (o *GetStoreStatusUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetStoreStatusUserNotFound
- type GetStoreStatusUserOK
- type GetStoreStatusUserParams
- type GetStoreStatusUserURL
- func (o *GetStoreStatusUserURL) Build() (*url.URL, error)
- func (o *GetStoreStatusUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStoreStatusUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStoreStatusUserURL) SetBasePath(bp string)
- func (o *GetStoreStatusUserURL) String() string
- func (o *GetStoreStatusUserURL) StringFull(scheme, host string) string
- func (o *GetStoreStatusUserURL) WithBasePath(bp string) *GetStoreStatusUserURL
- type GetStoreStatusUserUnauthorized
- type MakeBooking
- type MakeBookingConflict
- type MakeBookingHandler
- type MakeBookingHandlerFunc
- type MakeBookingInternalServerError
- type MakeBookingNoContent
- type MakeBookingNotFound
- type MakeBookingParams
- type MakeBookingURL
- func (o *MakeBookingURL) Build() (*url.URL, error)
- func (o *MakeBookingURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *MakeBookingURL) Must(u *url.URL, err error) *url.URL
- func (o *MakeBookingURL) SetBasePath(bp string)
- func (o *MakeBookingURL) String() string
- func (o *MakeBookingURL) StringFull(scheme, host string) string
- func (o *MakeBookingURL) WithBasePath(bp string) *MakeBookingURL
- type MakeBookingUnauthorized
- type UniqueName
- type UniqueNameHandler
- type UniqueNameHandlerFunc
- type UniqueNameInternalServerError
- type UniqueNameOK
- type UniqueNameParams
- type UniqueNameURL
- func (o *UniqueNameURL) Build() (*url.URL, error)
- func (o *UniqueNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UniqueNameURL) Must(u *url.URL, err error) *url.URL
- func (o *UniqueNameURL) SetBasePath(bp string)
- func (o *UniqueNameURL) String() string
- func (o *UniqueNameURL) StringFull(scheme, host string) string
- func (o *UniqueNameURL) WithBasePath(bp string) *UniqueNameURL
- type UniqueNameUnauthorized
Constants ¶
const AddGroupForUserInternalServerErrorCode int = 500
AddGroupForUserInternalServerErrorCode is the HTTP code returned for type AddGroupForUserInternalServerError
const AddGroupForUserNoContentCode int = 204
AddGroupForUserNoContentCode is the HTTP code returned for type AddGroupForUserNoContent
const AddGroupForUserNotFoundCode int = 404
AddGroupForUserNotFoundCode is the HTTP code returned for type AddGroupForUserNotFound
AddGroupForUserUnauthorizedCode is the HTTP code returned for type AddGroupForUserUnauthorized
const CancelBookingInternalServerErrorCode int = 500
CancelBookingInternalServerErrorCode is the HTTP code returned for type CancelBookingInternalServerError
const CancelBookingNotFoundCode int = 404
CancelBookingNotFoundCode is the HTTP code returned for type CancelBookingNotFound
CancelBookingUnauthorizedCode is the HTTP code returned for type CancelBookingUnauthorized
const GetAccessTokenInternalServerErrorCode int = 500
GetAccessTokenInternalServerErrorCode is the HTTP code returned for type GetAccessTokenInternalServerError
const GetAccessTokenNotFoundCode int = 404
GetAccessTokenNotFoundCode is the HTTP code returned for type GetAccessTokenNotFound
const GetAccessTokenOKCode int = 200
GetAccessTokenOKCode is the HTTP code returned for type GetAccessTokenOK
GetAccessTokenUnauthorizedCode is the HTTP code returned for type GetAccessTokenUnauthorized
const GetActivityInternalServerErrorCode int = 500
GetActivityInternalServerErrorCode is the HTTP code returned for type GetActivityInternalServerError
const GetActivityNotFoundCode int = 404
GetActivityNotFoundCode is the HTTP code returned for type GetActivityNotFound
const GetActivityOKCode int = 200
GetActivityOKCode is the HTTP code returned for type GetActivityOK
GetActivityUnauthorizedCode is the HTTP code returned for type GetActivityUnauthorized
const GetAvailabilityInternalServerErrorCode int = 500
GetAvailabilityInternalServerErrorCode is the HTTP code returned for type GetAvailabilityInternalServerError
const GetAvailabilityNotFoundCode int = 404
GetAvailabilityNotFoundCode is the HTTP code returned for type GetAvailabilityNotFound
const GetAvailabilityOKCode int = 200
GetAvailabilityOKCode is the HTTP code returned for type GetAvailabilityOK
GetAvailabilityUnauthorizedCode is the HTTP code returned for type GetAvailabilityUnauthorized
const GetBookingsForUserInternalServerErrorCode int = 500
GetBookingsForUserInternalServerErrorCode is the HTTP code returned for type GetBookingsForUserInternalServerError
const GetBookingsForUserNotFoundCode int = 404
GetBookingsForUserNotFoundCode is the HTTP code returned for type GetBookingsForUserNotFound
const GetBookingsForUserOKCode int = 200
GetBookingsForUserOKCode is the HTTP code returned for type GetBookingsForUserOK
GetBookingsForUserUnauthorizedCode is the HTTP code returned for type GetBookingsForUserUnauthorized
const GetDescriptionInternalServerErrorCode int = 500
GetDescriptionInternalServerErrorCode is the HTTP code returned for type GetDescriptionInternalServerError
const GetDescriptionNotFoundCode int = 404
GetDescriptionNotFoundCode is the HTTP code returned for type GetDescriptionNotFound
const GetDescriptionOKCode int = 200
GetDescriptionOKCode is the HTTP code returned for type GetDescriptionOK
GetDescriptionUnauthorizedCode is the HTTP code returned for type GetDescriptionUnauthorized
const GetGroupInternalServerErrorCode int = 500
GetGroupInternalServerErrorCode is the HTTP code returned for type GetGroupInternalServerError
const GetGroupNotFoundCode int = 404
GetGroupNotFoundCode is the HTTP code returned for type GetGroupNotFound
const GetGroupOKCode int = 200
GetGroupOKCode is the HTTP code returned for type GetGroupOK
GetGroupUnauthorizedCode is the HTTP code returned for type GetGroupUnauthorized
const GetGroupsForUserInternalServerErrorCode int = 500
GetGroupsForUserInternalServerErrorCode is the HTTP code returned for type GetGroupsForUserInternalServerError
const GetGroupsForUserNotFoundCode int = 404
GetGroupsForUserNotFoundCode is the HTTP code returned for type GetGroupsForUserNotFound
const GetGroupsForUserOKCode int = 200
GetGroupsForUserOKCode is the HTTP code returned for type GetGroupsForUserOK
GetGroupsForUserUnauthorizedCode is the HTTP code returned for type GetGroupsForUserUnauthorized
const GetOldBookingsForUserInternalServerErrorCode int = 500
GetOldBookingsForUserInternalServerErrorCode is the HTTP code returned for type GetOldBookingsForUserInternalServerError
const GetOldBookingsForUserNotFoundCode int = 404
GetOldBookingsForUserNotFoundCode is the HTTP code returned for type GetOldBookingsForUserNotFound
const GetOldBookingsForUserOKCode int = 200
GetOldBookingsForUserOKCode is the HTTP code returned for type GetOldBookingsForUserOK
GetOldBookingsForUserUnauthorizedCode is the HTTP code returned for type GetOldBookingsForUserUnauthorized
const GetPolicyInternalServerErrorCode int = 500
GetPolicyInternalServerErrorCode is the HTTP code returned for type GetPolicyInternalServerError
const GetPolicyNotFoundCode int = 404
GetPolicyNotFoundCode is the HTTP code returned for type GetPolicyNotFound
const GetPolicyOKCode int = 200
GetPolicyOKCode is the HTTP code returned for type GetPolicyOK
const GetPolicyStatusForUserInternalServerErrorCode int = 500
GetPolicyStatusForUserInternalServerErrorCode is the HTTP code returned for type GetPolicyStatusForUserInternalServerError
const GetPolicyStatusForUserNotFoundCode int = 404
GetPolicyStatusForUserNotFoundCode is the HTTP code returned for type GetPolicyStatusForUserNotFound
const GetPolicyStatusForUserOKCode int = 200
GetPolicyStatusForUserOKCode is the HTTP code returned for type GetPolicyStatusForUserOK
GetPolicyStatusForUserUnauthorizedCode is the HTTP code returned for type GetPolicyStatusForUserUnauthorized
GetPolicyUnauthorizedCode is the HTTP code returned for type GetPolicyUnauthorized
const GetStoreStatusUserInternalServerErrorCode int = 500
GetStoreStatusUserInternalServerErrorCode is the HTTP code returned for type GetStoreStatusUserInternalServerError
const GetStoreStatusUserNotFoundCode int = 404
GetStoreStatusUserNotFoundCode is the HTTP code returned for type GetStoreStatusUserNotFound
const GetStoreStatusUserOKCode int = 200
GetStoreStatusUserOKCode is the HTTP code returned for type GetStoreStatusUserOK
GetStoreStatusUserUnauthorizedCode is the HTTP code returned for type GetStoreStatusUserUnauthorized
const MakeBookingConflictCode int = 409
MakeBookingConflictCode is the HTTP code returned for type MakeBookingConflict
const MakeBookingInternalServerErrorCode int = 500
MakeBookingInternalServerErrorCode is the HTTP code returned for type MakeBookingInternalServerError
const MakeBookingNoContentCode int = 204
MakeBookingNoContentCode is the HTTP code returned for type MakeBookingNoContent
const MakeBookingNotFoundCode int = 404
MakeBookingNotFoundCode is the HTTP code returned for type MakeBookingNotFound
MakeBookingUnauthorizedCode is the HTTP code returned for type MakeBookingUnauthorized
const UniqueNameInternalServerErrorCode int = 500
UniqueNameInternalServerErrorCode is the HTTP code returned for type UniqueNameInternalServerError
const UniqueNameOKCode int = 200
UniqueNameOKCode is the HTTP code returned for type UniqueNameOK
UniqueNameUnauthorizedCode is the HTTP code returned for type UniqueNameUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddGroupForUser ¶ added in v0.3.0
type AddGroupForUser struct { Context *middleware.Context Handler AddGroupForUserHandler }
AddGroupForUser swagger:route POST /users/{user_name}/groups/{group_name} users addGroupForUser
Add group to user account ¶
Add group to the list of groups with which this user is allowed to make bookings
func NewAddGroupForUser ¶ added in v0.3.0
func NewAddGroupForUser(ctx *middleware.Context, handler AddGroupForUserHandler) *AddGroupForUser
NewAddGroupForUser creates a new http.Handler for the add group for user operation
func (*AddGroupForUser) ServeHTTP ¶ added in v0.3.0
func (o *AddGroupForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddGroupForUserHandler ¶ added in v0.3.0
type AddGroupForUserHandler interface {
Handle(AddGroupForUserParams, interface{}) middleware.Responder
}
AddGroupForUserHandler interface for that can handle valid add group for user params
type AddGroupForUserHandlerFunc ¶ added in v0.3.0
type AddGroupForUserHandlerFunc func(AddGroupForUserParams, interface{}) middleware.Responder
AddGroupForUserHandlerFunc turns a function with the right signature into a add group for user handler
func (AddGroupForUserHandlerFunc) Handle ¶ added in v0.3.0
func (fn AddGroupForUserHandlerFunc) Handle(params AddGroupForUserParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type AddGroupForUserInternalServerError ¶ added in v0.3.0
type AddGroupForUserInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AddGroupForUserInternalServerError Internal Error
swagger:response addGroupForUserInternalServerError
func NewAddGroupForUserInternalServerError ¶ added in v0.3.0
func NewAddGroupForUserInternalServerError() *AddGroupForUserInternalServerError
NewAddGroupForUserInternalServerError creates AddGroupForUserInternalServerError with default headers values
func (*AddGroupForUserInternalServerError) SetPayload ¶ added in v0.3.0
func (o *AddGroupForUserInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the add group for user internal server error response
func (*AddGroupForUserInternalServerError) WithPayload ¶ added in v0.3.0
func (o *AddGroupForUserInternalServerError) WithPayload(payload *models.Error) *AddGroupForUserInternalServerError
WithPayload adds the payload to the add group for user internal server error response
func (*AddGroupForUserInternalServerError) WriteResponse ¶ added in v0.3.0
func (o *AddGroupForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddGroupForUserNoContent ¶ added in v0.3.0
type AddGroupForUserNoContent struct { }
AddGroupForUserNoContent OK - No Content
swagger:response addGroupForUserNoContent
func NewAddGroupForUserNoContent ¶ added in v0.3.0
func NewAddGroupForUserNoContent() *AddGroupForUserNoContent
NewAddGroupForUserNoContent creates AddGroupForUserNoContent with default headers values
func (*AddGroupForUserNoContent) WriteResponse ¶ added in v0.3.0
func (o *AddGroupForUserNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddGroupForUserNotFound ¶ added in v0.3.0
type AddGroupForUserNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AddGroupForUserNotFound The specified resource was not found
swagger:response addGroupForUserNotFound
func NewAddGroupForUserNotFound ¶ added in v0.3.0
func NewAddGroupForUserNotFound() *AddGroupForUserNotFound
NewAddGroupForUserNotFound creates AddGroupForUserNotFound with default headers values
func (*AddGroupForUserNotFound) SetPayload ¶ added in v0.3.0
func (o *AddGroupForUserNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the add group for user not found response
func (*AddGroupForUserNotFound) WithPayload ¶ added in v0.3.0
func (o *AddGroupForUserNotFound) WithPayload(payload *models.Error) *AddGroupForUserNotFound
WithPayload adds the payload to the add group for user not found response
func (*AddGroupForUserNotFound) WriteResponse ¶ added in v0.3.0
func (o *AddGroupForUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddGroupForUserParams ¶ added in v0.3.0
type AddGroupForUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ GroupName string /* Required: true In: path */ UserName string }
AddGroupForUserParams contains all the bound params for the add group for user operation typically these are obtained from a http.Request
swagger:parameters AddGroupForUser
func NewAddGroupForUserParams ¶ added in v0.3.0
func NewAddGroupForUserParams() AddGroupForUserParams
NewAddGroupForUserParams creates a new AddGroupForUserParams object
There are no default values defined in the spec.
func (*AddGroupForUserParams) BindRequest ¶ added in v0.3.0
func (o *AddGroupForUserParams) 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 NewAddGroupForUserParams() beforehand.
type AddGroupForUserURL ¶ added in v0.3.0
type AddGroupForUserURL struct { GroupName string UserName string // contains filtered or unexported fields }
AddGroupForUserURL generates an URL for the add group for user operation
func (*AddGroupForUserURL) Build ¶ added in v0.3.0
func (o *AddGroupForUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddGroupForUserURL) BuildFull ¶ added in v0.3.0
func (o *AddGroupForUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddGroupForUserURL) Must ¶ added in v0.3.0
Must is a helper function to panic when the url builder returns an error
func (*AddGroupForUserURL) SetBasePath ¶ added in v0.3.0
func (o *AddGroupForUserURL) 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 (*AddGroupForUserURL) String ¶ added in v0.3.0
func (o *AddGroupForUserURL) String() string
String returns the string representation of the path with query string
func (*AddGroupForUserURL) StringFull ¶ added in v0.3.0
func (o *AddGroupForUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddGroupForUserURL) WithBasePath ¶ added in v0.3.0
func (o *AddGroupForUserURL) WithBasePath(bp string) *AddGroupForUserURL
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 AddGroupForUserUnauthorized ¶ added in v0.3.0
AddGroupForUserUnauthorized Unauthorized
swagger:response addGroupForUserUnauthorized
func NewAddGroupForUserUnauthorized ¶ added in v0.3.0
func NewAddGroupForUserUnauthorized() *AddGroupForUserUnauthorized
NewAddGroupForUserUnauthorized creates AddGroupForUserUnauthorized with default headers values
func (*AddGroupForUserUnauthorized) SetPayload ¶ added in v0.3.0
func (o *AddGroupForUserUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the add group for user unauthorized response
func (*AddGroupForUserUnauthorized) WithPayload ¶ added in v0.3.0
func (o *AddGroupForUserUnauthorized) WithPayload(payload *models.Error) *AddGroupForUserUnauthorized
WithPayload adds the payload to the add group for user unauthorized response
func (*AddGroupForUserUnauthorized) WriteResponse ¶ added in v0.3.0
func (o *AddGroupForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CancelBooking ¶
type CancelBooking struct { Context *middleware.Context Handler CancelBookingHandler }
CancelBooking swagger:route DELETE /users/{user_name}/bookings/{booking_name} users cancelBooking
Cancel the booking ¶
For users to cancel their booking(s) on at a time. Checks if the booking is unstarted and/or unfulfilled, and cancels if so. A booking cannot be cancelled once an activity has been requested. A booking can be cancelled after it started, so long as it is unfulfilled (no activity requested). The user must be the owner of the booking to cancel it. Admins can cancel bookings by Lock() -> ExportBookings() -> edit -> ReplaceBookings()-> Unlock(). There is no need for an endpoint for admin single booking cancellation because the only visibility they have of bookings is via ExportBookings. Remaing time in the booking at time of cancellation is refunded to the user's usage tracker for that policy. That is intended to encourage early cancellation. Returns 404 on successful cancellation, or if there is no such booking.
func NewCancelBooking ¶
func NewCancelBooking(ctx *middleware.Context, handler CancelBookingHandler) *CancelBooking
NewCancelBooking creates a new http.Handler for the cancel booking operation
func (*CancelBooking) ServeHTTP ¶
func (o *CancelBooking) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CancelBookingHandler ¶
type CancelBookingHandler interface {
Handle(CancelBookingParams, interface{}) middleware.Responder
}
CancelBookingHandler interface for that can handle valid cancel booking params
type CancelBookingHandlerFunc ¶
type CancelBookingHandlerFunc func(CancelBookingParams, interface{}) middleware.Responder
CancelBookingHandlerFunc turns a function with the right signature into a cancel booking handler
func (CancelBookingHandlerFunc) Handle ¶
func (fn CancelBookingHandlerFunc) Handle(params CancelBookingParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CancelBookingInternalServerError ¶
type CancelBookingInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CancelBookingInternalServerError Internal Error
swagger:response cancelBookingInternalServerError
func NewCancelBookingInternalServerError ¶
func NewCancelBookingInternalServerError() *CancelBookingInternalServerError
NewCancelBookingInternalServerError creates CancelBookingInternalServerError with default headers values
func (*CancelBookingInternalServerError) SetPayload ¶
func (o *CancelBookingInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the cancel booking internal server error response
func (*CancelBookingInternalServerError) WithPayload ¶
func (o *CancelBookingInternalServerError) WithPayload(payload *models.Error) *CancelBookingInternalServerError
WithPayload adds the payload to the cancel booking internal server error response
func (*CancelBookingInternalServerError) WriteResponse ¶
func (o *CancelBookingInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CancelBookingNotFound ¶
CancelBookingNotFound The specified resource was not found
swagger:response cancelBookingNotFound
func NewCancelBookingNotFound ¶
func NewCancelBookingNotFound() *CancelBookingNotFound
NewCancelBookingNotFound creates CancelBookingNotFound with default headers values
func (*CancelBookingNotFound) SetPayload ¶
func (o *CancelBookingNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the cancel booking not found response
func (*CancelBookingNotFound) WithPayload ¶
func (o *CancelBookingNotFound) WithPayload(payload *models.Error) *CancelBookingNotFound
WithPayload adds the payload to the cancel booking not found response
func (*CancelBookingNotFound) WriteResponse ¶
func (o *CancelBookingNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CancelBookingParams ¶
type CancelBookingParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ BookingName string /* Required: true In: path */ UserName string }
CancelBookingParams contains all the bound params for the cancel booking operation typically these are obtained from a http.Request
swagger:parameters CancelBooking
func NewCancelBookingParams ¶
func NewCancelBookingParams() CancelBookingParams
NewCancelBookingParams creates a new CancelBookingParams object
There are no default values defined in the spec.
func (*CancelBookingParams) BindRequest ¶
func (o *CancelBookingParams) 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 NewCancelBookingParams() beforehand.
type CancelBookingURL ¶
type CancelBookingURL struct { BookingName string UserName string // contains filtered or unexported fields }
CancelBookingURL generates an URL for the cancel booking operation
func (*CancelBookingURL) Build ¶
func (o *CancelBookingURL) Build() (*url.URL, error)
Build a url path and query string
func (*CancelBookingURL) BuildFull ¶
func (o *CancelBookingURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CancelBookingURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CancelBookingURL) SetBasePath ¶
func (o *CancelBookingURL) 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 (*CancelBookingURL) String ¶
func (o *CancelBookingURL) String() string
String returns the string representation of the path with query string
func (*CancelBookingURL) StringFull ¶
func (o *CancelBookingURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CancelBookingURL) WithBasePath ¶
func (o *CancelBookingURL) WithBasePath(bp string) *CancelBookingURL
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 CancelBookingUnauthorized ¶
CancelBookingUnauthorized Unauthorized
swagger:response cancelBookingUnauthorized
func NewCancelBookingUnauthorized ¶
func NewCancelBookingUnauthorized() *CancelBookingUnauthorized
NewCancelBookingUnauthorized creates CancelBookingUnauthorized with default headers values
func (*CancelBookingUnauthorized) SetPayload ¶
func (o *CancelBookingUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the cancel booking unauthorized response
func (*CancelBookingUnauthorized) WithPayload ¶
func (o *CancelBookingUnauthorized) WithPayload(payload *models.Error) *CancelBookingUnauthorized
WithPayload adds the payload to the cancel booking unauthorized response
func (*CancelBookingUnauthorized) WriteResponse ¶
func (o *CancelBookingUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccessToken ¶
type GetAccessToken struct { Context *middleware.Context Handler GetAccessTokenHandler }
GetAccessToken swagger:route POST /login/{user_name} users getAccessToken
Request a user access token ¶
The access token is required to authenticate requests to the rest of the user-facing API. Ideally access to this endpoint should be secured by the identity management system. The access token has a limited lifetime but can be re-requested as needed. Consider rate-limiting this per-connection.
func NewGetAccessToken ¶
func NewGetAccessToken(ctx *middleware.Context, handler GetAccessTokenHandler) *GetAccessToken
NewGetAccessToken creates a new http.Handler for the get access token operation
func (*GetAccessToken) ServeHTTP ¶
func (o *GetAccessToken) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAccessTokenHandler ¶
type GetAccessTokenHandler interface {
Handle(GetAccessTokenParams) middleware.Responder
}
GetAccessTokenHandler interface for that can handle valid get access token params
type GetAccessTokenHandlerFunc ¶
type GetAccessTokenHandlerFunc func(GetAccessTokenParams) middleware.Responder
GetAccessTokenHandlerFunc turns a function with the right signature into a get access token handler
func (GetAccessTokenHandlerFunc) Handle ¶
func (fn GetAccessTokenHandlerFunc) Handle(params GetAccessTokenParams) middleware.Responder
Handle executing the request and returning a response
type GetAccessTokenInternalServerError ¶
type GetAccessTokenInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetAccessTokenInternalServerError Internal Error
swagger:response getAccessTokenInternalServerError
func NewGetAccessTokenInternalServerError ¶
func NewGetAccessTokenInternalServerError() *GetAccessTokenInternalServerError
NewGetAccessTokenInternalServerError creates GetAccessTokenInternalServerError with default headers values
func (*GetAccessTokenInternalServerError) SetPayload ¶
func (o *GetAccessTokenInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get access token internal server error response
func (*GetAccessTokenInternalServerError) WithPayload ¶
func (o *GetAccessTokenInternalServerError) WithPayload(payload *models.Error) *GetAccessTokenInternalServerError
WithPayload adds the payload to the get access token internal server error response
func (*GetAccessTokenInternalServerError) WriteResponse ¶
func (o *GetAccessTokenInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccessTokenNotFound ¶
GetAccessTokenNotFound The specified resource was not found
swagger:response getAccessTokenNotFound
func NewGetAccessTokenNotFound ¶
func NewGetAccessTokenNotFound() *GetAccessTokenNotFound
NewGetAccessTokenNotFound creates GetAccessTokenNotFound with default headers values
func (*GetAccessTokenNotFound) SetPayload ¶
func (o *GetAccessTokenNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get access token not found response
func (*GetAccessTokenNotFound) WithPayload ¶
func (o *GetAccessTokenNotFound) WithPayload(payload *models.Error) *GetAccessTokenNotFound
WithPayload adds the payload to the get access token not found response
func (*GetAccessTokenNotFound) WriteResponse ¶
func (o *GetAccessTokenNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccessTokenOK ¶
type GetAccessTokenOK struct { /* In: Body */ Payload *models.AccessToken `json:"body,omitempty"` }
GetAccessTokenOK OK
swagger:response getAccessTokenOK
func NewGetAccessTokenOK ¶
func NewGetAccessTokenOK() *GetAccessTokenOK
NewGetAccessTokenOK creates GetAccessTokenOK with default headers values
func (*GetAccessTokenOK) SetPayload ¶
func (o *GetAccessTokenOK) SetPayload(payload *models.AccessToken)
SetPayload sets the payload to the get access token o k response
func (*GetAccessTokenOK) WithPayload ¶
func (o *GetAccessTokenOK) WithPayload(payload *models.AccessToken) *GetAccessTokenOK
WithPayload adds the payload to the get access token o k response
func (*GetAccessTokenOK) WriteResponse ¶
func (o *GetAccessTokenOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccessTokenParams ¶
type GetAccessTokenParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ UserName string }
GetAccessTokenParams contains all the bound params for the get access token operation typically these are obtained from a http.Request
swagger:parameters GetAccessToken
func NewGetAccessTokenParams ¶
func NewGetAccessTokenParams() GetAccessTokenParams
NewGetAccessTokenParams creates a new GetAccessTokenParams object
There are no default values defined in the spec.
func (*GetAccessTokenParams) BindRequest ¶
func (o *GetAccessTokenParams) 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 NewGetAccessTokenParams() beforehand.
type GetAccessTokenURL ¶
type GetAccessTokenURL struct { UserName string // contains filtered or unexported fields }
GetAccessTokenURL generates an URL for the get access token operation
func (*GetAccessTokenURL) Build ¶
func (o *GetAccessTokenURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAccessTokenURL) BuildFull ¶
func (o *GetAccessTokenURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAccessTokenURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAccessTokenURL) SetBasePath ¶
func (o *GetAccessTokenURL) 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 (*GetAccessTokenURL) String ¶
func (o *GetAccessTokenURL) String() string
String returns the string representation of the path with query string
func (*GetAccessTokenURL) StringFull ¶
func (o *GetAccessTokenURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAccessTokenURL) WithBasePath ¶
func (o *GetAccessTokenURL) WithBasePath(bp string) *GetAccessTokenURL
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 GetAccessTokenUnauthorized ¶
GetAccessTokenUnauthorized Unauthorized
swagger:response getAccessTokenUnauthorized
func NewGetAccessTokenUnauthorized ¶
func NewGetAccessTokenUnauthorized() *GetAccessTokenUnauthorized
NewGetAccessTokenUnauthorized creates GetAccessTokenUnauthorized with default headers values
func (*GetAccessTokenUnauthorized) SetPayload ¶
func (o *GetAccessTokenUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get access token unauthorized response
func (*GetAccessTokenUnauthorized) WithPayload ¶
func (o *GetAccessTokenUnauthorized) WithPayload(payload *models.Error) *GetAccessTokenUnauthorized
WithPayload adds the payload to the get access token unauthorized response
func (*GetAccessTokenUnauthorized) WriteResponse ¶
func (o *GetAccessTokenUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetActivity ¶
type GetActivity struct { Context *middleware.Context Handler GetActivityHandler }
GetActivity swagger:route PUT /users/{user_name}/bookings/{booking_name} users getActivity
Request the activity that goes with the booking ¶
Checks if the booking has started or not and if so, returns an activity that can be used to access the booked resource. Since this mutates the state of the booking (from unfulfilled to fulfilled) it is a put not a get.
func NewGetActivity ¶
func NewGetActivity(ctx *middleware.Context, handler GetActivityHandler) *GetActivity
NewGetActivity creates a new http.Handler for the get activity operation
func (*GetActivity) ServeHTTP ¶
func (o *GetActivity) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetActivityHandler ¶
type GetActivityHandler interface {
Handle(GetActivityParams, interface{}) middleware.Responder
}
GetActivityHandler interface for that can handle valid get activity params
type GetActivityHandlerFunc ¶
type GetActivityHandlerFunc func(GetActivityParams, interface{}) middleware.Responder
GetActivityHandlerFunc turns a function with the right signature into a get activity handler
func (GetActivityHandlerFunc) Handle ¶
func (fn GetActivityHandlerFunc) Handle(params GetActivityParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetActivityInternalServerError ¶
type GetActivityInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetActivityInternalServerError Internal Error
swagger:response getActivityInternalServerError
func NewGetActivityInternalServerError ¶
func NewGetActivityInternalServerError() *GetActivityInternalServerError
NewGetActivityInternalServerError creates GetActivityInternalServerError with default headers values
func (*GetActivityInternalServerError) SetPayload ¶
func (o *GetActivityInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get activity internal server error response
func (*GetActivityInternalServerError) WithPayload ¶
func (o *GetActivityInternalServerError) WithPayload(payload *models.Error) *GetActivityInternalServerError
WithPayload adds the payload to the get activity internal server error response
func (*GetActivityInternalServerError) WriteResponse ¶
func (o *GetActivityInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetActivityNotFound ¶
GetActivityNotFound The specified resource was not found
swagger:response getActivityNotFound
func NewGetActivityNotFound ¶
func NewGetActivityNotFound() *GetActivityNotFound
NewGetActivityNotFound creates GetActivityNotFound with default headers values
func (*GetActivityNotFound) SetPayload ¶
func (o *GetActivityNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get activity not found response
func (*GetActivityNotFound) WithPayload ¶
func (o *GetActivityNotFound) WithPayload(payload *models.Error) *GetActivityNotFound
WithPayload adds the payload to the get activity not found response
func (*GetActivityNotFound) WriteResponse ¶
func (o *GetActivityNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetActivityOK ¶
GetActivityOK OK
swagger:response getActivityOK
func NewGetActivityOK ¶
func NewGetActivityOK() *GetActivityOK
NewGetActivityOK creates GetActivityOK with default headers values
func (*GetActivityOK) SetPayload ¶
func (o *GetActivityOK) SetPayload(payload *models.Activity)
SetPayload sets the payload to the get activity o k response
func (*GetActivityOK) WithPayload ¶
func (o *GetActivityOK) WithPayload(payload *models.Activity) *GetActivityOK
WithPayload adds the payload to the get activity o k response
func (*GetActivityOK) WriteResponse ¶
func (o *GetActivityOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetActivityParams ¶
type GetActivityParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ BookingName string /* Required: true In: path */ UserName string }
GetActivityParams contains all the bound params for the get activity operation typically these are obtained from a http.Request
swagger:parameters GetActivity
func NewGetActivityParams ¶
func NewGetActivityParams() GetActivityParams
NewGetActivityParams creates a new GetActivityParams object
There are no default values defined in the spec.
func (*GetActivityParams) BindRequest ¶
func (o *GetActivityParams) 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 NewGetActivityParams() beforehand.
type GetActivityURL ¶
type GetActivityURL struct { BookingName string UserName string // contains filtered or unexported fields }
GetActivityURL generates an URL for the get activity operation
func (*GetActivityURL) Build ¶
func (o *GetActivityURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetActivityURL) BuildFull ¶
func (o *GetActivityURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetActivityURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetActivityURL) SetBasePath ¶
func (o *GetActivityURL) 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 (*GetActivityURL) String ¶
func (o *GetActivityURL) String() string
String returns the string representation of the path with query string
func (*GetActivityURL) StringFull ¶
func (o *GetActivityURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetActivityURL) WithBasePath ¶
func (o *GetActivityURL) WithBasePath(bp string) *GetActivityURL
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 GetActivityUnauthorized ¶
GetActivityUnauthorized Unauthorized
swagger:response getActivityUnauthorized
func NewGetActivityUnauthorized ¶
func NewGetActivityUnauthorized() *GetActivityUnauthorized
NewGetActivityUnauthorized creates GetActivityUnauthorized with default headers values
func (*GetActivityUnauthorized) SetPayload ¶
func (o *GetActivityUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get activity unauthorized response
func (*GetActivityUnauthorized) WithPayload ¶
func (o *GetActivityUnauthorized) WithPayload(payload *models.Error) *GetActivityUnauthorized
WithPayload adds the payload to the get activity unauthorized response
func (*GetActivityUnauthorized) WriteResponse ¶
func (o *GetActivityUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAvailability ¶
type GetAvailability struct { Context *middleware.Context Handler GetAvailabilityHandler }
GetAvailability swagger:route GET /slots/{slot_name} users getAvailability
Get availability for the slot ¶
Pagination is supported by the limit and offset parameters. For the first query '?limit=20&offset=0', the second '?limit=20&offset=20'. The offset is equal to the zero-indexed value of the first item of the next page to be returned (20 items are indexed from 0 to 19, so 20 is the first item to be returned in the second page). Note that drift can occur if slots are booked during the sending of availability data, potentially preventing a user from seeing some slots that move earlier in the index and cross a pagination boundary. Users should refresh their results from 0 offset on a regular-ish basis if they wish to avoid this.
func NewGetAvailability ¶
func NewGetAvailability(ctx *middleware.Context, handler GetAvailabilityHandler) *GetAvailability
NewGetAvailability creates a new http.Handler for the get availability operation
func (*GetAvailability) ServeHTTP ¶
func (o *GetAvailability) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAvailabilityHandler ¶
type GetAvailabilityHandler interface {
Handle(GetAvailabilityParams, interface{}) middleware.Responder
}
GetAvailabilityHandler interface for that can handle valid get availability params
type GetAvailabilityHandlerFunc ¶
type GetAvailabilityHandlerFunc func(GetAvailabilityParams, interface{}) middleware.Responder
GetAvailabilityHandlerFunc turns a function with the right signature into a get availability handler
func (GetAvailabilityHandlerFunc) Handle ¶
func (fn GetAvailabilityHandlerFunc) Handle(params GetAvailabilityParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetAvailabilityInternalServerError ¶
type GetAvailabilityInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetAvailabilityInternalServerError Internal Error
swagger:response getAvailabilityInternalServerError
func NewGetAvailabilityInternalServerError ¶
func NewGetAvailabilityInternalServerError() *GetAvailabilityInternalServerError
NewGetAvailabilityInternalServerError creates GetAvailabilityInternalServerError with default headers values
func (*GetAvailabilityInternalServerError) SetPayload ¶
func (o *GetAvailabilityInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get availability internal server error response
func (*GetAvailabilityInternalServerError) WithPayload ¶
func (o *GetAvailabilityInternalServerError) WithPayload(payload *models.Error) *GetAvailabilityInternalServerError
WithPayload adds the payload to the get availability internal server error response
func (*GetAvailabilityInternalServerError) WriteResponse ¶
func (o *GetAvailabilityInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAvailabilityNotFound ¶
type GetAvailabilityNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetAvailabilityNotFound The specified resource was not found
swagger:response getAvailabilityNotFound
func NewGetAvailabilityNotFound ¶
func NewGetAvailabilityNotFound() *GetAvailabilityNotFound
NewGetAvailabilityNotFound creates GetAvailabilityNotFound with default headers values
func (*GetAvailabilityNotFound) SetPayload ¶
func (o *GetAvailabilityNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get availability not found response
func (*GetAvailabilityNotFound) WithPayload ¶
func (o *GetAvailabilityNotFound) WithPayload(payload *models.Error) *GetAvailabilityNotFound
WithPayload adds the payload to the get availability not found response
func (*GetAvailabilityNotFound) WriteResponse ¶
func (o *GetAvailabilityNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAvailabilityOK ¶
GetAvailabilityOK OK
swagger:response getAvailabilityOK
func NewGetAvailabilityOK ¶
func NewGetAvailabilityOK() *GetAvailabilityOK
NewGetAvailabilityOK creates GetAvailabilityOK with default headers values
func (*GetAvailabilityOK) SetPayload ¶
func (o *GetAvailabilityOK) SetPayload(payload models.Intervals)
SetPayload sets the payload to the get availability o k response
func (*GetAvailabilityOK) WithPayload ¶
func (o *GetAvailabilityOK) WithPayload(payload models.Intervals) *GetAvailabilityOK
WithPayload adds the payload to the get availability o k response
func (*GetAvailabilityOK) WriteResponse ¶
func (o *GetAvailabilityOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAvailabilityParams ¶
type GetAvailabilityParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Limit *int64 /* In: query */ Offset *int64 /* Required: true In: path */ SlotName string }
GetAvailabilityParams contains all the bound params for the get availability operation typically these are obtained from a http.Request
swagger:parameters GetAvailability
func NewGetAvailabilityParams ¶
func NewGetAvailabilityParams() GetAvailabilityParams
NewGetAvailabilityParams creates a new GetAvailabilityParams object
There are no default values defined in the spec.
func (*GetAvailabilityParams) BindRequest ¶
func (o *GetAvailabilityParams) 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 NewGetAvailabilityParams() beforehand.
type GetAvailabilityURL ¶
type GetAvailabilityURL struct { SlotName string Limit *int64 Offset *int64 // contains filtered or unexported fields }
GetAvailabilityURL generates an URL for the get availability operation
func (*GetAvailabilityURL) Build ¶
func (o *GetAvailabilityURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAvailabilityURL) BuildFull ¶
func (o *GetAvailabilityURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAvailabilityURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAvailabilityURL) SetBasePath ¶
func (o *GetAvailabilityURL) 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 (*GetAvailabilityURL) String ¶
func (o *GetAvailabilityURL) String() string
String returns the string representation of the path with query string
func (*GetAvailabilityURL) StringFull ¶
func (o *GetAvailabilityURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAvailabilityURL) WithBasePath ¶
func (o *GetAvailabilityURL) WithBasePath(bp string) *GetAvailabilityURL
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 GetAvailabilityUnauthorized ¶
GetAvailabilityUnauthorized Unauthorized
swagger:response getAvailabilityUnauthorized
func NewGetAvailabilityUnauthorized ¶
func NewGetAvailabilityUnauthorized() *GetAvailabilityUnauthorized
NewGetAvailabilityUnauthorized creates GetAvailabilityUnauthorized with default headers values
func (*GetAvailabilityUnauthorized) SetPayload ¶
func (o *GetAvailabilityUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get availability unauthorized response
func (*GetAvailabilityUnauthorized) WithPayload ¶
func (o *GetAvailabilityUnauthorized) WithPayload(payload *models.Error) *GetAvailabilityUnauthorized
WithPayload adds the payload to the get availability unauthorized response
func (*GetAvailabilityUnauthorized) WriteResponse ¶
func (o *GetAvailabilityUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBookingsForUser ¶
type GetBookingsForUser struct { Context *middleware.Context Handler GetBookingsForUserHandler }
GetBookingsForUser swagger:route GET /users/{user_name}/bookings users getBookingsForUser
Get all current bookings for the user ¶
Get all current bookings for the user. It's assumed that no pagination will be required due to likely policy limits being a couple of bookings per policy and users typically having only a couple of policies. No pagination may cause issues for admins that book hundreds or thousands slots on behalf of students, although it is likely such bookings would be automated so no need to support rapid update of a GUI, at least for now.
func NewGetBookingsForUser ¶
func NewGetBookingsForUser(ctx *middleware.Context, handler GetBookingsForUserHandler) *GetBookingsForUser
NewGetBookingsForUser creates a new http.Handler for the get bookings for user operation
func (*GetBookingsForUser) ServeHTTP ¶
func (o *GetBookingsForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBookingsForUserHandler ¶
type GetBookingsForUserHandler interface {
Handle(GetBookingsForUserParams, interface{}) middleware.Responder
}
GetBookingsForUserHandler interface for that can handle valid get bookings for user params
type GetBookingsForUserHandlerFunc ¶
type GetBookingsForUserHandlerFunc func(GetBookingsForUserParams, interface{}) middleware.Responder
GetBookingsForUserHandlerFunc turns a function with the right signature into a get bookings for user handler
func (GetBookingsForUserHandlerFunc) Handle ¶
func (fn GetBookingsForUserHandlerFunc) Handle(params GetBookingsForUserParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetBookingsForUserInternalServerError ¶
type GetBookingsForUserInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetBookingsForUserInternalServerError Internal Error
swagger:response getBookingsForUserInternalServerError
func NewGetBookingsForUserInternalServerError ¶
func NewGetBookingsForUserInternalServerError() *GetBookingsForUserInternalServerError
NewGetBookingsForUserInternalServerError creates GetBookingsForUserInternalServerError with default headers values
func (*GetBookingsForUserInternalServerError) SetPayload ¶
func (o *GetBookingsForUserInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get bookings for user internal server error response
func (*GetBookingsForUserInternalServerError) WithPayload ¶
func (o *GetBookingsForUserInternalServerError) WithPayload(payload *models.Error) *GetBookingsForUserInternalServerError
WithPayload adds the payload to the get bookings for user internal server error response
func (*GetBookingsForUserInternalServerError) WriteResponse ¶
func (o *GetBookingsForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBookingsForUserNotFound ¶
type GetBookingsForUserNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetBookingsForUserNotFound The specified resource was not found
swagger:response getBookingsForUserNotFound
func NewGetBookingsForUserNotFound ¶
func NewGetBookingsForUserNotFound() *GetBookingsForUserNotFound
NewGetBookingsForUserNotFound creates GetBookingsForUserNotFound with default headers values
func (*GetBookingsForUserNotFound) SetPayload ¶
func (o *GetBookingsForUserNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get bookings for user not found response
func (*GetBookingsForUserNotFound) WithPayload ¶
func (o *GetBookingsForUserNotFound) WithPayload(payload *models.Error) *GetBookingsForUserNotFound
WithPayload adds the payload to the get bookings for user not found response
func (*GetBookingsForUserNotFound) WriteResponse ¶
func (o *GetBookingsForUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBookingsForUserOK ¶
GetBookingsForUserOK OK
swagger:response getBookingsForUserOK
func NewGetBookingsForUserOK ¶
func NewGetBookingsForUserOK() *GetBookingsForUserOK
NewGetBookingsForUserOK creates GetBookingsForUserOK with default headers values
func (*GetBookingsForUserOK) SetPayload ¶
func (o *GetBookingsForUserOK) SetPayload(payload models.Bookings)
SetPayload sets the payload to the get bookings for user o k response
func (*GetBookingsForUserOK) WithPayload ¶
func (o *GetBookingsForUserOK) WithPayload(payload models.Bookings) *GetBookingsForUserOK
WithPayload adds the payload to the get bookings for user o k response
func (*GetBookingsForUserOK) WriteResponse ¶
func (o *GetBookingsForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBookingsForUserParams ¶
type GetBookingsForUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ UserName string }
GetBookingsForUserParams contains all the bound params for the get bookings for user operation typically these are obtained from a http.Request
swagger:parameters GetBookingsForUser
func NewGetBookingsForUserParams ¶
func NewGetBookingsForUserParams() GetBookingsForUserParams
NewGetBookingsForUserParams creates a new GetBookingsForUserParams object
There are no default values defined in the spec.
func (*GetBookingsForUserParams) BindRequest ¶
func (o *GetBookingsForUserParams) 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 NewGetBookingsForUserParams() beforehand.
type GetBookingsForUserURL ¶
type GetBookingsForUserURL struct { UserName string // contains filtered or unexported fields }
GetBookingsForUserURL generates an URL for the get bookings for user operation
func (*GetBookingsForUserURL) Build ¶
func (o *GetBookingsForUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBookingsForUserURL) BuildFull ¶
func (o *GetBookingsForUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBookingsForUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetBookingsForUserURL) SetBasePath ¶
func (o *GetBookingsForUserURL) 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 (*GetBookingsForUserURL) String ¶
func (o *GetBookingsForUserURL) String() string
String returns the string representation of the path with query string
func (*GetBookingsForUserURL) StringFull ¶
func (o *GetBookingsForUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBookingsForUserURL) WithBasePath ¶
func (o *GetBookingsForUserURL) WithBasePath(bp string) *GetBookingsForUserURL
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 GetBookingsForUserUnauthorized ¶
GetBookingsForUserUnauthorized Unauthorized
swagger:response getBookingsForUserUnauthorized
func NewGetBookingsForUserUnauthorized ¶
func NewGetBookingsForUserUnauthorized() *GetBookingsForUserUnauthorized
NewGetBookingsForUserUnauthorized creates GetBookingsForUserUnauthorized with default headers values
func (*GetBookingsForUserUnauthorized) SetPayload ¶
func (o *GetBookingsForUserUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get bookings for user unauthorized response
func (*GetBookingsForUserUnauthorized) WithPayload ¶
func (o *GetBookingsForUserUnauthorized) WithPayload(payload *models.Error) *GetBookingsForUserUnauthorized
WithPayload adds the payload to the get bookings for user unauthorized response
func (*GetBookingsForUserUnauthorized) WriteResponse ¶
func (o *GetBookingsForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDescription ¶
type GetDescription struct { Context *middleware.Context Handler GetDescriptionHandler }
GetDescription swagger:route GET /descriptions/{description_name} users getDescription
Get description ¶
Get description
func NewGetDescription ¶
func NewGetDescription(ctx *middleware.Context, handler GetDescriptionHandler) *GetDescription
NewGetDescription creates a new http.Handler for the get description operation
func (*GetDescription) ServeHTTP ¶
func (o *GetDescription) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetDescriptionHandler ¶
type GetDescriptionHandler interface {
Handle(GetDescriptionParams, interface{}) middleware.Responder
}
GetDescriptionHandler interface for that can handle valid get description params
type GetDescriptionHandlerFunc ¶
type GetDescriptionHandlerFunc func(GetDescriptionParams, interface{}) middleware.Responder
GetDescriptionHandlerFunc turns a function with the right signature into a get description handler
func (GetDescriptionHandlerFunc) Handle ¶
func (fn GetDescriptionHandlerFunc) Handle(params GetDescriptionParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetDescriptionInternalServerError ¶
type GetDescriptionInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetDescriptionInternalServerError Internal Error
swagger:response getDescriptionInternalServerError
func NewGetDescriptionInternalServerError ¶
func NewGetDescriptionInternalServerError() *GetDescriptionInternalServerError
NewGetDescriptionInternalServerError creates GetDescriptionInternalServerError with default headers values
func (*GetDescriptionInternalServerError) SetPayload ¶
func (o *GetDescriptionInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get description internal server error response
func (*GetDescriptionInternalServerError) WithPayload ¶
func (o *GetDescriptionInternalServerError) WithPayload(payload *models.Error) *GetDescriptionInternalServerError
WithPayload adds the payload to the get description internal server error response
func (*GetDescriptionInternalServerError) WriteResponse ¶
func (o *GetDescriptionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDescriptionNotFound ¶
GetDescriptionNotFound The specified resource was not found
swagger:response getDescriptionNotFound
func NewGetDescriptionNotFound ¶
func NewGetDescriptionNotFound() *GetDescriptionNotFound
NewGetDescriptionNotFound creates GetDescriptionNotFound with default headers values
func (*GetDescriptionNotFound) SetPayload ¶
func (o *GetDescriptionNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get description not found response
func (*GetDescriptionNotFound) WithPayload ¶
func (o *GetDescriptionNotFound) WithPayload(payload *models.Error) *GetDescriptionNotFound
WithPayload adds the payload to the get description not found response
func (*GetDescriptionNotFound) WriteResponse ¶
func (o *GetDescriptionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDescriptionOK ¶
type GetDescriptionOK struct { /* In: Body */ Payload *models.Description `json:"body,omitempty"` }
GetDescriptionOK OK
swagger:response getDescriptionOK
func NewGetDescriptionOK ¶
func NewGetDescriptionOK() *GetDescriptionOK
NewGetDescriptionOK creates GetDescriptionOK with default headers values
func (*GetDescriptionOK) SetPayload ¶
func (o *GetDescriptionOK) SetPayload(payload *models.Description)
SetPayload sets the payload to the get description o k response
func (*GetDescriptionOK) WithPayload ¶
func (o *GetDescriptionOK) WithPayload(payload *models.Description) *GetDescriptionOK
WithPayload adds the payload to the get description o k response
func (*GetDescriptionOK) WriteResponse ¶
func (o *GetDescriptionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDescriptionParams ¶
type GetDescriptionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ DescriptionName string }
GetDescriptionParams contains all the bound params for the get description operation typically these are obtained from a http.Request
swagger:parameters GetDescription
func NewGetDescriptionParams ¶
func NewGetDescriptionParams() GetDescriptionParams
NewGetDescriptionParams creates a new GetDescriptionParams object
There are no default values defined in the spec.
func (*GetDescriptionParams) BindRequest ¶
func (o *GetDescriptionParams) 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 NewGetDescriptionParams() beforehand.
type GetDescriptionURL ¶
type GetDescriptionURL struct { DescriptionName string // contains filtered or unexported fields }
GetDescriptionURL generates an URL for the get description operation
func (*GetDescriptionURL) Build ¶
func (o *GetDescriptionURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetDescriptionURL) BuildFull ¶
func (o *GetDescriptionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetDescriptionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetDescriptionURL) SetBasePath ¶
func (o *GetDescriptionURL) 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 (*GetDescriptionURL) String ¶
func (o *GetDescriptionURL) String() string
String returns the string representation of the path with query string
func (*GetDescriptionURL) StringFull ¶
func (o *GetDescriptionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetDescriptionURL) WithBasePath ¶
func (o *GetDescriptionURL) WithBasePath(bp string) *GetDescriptionURL
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 GetDescriptionUnauthorized ¶
GetDescriptionUnauthorized Unauthorized
swagger:response getDescriptionUnauthorized
func NewGetDescriptionUnauthorized ¶
func NewGetDescriptionUnauthorized() *GetDescriptionUnauthorized
NewGetDescriptionUnauthorized creates GetDescriptionUnauthorized with default headers values
func (*GetDescriptionUnauthorized) SetPayload ¶
func (o *GetDescriptionUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get description unauthorized response
func (*GetDescriptionUnauthorized) WithPayload ¶
func (o *GetDescriptionUnauthorized) WithPayload(payload *models.Error) *GetDescriptionUnauthorized
WithPayload adds the payload to the get description unauthorized response
func (*GetDescriptionUnauthorized) WriteResponse ¶
func (o *GetDescriptionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGroup ¶ added in v0.3.0
type GetGroup struct { Context *middleware.Context Handler GetGroupHandler }
GetGroup swagger:route GET /groups/{group_name} users getGroup
Get group ¶
Get fully described group, including described policies, and described slots
func NewGetGroup ¶ added in v0.3.0
func NewGetGroup(ctx *middleware.Context, handler GetGroupHandler) *GetGroup
NewGetGroup creates a new http.Handler for the get group operation
type GetGroupHandler ¶ added in v0.3.0
type GetGroupHandler interface {
Handle(GetGroupParams, interface{}) middleware.Responder
}
GetGroupHandler interface for that can handle valid get group params
type GetGroupHandlerFunc ¶ added in v0.3.0
type GetGroupHandlerFunc func(GetGroupParams, interface{}) middleware.Responder
GetGroupHandlerFunc turns a function with the right signature into a get group handler
func (GetGroupHandlerFunc) Handle ¶ added in v0.3.0
func (fn GetGroupHandlerFunc) Handle(params GetGroupParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetGroupInternalServerError ¶ added in v0.3.0
type GetGroupInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetGroupInternalServerError Internal Error
swagger:response getGroupInternalServerError
func NewGetGroupInternalServerError ¶ added in v0.3.0
func NewGetGroupInternalServerError() *GetGroupInternalServerError
NewGetGroupInternalServerError creates GetGroupInternalServerError with default headers values
func (*GetGroupInternalServerError) SetPayload ¶ added in v0.3.0
func (o *GetGroupInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get group internal server error response
func (*GetGroupInternalServerError) WithPayload ¶ added in v0.3.0
func (o *GetGroupInternalServerError) WithPayload(payload *models.Error) *GetGroupInternalServerError
WithPayload adds the payload to the get group internal server error response
func (*GetGroupInternalServerError) WriteResponse ¶ added in v0.3.0
func (o *GetGroupInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGroupNotFound ¶ added in v0.3.0
GetGroupNotFound The specified resource was not found
swagger:response getGroupNotFound
func NewGetGroupNotFound ¶ added in v0.3.0
func NewGetGroupNotFound() *GetGroupNotFound
NewGetGroupNotFound creates GetGroupNotFound with default headers values
func (*GetGroupNotFound) SetPayload ¶ added in v0.3.0
func (o *GetGroupNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get group not found response
func (*GetGroupNotFound) WithPayload ¶ added in v0.3.0
func (o *GetGroupNotFound) WithPayload(payload *models.Error) *GetGroupNotFound
WithPayload adds the payload to the get group not found response
func (*GetGroupNotFound) WriteResponse ¶ added in v0.3.0
func (o *GetGroupNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGroupOK ¶ added in v0.3.0
type GetGroupOK struct { /* In: Body */ Payload *models.GroupDescribedWithPolicies `json:"body,omitempty"` }
GetGroupOK OK
swagger:response getGroupOK
func NewGetGroupOK ¶ added in v0.3.0
func NewGetGroupOK() *GetGroupOK
NewGetGroupOK creates GetGroupOK with default headers values
func (*GetGroupOK) SetPayload ¶ added in v0.3.0
func (o *GetGroupOK) SetPayload(payload *models.GroupDescribedWithPolicies)
SetPayload sets the payload to the get group o k response
func (*GetGroupOK) WithPayload ¶ added in v0.3.0
func (o *GetGroupOK) WithPayload(payload *models.GroupDescribedWithPolicies) *GetGroupOK
WithPayload adds the payload to the get group o k response
func (*GetGroupOK) WriteResponse ¶ added in v0.3.0
func (o *GetGroupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGroupParams ¶ added in v0.3.0
type GetGroupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ GroupName string }
GetGroupParams contains all the bound params for the get group operation typically these are obtained from a http.Request
swagger:parameters GetGroup
func NewGetGroupParams ¶ added in v0.3.0
func NewGetGroupParams() GetGroupParams
NewGetGroupParams creates a new GetGroupParams object
There are no default values defined in the spec.
func (*GetGroupParams) BindRequest ¶ added in v0.3.0
func (o *GetGroupParams) 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 NewGetGroupParams() beforehand.
type GetGroupURL ¶ added in v0.3.0
type GetGroupURL struct { GroupName string // contains filtered or unexported fields }
GetGroupURL generates an URL for the get group operation
func (*GetGroupURL) Build ¶ added in v0.3.0
func (o *GetGroupURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetGroupURL) BuildFull ¶ added in v0.3.0
func (o *GetGroupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetGroupURL) Must ¶ added in v0.3.0
Must is a helper function to panic when the url builder returns an error
func (*GetGroupURL) SetBasePath ¶ added in v0.3.0
func (o *GetGroupURL) 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 (*GetGroupURL) String ¶ added in v0.3.0
func (o *GetGroupURL) String() string
String returns the string representation of the path with query string
func (*GetGroupURL) StringFull ¶ added in v0.3.0
func (o *GetGroupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetGroupURL) WithBasePath ¶ added in v0.3.0
func (o *GetGroupURL) WithBasePath(bp string) *GetGroupURL
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 GetGroupUnauthorized ¶ added in v0.3.0
GetGroupUnauthorized Unauthorized
swagger:response getGroupUnauthorized
func NewGetGroupUnauthorized ¶ added in v0.3.0
func NewGetGroupUnauthorized() *GetGroupUnauthorized
NewGetGroupUnauthorized creates GetGroupUnauthorized with default headers values
func (*GetGroupUnauthorized) SetPayload ¶ added in v0.3.0
func (o *GetGroupUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get group unauthorized response
func (*GetGroupUnauthorized) WithPayload ¶ added in v0.3.0
func (o *GetGroupUnauthorized) WithPayload(payload *models.Error) *GetGroupUnauthorized
WithPayload adds the payload to the get group unauthorized response
func (*GetGroupUnauthorized) WriteResponse ¶ added in v0.3.0
func (o *GetGroupUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGroupsForUser ¶ added in v0.3.0
type GetGroupsForUser struct { Context *middleware.Context Handler GetGroupsForUserHandler }
GetGroupsForUser swagger:route GET /users/{user_name}/groups users getGroupsForUser
Get all current groups for user ¶
Get all current groups for user. This only returns groups that are currently listed within the user's groups. Group data includes a description, but not policies.
func NewGetGroupsForUser ¶ added in v0.3.0
func NewGetGroupsForUser(ctx *middleware.Context, handler GetGroupsForUserHandler) *GetGroupsForUser
NewGetGroupsForUser creates a new http.Handler for the get groups for user operation
func (*GetGroupsForUser) ServeHTTP ¶ added in v0.3.0
func (o *GetGroupsForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetGroupsForUserHandler ¶ added in v0.3.0
type GetGroupsForUserHandler interface {
Handle(GetGroupsForUserParams, interface{}) middleware.Responder
}
GetGroupsForUserHandler interface for that can handle valid get groups for user params
type GetGroupsForUserHandlerFunc ¶ added in v0.3.0
type GetGroupsForUserHandlerFunc func(GetGroupsForUserParams, interface{}) middleware.Responder
GetGroupsForUserHandlerFunc turns a function with the right signature into a get groups for user handler
func (GetGroupsForUserHandlerFunc) Handle ¶ added in v0.3.0
func (fn GetGroupsForUserHandlerFunc) Handle(params GetGroupsForUserParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetGroupsForUserInternalServerError ¶ added in v0.3.0
type GetGroupsForUserInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetGroupsForUserInternalServerError Internal Error
swagger:response getGroupsForUserInternalServerError
func NewGetGroupsForUserInternalServerError ¶ added in v0.3.0
func NewGetGroupsForUserInternalServerError() *GetGroupsForUserInternalServerError
NewGetGroupsForUserInternalServerError creates GetGroupsForUserInternalServerError with default headers values
func (*GetGroupsForUserInternalServerError) SetPayload ¶ added in v0.3.0
func (o *GetGroupsForUserInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get groups for user internal server error response
func (*GetGroupsForUserInternalServerError) WithPayload ¶ added in v0.3.0
func (o *GetGroupsForUserInternalServerError) WithPayload(payload *models.Error) *GetGroupsForUserInternalServerError
WithPayload adds the payload to the get groups for user internal server error response
func (*GetGroupsForUserInternalServerError) WriteResponse ¶ added in v0.3.0
func (o *GetGroupsForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGroupsForUserNotFound ¶ added in v0.3.0
type GetGroupsForUserNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetGroupsForUserNotFound The specified resource was not found
swagger:response getGroupsForUserNotFound
func NewGetGroupsForUserNotFound ¶ added in v0.3.0
func NewGetGroupsForUserNotFound() *GetGroupsForUserNotFound
NewGetGroupsForUserNotFound creates GetGroupsForUserNotFound with default headers values
func (*GetGroupsForUserNotFound) SetPayload ¶ added in v0.3.0
func (o *GetGroupsForUserNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get groups for user not found response
func (*GetGroupsForUserNotFound) WithPayload ¶ added in v0.3.0
func (o *GetGroupsForUserNotFound) WithPayload(payload *models.Error) *GetGroupsForUserNotFound
WithPayload adds the payload to the get groups for user not found response
func (*GetGroupsForUserNotFound) WriteResponse ¶ added in v0.3.0
func (o *GetGroupsForUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGroupsForUserOK ¶ added in v0.3.0
type GetGroupsForUserOK struct { /* In: Body */ Payload models.GroupsDescribed `json:"body,omitempty"` }
GetGroupsForUserOK OK
swagger:response getGroupsForUserOK
func NewGetGroupsForUserOK ¶ added in v0.3.0
func NewGetGroupsForUserOK() *GetGroupsForUserOK
NewGetGroupsForUserOK creates GetGroupsForUserOK with default headers values
func (*GetGroupsForUserOK) SetPayload ¶ added in v0.3.0
func (o *GetGroupsForUserOK) SetPayload(payload models.GroupsDescribed)
SetPayload sets the payload to the get groups for user o k response
func (*GetGroupsForUserOK) WithPayload ¶ added in v0.3.0
func (o *GetGroupsForUserOK) WithPayload(payload models.GroupsDescribed) *GetGroupsForUserOK
WithPayload adds the payload to the get groups for user o k response
func (*GetGroupsForUserOK) WriteResponse ¶ added in v0.3.0
func (o *GetGroupsForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGroupsForUserParams ¶ added in v0.3.0
type GetGroupsForUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ UserName string }
GetGroupsForUserParams contains all the bound params for the get groups for user operation typically these are obtained from a http.Request
swagger:parameters GetGroupsForUser
func NewGetGroupsForUserParams ¶ added in v0.3.0
func NewGetGroupsForUserParams() GetGroupsForUserParams
NewGetGroupsForUserParams creates a new GetGroupsForUserParams object
There are no default values defined in the spec.
func (*GetGroupsForUserParams) BindRequest ¶ added in v0.3.0
func (o *GetGroupsForUserParams) 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 NewGetGroupsForUserParams() beforehand.
type GetGroupsForUserURL ¶ added in v0.3.0
type GetGroupsForUserURL struct { UserName string // contains filtered or unexported fields }
GetGroupsForUserURL generates an URL for the get groups for user operation
func (*GetGroupsForUserURL) Build ¶ added in v0.3.0
func (o *GetGroupsForUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetGroupsForUserURL) BuildFull ¶ added in v0.3.0
func (o *GetGroupsForUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetGroupsForUserURL) Must ¶ added in v0.3.0
Must is a helper function to panic when the url builder returns an error
func (*GetGroupsForUserURL) SetBasePath ¶ added in v0.3.0
func (o *GetGroupsForUserURL) 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 (*GetGroupsForUserURL) String ¶ added in v0.3.0
func (o *GetGroupsForUserURL) String() string
String returns the string representation of the path with query string
func (*GetGroupsForUserURL) StringFull ¶ added in v0.3.0
func (o *GetGroupsForUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetGroupsForUserURL) WithBasePath ¶ added in v0.3.0
func (o *GetGroupsForUserURL) WithBasePath(bp string) *GetGroupsForUserURL
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 GetGroupsForUserUnauthorized ¶ added in v0.3.0
GetGroupsForUserUnauthorized Unauthorized
swagger:response getGroupsForUserUnauthorized
func NewGetGroupsForUserUnauthorized ¶ added in v0.3.0
func NewGetGroupsForUserUnauthorized() *GetGroupsForUserUnauthorized
NewGetGroupsForUserUnauthorized creates GetGroupsForUserUnauthorized with default headers values
func (*GetGroupsForUserUnauthorized) SetPayload ¶ added in v0.3.0
func (o *GetGroupsForUserUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get groups for user unauthorized response
func (*GetGroupsForUserUnauthorized) WithPayload ¶ added in v0.3.0
func (o *GetGroupsForUserUnauthorized) WithPayload(payload *models.Error) *GetGroupsForUserUnauthorized
WithPayload adds the payload to the get groups for user unauthorized response
func (*GetGroupsForUserUnauthorized) WriteResponse ¶ added in v0.3.0
func (o *GetGroupsForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetOldBookingsForUser ¶
type GetOldBookingsForUser struct { Context *middleware.Context Handler GetOldBookingsForUserHandler }
GetOldBookingsForUser swagger:route GET /users/{user_name}/oldbookings users getOldBookingsForUser
Get all old bookings for the user ¶
Get all old bookings for the user. It's assumed that no pagination will be required due to likely policy limits including usage limits and users typically having only a couple of policies, although in practice pagination may be useful for heavy users.
func NewGetOldBookingsForUser ¶
func NewGetOldBookingsForUser(ctx *middleware.Context, handler GetOldBookingsForUserHandler) *GetOldBookingsForUser
NewGetOldBookingsForUser creates a new http.Handler for the get old bookings for user operation
func (*GetOldBookingsForUser) ServeHTTP ¶
func (o *GetOldBookingsForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetOldBookingsForUserHandler ¶
type GetOldBookingsForUserHandler interface {
Handle(GetOldBookingsForUserParams, interface{}) middleware.Responder
}
GetOldBookingsForUserHandler interface for that can handle valid get old bookings for user params
type GetOldBookingsForUserHandlerFunc ¶
type GetOldBookingsForUserHandlerFunc func(GetOldBookingsForUserParams, interface{}) middleware.Responder
GetOldBookingsForUserHandlerFunc turns a function with the right signature into a get old bookings for user handler
func (GetOldBookingsForUserHandlerFunc) Handle ¶
func (fn GetOldBookingsForUserHandlerFunc) Handle(params GetOldBookingsForUserParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetOldBookingsForUserInternalServerError ¶
type GetOldBookingsForUserInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetOldBookingsForUserInternalServerError Internal Error
swagger:response getOldBookingsForUserInternalServerError
func NewGetOldBookingsForUserInternalServerError ¶
func NewGetOldBookingsForUserInternalServerError() *GetOldBookingsForUserInternalServerError
NewGetOldBookingsForUserInternalServerError creates GetOldBookingsForUserInternalServerError with default headers values
func (*GetOldBookingsForUserInternalServerError) SetPayload ¶
func (o *GetOldBookingsForUserInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get old bookings for user internal server error response
func (*GetOldBookingsForUserInternalServerError) WithPayload ¶
func (o *GetOldBookingsForUserInternalServerError) WithPayload(payload *models.Error) *GetOldBookingsForUserInternalServerError
WithPayload adds the payload to the get old bookings for user internal server error response
func (*GetOldBookingsForUserInternalServerError) WriteResponse ¶
func (o *GetOldBookingsForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetOldBookingsForUserNotFound ¶
type GetOldBookingsForUserNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetOldBookingsForUserNotFound The specified resource was not found
swagger:response getOldBookingsForUserNotFound
func NewGetOldBookingsForUserNotFound ¶
func NewGetOldBookingsForUserNotFound() *GetOldBookingsForUserNotFound
NewGetOldBookingsForUserNotFound creates GetOldBookingsForUserNotFound with default headers values
func (*GetOldBookingsForUserNotFound) SetPayload ¶
func (o *GetOldBookingsForUserNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get old bookings for user not found response
func (*GetOldBookingsForUserNotFound) WithPayload ¶
func (o *GetOldBookingsForUserNotFound) WithPayload(payload *models.Error) *GetOldBookingsForUserNotFound
WithPayload adds the payload to the get old bookings for user not found response
func (*GetOldBookingsForUserNotFound) WriteResponse ¶
func (o *GetOldBookingsForUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetOldBookingsForUserOK ¶
type GetOldBookingsForUserOK struct { /* In: Body */ Payload models.Bookings `json:"body,omitempty"` }
GetOldBookingsForUserOK OK
swagger:response getOldBookingsForUserOK
func NewGetOldBookingsForUserOK ¶
func NewGetOldBookingsForUserOK() *GetOldBookingsForUserOK
NewGetOldBookingsForUserOK creates GetOldBookingsForUserOK with default headers values
func (*GetOldBookingsForUserOK) SetPayload ¶
func (o *GetOldBookingsForUserOK) SetPayload(payload models.Bookings)
SetPayload sets the payload to the get old bookings for user o k response
func (*GetOldBookingsForUserOK) WithPayload ¶
func (o *GetOldBookingsForUserOK) WithPayload(payload models.Bookings) *GetOldBookingsForUserOK
WithPayload adds the payload to the get old bookings for user o k response
func (*GetOldBookingsForUserOK) WriteResponse ¶
func (o *GetOldBookingsForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetOldBookingsForUserParams ¶
type GetOldBookingsForUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ UserName string }
GetOldBookingsForUserParams contains all the bound params for the get old bookings for user operation typically these are obtained from a http.Request
swagger:parameters GetOldBookingsForUser
func NewGetOldBookingsForUserParams ¶
func NewGetOldBookingsForUserParams() GetOldBookingsForUserParams
NewGetOldBookingsForUserParams creates a new GetOldBookingsForUserParams object
There are no default values defined in the spec.
func (*GetOldBookingsForUserParams) BindRequest ¶
func (o *GetOldBookingsForUserParams) 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 NewGetOldBookingsForUserParams() beforehand.
type GetOldBookingsForUserURL ¶
type GetOldBookingsForUserURL struct { UserName string // contains filtered or unexported fields }
GetOldBookingsForUserURL generates an URL for the get old bookings for user operation
func (*GetOldBookingsForUserURL) Build ¶
func (o *GetOldBookingsForUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetOldBookingsForUserURL) BuildFull ¶
func (o *GetOldBookingsForUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetOldBookingsForUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetOldBookingsForUserURL) SetBasePath ¶
func (o *GetOldBookingsForUserURL) 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 (*GetOldBookingsForUserURL) String ¶
func (o *GetOldBookingsForUserURL) String() string
String returns the string representation of the path with query string
func (*GetOldBookingsForUserURL) StringFull ¶
func (o *GetOldBookingsForUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetOldBookingsForUserURL) WithBasePath ¶
func (o *GetOldBookingsForUserURL) WithBasePath(bp string) *GetOldBookingsForUserURL
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 GetOldBookingsForUserUnauthorized ¶
GetOldBookingsForUserUnauthorized Unauthorized
swagger:response getOldBookingsForUserUnauthorized
func NewGetOldBookingsForUserUnauthorized ¶
func NewGetOldBookingsForUserUnauthorized() *GetOldBookingsForUserUnauthorized
NewGetOldBookingsForUserUnauthorized creates GetOldBookingsForUserUnauthorized with default headers values
func (*GetOldBookingsForUserUnauthorized) SetPayload ¶
func (o *GetOldBookingsForUserUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get old bookings for user unauthorized response
func (*GetOldBookingsForUserUnauthorized) WithPayload ¶
func (o *GetOldBookingsForUserUnauthorized) WithPayload(payload *models.Error) *GetOldBookingsForUserUnauthorized
WithPayload adds the payload to the get old bookings for user unauthorized response
func (*GetOldBookingsForUserUnauthorized) WriteResponse ¶
func (o *GetOldBookingsForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicy ¶
type GetPolicy struct { Context *middleware.Context Handler GetPolicyHandler }
GetPolicy swagger:route GET /policies/{policy_name} users getPolicy
Get policy ¶
Get policy
func NewGetPolicy ¶
func NewGetPolicy(ctx *middleware.Context, handler GetPolicyHandler) *GetPolicy
NewGetPolicy creates a new http.Handler for the get policy operation
type GetPolicyHandler ¶
type GetPolicyHandler interface {
Handle(GetPolicyParams, interface{}) middleware.Responder
}
GetPolicyHandler interface for that can handle valid get policy params
type GetPolicyHandlerFunc ¶
type GetPolicyHandlerFunc func(GetPolicyParams, interface{}) middleware.Responder
GetPolicyHandlerFunc turns a function with the right signature into a get policy handler
func (GetPolicyHandlerFunc) Handle ¶
func (fn GetPolicyHandlerFunc) Handle(params GetPolicyParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetPolicyInternalServerError ¶
type GetPolicyInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetPolicyInternalServerError Internal Error
swagger:response getPolicyInternalServerError
func NewGetPolicyInternalServerError ¶
func NewGetPolicyInternalServerError() *GetPolicyInternalServerError
NewGetPolicyInternalServerError creates GetPolicyInternalServerError with default headers values
func (*GetPolicyInternalServerError) SetPayload ¶
func (o *GetPolicyInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get policy internal server error response
func (*GetPolicyInternalServerError) WithPayload ¶
func (o *GetPolicyInternalServerError) WithPayload(payload *models.Error) *GetPolicyInternalServerError
WithPayload adds the payload to the get policy internal server error response
func (*GetPolicyInternalServerError) WriteResponse ¶
func (o *GetPolicyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyNotFound ¶
GetPolicyNotFound The specified resource was not found
swagger:response getPolicyNotFound
func NewGetPolicyNotFound ¶
func NewGetPolicyNotFound() *GetPolicyNotFound
NewGetPolicyNotFound creates GetPolicyNotFound with default headers values
func (*GetPolicyNotFound) SetPayload ¶
func (o *GetPolicyNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get policy not found response
func (*GetPolicyNotFound) WithPayload ¶
func (o *GetPolicyNotFound) WithPayload(payload *models.Error) *GetPolicyNotFound
WithPayload adds the payload to the get policy not found response
func (*GetPolicyNotFound) WriteResponse ¶
func (o *GetPolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyOK ¶
type GetPolicyOK struct { /* In: Body */ Payload *models.PolicyDescribed `json:"body,omitempty"` }
GetPolicyOK OK
swagger:response getPolicyOK
func NewGetPolicyOK ¶
func NewGetPolicyOK() *GetPolicyOK
NewGetPolicyOK creates GetPolicyOK with default headers values
func (*GetPolicyOK) SetPayload ¶
func (o *GetPolicyOK) SetPayload(payload *models.PolicyDescribed)
SetPayload sets the payload to the get policy o k response
func (*GetPolicyOK) WithPayload ¶
func (o *GetPolicyOK) WithPayload(payload *models.PolicyDescribed) *GetPolicyOK
WithPayload adds the payload to the get policy o k response
func (*GetPolicyOK) WriteResponse ¶
func (o *GetPolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyParams ¶
type GetPolicyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ PolicyName string }
GetPolicyParams contains all the bound params for the get policy operation typically these are obtained from a http.Request
swagger:parameters GetPolicy
func NewGetPolicyParams ¶
func NewGetPolicyParams() GetPolicyParams
NewGetPolicyParams creates a new GetPolicyParams object
There are no default values defined in the spec.
func (*GetPolicyParams) BindRequest ¶
func (o *GetPolicyParams) 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 NewGetPolicyParams() beforehand.
type GetPolicyStatusForUser ¶
type GetPolicyStatusForUser struct { Context *middleware.Context Handler GetPolicyStatusForUserHandler }
GetPolicyStatusForUser swagger:route GET /users/{user_name}/policies/{policy_name} users getPolicyStatusForUser
Get policy status ¶
Get policy status for the user
func NewGetPolicyStatusForUser ¶
func NewGetPolicyStatusForUser(ctx *middleware.Context, handler GetPolicyStatusForUserHandler) *GetPolicyStatusForUser
NewGetPolicyStatusForUser creates a new http.Handler for the get policy status for user operation
func (*GetPolicyStatusForUser) ServeHTTP ¶
func (o *GetPolicyStatusForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetPolicyStatusForUserHandler ¶
type GetPolicyStatusForUserHandler interface {
Handle(GetPolicyStatusForUserParams, interface{}) middleware.Responder
}
GetPolicyStatusForUserHandler interface for that can handle valid get policy status for user params
type GetPolicyStatusForUserHandlerFunc ¶
type GetPolicyStatusForUserHandlerFunc func(GetPolicyStatusForUserParams, interface{}) middleware.Responder
GetPolicyStatusForUserHandlerFunc turns a function with the right signature into a get policy status for user handler
func (GetPolicyStatusForUserHandlerFunc) Handle ¶
func (fn GetPolicyStatusForUserHandlerFunc) Handle(params GetPolicyStatusForUserParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetPolicyStatusForUserInternalServerError ¶
type GetPolicyStatusForUserInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetPolicyStatusForUserInternalServerError Internal Error
swagger:response getPolicyStatusForUserInternalServerError
func NewGetPolicyStatusForUserInternalServerError ¶
func NewGetPolicyStatusForUserInternalServerError() *GetPolicyStatusForUserInternalServerError
NewGetPolicyStatusForUserInternalServerError creates GetPolicyStatusForUserInternalServerError with default headers values
func (*GetPolicyStatusForUserInternalServerError) SetPayload ¶
func (o *GetPolicyStatusForUserInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get policy status for user internal server error response
func (*GetPolicyStatusForUserInternalServerError) WithPayload ¶
func (o *GetPolicyStatusForUserInternalServerError) WithPayload(payload *models.Error) *GetPolicyStatusForUserInternalServerError
WithPayload adds the payload to the get policy status for user internal server error response
func (*GetPolicyStatusForUserInternalServerError) WriteResponse ¶
func (o *GetPolicyStatusForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyStatusForUserNotFound ¶
type GetPolicyStatusForUserNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetPolicyStatusForUserNotFound The specified resource was not found
swagger:response getPolicyStatusForUserNotFound
func NewGetPolicyStatusForUserNotFound ¶
func NewGetPolicyStatusForUserNotFound() *GetPolicyStatusForUserNotFound
NewGetPolicyStatusForUserNotFound creates GetPolicyStatusForUserNotFound with default headers values
func (*GetPolicyStatusForUserNotFound) SetPayload ¶
func (o *GetPolicyStatusForUserNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get policy status for user not found response
func (*GetPolicyStatusForUserNotFound) WithPayload ¶
func (o *GetPolicyStatusForUserNotFound) WithPayload(payload *models.Error) *GetPolicyStatusForUserNotFound
WithPayload adds the payload to the get policy status for user not found response
func (*GetPolicyStatusForUserNotFound) WriteResponse ¶
func (o *GetPolicyStatusForUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyStatusForUserOK ¶
type GetPolicyStatusForUserOK struct { /* In: Body */ Payload *models.PolicyStatus `json:"body,omitempty"` }
GetPolicyStatusForUserOK OK
swagger:response getPolicyStatusForUserOK
func NewGetPolicyStatusForUserOK ¶
func NewGetPolicyStatusForUserOK() *GetPolicyStatusForUserOK
NewGetPolicyStatusForUserOK creates GetPolicyStatusForUserOK with default headers values
func (*GetPolicyStatusForUserOK) SetPayload ¶
func (o *GetPolicyStatusForUserOK) SetPayload(payload *models.PolicyStatus)
SetPayload sets the payload to the get policy status for user o k response
func (*GetPolicyStatusForUserOK) WithPayload ¶
func (o *GetPolicyStatusForUserOK) WithPayload(payload *models.PolicyStatus) *GetPolicyStatusForUserOK
WithPayload adds the payload to the get policy status for user o k response
func (*GetPolicyStatusForUserOK) WriteResponse ¶
func (o *GetPolicyStatusForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyStatusForUserParams ¶
type GetPolicyStatusForUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ PolicyName string /* Required: true In: path */ UserName string }
GetPolicyStatusForUserParams contains all the bound params for the get policy status for user operation typically these are obtained from a http.Request
swagger:parameters GetPolicyStatusForUser
func NewGetPolicyStatusForUserParams ¶
func NewGetPolicyStatusForUserParams() GetPolicyStatusForUserParams
NewGetPolicyStatusForUserParams creates a new GetPolicyStatusForUserParams object
There are no default values defined in the spec.
func (*GetPolicyStatusForUserParams) BindRequest ¶
func (o *GetPolicyStatusForUserParams) 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 NewGetPolicyStatusForUserParams() beforehand.
type GetPolicyStatusForUserURL ¶
type GetPolicyStatusForUserURL struct { PolicyName string UserName string // contains filtered or unexported fields }
GetPolicyStatusForUserURL generates an URL for the get policy status for user operation
func (*GetPolicyStatusForUserURL) Build ¶
func (o *GetPolicyStatusForUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetPolicyStatusForUserURL) BuildFull ¶
func (o *GetPolicyStatusForUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetPolicyStatusForUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetPolicyStatusForUserURL) SetBasePath ¶
func (o *GetPolicyStatusForUserURL) 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 (*GetPolicyStatusForUserURL) String ¶
func (o *GetPolicyStatusForUserURL) String() string
String returns the string representation of the path with query string
func (*GetPolicyStatusForUserURL) StringFull ¶
func (o *GetPolicyStatusForUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetPolicyStatusForUserURL) WithBasePath ¶
func (o *GetPolicyStatusForUserURL) WithBasePath(bp string) *GetPolicyStatusForUserURL
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 GetPolicyStatusForUserUnauthorized ¶
GetPolicyStatusForUserUnauthorized Unauthorized
swagger:response getPolicyStatusForUserUnauthorized
func NewGetPolicyStatusForUserUnauthorized ¶
func NewGetPolicyStatusForUserUnauthorized() *GetPolicyStatusForUserUnauthorized
NewGetPolicyStatusForUserUnauthorized creates GetPolicyStatusForUserUnauthorized with default headers values
func (*GetPolicyStatusForUserUnauthorized) SetPayload ¶
func (o *GetPolicyStatusForUserUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get policy status for user unauthorized response
func (*GetPolicyStatusForUserUnauthorized) WithPayload ¶
func (o *GetPolicyStatusForUserUnauthorized) WithPayload(payload *models.Error) *GetPolicyStatusForUserUnauthorized
WithPayload adds the payload to the get policy status for user unauthorized response
func (*GetPolicyStatusForUserUnauthorized) WriteResponse ¶
func (o *GetPolicyStatusForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyURL ¶
type GetPolicyURL struct { PolicyName string // contains filtered or unexported fields }
GetPolicyURL generates an URL for the get policy operation
func (*GetPolicyURL) Build ¶
func (o *GetPolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetPolicyURL) BuildFull ¶
func (o *GetPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetPolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetPolicyURL) SetBasePath ¶
func (o *GetPolicyURL) 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 (*GetPolicyURL) String ¶
func (o *GetPolicyURL) String() string
String returns the string representation of the path with query string
func (*GetPolicyURL) StringFull ¶
func (o *GetPolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetPolicyURL) WithBasePath ¶
func (o *GetPolicyURL) WithBasePath(bp string) *GetPolicyURL
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 GetPolicyUnauthorized ¶
GetPolicyUnauthorized Unauthorized
swagger:response getPolicyUnauthorized
func NewGetPolicyUnauthorized ¶
func NewGetPolicyUnauthorized() *GetPolicyUnauthorized
NewGetPolicyUnauthorized creates GetPolicyUnauthorized with default headers values
func (*GetPolicyUnauthorized) SetPayload ¶
func (o *GetPolicyUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get policy unauthorized response
func (*GetPolicyUnauthorized) WithPayload ¶
func (o *GetPolicyUnauthorized) WithPayload(payload *models.Error) *GetPolicyUnauthorized
WithPayload adds the payload to the get policy unauthorized response
func (*GetPolicyUnauthorized) WriteResponse ¶
func (o *GetPolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStoreStatusUser ¶
type GetStoreStatusUser struct { Context *middleware.Context Handler GetStoreStatusUserHandler }
GetStoreStatusUser swagger:route GET /users/status users getStoreStatusUser
Get current store status ¶
Gets the current store status from a user perspective (e.g. is it locked? what is the reason?)
func NewGetStoreStatusUser ¶
func NewGetStoreStatusUser(ctx *middleware.Context, handler GetStoreStatusUserHandler) *GetStoreStatusUser
NewGetStoreStatusUser creates a new http.Handler for the get store status user operation
func (*GetStoreStatusUser) ServeHTTP ¶
func (o *GetStoreStatusUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStoreStatusUserHandler ¶
type GetStoreStatusUserHandler interface {
Handle(GetStoreStatusUserParams, interface{}) middleware.Responder
}
GetStoreStatusUserHandler interface for that can handle valid get store status user params
type GetStoreStatusUserHandlerFunc ¶
type GetStoreStatusUserHandlerFunc func(GetStoreStatusUserParams, interface{}) middleware.Responder
GetStoreStatusUserHandlerFunc turns a function with the right signature into a get store status user handler
func (GetStoreStatusUserHandlerFunc) Handle ¶
func (fn GetStoreStatusUserHandlerFunc) Handle(params GetStoreStatusUserParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetStoreStatusUserInternalServerError ¶
type GetStoreStatusUserInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetStoreStatusUserInternalServerError Internal Error
swagger:response getStoreStatusUserInternalServerError
func NewGetStoreStatusUserInternalServerError ¶
func NewGetStoreStatusUserInternalServerError() *GetStoreStatusUserInternalServerError
NewGetStoreStatusUserInternalServerError creates GetStoreStatusUserInternalServerError with default headers values
func (*GetStoreStatusUserInternalServerError) SetPayload ¶
func (o *GetStoreStatusUserInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get store status user internal server error response
func (*GetStoreStatusUserInternalServerError) WithPayload ¶
func (o *GetStoreStatusUserInternalServerError) WithPayload(payload *models.Error) *GetStoreStatusUserInternalServerError
WithPayload adds the payload to the get store status user internal server error response
func (*GetStoreStatusUserInternalServerError) WriteResponse ¶
func (o *GetStoreStatusUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStoreStatusUserNotFound ¶
type GetStoreStatusUserNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetStoreStatusUserNotFound The specified resource was not found
swagger:response getStoreStatusUserNotFound
func NewGetStoreStatusUserNotFound ¶
func NewGetStoreStatusUserNotFound() *GetStoreStatusUserNotFound
NewGetStoreStatusUserNotFound creates GetStoreStatusUserNotFound with default headers values
func (*GetStoreStatusUserNotFound) SetPayload ¶
func (o *GetStoreStatusUserNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get store status user not found response
func (*GetStoreStatusUserNotFound) WithPayload ¶
func (o *GetStoreStatusUserNotFound) WithPayload(payload *models.Error) *GetStoreStatusUserNotFound
WithPayload adds the payload to the get store status user not found response
func (*GetStoreStatusUserNotFound) WriteResponse ¶
func (o *GetStoreStatusUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStoreStatusUserOK ¶
type GetStoreStatusUserOK struct { /* In: Body */ Payload *models.StoreStatusUser `json:"body,omitempty"` }
GetStoreStatusUserOK OK
swagger:response getStoreStatusUserOK
func NewGetStoreStatusUserOK ¶
func NewGetStoreStatusUserOK() *GetStoreStatusUserOK
NewGetStoreStatusUserOK creates GetStoreStatusUserOK with default headers values
func (*GetStoreStatusUserOK) SetPayload ¶
func (o *GetStoreStatusUserOK) SetPayload(payload *models.StoreStatusUser)
SetPayload sets the payload to the get store status user o k response
func (*GetStoreStatusUserOK) WithPayload ¶
func (o *GetStoreStatusUserOK) WithPayload(payload *models.StoreStatusUser) *GetStoreStatusUserOK
WithPayload adds the payload to the get store status user o k response
func (*GetStoreStatusUserOK) WriteResponse ¶
func (o *GetStoreStatusUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStoreStatusUserParams ¶
type GetStoreStatusUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetStoreStatusUserParams contains all the bound params for the get store status user operation typically these are obtained from a http.Request
swagger:parameters getStoreStatusUser
func NewGetStoreStatusUserParams ¶
func NewGetStoreStatusUserParams() GetStoreStatusUserParams
NewGetStoreStatusUserParams creates a new GetStoreStatusUserParams object
There are no default values defined in the spec.
func (*GetStoreStatusUserParams) BindRequest ¶
func (o *GetStoreStatusUserParams) 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 NewGetStoreStatusUserParams() beforehand.
type GetStoreStatusUserURL ¶
type GetStoreStatusUserURL struct {
// contains filtered or unexported fields
}
GetStoreStatusUserURL generates an URL for the get store status user operation
func (*GetStoreStatusUserURL) Build ¶
func (o *GetStoreStatusUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStoreStatusUserURL) BuildFull ¶
func (o *GetStoreStatusUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStoreStatusUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStoreStatusUserURL) SetBasePath ¶
func (o *GetStoreStatusUserURL) 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 (*GetStoreStatusUserURL) String ¶
func (o *GetStoreStatusUserURL) String() string
String returns the string representation of the path with query string
func (*GetStoreStatusUserURL) StringFull ¶
func (o *GetStoreStatusUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStoreStatusUserURL) WithBasePath ¶
func (o *GetStoreStatusUserURL) WithBasePath(bp string) *GetStoreStatusUserURL
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 GetStoreStatusUserUnauthorized ¶
GetStoreStatusUserUnauthorized Unauthorized
swagger:response getStoreStatusUserUnauthorized
func NewGetStoreStatusUserUnauthorized ¶
func NewGetStoreStatusUserUnauthorized() *GetStoreStatusUserUnauthorized
NewGetStoreStatusUserUnauthorized creates GetStoreStatusUserUnauthorized with default headers values
func (*GetStoreStatusUserUnauthorized) SetPayload ¶
func (o *GetStoreStatusUserUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get store status user unauthorized response
func (*GetStoreStatusUserUnauthorized) WithPayload ¶
func (o *GetStoreStatusUserUnauthorized) WithPayload(payload *models.Error) *GetStoreStatusUserUnauthorized
WithPayload adds the payload to the get store status user unauthorized response
func (*GetStoreStatusUserUnauthorized) WriteResponse ¶
func (o *GetStoreStatusUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type MakeBooking ¶
type MakeBooking struct { Context *middleware.Context Handler MakeBookingHandler }
MakeBooking swagger:route POST /slots/{slot_name} users makeBooking
Request a booking ¶
A booking is requested for a specific combination of policy-slot-user-from-to. Users should check availability first, and only make requests that are likely to be granted. If there is no current availability then requests will be denied. If there is availability, there is still a chance another user requests the same slot just before - whichever request is received by the server first will be allowed, the other denied. The user_name must match the user_name the user logged in with, that is in the authorisation token in the header.
func NewMakeBooking ¶
func NewMakeBooking(ctx *middleware.Context, handler MakeBookingHandler) *MakeBooking
NewMakeBooking creates a new http.Handler for the make booking operation
func (*MakeBooking) ServeHTTP ¶
func (o *MakeBooking) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type MakeBookingConflict ¶
type MakeBookingConflict struct {
/*
In: Body
*/
Payload interface{} `json:"body,omitempty"`
}
MakeBookingConflict Conflict - unavailable for the requested interval
swagger:response makeBookingConflict
func NewMakeBookingConflict ¶
func NewMakeBookingConflict() *MakeBookingConflict
NewMakeBookingConflict creates MakeBookingConflict with default headers values
func (*MakeBookingConflict) SetPayload ¶
func (o *MakeBookingConflict) SetPayload(payload interface{})
SetPayload sets the payload to the make booking conflict response
func (*MakeBookingConflict) WithPayload ¶
func (o *MakeBookingConflict) WithPayload(payload interface{}) *MakeBookingConflict
WithPayload adds the payload to the make booking conflict response
func (*MakeBookingConflict) WriteResponse ¶
func (o *MakeBookingConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type MakeBookingHandler ¶
type MakeBookingHandler interface {
Handle(MakeBookingParams, interface{}) middleware.Responder
}
MakeBookingHandler interface for that can handle valid make booking params
type MakeBookingHandlerFunc ¶
type MakeBookingHandlerFunc func(MakeBookingParams, interface{}) middleware.Responder
MakeBookingHandlerFunc turns a function with the right signature into a make booking handler
func (MakeBookingHandlerFunc) Handle ¶
func (fn MakeBookingHandlerFunc) Handle(params MakeBookingParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type MakeBookingInternalServerError ¶
type MakeBookingInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
MakeBookingInternalServerError Internal Error
swagger:response makeBookingInternalServerError
func NewMakeBookingInternalServerError ¶
func NewMakeBookingInternalServerError() *MakeBookingInternalServerError
NewMakeBookingInternalServerError creates MakeBookingInternalServerError with default headers values
func (*MakeBookingInternalServerError) SetPayload ¶
func (o *MakeBookingInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the make booking internal server error response
func (*MakeBookingInternalServerError) WithPayload ¶
func (o *MakeBookingInternalServerError) WithPayload(payload *models.Error) *MakeBookingInternalServerError
WithPayload adds the payload to the make booking internal server error response
func (*MakeBookingInternalServerError) WriteResponse ¶
func (o *MakeBookingInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type MakeBookingNoContent ¶
type MakeBookingNoContent struct { }
MakeBookingNoContent OK - No Content
swagger:response makeBookingNoContent
func NewMakeBookingNoContent ¶
func NewMakeBookingNoContent() *MakeBookingNoContent
NewMakeBookingNoContent creates MakeBookingNoContent with default headers values
func (*MakeBookingNoContent) WriteResponse ¶
func (o *MakeBookingNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type MakeBookingNotFound ¶
MakeBookingNotFound The specified resource was not found
swagger:response makeBookingNotFound
func NewMakeBookingNotFound ¶
func NewMakeBookingNotFound() *MakeBookingNotFound
NewMakeBookingNotFound creates MakeBookingNotFound with default headers values
func (*MakeBookingNotFound) SetPayload ¶
func (o *MakeBookingNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the make booking not found response
func (*MakeBookingNotFound) WithPayload ¶
func (o *MakeBookingNotFound) WithPayload(payload *models.Error) *MakeBookingNotFound
WithPayload adds the payload to the make booking not found response
func (*MakeBookingNotFound) WriteResponse ¶
func (o *MakeBookingNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type MakeBookingParams ¶
type MakeBookingParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: query */ From strfmt.DateTime /* Required: true In: path */ SlotName string /* Required: true In: query */ To strfmt.DateTime /* Required: true In: query */ UserName string }
MakeBookingParams contains all the bound params for the make booking operation typically these are obtained from a http.Request
swagger:parameters MakeBooking
func NewMakeBookingParams ¶
func NewMakeBookingParams() MakeBookingParams
NewMakeBookingParams creates a new MakeBookingParams object
There are no default values defined in the spec.
func (*MakeBookingParams) BindRequest ¶
func (o *MakeBookingParams) 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 NewMakeBookingParams() beforehand.
type MakeBookingURL ¶
type MakeBookingURL struct { SlotName string From strfmt.DateTime To strfmt.DateTime UserName string // contains filtered or unexported fields }
MakeBookingURL generates an URL for the make booking operation
func (*MakeBookingURL) Build ¶
func (o *MakeBookingURL) Build() (*url.URL, error)
Build a url path and query string
func (*MakeBookingURL) BuildFull ¶
func (o *MakeBookingURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*MakeBookingURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*MakeBookingURL) SetBasePath ¶
func (o *MakeBookingURL) 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 (*MakeBookingURL) String ¶
func (o *MakeBookingURL) String() string
String returns the string representation of the path with query string
func (*MakeBookingURL) StringFull ¶
func (o *MakeBookingURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*MakeBookingURL) WithBasePath ¶
func (o *MakeBookingURL) WithBasePath(bp string) *MakeBookingURL
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 MakeBookingUnauthorized ¶
MakeBookingUnauthorized Unauthorized
swagger:response makeBookingUnauthorized
func NewMakeBookingUnauthorized ¶
func NewMakeBookingUnauthorized() *MakeBookingUnauthorized
NewMakeBookingUnauthorized creates MakeBookingUnauthorized with default headers values
func (*MakeBookingUnauthorized) SetPayload ¶
func (o *MakeBookingUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the make booking unauthorized response
func (*MakeBookingUnauthorized) WithPayload ¶
func (o *MakeBookingUnauthorized) WithPayload(payload *models.Error) *MakeBookingUnauthorized
WithPayload adds the payload to the make booking unauthorized response
func (*MakeBookingUnauthorized) WriteResponse ¶
func (o *MakeBookingUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UniqueName ¶
type UniqueName struct { Context *middleware.Context Handler UniqueNameHandler }
UniqueName swagger:route POST /users/unique users uniqueName
Request a new, unique username ¶
Generates a unique username that meets the minimum length requirements for the booking system. No security/token needed, because users needs a/this name to login
func NewUniqueName ¶
func NewUniqueName(ctx *middleware.Context, handler UniqueNameHandler) *UniqueName
NewUniqueName creates a new http.Handler for the unique name operation
func (*UniqueName) ServeHTTP ¶
func (o *UniqueName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UniqueNameHandler ¶
type UniqueNameHandler interface {
Handle(UniqueNameParams) middleware.Responder
}
UniqueNameHandler interface for that can handle valid unique name params
type UniqueNameHandlerFunc ¶
type UniqueNameHandlerFunc func(UniqueNameParams) middleware.Responder
UniqueNameHandlerFunc turns a function with the right signature into a unique name handler
func (UniqueNameHandlerFunc) Handle ¶
func (fn UniqueNameHandlerFunc) Handle(params UniqueNameParams) middleware.Responder
Handle executing the request and returning a response
type UniqueNameInternalServerError ¶
type UniqueNameInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
UniqueNameInternalServerError Internal Error
swagger:response uniqueNameInternalServerError
func NewUniqueNameInternalServerError ¶
func NewUniqueNameInternalServerError() *UniqueNameInternalServerError
NewUniqueNameInternalServerError creates UniqueNameInternalServerError with default headers values
func (*UniqueNameInternalServerError) SetPayload ¶
func (o *UniqueNameInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the unique name internal server error response
func (*UniqueNameInternalServerError) WithPayload ¶
func (o *UniqueNameInternalServerError) WithPayload(payload *models.Error) *UniqueNameInternalServerError
WithPayload adds the payload to the unique name internal server error response
func (*UniqueNameInternalServerError) WriteResponse ¶
func (o *UniqueNameInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UniqueNameOK ¶
UniqueNameOK OK
swagger:response uniqueNameOK
func NewUniqueNameOK ¶
func NewUniqueNameOK() *UniqueNameOK
NewUniqueNameOK creates UniqueNameOK with default headers values
func (*UniqueNameOK) SetPayload ¶
func (o *UniqueNameOK) SetPayload(payload *models.UserName)
SetPayload sets the payload to the unique name o k response
func (*UniqueNameOK) WithPayload ¶
func (o *UniqueNameOK) WithPayload(payload *models.UserName) *UniqueNameOK
WithPayload adds the payload to the unique name o k response
func (*UniqueNameOK) WriteResponse ¶
func (o *UniqueNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UniqueNameParams ¶
UniqueNameParams contains all the bound params for the unique name operation typically these are obtained from a http.Request
swagger:parameters UniqueName
func NewUniqueNameParams ¶
func NewUniqueNameParams() UniqueNameParams
NewUniqueNameParams creates a new UniqueNameParams object
There are no default values defined in the spec.
func (*UniqueNameParams) BindRequest ¶
func (o *UniqueNameParams) 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 NewUniqueNameParams() beforehand.
type UniqueNameURL ¶
type UniqueNameURL struct {
// contains filtered or unexported fields
}
UniqueNameURL generates an URL for the unique name operation
func (*UniqueNameURL) Build ¶
func (o *UniqueNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*UniqueNameURL) BuildFull ¶
func (o *UniqueNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UniqueNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UniqueNameURL) SetBasePath ¶
func (o *UniqueNameURL) 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 (*UniqueNameURL) String ¶
func (o *UniqueNameURL) String() string
String returns the string representation of the path with query string
func (*UniqueNameURL) StringFull ¶
func (o *UniqueNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UniqueNameURL) WithBasePath ¶
func (o *UniqueNameURL) WithBasePath(bp string) *UniqueNameURL
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 UniqueNameUnauthorized ¶
UniqueNameUnauthorized Unauthorized
swagger:response uniqueNameUnauthorized
func NewUniqueNameUnauthorized ¶
func NewUniqueNameUnauthorized() *UniqueNameUnauthorized
NewUniqueNameUnauthorized creates UniqueNameUnauthorized with default headers values
func (*UniqueNameUnauthorized) SetPayload ¶
func (o *UniqueNameUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the unique name unauthorized response
func (*UniqueNameUnauthorized) WithPayload ¶
func (o *UniqueNameUnauthorized) WithPayload(payload *models.Error) *UniqueNameUnauthorized
WithPayload adds the payload to the unique name unauthorized response
func (*UniqueNameUnauthorized) WriteResponse ¶
func (o *UniqueNameUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- add_group_for_user.go
- add_group_for_user_parameters.go
- add_group_for_user_responses.go
- add_group_for_user_urlbuilder.go
- cancel_booking.go
- cancel_booking_parameters.go
- cancel_booking_responses.go
- cancel_booking_urlbuilder.go
- get_access_token.go
- get_access_token_parameters.go
- get_access_token_responses.go
- get_access_token_urlbuilder.go
- get_activity.go
- get_activity_parameters.go
- get_activity_responses.go
- get_activity_urlbuilder.go
- get_availability.go
- get_availability_parameters.go
- get_availability_responses.go
- get_availability_urlbuilder.go
- get_bookings_for_user.go
- get_bookings_for_user_parameters.go
- get_bookings_for_user_responses.go
- get_bookings_for_user_urlbuilder.go
- get_description.go
- get_description_parameters.go
- get_description_responses.go
- get_description_urlbuilder.go
- get_group.go
- get_group_parameters.go
- get_group_responses.go
- get_group_urlbuilder.go
- get_groups_for_user.go
- get_groups_for_user_parameters.go
- get_groups_for_user_responses.go
- get_groups_for_user_urlbuilder.go
- get_old_bookings_for_user.go
- get_old_bookings_for_user_parameters.go
- get_old_bookings_for_user_responses.go
- get_old_bookings_for_user_urlbuilder.go
- get_policy.go
- get_policy_parameters.go
- get_policy_responses.go
- get_policy_status_for_user.go
- get_policy_status_for_user_parameters.go
- get_policy_status_for_user_responses.go
- get_policy_status_for_user_urlbuilder.go
- get_policy_urlbuilder.go
- get_store_status_user.go
- get_store_status_user_parameters.go
- get_store_status_user_responses.go
- get_store_status_user_urlbuilder.go
- make_booking.go
- make_booking_parameters.go
- make_booking_responses.go
- make_booking_urlbuilder.go
- unique_name.go
- unique_name_parameters.go
- unique_name_responses.go
- unique_name_urlbuilder.go