Documentation ¶
Index ¶
- Constants
- type Metadata
- type MetadataHandler
- type MetadataHandlerFunc
- type MetadataOK
- type MetadataParams
- type MetadataURL
- func (o *MetadataURL) Build() (*url.URL, error)
- func (o *MetadataURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *MetadataURL) Must(u *url.URL, err error) *url.URL
- func (o *MetadataURL) SetBasePath(bp string)
- func (o *MetadataURL) String() string
- func (o *MetadataURL) StringFull(scheme, host string) string
- func (o *MetadataURL) WithBasePath(bp string) *MetadataURL
Constants ¶
const MetadataOKCode int = 200
MetadataOKCode is the HTTP code returned for type MetadataOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { Context *middleware.Context Handler MetadataHandler }
Metadata swagger:route GET /metadata Metadata metadata
Get keptn installation metadata ¶
<span class="oauth-scopes">Required OAuth scopes: ${prefix}metadata:read</span>
func NewMetadata ¶
func NewMetadata(ctx *middleware.Context, handler MetadataHandler) *Metadata
NewMetadata creates a new http.Handler for the metadata operation
type MetadataHandler ¶
type MetadataHandler interface {
Handle(MetadataParams, *models.Principal) middleware.Responder
}
MetadataHandler interface for that can handle valid metadata params
type MetadataHandlerFunc ¶
type MetadataHandlerFunc func(MetadataParams, *models.Principal) middleware.Responder
MetadataHandlerFunc turns a function with the right signature into a metadata handler
func (MetadataHandlerFunc) Handle ¶
func (fn MetadataHandlerFunc) Handle(params MetadataParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type MetadataOK ¶
MetadataOK Success
swagger:response metadataOK
func NewMetadataOK ¶
func NewMetadataOK() *MetadataOK
NewMetadataOK creates MetadataOK with default headers values
func (*MetadataOK) SetPayload ¶
func (o *MetadataOK) SetPayload(payload *models.Metadata)
SetPayload sets the payload to the metadata o k response
func (*MetadataOK) WithPayload ¶
func (o *MetadataOK) WithPayload(payload *models.Metadata) *MetadataOK
WithPayload adds the payload to the metadata o k response
func (*MetadataOK) WriteResponse ¶
func (o *MetadataOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type MetadataParams ¶
MetadataParams contains all the bound params for the metadata operation typically these are obtained from a http.Request
swagger:parameters metadata
func NewMetadataParams ¶
func NewMetadataParams() MetadataParams
NewMetadataParams creates a new MetadataParams object
There are no default values defined in the spec.
func (*MetadataParams) BindRequest ¶
func (o *MetadataParams) 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 NewMetadataParams() beforehand.
type MetadataURL ¶
type MetadataURL struct {
// contains filtered or unexported fields
}
MetadataURL generates an URL for the metadata operation
func (*MetadataURL) Build ¶
func (o *MetadataURL) Build() (*url.URL, error)
Build a url path and query string
func (*MetadataURL) BuildFull ¶
func (o *MetadataURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*MetadataURL) SetBasePath ¶
func (o *MetadataURL) 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 (*MetadataURL) String ¶
func (o *MetadataURL) String() string
String returns the string representation of the path with query string
func (*MetadataURL) StringFull ¶
func (o *MetadataURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*MetadataURL) WithBasePath ¶
func (o *MetadataURL) WithBasePath(bp string) *MetadataURL
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