users

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: AGPL-3.0, BSD-2-Clause, ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AddPolicyForUserInternalServerErrorCode int = 500

AddPolicyForUserInternalServerErrorCode is the HTTP code returned for type AddPolicyForUserInternalServerError

View Source
const AddPolicyForUserNoContentCode int = 204

AddPolicyForUserNoContentCode is the HTTP code returned for type AddPolicyForUserNoContent

View Source
const AddPolicyForUserNotFoundCode int = 404

AddPolicyForUserNotFoundCode is the HTTP code returned for type AddPolicyForUserNotFound

View Source
const AddPolicyForUserUnauthorizedCode int = 401

AddPolicyForUserUnauthorizedCode is the HTTP code returned for type AddPolicyForUserUnauthorized

View Source
const CancelBookingInternalServerErrorCode int = 500

CancelBookingInternalServerErrorCode is the HTTP code returned for type CancelBookingInternalServerError

View Source
const CancelBookingNotFoundCode int = 404

CancelBookingNotFoundCode is the HTTP code returned for type CancelBookingNotFound

View Source
const CancelBookingUnauthorizedCode int = 401

CancelBookingUnauthorizedCode is the HTTP code returned for type CancelBookingUnauthorized

View Source
const GetAccessTokenInternalServerErrorCode int = 500

GetAccessTokenInternalServerErrorCode is the HTTP code returned for type GetAccessTokenInternalServerError

View Source
const GetAccessTokenNotFoundCode int = 404

GetAccessTokenNotFoundCode is the HTTP code returned for type GetAccessTokenNotFound

View Source
const GetAccessTokenOKCode int = 200

GetAccessTokenOKCode is the HTTP code returned for type GetAccessTokenOK

View Source
const GetAccessTokenUnauthorizedCode int = 401

GetAccessTokenUnauthorizedCode is the HTTP code returned for type GetAccessTokenUnauthorized

View Source
const GetActivityInternalServerErrorCode int = 500

GetActivityInternalServerErrorCode is the HTTP code returned for type GetActivityInternalServerError

View Source
const GetActivityNotFoundCode int = 404

GetActivityNotFoundCode is the HTTP code returned for type GetActivityNotFound

View Source
const GetActivityOKCode int = 200

GetActivityOKCode is the HTTP code returned for type GetActivityOK

View Source
const GetActivityUnauthorizedCode int = 401

GetActivityUnauthorizedCode is the HTTP code returned for type GetActivityUnauthorized

View Source
const GetAvailabilityInternalServerErrorCode int = 500

GetAvailabilityInternalServerErrorCode is the HTTP code returned for type GetAvailabilityInternalServerError

View Source
const GetAvailabilityNotFoundCode int = 404

GetAvailabilityNotFoundCode is the HTTP code returned for type GetAvailabilityNotFound

View Source
const GetAvailabilityOKCode int = 200

GetAvailabilityOKCode is the HTTP code returned for type GetAvailabilityOK

View Source
const GetAvailabilityUnauthorizedCode int = 401

GetAvailabilityUnauthorizedCode is the HTTP code returned for type GetAvailabilityUnauthorized

View Source
const GetBookingsForUserInternalServerErrorCode int = 500

GetBookingsForUserInternalServerErrorCode is the HTTP code returned for type GetBookingsForUserInternalServerError

View Source
const GetBookingsForUserNotFoundCode int = 404

GetBookingsForUserNotFoundCode is the HTTP code returned for type GetBookingsForUserNotFound

View Source
const GetBookingsForUserOKCode int = 200

GetBookingsForUserOKCode is the HTTP code returned for type GetBookingsForUserOK

View Source
const GetBookingsForUserUnauthorizedCode int = 401

GetBookingsForUserUnauthorizedCode is the HTTP code returned for type GetBookingsForUserUnauthorized

View Source
const GetDescriptionInternalServerErrorCode int = 500

GetDescriptionInternalServerErrorCode is the HTTP code returned for type GetDescriptionInternalServerError

View Source
const GetDescriptionNotFoundCode int = 404

