metadata

package
v0.0.0-...-318a3d5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

func (*Metadata) ServeHTTP

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

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

Handle executing the request and returning a response

type MetadataOK

type MetadataOK struct {

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

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

type MetadataParams struct {

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

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

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

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

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

Jump to

Keyboard shortcuts

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