import_operations

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ImportBadRequestCode int = 400

ImportBadRequestCode is the HTTP code returned for type ImportBadRequest

View Source
const ImportFailedDependencyCode int = 424

ImportFailedDependencyCode is the HTTP code returned for type ImportFailedDependency

View Source
const ImportNotFoundCode int = 404

ImportNotFoundCode is the HTTP code returned for type ImportNotFound

View Source
const ImportOKCode int = 200

ImportOKCode is the HTTP code returned for type ImportOK

View Source
const ImportUnsupportedMediaTypeCode int = 415

ImportUnsupportedMediaTypeCode is the HTTP code returned for type ImportUnsupportedMediaType

Variables

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

func (*Import) ServeHTTP

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

type ImportBadRequest

type ImportBadRequest struct {

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

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

type ImportFailedDependency struct {

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

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

type ImportNotFound struct {

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

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

func (o *ImportURL) Build() (*url.URL, error)

Build a url path and query string

func (*ImportURL) BuildFull

func (o *ImportURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ImportURL) Must

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

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

func (*ImportURL) SetBasePath

func (o *ImportURL) 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 (*ImportURL) String

func (o *ImportURL) String() string

String returns the string representation of the path with query string

func (*ImportURL) StringFull

func (o *ImportURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ImportURL) WithBasePath

func (o *ImportURL) WithBasePath(bp string) *ImportURL

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

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

Jump to

Keyboard shortcuts

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