Documentation ¶
Index ¶
- Constants
- Variables
- type Import
- type ImportBadRequest
- type ImportFailedDependency
- type ImportHandler
- type ImportHandlerFunc
- type ImportNotFound
- type ImportOK
- type ImportParams
- type ImportURL
- func (o *ImportURL) Build() (*url.URL, error)
- func (o *ImportURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImportURL) Must(u *url.URL, err error) *url.URL
- func (o *ImportURL) SetBasePath(bp string)
- func (o *ImportURL) String() string
- func (o *ImportURL) StringFull(scheme, host string) string
- func (o *ImportURL) WithBasePath(bp string) *ImportURL
- type ImportUnsupportedMediaType
Constants ¶
const ImportBadRequestCode int = 400
ImportBadRequestCode is the HTTP code returned for type ImportBadRequest
const ImportFailedDependencyCode int = 424
ImportFailedDependencyCode is the HTTP code returned for type ImportFailedDependency
const ImportNotFoundCode int = 404
ImportNotFoundCode is the HTTP code returned for type ImportNotFound
const ImportOKCode int = 200
ImportOKCode is the HTTP code returned for type ImportOK
const ImportUnsupportedMediaTypeCode int = 415
ImportUnsupportedMediaTypeCode is the HTTP code returned for type ImportUnsupportedMediaType
Variables ¶
var ImportMaxParseMemory int64 = 32 << 20
ImportMaxParseMemory sets the maximum size in bytes for the multipart form parser for this operation.
The default value is 32 MB. The multipart parser stores up to this + 10MB.
Functions ¶
This section is empty.
Types ¶
type Import ¶
type Import struct { Context *middleware.Context Handler ImportHandler }
Import swagger:route POST /import Import import
Import a zip package ¶
Import a zip package to create services, secrets and webhook subscriptions, as well as add resources to Keptn
func NewImport ¶
func NewImport(ctx *middleware.Context, handler ImportHandler) *Import
NewImport creates a new http.Handler for the import operation
type ImportBadRequest ¶
ImportBadRequest Bad request
swagger:response importBadRequest
func NewImportBadRequest ¶
func NewImportBadRequest() *ImportBadRequest
NewImportBadRequest creates ImportBadRequest with default headers values
func (*ImportBadRequest) SetPayload ¶
func (o *ImportBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the import bad request response
func (*ImportBadRequest) WithPayload ¶
func (o *ImportBadRequest) WithPayload(payload *models.Error) *ImportBadRequest
WithPayload adds the payload to the import bad request response
func (*ImportBadRequest) WriteResponse ¶
func (o *ImportBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImportFailedDependency ¶
ImportFailedDependency Failed Dependency
swagger:response importFailedDependency
func NewImportFailedDependency ¶
func NewImportFailedDependency() *ImportFailedDependency
NewImportFailedDependency creates ImportFailedDependency with default headers values
func (*ImportFailedDependency) SetPayload ¶
func (o *ImportFailedDependency) SetPayload(payload *models.Error)
SetPayload sets the payload to the import failed dependency response
func (*ImportFailedDependency) WithPayload ¶
func (o *ImportFailedDependency) WithPayload(payload *models.Error) *ImportFailedDependency
WithPayload adds the payload to the import failed dependency response
func (*ImportFailedDependency) WriteResponse ¶
func (o *ImportFailedDependency) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImportHandler ¶
type ImportHandler interface {
Handle(ImportParams, *models.Principal) middleware.Responder
}
ImportHandler interface for that can handle valid import params
type ImportHandlerFunc ¶
type ImportHandlerFunc func(ImportParams, *models.Principal) middleware.Responder
ImportHandlerFunc turns a function with the right signature into a import handler
func (ImportHandlerFunc) Handle ¶
func (fn ImportHandlerFunc) Handle(params ImportParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ImportNotFound ¶
ImportNotFound Project not found
swagger:response importNotFound
func NewImportNotFound ¶
func NewImportNotFound() *ImportNotFound
NewImportNotFound creates ImportNotFound with default headers values
func (*ImportNotFound) SetPayload ¶
func (o *ImportNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the import not found response
func (*ImportNotFound) WithPayload ¶
func (o *ImportNotFound) WithPayload(payload *models.Error) *ImportNotFound
WithPayload adds the payload to the import not found response
func (*ImportNotFound) WriteResponse ¶
func (o *ImportNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImportOK ¶
type ImportOK struct { /* In: Body */ Payload *models.ImportSummary `json:"body,omitempty"` }
ImportOK OK
swagger:response importOK
func NewImportOK ¶
func NewImportOK() *ImportOK
NewImportOK creates ImportOK with default headers values
func (*ImportOK) SetPayload ¶
func (o *ImportOK) SetPayload(payload *models.ImportSummary)
SetPayload sets the payload to the import o k response
func (*ImportOK) WithPayload ¶
func (o *ImportOK) WithPayload(payload *models.ImportSummary) *ImportOK
WithPayload adds the payload to the import o k response
func (*ImportOK) WriteResponse ¶
func (o *ImportOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImportParams ¶
type ImportParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ZIP configuration package. Required: true In: formData */ ConfigPackage io.ReadCloser /*The project on which the configuration should be applied Required: true In: query */ Project string }
ImportParams contains all the bound params for the import operation typically these are obtained from a http.Request
swagger:parameters import
func NewImportParams ¶
func NewImportParams() ImportParams
NewImportParams creates a new ImportParams object
There are no default values defined in the spec.
func (*ImportParams) BindRequest ¶
func (o *ImportParams) 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 NewImportParams() beforehand.
type ImportURL ¶
type ImportURL struct { Project string // contains filtered or unexported fields }
ImportURL generates an URL for the import operation
func (*ImportURL) SetBasePath ¶
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 (*ImportURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*ImportURL) 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 ImportUnsupportedMediaType ¶
type ImportUnsupportedMediaType struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ImportUnsupportedMediaType Unsupported media type
swagger:response importUnsupportedMediaType
func NewImportUnsupportedMediaType ¶
func NewImportUnsupportedMediaType() *ImportUnsupportedMediaType
NewImportUnsupportedMediaType creates ImportUnsupportedMediaType with default headers values
func (*ImportUnsupportedMediaType) SetPayload ¶
func (o *ImportUnsupportedMediaType) SetPayload(payload *models.Error)
SetPayload sets the payload to the import unsupported media type response
func (*ImportUnsupportedMediaType) WithPayload ¶
func (o *ImportUnsupportedMediaType) WithPayload(payload *models.Error) *ImportUnsupportedMediaType
WithPayload adds the payload to the import unsupported media type response
func (*ImportUnsupportedMediaType) WriteResponse ¶
func (o *ImportUnsupportedMediaType) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client