Documentation ¶
Index ¶
- Constants
- type GenerateEnvironment
- type GenerateEnvironmentBadRequest
- type GenerateEnvironmentDefault
- func (o *GenerateEnvironmentDefault) SetPayload(payload *models.Error)
- func (o *GenerateEnvironmentDefault) SetStatusCode(code int)
- func (o *GenerateEnvironmentDefault) WithPayload(payload *models.Error) *GenerateEnvironmentDefault
- func (o *GenerateEnvironmentDefault) WithStatusCode(code int) *GenerateEnvironmentDefault
- func (o *GenerateEnvironmentDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GenerateEnvironmentHandler
- type GenerateEnvironmentHandlerFunc
- type GenerateEnvironmentOK
- type GenerateEnvironmentParams
- type GenerateEnvironmentURL
- func (o *GenerateEnvironmentURL) Build() (*url.URL, error)
- func (o *GenerateEnvironmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GenerateEnvironmentURL) Must(u *url.URL, err error) *url.URL
- func (o *GenerateEnvironmentURL) SetBasePath(bp string)
- func (o *GenerateEnvironmentURL) String() string
- func (o *GenerateEnvironmentURL) StringFull(scheme, host string) string
- func (o *GenerateEnvironmentURL) WithBasePath(bp string) *GenerateEnvironmentURL
Constants ¶
const GenerateEnvironmentBadRequestCode int = 400
GenerateEnvironmentBadRequestCode is the HTTP code returned for type GenerateEnvironmentBadRequest
const GenerateEnvironmentOKCode int = 200
GenerateEnvironmentOKCode is the HTTP code returned for type GenerateEnvironmentOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateEnvironment ¶
type GenerateEnvironment struct { Context *middleware.Context Handler GenerateEnvironmentHandler }
GenerateEnvironment swagger:route POST /environment environment generateEnvironment
Generate a temporary environment ¶
Generate a temporary environment (set of environment variables)
func NewGenerateEnvironment ¶
func NewGenerateEnvironment(ctx *middleware.Context, handler GenerateEnvironmentHandler) *GenerateEnvironment
NewGenerateEnvironment creates a new http.Handler for the generate environment operation
func (*GenerateEnvironment) ServeHTTP ¶
func (o *GenerateEnvironment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GenerateEnvironmentBadRequest ¶
type GenerateEnvironmentBadRequest struct { /* In: Body */ Payload string `json:"body,omitempty"` }
GenerateEnvironmentBadRequest Bad Request
swagger:response generateEnvironmentBadRequest
func NewGenerateEnvironmentBadRequest ¶
func NewGenerateEnvironmentBadRequest() *GenerateEnvironmentBadRequest
NewGenerateEnvironmentBadRequest creates GenerateEnvironmentBadRequest with default headers values
func (*GenerateEnvironmentBadRequest) SetPayload ¶
func (o *GenerateEnvironmentBadRequest) SetPayload(payload string)
SetPayload sets the payload to the generate environment bad request response
func (*GenerateEnvironmentBadRequest) WithPayload ¶
func (o *GenerateEnvironmentBadRequest) WithPayload(payload string) *GenerateEnvironmentBadRequest
WithPayload adds the payload to the generate environment bad request response
func (*GenerateEnvironmentBadRequest) WriteResponse ¶
func (o *GenerateEnvironmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GenerateEnvironmentDefault ¶
type GenerateEnvironmentDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GenerateEnvironmentDefault generic error response
swagger:response generateEnvironmentDefault
func NewGenerateEnvironmentDefault ¶
func NewGenerateEnvironmentDefault(code int) *GenerateEnvironmentDefault
NewGenerateEnvironmentDefault creates GenerateEnvironmentDefault with default headers values
func (*GenerateEnvironmentDefault) SetPayload ¶
func (o *GenerateEnvironmentDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the generate environment default response
func (*GenerateEnvironmentDefault) SetStatusCode ¶
func (o *GenerateEnvironmentDefault) SetStatusCode(code int)
SetStatusCode sets the status to the generate environment default response
func (*GenerateEnvironmentDefault) WithPayload ¶
func (o *GenerateEnvironmentDefault) WithPayload(payload *models.Error) *GenerateEnvironmentDefault
WithPayload adds the payload to the generate environment default response
func (*GenerateEnvironmentDefault) WithStatusCode ¶
func (o *GenerateEnvironmentDefault) WithStatusCode(code int) *GenerateEnvironmentDefault
WithStatusCode adds the status to the generate environment default response
func (*GenerateEnvironmentDefault) WriteResponse ¶
func (o *GenerateEnvironmentDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GenerateEnvironmentHandler ¶
type GenerateEnvironmentHandler interface {
Handle(GenerateEnvironmentParams, *models.ModelsPrincipal) middleware.Responder
}
GenerateEnvironmentHandler interface for that can handle valid generate environment params
type GenerateEnvironmentHandlerFunc ¶
type GenerateEnvironmentHandlerFunc func(GenerateEnvironmentParams, *models.ModelsPrincipal) middleware.Responder
GenerateEnvironmentHandlerFunc turns a function with the right signature into a generate environment handler
func (GenerateEnvironmentHandlerFunc) Handle ¶
func (fn GenerateEnvironmentHandlerFunc) Handle(params GenerateEnvironmentParams, principal *models.ModelsPrincipal) middleware.Responder
Handle executing the request and returning a response
type GenerateEnvironmentOK ¶
type GenerateEnvironmentOK struct { /* In: Body */ Payload *models.ModelsEnvironmentResponse `json:"body,omitempty"` }
GenerateEnvironmentOK OK
swagger:response generateEnvironmentOK
func NewGenerateEnvironmentOK ¶
func NewGenerateEnvironmentOK() *GenerateEnvironmentOK
NewGenerateEnvironmentOK creates GenerateEnvironmentOK with default headers values
func (*GenerateEnvironmentOK) SetPayload ¶
func (o *GenerateEnvironmentOK) SetPayload(payload *models.ModelsEnvironmentResponse)
SetPayload sets the payload to the generate environment o k response
func (*GenerateEnvironmentOK) WithPayload ¶
func (o *GenerateEnvironmentOK) WithPayload(payload *models.ModelsEnvironmentResponse) *GenerateEnvironmentOK
WithPayload adds the payload to the generate environment o k response
func (*GenerateEnvironmentOK) WriteResponse ¶
func (o *GenerateEnvironmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GenerateEnvironmentParams ¶
type GenerateEnvironmentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Temporary Environment Request definition Required: true In: body */ Body *models.ModelsEnvironmentRequest }
GenerateEnvironmentParams contains all the bound params for the generate environment operation typically these are obtained from a http.Request
swagger:parameters generate-environment
func NewGenerateEnvironmentParams ¶
func NewGenerateEnvironmentParams() GenerateEnvironmentParams
NewGenerateEnvironmentParams creates a new GenerateEnvironmentParams object
There are no default values defined in the spec.
func (*GenerateEnvironmentParams) BindRequest ¶
func (o *GenerateEnvironmentParams) 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 NewGenerateEnvironmentParams() beforehand.
type GenerateEnvironmentURL ¶
type GenerateEnvironmentURL struct {
// contains filtered or unexported fields
}
GenerateEnvironmentURL generates an URL for the generate environment operation
func (*GenerateEnvironmentURL) Build ¶
func (o *GenerateEnvironmentURL) Build() (*url.URL, error)
Build a url path and query string
func (*GenerateEnvironmentURL) BuildFull ¶
func (o *GenerateEnvironmentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GenerateEnvironmentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GenerateEnvironmentURL) SetBasePath ¶
func (o *GenerateEnvironmentURL) 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 (*GenerateEnvironmentURL) String ¶
func (o *GenerateEnvironmentURL) String() string
String returns the string representation of the path with query string
func (*GenerateEnvironmentURL) StringFull ¶
func (o *GenerateEnvironmentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GenerateEnvironmentURL) WithBasePath ¶
func (o *GenerateEnvironmentURL) WithBasePath(bp string) *GenerateEnvironmentURL
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