Documentation ¶
Index ¶
- Constants
- type IndexTSPs
- type IndexTSPsBadRequest
- type IndexTSPsHandler
- type IndexTSPsHandlerFunc
- type IndexTSPsInternalServerError
- type IndexTSPsOK
- type IndexTSPsParams
- type IndexTSPsURL
- func (o *IndexTSPsURL) Build() (*url.URL, error)
- func (o *IndexTSPsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *IndexTSPsURL) Must(u *url.URL, err error) *url.URL
- func (o *IndexTSPsURL) SetBasePath(bp string)
- func (o *IndexTSPsURL) String() string
- func (o *IndexTSPsURL) StringFull(scheme, host string) string
- func (o *IndexTSPsURL) WithBasePath(bp string) *IndexTSPsURL
- type IndexTSPsUnauthorized
Constants ¶
const IndexTSPsBadRequestCode int = 400
IndexTSPsBadRequestCode is the HTTP code returned for type IndexTSPsBadRequest
const IndexTSPsInternalServerErrorCode int = 500
IndexTSPsInternalServerErrorCode is the HTTP code returned for type IndexTSPsInternalServerError
const IndexTSPsOKCode int = 200
IndexTSPsOKCode is the HTTP code returned for type IndexTSPsOK
IndexTSPsUnauthorizedCode is the HTTP code returned for type IndexTSPsUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexTSPs ¶
type IndexTSPs struct { Context *middleware.Context Handler IndexTSPsHandler }
IndexTSPs swagger:route GET /tsps tsps indexTSPs
List all TSPs ¶
Gets a list of all the TSPs which the logged in user has access to.
func NewIndexTSPs ¶
func NewIndexTSPs(ctx *middleware.Context, handler IndexTSPsHandler) *IndexTSPs
NewIndexTSPs creates a new http.Handler for the index t s ps operation
type IndexTSPsBadRequest ¶
type IndexTSPsBadRequest struct { }
IndexTSPsBadRequest invalid request
swagger:response indexTSPsBadRequest
func NewIndexTSPsBadRequest ¶
func NewIndexTSPsBadRequest() *IndexTSPsBadRequest
NewIndexTSPsBadRequest creates IndexTSPsBadRequest with default headers values
func (*IndexTSPsBadRequest) WriteResponse ¶
func (o *IndexTSPsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IndexTSPsHandler ¶
type IndexTSPsHandler interface {
Handle(IndexTSPsParams) middleware.Responder
}
IndexTSPsHandler interface for that can handle valid index t s ps params
type IndexTSPsHandlerFunc ¶
type IndexTSPsHandlerFunc func(IndexTSPsParams) middleware.Responder
IndexTSPsHandlerFunc turns a function with the right signature into a index t s ps handler
func (IndexTSPsHandlerFunc) Handle ¶
func (fn IndexTSPsHandlerFunc) Handle(params IndexTSPsParams) middleware.Responder
Handle executing the request and returning a response
type IndexTSPsInternalServerError ¶
type IndexTSPsInternalServerError struct { }
IndexTSPsInternalServerError server error
swagger:response indexTSPsInternalServerError
func NewIndexTSPsInternalServerError ¶
func NewIndexTSPsInternalServerError() *IndexTSPsInternalServerError
NewIndexTSPsInternalServerError creates IndexTSPsInternalServerError with default headers values
func (*IndexTSPsInternalServerError) WriteResponse ¶
func (o *IndexTSPsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IndexTSPsOK ¶
type IndexTSPsOK struct { /* In: Body */ Payload []*apimessages.TSP `json:"body,omitempty"` }
IndexTSPsOK list of TSPs
swagger:response indexTSPsOK
func NewIndexTSPsOK ¶
func NewIndexTSPsOK() *IndexTSPsOK
NewIndexTSPsOK creates IndexTSPsOK with default headers values
func (*IndexTSPsOK) SetPayload ¶
func (o *IndexTSPsOK) SetPayload(payload []*apimessages.TSP)
SetPayload sets the payload to the index t s ps o k response
func (*IndexTSPsOK) WithPayload ¶
func (o *IndexTSPsOK) WithPayload(payload []*apimessages.TSP) *IndexTSPsOK
WithPayload adds the payload to the index t s ps o k response
func (*IndexTSPsOK) WriteResponse ¶
func (o *IndexTSPsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IndexTSPsParams ¶
IndexTSPsParams contains all the bound params for the index t s ps operation typically these are obtained from a http.Request
swagger:parameters indexTSPs
func NewIndexTSPsParams ¶
func NewIndexTSPsParams() IndexTSPsParams
NewIndexTSPsParams creates a new IndexTSPsParams object
There are no default values defined in the spec.
func (*IndexTSPsParams) BindRequest ¶
func (o *IndexTSPsParams) 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 NewIndexTSPsParams() beforehand.
type IndexTSPsURL ¶
type IndexTSPsURL struct {
// contains filtered or unexported fields
}
IndexTSPsURL generates an URL for the index t s ps operation
func (*IndexTSPsURL) Build ¶
func (o *IndexTSPsURL) Build() (*url.URL, error)
Build a url path and query string
func (*IndexTSPsURL) BuildFull ¶
func (o *IndexTSPsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*IndexTSPsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*IndexTSPsURL) SetBasePath ¶
func (o *IndexTSPsURL) 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 (*IndexTSPsURL) String ¶
func (o *IndexTSPsURL) String() string
String returns the string representation of the path with query string
func (*IndexTSPsURL) StringFull ¶
func (o *IndexTSPsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*IndexTSPsURL) WithBasePath ¶
func (o *IndexTSPsURL) WithBasePath(bp string) *IndexTSPsURL
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 IndexTSPsUnauthorized ¶
type IndexTSPsUnauthorized struct { }
IndexTSPsUnauthorized must be authenticated to access this endpoint
swagger:response indexTSPsUnauthorized
func NewIndexTSPsUnauthorized ¶
func NewIndexTSPsUnauthorized() *IndexTSPsUnauthorized
NewIndexTSPsUnauthorized creates IndexTSPsUnauthorized with default headers values
func (*IndexTSPsUnauthorized) WriteResponse ¶
func (o *IndexTSPsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client