GetDescriptionNotFoundCode is the HTTP code returned for type GetDescriptionNotFound

View Source
const GetDescriptionOKCode int = 200

GetDescriptionOKCode is the HTTP code returned for type GetDescriptionOK

View Source
const GetDescriptionUnauthorizedCode int = 401

GetDescriptionUnauthorizedCode is the HTTP code returned for type GetDescriptionUnauthorized

View Source
const GetOldBookingsForUserInternalServerErrorCode int = 500

GetOldBookingsForUserInternalServerErrorCode is the HTTP code returned for type GetOldBookingsForUserInternalServerError

View Source
const GetOldBookingsForUserNotFoundCode int = 404

GetOldBookingsForUserNotFoundCode is the HTTP code returned for type GetOldBookingsForUserNotFound

View Source
const GetOldBookingsForUserOKCode int = 200

GetOldBookingsForUserOKCode is the HTTP code returned for type GetOldBookingsForUserOK

View Source
const GetOldBookingsForUserUnauthorizedCode int = 401

GetOldBookingsForUserUnauthorizedCode is the HTTP code returned for type GetOldBookingsForUserUnauthorized

View Source
const GetPoliciesForUserInternalServerErrorCode int = 500

GetPoliciesForUserInternalServerErrorCode is the HTTP code returned for type GetPoliciesForUserInternalServerError

View Source
const GetPoliciesForUserNotFoundCode int = 404

GetPoliciesForUserNotFoundCode is the HTTP code returned for type GetPoliciesForUserNotFound

View Source
const GetPoliciesForUserOKCode int = 200

GetPoliciesForUserOKCode is the HTTP code returned for type GetPoliciesForUserOK

View Source
const GetPoliciesForUserUnauthorizedCode int = 401

GetPoliciesForUserUnauthorizedCode is the HTTP code returned for type GetPoliciesForUserUnauthorized

View Source
const GetPolicyInternalServerErrorCode int = 500

GetPolicyInternalServerErrorCode is the HTTP code returned for type GetPolicyInternalServerError

View Source
const GetPolicyNotFoundCode int = 404

GetPolicyNotFoundCode is the HTTP code returned for type GetPolicyNotFound

View Source
const GetPolicyOKCode int = 200

GetPolicyOKCode is the HTTP code returned for type GetPolicyOK

View Source
const GetPolicyStatusForUserInternalServerErrorCode int = 500

GetPolicyStatusForUserInternalServerErrorCode is the HTTP code returned for type GetPolicyStatusForUserInternalServerError

View Source
const GetPolicyStatusForUserNotFoundCode int = 404

GetPolicyStatusForUserNotFoundCode is the HTTP code returned for type GetPolicyStatusForUserNotFound

View Source
const GetPolicyStatusForUserOKCode int = 200

GetPolicyStatusForUserOKCode is the HTTP code returned for type GetPolicyStatusForUserOK

View Source
const GetPolicyStatusForUserUnauthorizedCode int = 401

GetPolicyStatusForUserUnauthorizedCode is the HTTP code returned for type GetPolicyStatusForUserUnauthorized

View Source
const GetPolicyUnauthorizedCode int = 401

GetPolicyUnauthorizedCode is the HTTP code returned for type GetPolicyUnauthorized

View Source
const GetStoreStatusUserInternalServerErrorCode int = 500

GetStoreStatusUserInternalServerErrorCode is the HTTP code returned for type GetStoreStatusUserInternalServerError

View Source
const GetStoreStatusUserNotFoundCode int = 404

GetStoreStatusUserNotFoundCode is the HTTP code returned for type GetStoreStatusUserNotFound

View Source
const GetStoreStatusUserOKCode int = 200

GetStoreStatusUserOKCode is the HTTP code returned for type GetStoreStatusUserOK

View Source
const GetStoreStatusUserUnauthorizedCode int = 401

GetStoreStatusUserUnauthorizedCode is the HTTP code returned for type GetStoreStatusUserUnauthorized

View Source
const MakeBookingConflictCode int = 409

