environment

package
v0.0.0-...-3c2e68c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GenerateEnvironmentBadRequestCode int = 400

GenerateEnvironmentBadRequestCode is the HTTP code returned for type GenerateEnvironmentBadRequest

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

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

WithPayload adds the payload to the generate environment default response

func (*GenerateEnvironmentDefault) WithStatusCode

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

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

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

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

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

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

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