Documentation
¶
Index ¶
- Constants
- type CreatePlan
- type CreatePlanBadRequest
- type CreatePlanConflict
- type CreatePlanCreated
- type CreatePlanHandler
- type CreatePlanHandlerFunc
- type CreatePlanInternalServerError
- func (o *CreatePlanInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *CreatePlanInternalServerError) WithPayload(payload *models.ErrorResponse) *CreatePlanInternalServerError
- func (o *CreatePlanInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreatePlanParams
- type CreatePlanURL
- func (o *CreatePlanURL) Build() (*url.URL, error)
- func (o *CreatePlanURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreatePlanURL) Must(u *url.URL, err error) *url.URL
- func (o *CreatePlanURL) SetBasePath(bp string)
- func (o *CreatePlanURL) String() string
- func (o *CreatePlanURL) StringFull(scheme, host string) string
- func (o *CreatePlanURL) WithBasePath(bp string) *CreatePlanURL
- type GetCompletePlan
- type GetCompletePlanHandler
- type GetCompletePlanHandlerFunc
- type GetCompletePlanInternalServerError
- func (o *GetCompletePlanInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GetCompletePlanInternalServerError) WithPayload(payload *models.ErrorResponse) *GetCompletePlanInternalServerError
- func (o *GetCompletePlanInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCompletePlanNotFound
- type GetCompletePlanOK
- type GetCompletePlanParams
- type GetCompletePlanURL
- func (o *GetCompletePlanURL) Build() (*url.URL, error)
- func (o *GetCompletePlanURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetCompletePlanURL) Must(u *url.URL, err error) *url.URL
- func (o *GetCompletePlanURL) SetBasePath(bp string)
- func (o *GetCompletePlanURL) String() string
- func (o *GetCompletePlanURL) StringFull(scheme, host string) string
- func (o *GetCompletePlanURL) WithBasePath(bp string) *GetCompletePlanURL
- type GetPlan
- type GetPlanHandler
- type GetPlanHandlerFunc
- type GetPlanInternalServerError
- type GetPlanNotFound
- type GetPlanOK
- type GetPlanParams
- type GetPlanURL
- func (o *GetPlanURL) Build() (*url.URL, error)
- func (o *GetPlanURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetPlanURL) Must(u *url.URL, err error) *url.URL
- func (o *GetPlanURL) SetBasePath(bp string)
- func (o *GetPlanURL) String() string
- func (o *GetPlanURL) StringFull(scheme, host string) string
- func (o *GetPlanURL) WithBasePath(bp string) *GetPlanURL
- type ListCompletePlans
- type ListCompletePlansHandler
- type ListCompletePlansHandlerFunc
- type ListCompletePlansInternalServerError
- func (o *ListCompletePlansInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ListCompletePlansInternalServerError) WithPayload(payload *models.ErrorResponse) *ListCompletePlansInternalServerError
- func (o *ListCompletePlansInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListCompletePlansOK
- type ListCompletePlansParams
- type ListCompletePlansURL
- func (o *ListCompletePlansURL) Build() (*url.URL, error)
- func (o *ListCompletePlansURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListCompletePlansURL) Must(u *url.URL, err error) *url.URL
- func (o *ListCompletePlansURL) SetBasePath(bp string)
- func (o *ListCompletePlansURL) String() string
- func (o *ListCompletePlansURL) StringFull(scheme, host string) string
- func (o *ListCompletePlansURL) WithBasePath(bp string) *ListCompletePlansURL
- type ListPlans
- type ListPlansHandler
- type ListPlansHandlerFunc
- type ListPlansInternalServerError
- type ListPlansOK
- type ListPlansParams
- type ListPlansURL
- func (o *ListPlansURL) Build() (*url.URL, error)
- func (o *ListPlansURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListPlansURL) Must(u *url.URL, err error) *url.URL
- func (o *ListPlansURL) SetBasePath(bp string)
- func (o *ListPlansURL) String() string
- func (o *ListPlansURL) StringFull(scheme, host string) string
- func (o *ListPlansURL) WithBasePath(bp string) *ListPlansURL
- type UpdatePlan
- type UpdatePlanHandler
- type UpdatePlanHandlerFunc
- type UpdatePlanInternalServerError
- func (o *UpdatePlanInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *UpdatePlanInternalServerError) WithPayload(payload *models.ErrorResponse) *UpdatePlanInternalServerError
- func (o *UpdatePlanInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdatePlanNotFound
- type UpdatePlanOK
- type UpdatePlanParams
- type UpdatePlanURL
- func (o *UpdatePlanURL) Build() (*url.URL, error)
- func (o *UpdatePlanURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdatePlanURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdatePlanURL) SetBasePath(bp string)
- func (o *UpdatePlanURL) String() string
- func (o *UpdatePlanURL) StringFull(scheme, host string) string
- func (o *UpdatePlanURL) WithBasePath(bp string) *UpdatePlanURL
Constants ¶
const CreatePlanBadRequestCode int = 400
CreatePlanBadRequestCode is the HTTP code returned for type CreatePlanBadRequest
const CreatePlanConflictCode int = 409
CreatePlanConflictCode is the HTTP code returned for type CreatePlanConflict
const CreatePlanCreatedCode int = 201
CreatePlanCreatedCode is the HTTP code returned for type CreatePlanCreated
const CreatePlanInternalServerErrorCode int = 500
CreatePlanInternalServerErrorCode is the HTTP code returned for type CreatePlanInternalServerError
const GetCompletePlanInternalServerErrorCode int = 500
GetCompletePlanInternalServerErrorCode is the HTTP code returned for type GetCompletePlanInternalServerError
const GetCompletePlanNotFoundCode int = 404
GetCompletePlanNotFoundCode is the HTTP code returned for type GetCompletePlanNotFound
const GetCompletePlanOKCode int = 200
GetCompletePlanOKCode is the HTTP code returned for type GetCompletePlanOK
const GetPlanInternalServerErrorCode int = 500
GetPlanInternalServerErrorCode is the HTTP code returned for type GetPlanInternalServerError
const GetPlanNotFoundCode int = 404
GetPlanNotFoundCode is the HTTP code returned for type GetPlanNotFound
const GetPlanOKCode int = 200
GetPlanOKCode is the HTTP code returned for type GetPlanOK
const ListCompletePlansInternalServerErrorCode int = 500
ListCompletePlansInternalServerErrorCode is the HTTP code returned for type ListCompletePlansInternalServerError
const ListCompletePlansOKCode int = 200
ListCompletePlansOKCode is the HTTP code returned for type ListCompletePlansOK
const ListPlansInternalServerErrorCode int = 500
ListPlansInternalServerErrorCode is the HTTP code returned for type ListPlansInternalServerError
const ListPlansOKCode int = 200
ListPlansOKCode is the HTTP code returned for type ListPlansOK
const UpdatePlanInternalServerErrorCode int = 500
UpdatePlanInternalServerErrorCode is the HTTP code returned for type UpdatePlanInternalServerError
const UpdatePlanNotFoundCode int = 404
UpdatePlanNotFoundCode is the HTTP code returned for type UpdatePlanNotFound
const UpdatePlanOKCode int = 200
UpdatePlanOKCode is the HTTP code returned for type UpdatePlanOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePlan ¶
type CreatePlan struct { Context *middleware.Context Handler CreatePlanHandler }
CreatePlan swagger:route POST /plan planManagement createPlan
Create a plan ¶
Creates a new plan
func NewCreatePlan ¶
func NewCreatePlan(ctx *middleware.Context, handler CreatePlanHandler) *CreatePlan
NewCreatePlan creates a new http.Handler for the create plan operation
func (*CreatePlan) ServeHTTP ¶
func (o *CreatePlan) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreatePlanBadRequest ¶
type CreatePlanBadRequest struct { }
CreatePlanBadRequest invalid input, object invalid
swagger:response createPlanBadRequest
func NewCreatePlanBadRequest ¶
func NewCreatePlanBadRequest() *CreatePlanBadRequest
NewCreatePlanBadRequest creates CreatePlanBadRequest with default headers values
func (*CreatePlanBadRequest) WriteResponse ¶
func (o *CreatePlanBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePlanConflict ¶
type CreatePlanConflict struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
CreatePlanConflict an existing item already exists
swagger:response createPlanConflict
func NewCreatePlanConflict ¶
func NewCreatePlanConflict() *CreatePlanConflict
NewCreatePlanConflict creates CreatePlanConflict with default headers values
func (*CreatePlanConflict) SetPayload ¶
func (o *CreatePlanConflict) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the create plan conflict response
func (*CreatePlanConflict) WithPayload ¶
func (o *CreatePlanConflict) WithPayload(payload *models.ErrorResponse) *CreatePlanConflict
WithPayload adds the payload to the create plan conflict response
func (*CreatePlanConflict) WriteResponse ¶
func (o *CreatePlanConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePlanCreated ¶
type CreatePlanCreated struct { /* In: Body */ Payload *models.ItemCreatedResponse `json:"body,omitempty"` }
CreatePlanCreated item created
swagger:response createPlanCreated
func NewCreatePlanCreated ¶
func NewCreatePlanCreated() *CreatePlanCreated
NewCreatePlanCreated creates CreatePlanCreated with default headers values
func (*CreatePlanCreated) SetPayload ¶
func (o *CreatePlanCreated) SetPayload(payload *models.ItemCreatedResponse)
SetPayload sets the payload to the create plan created response
func (*CreatePlanCreated) WithPayload ¶
func (o *CreatePlanCreated) WithPayload(payload *models.ItemCreatedResponse) *CreatePlanCreated
WithPayload adds the payload to the create plan created response
func (*CreatePlanCreated) WriteResponse ¶
func (o *CreatePlanCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePlanHandler ¶
type CreatePlanHandler interface {
Handle(CreatePlanParams, interface{}) middleware.Responder
}
CreatePlanHandler interface for that can handle valid create plan params
type CreatePlanHandlerFunc ¶
type CreatePlanHandlerFunc func(CreatePlanParams, interface{}) middleware.Responder
CreatePlanHandlerFunc turns a function with the right signature into a create plan handler
func (CreatePlanHandlerFunc) Handle ¶
func (fn CreatePlanHandlerFunc) Handle(params CreatePlanParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreatePlanInternalServerError ¶
type CreatePlanInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
CreatePlanInternalServerError unexpected error
swagger:response createPlanInternalServerError
func NewCreatePlanInternalServerError ¶
func NewCreatePlanInternalServerError() *CreatePlanInternalServerError
NewCreatePlanInternalServerError creates CreatePlanInternalServerError with default headers values
func (*CreatePlanInternalServerError) SetPayload ¶
func (o *CreatePlanInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the create plan internal server error response
func (*CreatePlanInternalServerError) WithPayload ¶
func (o *CreatePlanInternalServerError) WithPayload(payload *models.ErrorResponse) *CreatePlanInternalServerError
WithPayload adds the payload to the create plan internal server error response
func (*CreatePlanInternalServerError) WriteResponse ¶
func (o *CreatePlanInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePlanParams ¶
type CreatePlanParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Plan to be added In: body */ Plan *models.Plan }
CreatePlanParams contains all the bound params for the create plan operation typically these are obtained from a http.Request
swagger:parameters createPlan
func NewCreatePlanParams ¶
func NewCreatePlanParams() CreatePlanParams
NewCreatePlanParams creates a new CreatePlanParams object no default values defined in spec.
func (*CreatePlanParams) BindRequest ¶
func (o *CreatePlanParams) 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 NewCreatePlanParams() beforehand.
type CreatePlanURL ¶
type CreatePlanURL struct {
// contains filtered or unexported fields
}
CreatePlanURL generates an URL for the create plan operation
func (*CreatePlanURL) Build ¶
func (o *CreatePlanURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreatePlanURL) BuildFull ¶
func (o *CreatePlanURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreatePlanURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreatePlanURL) SetBasePath ¶
func (o *CreatePlanURL) 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 (*CreatePlanURL) String ¶
func (o *CreatePlanURL) String() string
String returns the string representation of the path with query string
func (*CreatePlanURL) StringFull ¶
func (o *CreatePlanURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreatePlanURL) WithBasePath ¶
func (o *CreatePlanURL) WithBasePath(bp string) *CreatePlanURL
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 GetCompletePlan ¶
type GetCompletePlan struct { Context *middleware.Context Handler GetCompletePlanHandler }
GetCompletePlan swagger:route GET /plan/complete/{id} planManagement getCompletePlan
Get complete plan ¶
gets complete plan with planid
func NewGetCompletePlan ¶
func NewGetCompletePlan(ctx *middleware.Context, handler GetCompletePlanHandler) *GetCompletePlan
NewGetCompletePlan creates a new http.Handler for the get complete plan operation
func (*GetCompletePlan) ServeHTTP ¶
func (o *GetCompletePlan) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetCompletePlanHandler ¶
type GetCompletePlanHandler interface {
Handle(GetCompletePlanParams, interface{}) middleware.Responder
}
GetCompletePlanHandler interface for that can handle valid get complete plan params
type GetCompletePlanHandlerFunc ¶
type GetCompletePlanHandlerFunc func(GetCompletePlanParams, interface{}) middleware.Responder
GetCompletePlanHandlerFunc turns a function with the right signature into a get complete plan handler
func (GetCompletePlanHandlerFunc) Handle ¶
func (fn GetCompletePlanHandlerFunc) Handle(params GetCompletePlanParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetCompletePlanInternalServerError ¶
type GetCompletePlanInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetCompletePlanInternalServerError unexpected error
swagger:response getCompletePlanInternalServerError
func NewGetCompletePlanInternalServerError ¶
func NewGetCompletePlanInternalServerError() *GetCompletePlanInternalServerError
NewGetCompletePlanInternalServerError creates GetCompletePlanInternalServerError with default headers values
func (*GetCompletePlanInternalServerError) SetPayload ¶
func (o *GetCompletePlanInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get complete plan internal server error response
func (*GetCompletePlanInternalServerError) WithPayload ¶
func (o *GetCompletePlanInternalServerError) WithPayload(payload *models.ErrorResponse) *GetCompletePlanInternalServerError
WithPayload adds the payload to the get complete plan internal server error response
func (*GetCompletePlanInternalServerError) WriteResponse ¶
func (o *GetCompletePlanInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCompletePlanNotFound ¶
type GetCompletePlanNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetCompletePlanNotFound complete plan with planid not found
swagger:response getCompletePlanNotFound
func NewGetCompletePlanNotFound ¶
func NewGetCompletePlanNotFound() *GetCompletePlanNotFound
NewGetCompletePlanNotFound creates GetCompletePlanNotFound with default headers values
func (*GetCompletePlanNotFound) SetPayload ¶
func (o *GetCompletePlanNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get complete plan not found response
func (*GetCompletePlanNotFound) WithPayload ¶
func (o *GetCompletePlanNotFound) WithPayload(payload *models.ErrorResponse) *GetCompletePlanNotFound
WithPayload adds the payload to the get complete plan not found response
func (*GetCompletePlanNotFound) WriteResponse ¶
func (o *GetCompletePlanNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCompletePlanOK ¶
GetCompletePlanOK plan returned
swagger:response getCompletePlanOK
func NewGetCompletePlanOK ¶
func NewGetCompletePlanOK() *GetCompletePlanOK
NewGetCompletePlanOK creates GetCompletePlanOK with default headers values
func (*GetCompletePlanOK) SetPayload ¶
func (o *GetCompletePlanOK) SetPayload(payload *models.Plan)
SetPayload sets the payload to the get complete plan o k response
func (*GetCompletePlanOK) WithPayload ¶
func (o *GetCompletePlanOK) WithPayload(payload *models.Plan) *GetCompletePlanOK
WithPayload adds the payload to the get complete plan o k response
func (*GetCompletePlanOK) WriteResponse ¶
func (o *GetCompletePlanOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCompletePlanParams ¶
type GetCompletePlanParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Id of plan to be obtained Required: true In: path */ ID string }
GetCompletePlanParams contains all the bound params for the get complete plan operation typically these are obtained from a http.Request
swagger:parameters getCompletePlan
func NewGetCompletePlanParams ¶
func NewGetCompletePlanParams() GetCompletePlanParams
NewGetCompletePlanParams creates a new GetCompletePlanParams object no default values defined in spec.
func (*GetCompletePlanParams) BindRequest ¶
func (o *GetCompletePlanParams) 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 NewGetCompletePlanParams() beforehand.
type GetCompletePlanURL ¶
type GetCompletePlanURL struct { ID string // contains filtered or unexported fields }
GetCompletePlanURL generates an URL for the get complete plan operation
func (*GetCompletePlanURL) Build ¶
func (o *GetCompletePlanURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetCompletePlanURL) BuildFull ¶
func (o *GetCompletePlanURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetCompletePlanURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetCompletePlanURL) SetBasePath ¶
func (o *GetCompletePlanURL) 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 (*GetCompletePlanURL) String ¶
func (o *GetCompletePlanURL) String() string
String returns the string representation of the path with query string
func (*GetCompletePlanURL) StringFull ¶
func (o *GetCompletePlanURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetCompletePlanURL) WithBasePath ¶
func (o *GetCompletePlanURL) WithBasePath(bp string) *GetCompletePlanURL
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 GetPlan ¶
type GetPlan struct { Context *middleware.Context Handler GetPlanHandler }
GetPlan swagger:route GET /plan/{id} planManagement getPlan
Get specific plan ¶
get plan with given planid
func NewGetPlan ¶
func NewGetPlan(ctx *middleware.Context, handler GetPlanHandler) *GetPlan
NewGetPlan creates a new http.Handler for the get plan operation
type GetPlanHandler ¶
type GetPlanHandler interface {
Handle(GetPlanParams, interface{}) middleware.Responder
}
GetPlanHandler interface for that can handle valid get plan params
type GetPlanHandlerFunc ¶
type GetPlanHandlerFunc func(GetPlanParams, interface{}) middleware.Responder
GetPlanHandlerFunc turns a function with the right signature into a get plan handler
func (GetPlanHandlerFunc) Handle ¶
func (fn GetPlanHandlerFunc) Handle(params GetPlanParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetPlanInternalServerError ¶
type GetPlanInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetPlanInternalServerError unexpected error
swagger:response getPlanInternalServerError
func NewGetPlanInternalServerError ¶
func NewGetPlanInternalServerError() *GetPlanInternalServerError
NewGetPlanInternalServerError creates GetPlanInternalServerError with default headers values
func (*GetPlanInternalServerError) SetPayload ¶
func (o *GetPlanInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get plan internal server error response
func (*GetPlanInternalServerError) WithPayload ¶
func (o *GetPlanInternalServerError) WithPayload(payload *models.ErrorResponse) *GetPlanInternalServerError
WithPayload adds the payload to the get plan internal server error response
func (*GetPlanInternalServerError) WriteResponse ¶
func (o *GetPlanInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPlanNotFound ¶
type GetPlanNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetPlanNotFound plan with planid not found
swagger:response getPlanNotFound
func NewGetPlanNotFound ¶
func NewGetPlanNotFound() *GetPlanNotFound
NewGetPlanNotFound creates GetPlanNotFound with default headers values
func (*GetPlanNotFound) SetPayload ¶
func (o *GetPlanNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get plan not found response
func (*GetPlanNotFound) WithPayload ¶
func (o *GetPlanNotFound) WithPayload(payload *models.ErrorResponse) *GetPlanNotFound
WithPayload adds the payload to the get plan not found response
func (*GetPlanNotFound) WriteResponse ¶
func (o *GetPlanNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPlanOK ¶
GetPlanOK plan returned
swagger:response getPlanOK
func NewGetPlanOK ¶
func NewGetPlanOK() *GetPlanOK
NewGetPlanOK creates GetPlanOK with default headers values
func (*GetPlanOK) SetPayload ¶
SetPayload sets the payload to the get plan o k response
func (*GetPlanOK) WithPayload ¶
WithPayload adds the payload to the get plan o k response
func (*GetPlanOK) WriteResponse ¶
func (o *GetPlanOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPlanParams ¶
type GetPlanParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Id of plan to be obtained Required: true In: path */ ID string }
GetPlanParams contains all the bound params for the get plan operation typically these are obtained from a http.Request
swagger:parameters getPlan
func NewGetPlanParams ¶
func NewGetPlanParams() GetPlanParams
NewGetPlanParams creates a new GetPlanParams object no default values defined in spec.
func (*GetPlanParams) BindRequest ¶
func (o *GetPlanParams) 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 NewGetPlanParams() beforehand.
type GetPlanURL ¶
type GetPlanURL struct { ID string // contains filtered or unexported fields }
GetPlanURL generates an URL for the get plan operation
func (*GetPlanURL) Build ¶
func (o *GetPlanURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetPlanURL) BuildFull ¶
func (o *GetPlanURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetPlanURL) SetBasePath ¶
func (o *GetPlanURL) 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 (*GetPlanURL) String ¶
func (o *GetPlanURL) String() string
String returns the string representation of the path with query string
func (*GetPlanURL) StringFull ¶
func (o *GetPlanURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetPlanURL) WithBasePath ¶
func (o *GetPlanURL) WithBasePath(bp string) *GetPlanURL
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 ListCompletePlans ¶
type ListCompletePlans struct { Context *middleware.Context Handler ListCompletePlansHandler }
ListCompletePlans swagger:route GET /plan/complete planManagement listCompletePlans
Get full information relating to known plans ¶
Obtains full information on all known plans
func NewListCompletePlans ¶
func NewListCompletePlans(ctx *middleware.Context, handler ListCompletePlansHandler) *ListCompletePlans
NewListCompletePlans creates a new http.Handler for the list complete plans operation
func (*ListCompletePlans) ServeHTTP ¶
func (o *ListCompletePlans) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListCompletePlansHandler ¶
type ListCompletePlansHandler interface {
Handle(ListCompletePlansParams, interface{}) middleware.Responder
}
ListCompletePlansHandler interface for that can handle valid list complete plans params
type ListCompletePlansHandlerFunc ¶
type ListCompletePlansHandlerFunc func(ListCompletePlansParams, interface{}) middleware.Responder
ListCompletePlansHandlerFunc turns a function with the right signature into a list complete plans handler
func (ListCompletePlansHandlerFunc) Handle ¶
func (fn ListCompletePlansHandlerFunc) Handle(params ListCompletePlansParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListCompletePlansInternalServerError ¶
type ListCompletePlansInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ListCompletePlansInternalServerError unexpected error
swagger:response listCompletePlansInternalServerError
func NewListCompletePlansInternalServerError ¶
func NewListCompletePlansInternalServerError() *ListCompletePlansInternalServerError
NewListCompletePlansInternalServerError creates ListCompletePlansInternalServerError with default headers values
func (*ListCompletePlansInternalServerError) SetPayload ¶
func (o *ListCompletePlansInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the list complete plans internal server error response
func (*ListCompletePlansInternalServerError) WithPayload ¶
func (o *ListCompletePlansInternalServerError) WithPayload(payload *models.ErrorResponse) *ListCompletePlansInternalServerError
WithPayload adds the payload to the list complete plans internal server error response
func (*ListCompletePlansInternalServerError) WriteResponse ¶
func (o *ListCompletePlansInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListCompletePlansOK ¶
ListCompletePlansOK Set of known plans returned in full
swagger:response listCompletePlansOK
func NewListCompletePlansOK ¶
func NewListCompletePlansOK() *ListCompletePlansOK
NewListCompletePlansOK creates ListCompletePlansOK with default headers values
func (*ListCompletePlansOK) SetPayload ¶
func (o *ListCompletePlansOK) SetPayload(payload []*models.Plan)
SetPayload sets the payload to the list complete plans o k response
func (*ListCompletePlansOK) WithPayload ¶
func (o *ListCompletePlansOK) WithPayload(payload []*models.Plan) *ListCompletePlansOK
WithPayload adds the payload to the list complete plans o k response
func (*ListCompletePlansOK) WriteResponse ¶
func (o *ListCompletePlansOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListCompletePlansParams ¶
ListCompletePlansParams contains all the bound params for the list complete plans operation typically these are obtained from a http.Request
swagger:parameters listCompletePlans
func NewListCompletePlansParams ¶
func NewListCompletePlansParams() ListCompletePlansParams
NewListCompletePlansParams creates a new ListCompletePlansParams object no default values defined in spec.
func (*ListCompletePlansParams) BindRequest ¶
func (o *ListCompletePlansParams) 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 NewListCompletePlansParams() beforehand.
type ListCompletePlansURL ¶
type ListCompletePlansURL struct {
// contains filtered or unexported fields
}
ListCompletePlansURL generates an URL for the list complete plans operation
func (*ListCompletePlansURL) Build ¶
func (o *ListCompletePlansURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListCompletePlansURL) BuildFull ¶
func (o *ListCompletePlansURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListCompletePlansURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListCompletePlansURL) SetBasePath ¶
func (o *ListCompletePlansURL) 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 (*ListCompletePlansURL) String ¶
func (o *ListCompletePlansURL) String() string
String returns the string representation of the path with query string
func (*ListCompletePlansURL) StringFull ¶
func (o *ListCompletePlansURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListCompletePlansURL) WithBasePath ¶
func (o *ListCompletePlansURL) WithBasePath(bp string) *ListCompletePlansURL
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 ListPlans ¶
type ListPlans struct { Context *middleware.Context Handler ListPlansHandler }
ListPlans swagger:route GET /plan planManagement listPlans
List all plans ¶
lists all plans (tbd - pagination?)
func NewListPlans ¶
func NewListPlans(ctx *middleware.Context, handler ListPlansHandler) *ListPlans
NewListPlans creates a new http.Handler for the list plans operation
type ListPlansHandler ¶
type ListPlansHandler interface {
Handle(ListPlansParams, interface{}) middleware.Responder
}
ListPlansHandler interface for that can handle valid list plans params
type ListPlansHandlerFunc ¶
type ListPlansHandlerFunc func(ListPlansParams, interface{}) middleware.Responder
ListPlansHandlerFunc turns a function with the right signature into a list plans handler
func (ListPlansHandlerFunc) Handle ¶
func (fn ListPlansHandlerFunc) Handle(params ListPlansParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListPlansInternalServerError ¶
type ListPlansInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ListPlansInternalServerError unexpected error
swagger:response listPlansInternalServerError
func NewListPlansInternalServerError ¶
func NewListPlansInternalServerError() *ListPlansInternalServerError
NewListPlansInternalServerError creates ListPlansInternalServerError with default headers values
func (*ListPlansInternalServerError) SetPayload ¶
func (o *ListPlansInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the list plans internal server error response
func (*ListPlansInternalServerError) WithPayload ¶
func (o *ListPlansInternalServerError) WithPayload(payload *models.ErrorResponse) *ListPlansInternalServerError
WithPayload adds the payload to the list plans internal server error response
func (*ListPlansInternalServerError) WriteResponse ¶
func (o *ListPlansInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListPlansOK ¶
ListPlansOK list of plans returned
swagger:response listPlansOK
func NewListPlansOK ¶
func NewListPlansOK() *ListPlansOK
NewListPlansOK creates ListPlansOK with default headers values
func (*ListPlansOK) SetPayload ¶
func (o *ListPlansOK) SetPayload(payload []*models.Plan)
SetPayload sets the payload to the list plans o k response
func (*ListPlansOK) WithPayload ¶
func (o *ListPlansOK) WithPayload(payload []*models.Plan) *ListPlansOK
WithPayload adds the payload to the list plans o k response
func (*ListPlansOK) WriteResponse ¶
func (o *ListPlansOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListPlansParams ¶
ListPlansParams contains all the bound params for the list plans operation typically these are obtained from a http.Request
swagger:parameters listPlans
func NewListPlansParams ¶
func NewListPlansParams() ListPlansParams
NewListPlansParams creates a new ListPlansParams object no default values defined in spec.
func (*ListPlansParams) BindRequest ¶
func (o *ListPlansParams) 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 NewListPlansParams() beforehand.
type ListPlansURL ¶
type ListPlansURL struct {
// contains filtered or unexported fields
}
ListPlansURL generates an URL for the list plans operation
func (*ListPlansURL) Build ¶
func (o *ListPlansURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListPlansURL) BuildFull ¶
func (o *ListPlansURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListPlansURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListPlansURL) SetBasePath ¶
func (o *ListPlansURL) 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 (*ListPlansURL) String ¶
func (o *ListPlansURL) String() string
String returns the string representation of the path with query string
func (*ListPlansURL) StringFull ¶
func (o *ListPlansURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListPlansURL) WithBasePath ¶
func (o *ListPlansURL) WithBasePath(bp string) *ListPlansURL
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 UpdatePlan ¶
type UpdatePlan struct { Context *middleware.Context Handler UpdatePlanHandler }
UpdatePlan swagger:route PUT /plan/{id} planManagement updatePlan
Update specific plan ¶
Update plan with given planId
func NewUpdatePlan ¶
func NewUpdatePlan(ctx *middleware.Context, handler UpdatePlanHandler) *UpdatePlan
NewUpdatePlan creates a new http.Handler for the update plan operation
func (*UpdatePlan) ServeHTTP ¶
func (o *UpdatePlan) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdatePlanHandler ¶
type UpdatePlanHandler interface {
Handle(UpdatePlanParams, interface{}) middleware.Responder
}
UpdatePlanHandler interface for that can handle valid update plan params
type UpdatePlanHandlerFunc ¶
type UpdatePlanHandlerFunc func(UpdatePlanParams, interface{}) middleware.Responder
UpdatePlanHandlerFunc turns a function with the right signature into a update plan handler
func (UpdatePlanHandlerFunc) Handle ¶
func (fn UpdatePlanHandlerFunc) Handle(params UpdatePlanParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdatePlanInternalServerError ¶
type UpdatePlanInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
UpdatePlanInternalServerError unexpected error
swagger:response updatePlanInternalServerError
func NewUpdatePlanInternalServerError ¶
func NewUpdatePlanInternalServerError() *UpdatePlanInternalServerError
NewUpdatePlanInternalServerError creates UpdatePlanInternalServerError with default headers values
func (*UpdatePlanInternalServerError) SetPayload ¶
func (o *UpdatePlanInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the update plan internal server error response
func (*UpdatePlanInternalServerError) WithPayload ¶
func (o *UpdatePlanInternalServerError) WithPayload(payload *models.ErrorResponse) *UpdatePlanInternalServerError
WithPayload adds the payload to the update plan internal server error response
func (*UpdatePlanInternalServerError) WriteResponse ¶
func (o *UpdatePlanInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePlanNotFound ¶
type UpdatePlanNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
UpdatePlanNotFound plan with planid not found
swagger:response updatePlanNotFound
func NewUpdatePlanNotFound ¶
func NewUpdatePlanNotFound() *UpdatePlanNotFound
NewUpdatePlanNotFound creates UpdatePlanNotFound with default headers values
func (*UpdatePlanNotFound) SetPayload ¶
func (o *UpdatePlanNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the update plan not found response
func (*UpdatePlanNotFound) WithPayload ¶
func (o *UpdatePlanNotFound) WithPayload(payload *models.ErrorResponse) *UpdatePlanNotFound
WithPayload adds the payload to the update plan not found response
func (*UpdatePlanNotFound) WriteResponse ¶
func (o *UpdatePlanNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePlanOK ¶
UpdatePlanOK updated plan
swagger:response updatePlanOK
func NewUpdatePlanOK ¶
func NewUpdatePlanOK() *UpdatePlanOK
NewUpdatePlanOK creates UpdatePlanOK with default headers values
func (*UpdatePlanOK) SetPayload ¶
func (o *UpdatePlanOK) SetPayload(payload *models.Plan)
SetPayload sets the payload to the update plan o k response
func (*UpdatePlanOK) WithPayload ¶
func (o *UpdatePlanOK) WithPayload(payload *models.Plan) *UpdatePlanOK
WithPayload adds the payload to the update plan o k response
func (*UpdatePlanOK) WriteResponse ¶
func (o *UpdatePlanOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePlanParams ¶
type UpdatePlanParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Id of plan to be obtained Required: true In: path */ ID string /*updated plan containing all parameters except id Required: true In: body */ Plan *models.Plan }
UpdatePlanParams contains all the bound params for the update plan operation typically these are obtained from a http.Request
swagger:parameters updatePlan
func NewUpdatePlanParams ¶
func NewUpdatePlanParams() UpdatePlanParams
NewUpdatePlanParams creates a new UpdatePlanParams object no default values defined in spec.
func (*UpdatePlanParams) BindRequest ¶
func (o *UpdatePlanParams) 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 NewUpdatePlanParams() beforehand.
type UpdatePlanURL ¶
type UpdatePlanURL struct { ID string // contains filtered or unexported fields }
UpdatePlanURL generates an URL for the update plan operation
func (*UpdatePlanURL) Build ¶
func (o *UpdatePlanURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdatePlanURL) BuildFull ¶
func (o *UpdatePlanURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdatePlanURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdatePlanURL) SetBasePath ¶
func (o *UpdatePlanURL) 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 (*UpdatePlanURL) String ¶
func (o *UpdatePlanURL) String() string
String returns the string representation of the path with query string
func (*UpdatePlanURL) StringFull ¶
func (o *UpdatePlanURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdatePlanURL) WithBasePath ¶
func (o *UpdatePlanURL) WithBasePath(bp string) *UpdatePlanURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files
¶
- create_plan.go
- create_plan_parameters.go
- create_plan_responses.go
- create_plan_urlbuilder.go
- get_complete_plan.go
- get_complete_plan_parameters.go
- get_complete_plan_responses.go
- get_complete_plan_urlbuilder.go
- get_plan.go
- get_plan_parameters.go
- get_plan_responses.go
- get_plan_urlbuilder.go
- list_complete_plans.go
- list_complete_plans_parameters.go
- list_complete_plans_responses.go
- list_complete_plans_urlbuilder.go
- list_plans.go
- list_plans_parameters.go
- list_plans_responses.go
- list_plans_urlbuilder.go
- update_plan.go
- update_plan_parameters.go
- update_plan_responses.go
- update_plan_urlbuilder.go