MakeBookingConflictCode is the HTTP code returned for type MakeBookingConflict

View Source
const MakeBookingInternalServerErrorCode int = 500

MakeBookingInternalServerErrorCode is the HTTP code returned for type MakeBookingInternalServerError

View Source
const MakeBookingNoContentCode int = 204

MakeBookingNoContentCode is the HTTP code returned for type MakeBookingNoContent

View Source
const MakeBookingNotFoundCode int = 404

MakeBookingNotFoundCode is the HTTP code returned for type MakeBookingNotFound

View Source
const MakeBookingUnauthorizedCode int = 401

MakeBookingUnauthorizedCode is the HTTP code returned for type MakeBookingUnauthorized

View Source
const UniqueNameInternalServerErrorCode int = 500

UniqueNameInternalServerErrorCode is the HTTP code returned for type UniqueNameInternalServerError

View Source
const UniqueNameOKCode int = 200

UniqueNameOKCode is the HTTP code returned for type UniqueNameOK

View Source
const UniqueNameUnauthorizedCode int = 401

UniqueNameUnauthorizedCode is the HTTP code returned for type UniqueNameUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPolicyForUser

type AddPolicyForUser struct {
	Context *middleware.Context
	Handler AddPolicyForUserHandler
}
AddPolicyForUser swagger:route POST /users/{user_name}/policies/{policy_name} users addPolicyForUser

Add policy to user account

Add policy to the list of policies with which this user is allowed to make bookings

func NewAddPolicyForUser

func NewAddPolicyForUser(ctx *middleware.Context, handler AddPolicyForUserHandler) *AddPolicyForUser

NewAddPolicyForUser creates a new http.Handler for the add policy for user operation

func (*AddPolicyForUser) ServeHTTP

func (o *AddPolicyForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AddPolicyForUserHandler

type AddPolicyForUserHandler interface {
	Handle(AddPolicyForUserParams, interface{}) middleware.Responder
}

AddPolicyForUserHandler interface for that can handle valid add policy for user params

type AddPolicyForUserHandlerFunc

type AddPolicyForUserHandlerFunc func(AddPolicyForUserParams, interface{}) middleware.Responder

AddPolicyForUserHandlerFunc turns a function with the right signature into a add policy for user handler

func (AddPolicyForUserHandlerFunc) Handle

func (fn AddPolicyForUserHandlerFunc) Handle(params AddPolicyForUserParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddPolicyForUserInternalServerError

type AddPolicyForUserInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

AddPolicyForUserInternalServerError Internal Error

swagger:response addPolicyForUserInternalServerError

func NewAddPolicyForUserInternalServerError

func NewAddPolicyForUserInternalServerError() *AddPolicyForUserInternalServerError

NewAddPolicyForUserInternalServerError creates AddPolicyForUserInternalServerError with default headers values

func (*AddPolicyForUserInternalServerError) SetPayload

func (o *AddPolicyForUserInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the add policy for user internal server error response

func (*AddPolicyForUserInternalServerError) WithPayload

WithPayload adds the payload to the add policy for user internal server error response

func (*AddPolicyForUserInternalServerError) WriteResponse

WriteResponse to the client

type AddPolicyForUserNoContent

type AddPolicyForUserNoContent struct {
}

AddPolicyForUserNoContent OK - No Content

swagger:response addPolicyForUserNoContent

func NewAddPolicyForUserNoContent

func NewAddPolicyForUserNoContent() *AddPolicyForUserNoContent

NewAddPolicyForUserNoContent creates AddPolicyForUserNoContent with default headers values

func (*AddPolicyForUserNoContent) WriteResponse

func (o *AddPolicyForUserNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPolicyForUserNotFound

type AddPolicyForUserNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

AddPolicyForUserNotFound The specified resource was not found

swagger:response addPolicyForUserNotFound

func NewAddPolicyForUserNotFound

func NewAddPolicyForUserNotFound() *AddPolicyForUserNotFound

NewAddPolicyForUserNotFound creates AddPolicyForUserNotFound with default headers values

func (*AddPolicyForUserNotFound) SetPayload

func (o *AddPolicyForUserNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the add policy for user not found response

func (*AddPolicyForUserNotFound) WithPayload

WithPayload adds the payload to the add policy for user not found response

func (*AddPolicyForUserNotFound) WriteResponse

func (o *AddPolicyForUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPolicyForUserParams

type AddPolicyForUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	PolicyName string
	/*
	  Required: true
	  In: path
	*/
	UserName string
}

AddPolicyForUserParams contains all the bound params for the add policy for user operation typically these are obtained from a http.Request

swagger:parameters AddPolicyForUser

func NewAddPolicyForUserParams

func NewAddPolicyForUserParams() AddPolicyForUserParams

NewAddPolicyForUserParams creates a new AddPolicyForUserParams object

There are no default values defined in the spec.

func (*AddPolicyForUserParams) BindRequest

func (o *AddPolicyForUserParams) 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 NewAddPolicyForUserParams() beforehand.

type AddPolicyForUserURL

type AddPolicyForUserURL struct {
	PolicyName string
	UserName   string
	// contains filtered or unexported fields
}

AddPolicyForUserURL generates an URL for the add policy for user operation

func (*AddPolicyForUserURL) Build

func (o *AddPolicyForUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*AddPolicyForUserURL) BuildFull

func (o *AddPolicyForUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AddPolicyForUserURL) Must

func (o *AddPolicyForUserURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AddPolicyForUserURL) SetBasePath

func (o *AddPolicyForUserURL) 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 (*AddPolicyForUserURL) String

func (o *AddPolicyForUserURL) String() string

String returns the string representation of the path with query string

func (*AddPolicyForUserURL) StringFull

func (o *AddPolicyForUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AddPolicyForUserURL) WithBasePath

func (o *AddPolicyForUserURL) WithBasePath(bp string) *AddPolicyForUserURL

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 AddPolicyForUserUnauthorized

type AddPolicyForUserUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

AddPolicyForUserUnauthorized Unauthorized

swagger:response addPolicyForUserUnauthorized

func NewAddPolicyForUserUnauthorized

func NewAddPolicyForUserUnauthorized() *AddPolicyForUserUnauthorized

NewAddPolicyForUserUnauthorized creates AddPolicyForUserUnauthorized with default headers values

func (*AddPolicyForUserUnauthorized) SetPayload

func (o *AddPolicyForUserUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the add policy for user unauthorized response

func (*AddPolicyForUserUnauthorized) WithPayload

WithPayload adds the payload to the add policy for user unauthorized response

func (*AddPolicyForUserUnauthorized) WriteResponse

func (o *AddPolicyForUserUnauthorized) 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

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

type CancelBookingNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

func (o *CancelBookingURL) Must(u *url.URL, err error) *url.URL

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

type CancelBookingUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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

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

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

type GetAccessTokenNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

func (o *GetAccessTokenURL) Must(u *url.URL, err error) *url.URL

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

type GetAccessTokenUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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

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

type GetActivityNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

type GetActivityOK struct {

	/*
	  In: Body
	*/
	Payload *models.Activity `json:"body,omitempty"`
}

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

func (o *GetActivityURL) Must(u *url.URL, err error) *url.URL

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

type GetActivityUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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 /policies/{policy_name}/slots/{slot_name} users getAvailability

Get availability for the slot under the policy

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

WithPayload adds the payload to the get availability internal server error response

func (*GetAvailabilityInternalServerError) WriteResponse

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

type GetAvailabilityOK struct {

	/*
	  In: Body
	*/
	Payload models.Intervals `json:"body,omitempty"`
}

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
	*/
	PolicyName string
	/*
	  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 {
	PolicyName string
	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

func (o *GetAvailabilityURL) Must(u *url.URL, err error) *url.URL

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

type GetAvailabilityUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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

WithPayload adds the payload to the get bookings for user internal server error response

func (*GetBookingsForUserInternalServerError) WriteResponse

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

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

type GetBookingsForUserOK struct {

	/*
	  In: Body
	*/
	Payload models.Bookings `json:"body,omitempty"`
}

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

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

func (o *GetBookingsForUserURL) Must(u *url.URL, err error) *url.URL

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

type GetBookingsForUserUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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

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

type GetDescriptionNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

func (o *GetDescriptionURL) Must(u *url.URL, err error) *url.URL

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

type GetDescriptionUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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 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

WithPayload adds the payload to the get old bookings for user internal server error response

func (*GetOldBookingsForUserInternalServerError) WriteResponse

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

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

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

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

func (o *GetOldBookingsForUserURL) Must(u *url.URL, err error) *url.URL

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

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

type GetOldBookingsForUserUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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 GetPoliciesForUser

type GetPoliciesForUser struct {
	Context *middleware.Context
	Handler GetPoliciesForUserHandler
}
GetPoliciesForUser swagger:route GET /users/{user_name}/policies users getPoliciesForUser

Get all current policies for user

Get all current policies for user

func NewGetPoliciesForUser

func NewGetPoliciesForUser(ctx *middleware.Context, handler GetPoliciesForUserHandler) *GetPoliciesForUser

NewGetPoliciesForUser creates a new http.Handler for the get policies for user operation

func (*GetPoliciesForUser) ServeHTTP

func (o *GetPoliciesForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetPoliciesForUserHandler

type GetPoliciesForUserHandler interface {
	Handle(GetPoliciesForUserParams, interface{}) middleware.Responder
}

GetPoliciesForUserHandler interface for that can handle valid get policies for user params

type GetPoliciesForUserHandlerFunc

type GetPoliciesForUserHandlerFunc func(GetPoliciesForUserParams, interface{}) middleware.Responder

GetPoliciesForUserHandlerFunc turns a function with the right signature into a get policies for user handler

func (GetPoliciesForUserHandlerFunc) Handle

func (fn GetPoliciesForUserHandlerFunc) Handle(params GetPoliciesForUserParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetPoliciesForUserInternalServerError

type GetPoliciesForUserInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetPoliciesForUserInternalServerError Internal Error

swagger:response getPoliciesForUserInternalServerError

func NewGetPoliciesForUserInternalServerError

func NewGetPoliciesForUserInternalServerError() *GetPoliciesForUserInternalServerError

NewGetPoliciesForUserInternalServerError creates GetPoliciesForUserInternalServerError with default headers values

func (*GetPoliciesForUserInternalServerError) SetPayload

func (o *GetPoliciesForUserInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get policies for user internal server error response

func (*GetPoliciesForUserInternalServerError) WithPayload

WithPayload adds the payload to the get policies for user internal server error response

func (*GetPoliciesForUserInternalServerError) WriteResponse

WriteResponse to the client

type GetPoliciesForUserNotFound

type GetPoliciesForUserNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetPoliciesForUserNotFound The specified resource was not found

swagger:response getPoliciesForUserNotFound

func NewGetPoliciesForUserNotFound

func NewGetPoliciesForUserNotFound() *GetPoliciesForUserNotFound

NewGetPoliciesForUserNotFound creates GetPoliciesForUserNotFound with default headers values

func (*GetPoliciesForUserNotFound) SetPayload

func (o *GetPoliciesForUserNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the get policies for user not found response

func (*GetPoliciesForUserNotFound) WithPayload

WithPayload adds the payload to the get policies for user not found response

func (*GetPoliciesForUserNotFound) WriteResponse

func (o *GetPoliciesForUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPoliciesForUserOK

type GetPoliciesForUserOK struct {

	/*
	  In: Body
	*/
	Payload models.PoliciesDescribed `json:"body,omitempty"`
}

GetPoliciesForUserOK OK

swagger:response getPoliciesForUserOK

func NewGetPoliciesForUserOK

func NewGetPoliciesForUserOK() *GetPoliciesForUserOK

NewGetPoliciesForUserOK creates GetPoliciesForUserOK with default headers values

func (*GetPoliciesForUserOK) SetPayload

func (o *GetPoliciesForUserOK) SetPayload(payload models.PoliciesDescribed)

SetPayload sets the payload to the get policies for user o k response

func (*GetPoliciesForUserOK) WithPayload

WithPayload adds the payload to the get policies for user o k response

func (*GetPoliciesForUserOK) WriteResponse

func (o *GetPoliciesForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPoliciesForUserParams

type GetPoliciesForUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	UserName string
}

GetPoliciesForUserParams contains all the bound params for the get policies for user operation typically these are obtained from a http.Request

swagger:parameters GetPoliciesForUser

func NewGetPoliciesForUserParams

func NewGetPoliciesForUserParams() GetPoliciesForUserParams

NewGetPoliciesForUserParams creates a new GetPoliciesForUserParams object

There are no default values defined in the spec.

func (*GetPoliciesForUserParams) BindRequest

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 NewGetPoliciesForUserParams() beforehand.

type GetPoliciesForUserURL

type GetPoliciesForUserURL struct {
	UserName string
	// contains filtered or unexported fields
}

GetPoliciesForUserURL generates an URL for the get policies for user operation

func (*GetPoliciesForUserURL) Build

func (o *GetPoliciesForUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetPoliciesForUserURL) BuildFull

func (o *GetPoliciesForUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetPoliciesForUserURL) Must

func (o *GetPoliciesForUserURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetPoliciesForUserURL) SetBasePath

func (o *GetPoliciesForUserURL) 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 (*GetPoliciesForUserURL) String

func (o *GetPoliciesForUserURL) String() string

String returns the string representation of the path with query string

func (*GetPoliciesForUserURL) StringFull

func (o *GetPoliciesForUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetPoliciesForUserURL) WithBasePath

func (o *GetPoliciesForUserURL) WithBasePath(bp string) *GetPoliciesForUserURL

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 GetPoliciesForUserUnauthorized

type GetPoliciesForUserUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetPoliciesForUserUnauthorized Unauthorized

swagger:response getPoliciesForUserUnauthorized

func NewGetPoliciesForUserUnauthorized

func NewGetPoliciesForUserUnauthorized() *GetPoliciesForUserUnauthorized

NewGetPoliciesForUserUnauthorized creates GetPoliciesForUserUnauthorized with default headers values

func (*GetPoliciesForUserUnauthorized) SetPayload

func (o *GetPoliciesForUserUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the get policies for user unauthorized response

func (*GetPoliciesForUserUnauthorized) WithPayload

WithPayload adds the payload to the get policies for user unauthorized response

func (*GetPoliciesForUserUnauthorized) WriteResponse

func (o *GetPoliciesForUserUnauthorized) 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

func (*GetPolicy) ServeHTTP

func (o *GetPolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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

type GetPolicyNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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

WithPayload adds the payload to the get policy status for user internal server error response

func (*GetPolicyStatusForUserInternalServerError) WriteResponse

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

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

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

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

func (o *GetPolicyStatusForUserURL) Must(u *url.URL, err error) *url.URL

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

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

type GetPolicyStatusForUserUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

WithPayload adds the payload to the get policy status for user unauthorized response

func (*GetPolicyStatusForUserUnauthorized) WriteResponse

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

func (o *GetPolicyURL) Must(u *url.URL, err error) *url.URL

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

type GetPolicyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

WithPayload adds the payload to the get store status user internal server error response

func (*GetStoreStatusUserInternalServerError) WriteResponse

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

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

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

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

func (o *GetStoreStatusUserURL) Must(u *url.URL, err error) *url.URL

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

type GetStoreStatusUserUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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 /policies/{policy_name}/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

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

type MakeBookingNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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
	*/
	PolicyName string
	/*
	  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 {
	PolicyName string
	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

func (o *MakeBookingURL) Must(u *url.URL, err error) *url.URL

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

type MakeBookingUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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

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

type UniqueNameOK struct {

	/*
	  In: Body
	*/
	Payload *models.UserName `json:"body,omitempty"`
}

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

type UniqueNameParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

func (o *UniqueNameURL) Must(u *url.URL, err error) *url.URL

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

type UniqueNameUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL