instance

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MulanPSL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreateBadRequestCode int = 400

CreateBadRequestCode is the HTTP code returned for type CreateBadRequest

View Source
const CreateForbiddenCode int = 403

CreateForbiddenCode is the HTTP code returned for type CreateForbidden

View Source
const CreateInternalServerErrorCode int = 500

CreateInternalServerErrorCode is the HTTP code returned for type CreateInternalServerError

View Source
const CreateNotFoundCode int = 404

CreateNotFoundCode is the HTTP code returned for type CreateNotFound

View Source
const CreateOKCode int = 200

CreateOKCode is the HTTP code returned for type CreateOK

View Source
const CreateUnauthorizedCode int = 401

CreateUnauthorizedCode is the HTTP code returned for type CreateUnauthorized

View Source
const DeleteBadRequestCode int = 400

DeleteBadRequestCode is the HTTP code returned for type DeleteBadRequest

View Source
const DeleteForbiddenCode int = 403

DeleteForbiddenCode is the HTTP code returned for type DeleteForbidden

View Source
const DeleteInternalServerErrorCode int = 500

DeleteInternalServerErrorCode is the HTTP code returned for type DeleteInternalServerError

View Source
const DeleteNotFoundCode int = 404

DeleteNotFoundCode is the HTTP code returned for type DeleteNotFound

View Source
const DeleteOKCode int = 200

DeleteOKCode is the HTTP code returned for type DeleteOK

View Source
const DeleteUnauthorizedCode int = 401

DeleteUnauthorizedCode is the HTTP code returned for type DeleteUnauthorized

View Source
const GetBadRequestCode int = 400

GetBadRequestCode is the HTTP code returned for type GetBadRequest

View Source
const GetForbiddenCode int = 403

GetForbiddenCode is the HTTP code returned for type GetForbidden

View Source
const GetInternalServerErrorCode int = 500

GetInternalServerErrorCode is the HTTP code returned for type GetInternalServerError

View Source
const GetNotFoundCode int = 404

GetNotFoundCode is the HTTP code returned for type GetNotFound

View Source
const GetOKCode int = 200

GetOKCode is the HTTP code returned for type GetOK

View Source
const GetUnauthorizedCode int = 401

GetUnauthorizedCode is the HTTP code returned for type GetUnauthorized

View Source
const ListBadRequestCode int = 400

ListBadRequestCode is the HTTP code returned for type ListBadRequest

View Source
const ListForbiddenCode int = 403

ListForbiddenCode is the HTTP code returned for type ListForbidden

View Source
const ListInternalServerErrorCode int = 500

ListInternalServerErrorCode is the HTTP code returned for type ListInternalServerError

View Source
const ListNotFoundCode int = 404

ListNotFoundCode is the HTTP code returned for type ListNotFound

View Source
const ListOKCode int = 200

ListOKCode is the HTTP code returned for type ListOK

View Source
const ListUnauthorizedCode int = 401

ListUnauthorizedCode is the HTTP code returned for type ListUnauthorized

View Source
const ModifyBadRequestCode int = 400

ModifyBadRequestCode is the HTTP code returned for type ModifyBadRequest

View Source
const ModifyForbiddenCode int = 403

ModifyForbiddenCode is the HTTP code returned for type ModifyForbidden

View Source
const ModifyInternalServerErrorCode int = 500

ModifyInternalServerErrorCode is the HTTP code returned for type ModifyInternalServerError

View Source
const ModifyNotFoundCode int = 404

ModifyNotFoundCode is the HTTP code returned for type ModifyNotFound

View Source
const ModifyOKCode int = 200

ModifyOKCode is the HTTP code returned for type ModifyOK

View Source
const ModifyUnauthorizedCode int = 401

ModifyUnauthorizedCode is the HTTP code returned for type ModifyUnauthorized

View Source
const StartBadRequestCode int = 400

StartBadRequestCode is the HTTP code returned for type StartBadRequest

View Source
const StartForbiddenCode int = 403

StartForbiddenCode is the HTTP code returned for type StartForbidden

View Source
const StartInternalServerErrorCode int = 500

StartInternalServerErrorCode is the HTTP code returned for type StartInternalServerError

View Source
const StartNotFoundCode int = 404

StartNotFoundCode is the HTTP code returned for type StartNotFound

View Source
const StartOKCode int = 200

StartOKCode is the HTTP code returned for type StartOK

View Source
const StartUnauthorizedCode int = 401

StartUnauthorizedCode is the HTTP code returned for type StartUnauthorized

View Source
const StopBadRequestCode int = 400

StopBadRequestCode is the HTTP code returned for type StopBadRequest

View Source
const StopForbiddenCode int = 403

StopForbiddenCode is the HTTP code returned for type StopForbidden

View Source
const StopInternalServerErrorCode int = 500

StopInternalServerErrorCode is the HTTP code returned for type StopInternalServerError

View Source
const StopNotFoundCode int = 404

StopNotFoundCode is the HTTP code returned for type StopNotFound

View Source
const StopOKCode int = 200

StopOKCode is the HTTP code returned for type StopOK

View Source
const StopUnauthorizedCode int = 401

StopUnauthorizedCode is the HTTP code returned for type StopUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type Create

type Create struct {
	Context *middleware.Context
	Handler CreateHandler
}
Create swagger:route POST /instances Instance create

Create Instance

func NewCreate

func NewCreate(ctx *middleware.Context, handler CreateHandler) *Create

NewCreate creates a new http.Handler for the create operation

func (*Create) ServeHTTP

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

type CreateBadRequest

type CreateBadRequest struct {

	/*
	  In: Body
	*/
	Payload *CreateBadRequestBody `json:"body,omitempty"`
}

CreateBadRequest create bad request

swagger:response createBadRequest

func NewCreateBadRequest

func NewCreateBadRequest() *CreateBadRequest

NewCreateBadRequest creates CreateBadRequest with default headers values

func (*CreateBadRequest) SetPayload

func (o *CreateBadRequest) SetPayload(payload *CreateBadRequestBody)

SetPayload sets the payload to the create bad request response

func (*CreateBadRequest) WithPayload

func (o *CreateBadRequest) WithPayload(payload *CreateBadRequestBody) *CreateBadRequest

WithPayload adds the payload to the create bad request response

func (*CreateBadRequest) WriteResponse

func (o *CreateBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateBadRequestBody

type CreateBadRequestBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

CreateBadRequestBody create bad request body

swagger:model CreateBadRequestBody

func (*CreateBadRequestBody) ContextValidate

func (o *CreateBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create bad request body based on context it is used

func (*CreateBadRequestBody) MarshalBinary

func (o *CreateBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateBadRequestBody) UnmarshalBinary

func (o *CreateBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateBadRequestBody) Validate

func (o *CreateBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this create bad request body

type CreateForbidden

type CreateForbidden struct {

	/*
	  In: Body
	*/
	Payload *CreateForbiddenBody `json:"body,omitempty"`
}

CreateForbidden create forbidden

swagger:response createForbidden

func NewCreateForbidden

func NewCreateForbidden() *CreateForbidden

NewCreateForbidden creates CreateForbidden with default headers values

func (*CreateForbidden) SetPayload

func (o *CreateForbidden) SetPayload(payload *CreateForbiddenBody)

SetPayload sets the payload to the create forbidden response

func (*CreateForbidden) WithPayload

func (o *CreateForbidden) WithPayload(payload *CreateForbiddenBody) *CreateForbidden

WithPayload adds the payload to the create forbidden response

func (*CreateForbidden) WriteResponse

func (o *CreateForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateForbiddenBody

type CreateForbiddenBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

CreateForbiddenBody create forbidden body

swagger:model CreateForbiddenBody

func (*CreateForbiddenBody) ContextValidate

func (o *CreateForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create forbidden body based on context it is used

func (*CreateForbiddenBody) MarshalBinary

func (o *CreateForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateForbiddenBody) UnmarshalBinary

func (o *CreateForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateForbiddenBody) Validate

func (o *CreateForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this create forbidden body

type CreateHandler

type CreateHandler interface {
	Handle(CreateParams) middleware.Responder
}

CreateHandler interface for that can handle valid create params

type CreateHandlerFunc

type CreateHandlerFunc func(CreateParams) middleware.Responder

CreateHandlerFunc turns a function with the right signature into a create handler

func (CreateHandlerFunc) Handle

Handle executing the request and returning a response

type CreateInternalServerError

type CreateInternalServerError struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

CreateInternalServerError create internal server error

swagger:response createInternalServerError

func NewCreateInternalServerError

func NewCreateInternalServerError() *CreateInternalServerError

NewCreateInternalServerError creates CreateInternalServerError with default headers values

func (*CreateInternalServerError) SetPayload

func (o *CreateInternalServerError) SetPayload(payload interface{})

SetPayload sets the payload to the create internal server error response

func (*CreateInternalServerError) WithPayload

func (o *CreateInternalServerError) WithPayload(payload interface{}) *CreateInternalServerError

WithPayload adds the payload to the create internal server error response

func (*CreateInternalServerError) WriteResponse

func (o *CreateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateNotFound

type CreateNotFound struct {

	/*
	  In: Body
	*/
	Payload *CreateNotFoundBody `json:"body,omitempty"`
}

CreateNotFound create not found

swagger:response createNotFound

func NewCreateNotFound

func NewCreateNotFound() *CreateNotFound

NewCreateNotFound creates CreateNotFound with default headers values

func (*CreateNotFound) SetPayload

func (o *CreateNotFound) SetPayload(payload *CreateNotFoundBody)

SetPayload sets the payload to the create not found response

func (*CreateNotFound) WithPayload

func (o *CreateNotFound) WithPayload(payload *CreateNotFoundBody) *CreateNotFound

WithPayload adds the payload to the create not found response

func (*CreateNotFound) WriteResponse

func (o *CreateNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateNotFoundBody

type CreateNotFoundBody struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// status
	// Required: true
	Status *string `json:"status"`
}

CreateNotFoundBody create not found body

swagger:model CreateNotFoundBody

func (*CreateNotFoundBody) ContextValidate

func (o *CreateNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create not found body based on context it is used

func (*CreateNotFoundBody) MarshalBinary

func (o *CreateNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateNotFoundBody) UnmarshalBinary

func (o *CreateNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateNotFoundBody) Validate

func (o *CreateNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this create not found body

type CreateOK

type CreateOK struct {

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

CreateOK Create Instance succeeded

swagger:response createOK

func NewCreateOK

func NewCreateOK() *CreateOK

NewCreateOK creates CreateOK with default headers values

func (*CreateOK) SetPayload

func (o *CreateOK) SetPayload(payload *models.Instance)

SetPayload sets the payload to the create o k response

func (*CreateOK) WithPayload

func (o *CreateOK) WithPayload(payload *models.Instance) *CreateOK

WithPayload adds the payload to the create o k response

func (*CreateOK) WriteResponse

func (o *CreateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateParams

type CreateParams struct {

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

	/*Instance config
	  Required: true
	  In: body
	*/
	Config *models.InstanceConfig
}

CreateParams contains all the bound params for the create operation typically these are obtained from a http.Request

swagger:parameters create

func NewCreateParams

func NewCreateParams() CreateParams

NewCreateParams creates a new CreateParams object

There are no default values defined in the spec.

func (*CreateParams) BindRequest

func (o *CreateParams) 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 NewCreateParams() beforehand.

type CreateURL

type CreateURL struct {
	// contains filtered or unexported fields
}

CreateURL generates an URL for the create operation

func (*CreateURL) Build

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

Build a url path and query string

func (*CreateURL) BuildFull

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

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

func (*CreateURL) Must

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

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

func (*CreateURL) SetBasePath

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

func (o *CreateURL) String() string

String returns the string representation of the path with query string

func (*CreateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateURL) WithBasePath

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

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 CreateUnauthorized

type CreateUnauthorized struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

CreateUnauthorized create unauthorized

swagger:response createUnauthorized

func NewCreateUnauthorized

func NewCreateUnauthorized() *CreateUnauthorized

NewCreateUnauthorized creates CreateUnauthorized with default headers values

func (*CreateUnauthorized) SetPayload

func (o *CreateUnauthorized) SetPayload(payload interface{})

SetPayload sets the payload to the create unauthorized response

func (*CreateUnauthorized) WithPayload

func (o *CreateUnauthorized) WithPayload(payload interface{}) *CreateUnauthorized

WithPayload adds the payload to the create unauthorized response

func (*CreateUnauthorized) WriteResponse

func (o *CreateUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type Delete

type Delete struct {
	Context *middleware.Context
	Handler DeleteHandler
}
Delete swagger:route DELETE /instances/{name} Instance delete

Delete Instance

func NewDelete

func NewDelete(ctx *middleware.Context, handler DeleteHandler) *Delete

NewDelete creates a new http.Handler for the delete operation

func (*Delete) ServeHTTP

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

type DeleteBadRequest

type DeleteBadRequest struct {

	/*
	  In: Body
	*/
	Payload *DeleteBadRequestBody `json:"body,omitempty"`
}

DeleteBadRequest delete bad request

swagger:response deleteBadRequest

func NewDeleteBadRequest

func NewDeleteBadRequest() *DeleteBadRequest

NewDeleteBadRequest creates DeleteBadRequest with default headers values

func (*DeleteBadRequest) SetPayload

func (o *DeleteBadRequest) SetPayload(payload *DeleteBadRequestBody)

SetPayload sets the payload to the delete bad request response

func (*DeleteBadRequest) WithPayload

func (o *DeleteBadRequest) WithPayload(payload *DeleteBadRequestBody) *DeleteBadRequest

WithPayload adds the payload to the delete bad request response

func (*DeleteBadRequest) WriteResponse

func (o *DeleteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteBadRequestBody

type DeleteBadRequestBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

DeleteBadRequestBody delete bad request body

swagger:model DeleteBadRequestBody

func (*DeleteBadRequestBody) ContextValidate

func (o *DeleteBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete bad request body based on context it is used

func (*DeleteBadRequestBody) MarshalBinary

func (o *DeleteBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteBadRequestBody) UnmarshalBinary

func (o *DeleteBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteBadRequestBody) Validate

func (o *DeleteBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this delete bad request body

type DeleteForbidden

type DeleteForbidden struct {

	/*
	  In: Body
	*/
	Payload *DeleteForbiddenBody `json:"body,omitempty"`
}

DeleteForbidden delete forbidden

swagger:response deleteForbidden

func NewDeleteForbidden

func NewDeleteForbidden() *DeleteForbidden

NewDeleteForbidden creates DeleteForbidden with default headers values

func (*DeleteForbidden) SetPayload

func (o *DeleteForbidden) SetPayload(payload *DeleteForbiddenBody)

SetPayload sets the payload to the delete forbidden response

func (*DeleteForbidden) WithPayload

func (o *DeleteForbidden) WithPayload(payload *DeleteForbiddenBody) *DeleteForbidden

WithPayload adds the payload to the delete forbidden response

func (*DeleteForbidden) WriteResponse

func (o *DeleteForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteForbiddenBody

type DeleteForbiddenBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

DeleteForbiddenBody delete forbidden body

swagger:model DeleteForbiddenBody

func (*DeleteForbiddenBody) ContextValidate

func (o *DeleteForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete forbidden body based on context it is used

func (*DeleteForbiddenBody) MarshalBinary

func (o *DeleteForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteForbiddenBody) UnmarshalBinary

func (o *DeleteForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteForbiddenBody) Validate

func (o *DeleteForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this delete forbidden body

type DeleteHandler

type DeleteHandler interface {
	Handle(DeleteParams) middleware.Responder
}

DeleteHandler interface for that can handle valid delete params

type DeleteHandlerFunc

type DeleteHandlerFunc func(DeleteParams) middleware.Responder

DeleteHandlerFunc turns a function with the right signature into a delete handler

func (DeleteHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteInternalServerError

type DeleteInternalServerError struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

DeleteInternalServerError delete internal server error

swagger:response deleteInternalServerError

func NewDeleteInternalServerError

func NewDeleteInternalServerError() *DeleteInternalServerError

NewDeleteInternalServerError creates DeleteInternalServerError with default headers values

func (*DeleteInternalServerError) SetPayload

func (o *DeleteInternalServerError) SetPayload(payload interface{})

SetPayload sets the payload to the delete internal server error response

func (*DeleteInternalServerError) WithPayload

func (o *DeleteInternalServerError) WithPayload(payload interface{}) *DeleteInternalServerError

WithPayload adds the payload to the delete internal server error response

func (*DeleteInternalServerError) WriteResponse

func (o *DeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteNotFound

type DeleteNotFound struct {

	/*
	  In: Body
	*/
	Payload *DeleteNotFoundBody `json:"body,omitempty"`
}

DeleteNotFound delete not found

swagger:response deleteNotFound

func NewDeleteNotFound

func NewDeleteNotFound() *DeleteNotFound

NewDeleteNotFound creates DeleteNotFound with default headers values

func (*DeleteNotFound) SetPayload

func (o *DeleteNotFound) SetPayload(payload *DeleteNotFoundBody)

SetPayload sets the payload to the delete not found response

func (*DeleteNotFound) WithPayload

func (o *DeleteNotFound) WithPayload(payload *DeleteNotFoundBody) *DeleteNotFound

WithPayload adds the payload to the delete not found response

func (*DeleteNotFound) WriteResponse

func (o *DeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteNotFoundBody

type DeleteNotFoundBody struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// status
	// Required: true
	Status *string `json:"status"`
}

DeleteNotFoundBody delete not found body

swagger:model DeleteNotFoundBody

func (*DeleteNotFoundBody) ContextValidate

func (o *DeleteNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete not found body based on context it is used

func (*DeleteNotFoundBody) MarshalBinary

func (o *DeleteNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteNotFoundBody) UnmarshalBinary

func (o *DeleteNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteNotFoundBody) Validate

func (o *DeleteNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this delete not found body

type DeleteOK

type DeleteOK struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

DeleteOK Delete Instance succeeded

swagger:response deleteOK

func NewDeleteOK

func NewDeleteOK() *DeleteOK

NewDeleteOK creates DeleteOK with default headers values

func (*DeleteOK) SetPayload

func (o *DeleteOK) SetPayload(payload interface{})

SetPayload sets the payload to the delete o k response

func (*DeleteOK) WithPayload

func (o *DeleteOK) WithPayload(payload interface{}) *DeleteOK

WithPayload adds the payload to the delete o k response

func (*DeleteOK) WriteResponse

func (o *DeleteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteParams

type DeleteParams struct {

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

	/*Instance name
	  Required: true
	  Pattern: ^[A-Za-z0-9\-_.]{1,32}$
	  In: path
	*/
	Name string
}

DeleteParams contains all the bound params for the delete operation typically these are obtained from a http.Request

swagger:parameters delete

func NewDeleteParams

func NewDeleteParams() DeleteParams

NewDeleteParams creates a new DeleteParams object

There are no default values defined in the spec.

func (*DeleteParams) BindRequest

func (o *DeleteParams) 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 NewDeleteParams() beforehand.

type DeleteURL

type DeleteURL struct {
	Name string
	// contains filtered or unexported fields
}

DeleteURL generates an URL for the delete operation

func (*DeleteURL) Build

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

Build a url path and query string

func (*DeleteURL) BuildFull

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

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

func (*DeleteURL) Must

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

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

func (*DeleteURL) SetBasePath

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

func (o *DeleteURL) String() string

String returns the string representation of the path with query string

func (*DeleteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteURL) WithBasePath

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

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 DeleteUnauthorized

type DeleteUnauthorized struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

DeleteUnauthorized delete unauthorized

swagger:response deleteUnauthorized

func NewDeleteUnauthorized

func NewDeleteUnauthorized() *DeleteUnauthorized

NewDeleteUnauthorized creates DeleteUnauthorized with default headers values

func (*DeleteUnauthorized) SetPayload

func (o *DeleteUnauthorized) SetPayload(payload interface{})

SetPayload sets the payload to the delete unauthorized response

func (*DeleteUnauthorized) WithPayload

func (o *DeleteUnauthorized) WithPayload(payload interface{}) *DeleteUnauthorized

WithPayload adds the payload to the delete unauthorized response

func (*DeleteUnauthorized) WriteResponse

func (o *DeleteUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type Get

type Get struct {
	Context *middleware.Context
	Handler GetHandler
}
Get swagger:route GET /instances/{name} Instance get

Get Instance

func NewGet

func NewGet(ctx *middleware.Context, handler GetHandler) *Get

NewGet creates a new http.Handler for the get operation

func (*Get) ServeHTTP

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

type GetBadRequest

type GetBadRequest struct {

	/*
	  In: Body
	*/
	Payload *GetBadRequestBody `json:"body,omitempty"`
}

GetBadRequest get bad request

swagger:response getBadRequest

func NewGetBadRequest

func NewGetBadRequest() *GetBadRequest

NewGetBadRequest creates GetBadRequest with default headers values

func (*GetBadRequest) SetPayload

func (o *GetBadRequest) SetPayload(payload *GetBadRequestBody)

SetPayload sets the payload to the get bad request response

func (*GetBadRequest) WithPayload

func (o *GetBadRequest) WithPayload(payload *GetBadRequestBody) *GetBadRequest

WithPayload adds the payload to the get bad request response

func (*GetBadRequest) WriteResponse

func (o *GetBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetBadRequestBody

type GetBadRequestBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

GetBadRequestBody get bad request body

swagger:model GetBadRequestBody

func (*GetBadRequestBody) ContextValidate

func (o *GetBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get bad request body based on context it is used

func (*GetBadRequestBody) MarshalBinary

func (o *GetBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetBadRequestBody) UnmarshalBinary

func (o *GetBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetBadRequestBody) Validate

func (o *GetBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this get bad request body

type GetForbidden

type GetForbidden struct {

	/*
	  In: Body
	*/
	Payload *GetForbiddenBody `json:"body,omitempty"`
}

GetForbidden get forbidden

swagger:response getForbidden

func NewGetForbidden

func NewGetForbidden() *GetForbidden

NewGetForbidden creates GetForbidden with default headers values

func (*GetForbidden) SetPayload

func (o *GetForbidden) SetPayload(payload *GetForbiddenBody)

SetPayload sets the payload to the get forbidden response

func (*GetForbidden) WithPayload

func (o *GetForbidden) WithPayload(payload *GetForbiddenBody) *GetForbidden

WithPayload adds the payload to the get forbidden response

func (*GetForbidden) WriteResponse

func (o *GetForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetForbiddenBody

type GetForbiddenBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

GetForbiddenBody get forbidden body

swagger:model GetForbiddenBody

func (*GetForbiddenBody) ContextValidate

func (o *GetForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get forbidden body based on context it is used

func (*GetForbiddenBody) MarshalBinary

func (o *GetForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetForbiddenBody) UnmarshalBinary

func (o *GetForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetForbiddenBody) Validate

func (o *GetForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this get forbidden body

type GetHandler

type GetHandler interface {
	Handle(GetParams) middleware.Responder
}

GetHandler interface for that can handle valid get params

type GetHandlerFunc

type GetHandlerFunc func(GetParams) middleware.Responder

GetHandlerFunc turns a function with the right signature into a get handler

func (GetHandlerFunc) Handle

func (fn GetHandlerFunc) Handle(params GetParams) middleware.Responder

Handle executing the request and returning a response

type GetInternalServerError

type GetInternalServerError struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

GetInternalServerError get internal server error

swagger:response getInternalServerError

func NewGetInternalServerError

func NewGetInternalServerError() *GetInternalServerError

NewGetInternalServerError creates GetInternalServerError with default headers values

func (*GetInternalServerError) SetPayload

func (o *GetInternalServerError) SetPayload(payload interface{})

SetPayload sets the payload to the get internal server error response

func (*GetInternalServerError) WithPayload

func (o *GetInternalServerError) WithPayload(payload interface{}) *GetInternalServerError

WithPayload adds the payload to the get internal server error response

func (*GetInternalServerError) WriteResponse

func (o *GetInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetNotFound

type GetNotFound struct {

	/*
	  In: Body
	*/
	Payload *GetNotFoundBody `json:"body,omitempty"`
}

GetNotFound get not found

swagger:response getNotFound

func NewGetNotFound

func NewGetNotFound() *GetNotFound

NewGetNotFound creates GetNotFound with default headers values

func (*GetNotFound) SetPayload

func (o *GetNotFound) SetPayload(payload *GetNotFoundBody)

SetPayload sets the payload to the get not found response

func (*GetNotFound) WithPayload

func (o *GetNotFound) WithPayload(payload *GetNotFoundBody) *GetNotFound

WithPayload adds the payload to the get not found response

func (*GetNotFound) WriteResponse

func (o *GetNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetNotFoundBody

type GetNotFoundBody struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// status
	// Required: true
	Status *string `json:"status"`
}

GetNotFoundBody get not found body

swagger:model GetNotFoundBody

func (*GetNotFoundBody) ContextValidate

func (o *GetNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get not found body based on context it is used

func (*GetNotFoundBody) MarshalBinary

func (o *GetNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetNotFoundBody) UnmarshalBinary

func (o *GetNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetNotFoundBody) Validate

func (o *GetNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this get not found body

type GetOK

type GetOK struct {

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

GetOK Get Instance succeeded

swagger:response getOK

func NewGetOK

func NewGetOK() *GetOK

NewGetOK creates GetOK with default headers values

func (*GetOK) SetPayload

func (o *GetOK) SetPayload(payload *models.Instance)

SetPayload sets the payload to the get o k response

func (*GetOK) WithPayload

func (o *GetOK) WithPayload(payload *models.Instance) *GetOK

WithPayload adds the payload to the get o k response

func (*GetOK) WriteResponse

func (o *GetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetParams

type GetParams struct {

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

	/*Instance name
	  Required: true
	  Pattern: ^[A-Za-z0-9\-_.]{1,32}$
	  In: path
	*/
	Name string
}

GetParams contains all the bound params for the get operation typically these are obtained from a http.Request

swagger:parameters get

func NewGetParams

func NewGetParams() GetParams

NewGetParams creates a new GetParams object

There are no default values defined in the spec.

func (*GetParams) BindRequest

func (o *GetParams) 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 NewGetParams() beforehand.

type GetURL

type GetURL struct {
	Name string
	// contains filtered or unexported fields
}

GetURL generates an URL for the get operation

func (*GetURL) Build

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

Build a url path and query string

func (*GetURL) BuildFull

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

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

func (*GetURL) Must

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

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

func (*GetURL) SetBasePath

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

func (o *GetURL) String() string

String returns the string representation of the path with query string

func (*GetURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetURL) WithBasePath

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

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 GetUnauthorized

type GetUnauthorized struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

GetUnauthorized get unauthorized

swagger:response getUnauthorized

func NewGetUnauthorized

func NewGetUnauthorized() *GetUnauthorized

NewGetUnauthorized creates GetUnauthorized with default headers values

func (*GetUnauthorized) SetPayload

func (o *GetUnauthorized) SetPayload(payload interface{})

SetPayload sets the payload to the get unauthorized response

func (*GetUnauthorized) WithPayload

func (o *GetUnauthorized) WithPayload(payload interface{}) *GetUnauthorized

WithPayload adds the payload to the get unauthorized response

func (*GetUnauthorized) WriteResponse

func (o *GetUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type List

type List struct {
	Context *middleware.Context
	Handler ListHandler
}
List swagger:route GET /instances Instance list

List Instances

func NewList

func NewList(ctx *middleware.Context, handler ListHandler) *List

NewList creates a new http.Handler for the list operation

func (*List) ServeHTTP

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

type ListBadRequest

type ListBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ListBadRequestBody `json:"body,omitempty"`
}

ListBadRequest list bad request

swagger:response listBadRequest

func NewListBadRequest

func NewListBadRequest() *ListBadRequest

NewListBadRequest creates ListBadRequest with default headers values

func (*ListBadRequest) SetPayload

func (o *ListBadRequest) SetPayload(payload *ListBadRequestBody)

SetPayload sets the payload to the list bad request response

func (*ListBadRequest) WithPayload

func (o *ListBadRequest) WithPayload(payload *ListBadRequestBody) *ListBadRequest

WithPayload adds the payload to the list bad request response

func (*ListBadRequest) WriteResponse

func (o *ListBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListBadRequestBody

type ListBadRequestBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

ListBadRequestBody list bad request body

swagger:model ListBadRequestBody

func (*ListBadRequestBody) ContextValidate

func (o *ListBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list bad request body based on context it is used

func (*ListBadRequestBody) MarshalBinary

func (o *ListBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListBadRequestBody) UnmarshalBinary

func (o *ListBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListBadRequestBody) Validate

func (o *ListBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this list bad request body

type ListForbidden

type ListForbidden struct {

	/*
	  In: Body
	*/
	Payload *ListForbiddenBody `json:"body,omitempty"`
}

ListForbidden list forbidden

swagger:response listForbidden

func NewListForbidden

func NewListForbidden() *ListForbidden

NewListForbidden creates ListForbidden with default headers values

func (*ListForbidden) SetPayload

func (o *ListForbidden) SetPayload(payload *ListForbiddenBody)

SetPayload sets the payload to the list forbidden response

func (*ListForbidden) WithPayload

func (o *ListForbidden) WithPayload(payload *ListForbiddenBody) *ListForbidden

WithPayload adds the payload to the list forbidden response

func (*ListForbidden) WriteResponse

func (o *ListForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListForbiddenBody

type ListForbiddenBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

ListForbiddenBody list forbidden body

swagger:model ListForbiddenBody

func (*ListForbiddenBody) ContextValidate

func (o *ListForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list forbidden body based on context it is used

func (*ListForbiddenBody) MarshalBinary

func (o *ListForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListForbiddenBody) UnmarshalBinary

func (o *ListForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListForbiddenBody) Validate

func (o *ListForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this list forbidden body

type ListHandler

type ListHandler interface {
	Handle(ListParams) middleware.Responder
}

ListHandler interface for that can handle valid list params

type ListHandlerFunc

type ListHandlerFunc func(ListParams) middleware.Responder

ListHandlerFunc turns a function with the right signature into a list handler

func (ListHandlerFunc) Handle

func (fn ListHandlerFunc) Handle(params ListParams) middleware.Responder

Handle executing the request and returning a response

type ListInternalServerError

type ListInternalServerError struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

ListInternalServerError list internal server error

swagger:response listInternalServerError

func NewListInternalServerError

func NewListInternalServerError() *ListInternalServerError

NewListInternalServerError creates ListInternalServerError with default headers values

func (*ListInternalServerError) SetPayload

func (o *ListInternalServerError) SetPayload(payload interface{})

SetPayload sets the payload to the list internal server error response

func (*ListInternalServerError) WithPayload

func (o *ListInternalServerError) WithPayload(payload interface{}) *ListInternalServerError

WithPayload adds the payload to the list internal server error response

func (*ListInternalServerError) WriteResponse

func (o *ListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListNotFound

type ListNotFound struct {

	/*
	  In: Body
	*/
	Payload *ListNotFoundBody `json:"body,omitempty"`
}

ListNotFound list not found

swagger:response listNotFound

func NewListNotFound

func NewListNotFound() *ListNotFound

NewListNotFound creates ListNotFound with default headers values

func (*ListNotFound) SetPayload

func (o *ListNotFound) SetPayload(payload *ListNotFoundBody)

SetPayload sets the payload to the list not found response

func (*ListNotFound) WithPayload

func (o *ListNotFound) WithPayload(payload *ListNotFoundBody) *ListNotFound

WithPayload adds the payload to the list not found response

func (*ListNotFound) WriteResponse

func (o *ListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListNotFoundBody

type ListNotFoundBody struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// status
	// Required: true
	Status *string `json:"status"`
}

ListNotFoundBody list not found body

swagger:model ListNotFoundBody

func (*ListNotFoundBody) ContextValidate

func (o *ListNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list not found body based on context it is used

func (*ListNotFoundBody) MarshalBinary

func (o *ListNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListNotFoundBody) UnmarshalBinary

func (o *ListNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListNotFoundBody) Validate

func (o *ListNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this list not found body

type ListOK

type ListOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Instance `json:"body,omitempty"`
}

ListOK List Instances succeeded

swagger:response listOK

func NewListOK

func NewListOK() *ListOK

NewListOK creates ListOK with default headers values

func (*ListOK) SetPayload

func (o *ListOK) SetPayload(payload []*models.Instance)

SetPayload sets the payload to the list o k response

func (*ListOK) WithPayload

func (o *ListOK) WithPayload(payload []*models.Instance) *ListOK

WithPayload adds the payload to the list o k response

func (*ListOK) WriteResponse

func (o *ListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListParams

type ListParams struct {

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

	/*Instance name
	  Pattern: ^[A-Za-z0-9\-_.]{1,32}$
	  In: query
	*/
	Name *string
}

ListParams contains all the bound params for the list operation typically these are obtained from a http.Request

swagger:parameters list

func NewListParams

func NewListParams() ListParams

NewListParams creates a new ListParams object

There are no default values defined in the spec.

func (*ListParams) BindRequest

func (o *ListParams) 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 NewListParams() beforehand.

type ListURL

type ListURL struct {
	Name *string
	// contains filtered or unexported fields
}

ListURL generates an URL for the list operation

func (*ListURL) Build

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

Build a url path and query string

func (*ListURL) BuildFull

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

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

func (*ListURL) Must

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

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

func (*ListURL) SetBasePath

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

func (o *ListURL) String() string

String returns the string representation of the path with query string

func (*ListURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListURL) WithBasePath

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

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 ListUnauthorized

type ListUnauthorized struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

ListUnauthorized list unauthorized

swagger:response listUnauthorized

func NewListUnauthorized

func NewListUnauthorized() *ListUnauthorized

NewListUnauthorized creates ListUnauthorized with default headers values

func (*ListUnauthorized) SetPayload

func (o *ListUnauthorized) SetPayload(payload interface{})

SetPayload sets the payload to the list unauthorized response

func (*ListUnauthorized) WithPayload

func (o *ListUnauthorized) WithPayload(payload interface{}) *ListUnauthorized

WithPayload adds the payload to the list unauthorized response

func (*ListUnauthorized) WriteResponse

func (o *ListUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type Modify

type Modify struct {
	Context *middleware.Context
	Handler ModifyHandler
}
Modify swagger:route PUT /instances Instance modify

Modify Instance

func NewModify

func NewModify(ctx *middleware.Context, handler ModifyHandler) *Modify

NewModify creates a new http.Handler for the modify operation

func (*Modify) ServeHTTP

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

type ModifyBadRequest

type ModifyBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ModifyBadRequestBody `json:"body,omitempty"`
}

ModifyBadRequest modify bad request

swagger:response modifyBadRequest

func NewModifyBadRequest

func NewModifyBadRequest() *ModifyBadRequest

NewModifyBadRequest creates ModifyBadRequest with default headers values

func (*ModifyBadRequest) SetPayload

func (o *ModifyBadRequest) SetPayload(payload *ModifyBadRequestBody)

SetPayload sets the payload to the modify bad request response

func (*ModifyBadRequest) WithPayload

func (o *ModifyBadRequest) WithPayload(payload *ModifyBadRequestBody) *ModifyBadRequest

WithPayload adds the payload to the modify bad request response

func (*ModifyBadRequest) WriteResponse

func (o *ModifyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ModifyBadRequestBody

type ModifyBadRequestBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

ModifyBadRequestBody modify bad request body

swagger:model ModifyBadRequestBody

func (*ModifyBadRequestBody) ContextValidate

func (o *ModifyBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this modify bad request body based on context it is used

func (*ModifyBadRequestBody) MarshalBinary

func (o *ModifyBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModifyBadRequestBody) UnmarshalBinary

func (o *ModifyBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModifyBadRequestBody) Validate

func (o *ModifyBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this modify bad request body

type ModifyForbidden

type ModifyForbidden struct {

	/*
	  In: Body
	*/
	Payload *ModifyForbiddenBody `json:"body,omitempty"`
}

ModifyForbidden modify forbidden

swagger:response modifyForbidden

func NewModifyForbidden

func NewModifyForbidden() *ModifyForbidden

NewModifyForbidden creates ModifyForbidden with default headers values

func (*ModifyForbidden) SetPayload

func (o *ModifyForbidden) SetPayload(payload *ModifyForbiddenBody)

SetPayload sets the payload to the modify forbidden response

func (*ModifyForbidden) WithPayload

func (o *ModifyForbidden) WithPayload(payload *ModifyForbiddenBody) *ModifyForbidden

WithPayload adds the payload to the modify forbidden response

func (*ModifyForbidden) WriteResponse

func (o *ModifyForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ModifyForbiddenBody

type ModifyForbiddenBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

ModifyForbiddenBody modify forbidden body

swagger:model ModifyForbiddenBody

func (*ModifyForbiddenBody) ContextValidate

func (o *ModifyForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this modify forbidden body based on context it is used

func (*ModifyForbiddenBody) MarshalBinary

func (o *ModifyForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModifyForbiddenBody) UnmarshalBinary

func (o *ModifyForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModifyForbiddenBody) Validate

func (o *ModifyForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this modify forbidden body

type ModifyHandler

type ModifyHandler interface {
	Handle(ModifyParams) middleware.Responder
}

ModifyHandler interface for that can handle valid modify params

type ModifyHandlerFunc

type ModifyHandlerFunc func(ModifyParams) middleware.Responder

ModifyHandlerFunc turns a function with the right signature into a modify handler

func (ModifyHandlerFunc) Handle

Handle executing the request and returning a response

type ModifyInternalServerError

type ModifyInternalServerError struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

ModifyInternalServerError modify internal server error

swagger:response modifyInternalServerError

func NewModifyInternalServerError

func NewModifyInternalServerError() *ModifyInternalServerError

NewModifyInternalServerError creates ModifyInternalServerError with default headers values

func (*ModifyInternalServerError) SetPayload

func (o *ModifyInternalServerError) SetPayload(payload interface{})

SetPayload sets the payload to the modify internal server error response

func (*ModifyInternalServerError) WithPayload

func (o *ModifyInternalServerError) WithPayload(payload interface{}) *ModifyInternalServerError

WithPayload adds the payload to the modify internal server error response

func (*ModifyInternalServerError) WriteResponse

func (o *ModifyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ModifyNotFound

type ModifyNotFound struct {

	/*
	  In: Body
	*/
	Payload *ModifyNotFoundBody `json:"body,omitempty"`
}

ModifyNotFound modify not found

swagger:response modifyNotFound

func NewModifyNotFound

func NewModifyNotFound() *ModifyNotFound

NewModifyNotFound creates ModifyNotFound with default headers values

func (*ModifyNotFound) SetPayload

func (o *ModifyNotFound) SetPayload(payload *ModifyNotFoundBody)

SetPayload sets the payload to the modify not found response

func (*ModifyNotFound) WithPayload

func (o *ModifyNotFound) WithPayload(payload *ModifyNotFoundBody) *ModifyNotFound

WithPayload adds the payload to the modify not found response

func (*ModifyNotFound) WriteResponse

func (o *ModifyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ModifyNotFoundBody

type ModifyNotFoundBody struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// status
	// Required: true
	Status *string `json:"status"`
}

ModifyNotFoundBody modify not found body

swagger:model ModifyNotFoundBody

func (*ModifyNotFoundBody) ContextValidate

func (o *ModifyNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this modify not found body based on context it is used

func (*ModifyNotFoundBody) MarshalBinary

func (o *ModifyNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModifyNotFoundBody) UnmarshalBinary

func (o *ModifyNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModifyNotFoundBody) Validate

func (o *ModifyNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this modify not found body

type ModifyOK

type ModifyOK struct {

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

ModifyOK Modify Instance succeeded

swagger:response modifyOK

func NewModifyOK

func NewModifyOK() *ModifyOK

NewModifyOK creates ModifyOK with default headers values

func (*ModifyOK) SetPayload

func (o *ModifyOK) SetPayload(payload *models.Instance)

SetPayload sets the payload to the modify o k response

func (*ModifyOK) WithPayload

func (o *ModifyOK) WithPayload(payload *models.Instance) *ModifyOK

WithPayload adds the payload to the modify o k response

func (*ModifyOK) WriteResponse

func (o *ModifyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ModifyParams

type ModifyParams struct {

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

	/*Instance request
	  Required: true
	  In: body
	*/
	Config *models.InstanceConfig
}

ModifyParams contains all the bound params for the modify operation typically these are obtained from a http.Request

swagger:parameters modify

func NewModifyParams

func NewModifyParams() ModifyParams

NewModifyParams creates a new ModifyParams object

There are no default values defined in the spec.

func (*ModifyParams) BindRequest

func (o *ModifyParams) 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 NewModifyParams() beforehand.

type ModifyURL

type ModifyURL struct {
	// contains filtered or unexported fields
}

ModifyURL generates an URL for the modify operation

func (*ModifyURL) Build

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

Build a url path and query string

func (*ModifyURL) BuildFull

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

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

func (*ModifyURL) Must

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

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

func (*ModifyURL) SetBasePath

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

func (o *ModifyURL) String() string

String returns the string representation of the path with query string

func (*ModifyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ModifyURL) WithBasePath

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

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 ModifyUnauthorized

type ModifyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

ModifyUnauthorized modify unauthorized

swagger:response modifyUnauthorized

func NewModifyUnauthorized

func NewModifyUnauthorized() *ModifyUnauthorized

NewModifyUnauthorized creates ModifyUnauthorized with default headers values

func (*ModifyUnauthorized) SetPayload

func (o *ModifyUnauthorized) SetPayload(payload interface{})

SetPayload sets the payload to the modify unauthorized response

func (*ModifyUnauthorized) WithPayload

func (o *ModifyUnauthorized) WithPayload(payload interface{}) *ModifyUnauthorized

WithPayload adds the payload to the modify unauthorized response

func (*ModifyUnauthorized) WriteResponse

func (o *ModifyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type Start

type Start struct {
	Context *middleware.Context
	Handler StartHandler
}
Start swagger:route POST /instances/{name}/start Instance start

Start instance

func NewStart

func NewStart(ctx *middleware.Context, handler StartHandler) *Start

NewStart creates a new http.Handler for the start operation

func (*Start) ServeHTTP

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

type StartBadRequest

type StartBadRequest struct {

	/*
	  In: Body
	*/
	Payload *StartBadRequestBody `json:"body,omitempty"`
}

StartBadRequest start bad request

swagger:response startBadRequest

func NewStartBadRequest

func NewStartBadRequest() *StartBadRequest

NewStartBadRequest creates StartBadRequest with default headers values

func (*StartBadRequest) SetPayload

func (o *StartBadRequest) SetPayload(payload *StartBadRequestBody)

SetPayload sets the payload to the start bad request response

func (*StartBadRequest) WithPayload

func (o *StartBadRequest) WithPayload(payload *StartBadRequestBody) *StartBadRequest

WithPayload adds the payload to the start bad request response

func (*StartBadRequest) WriteResponse

func (o *StartBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StartBadRequestBody

type StartBadRequestBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

StartBadRequestBody start bad request body

swagger:model StartBadRequestBody

func (*StartBadRequestBody) ContextValidate

func (o *StartBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this start bad request body based on context it is used

func (*StartBadRequestBody) MarshalBinary

func (o *StartBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StartBadRequestBody) UnmarshalBinary

func (o *StartBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StartBadRequestBody) Validate

func (o *StartBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this start bad request body

type StartForbidden

type StartForbidden struct {

	/*
	  In: Body
	*/
	Payload *StartForbiddenBody `json:"body,omitempty"`
}

StartForbidden start forbidden

swagger:response startForbidden

func NewStartForbidden

func NewStartForbidden() *StartForbidden

NewStartForbidden creates StartForbidden with default headers values

func (*StartForbidden) SetPayload

func (o *StartForbidden) SetPayload(payload *StartForbiddenBody)

SetPayload sets the payload to the start forbidden response

func (*StartForbidden) WithPayload

func (o *StartForbidden) WithPayload(payload *StartForbiddenBody) *StartForbidden

WithPayload adds the payload to the start forbidden response

func (*StartForbidden) WriteResponse

func (o *StartForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StartForbiddenBody

type StartForbiddenBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

StartForbiddenBody start forbidden body

swagger:model StartForbiddenBody

func (*StartForbiddenBody) ContextValidate

func (o *StartForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this start forbidden body based on context it is used

func (*StartForbiddenBody) MarshalBinary

func (o *StartForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StartForbiddenBody) UnmarshalBinary

func (o *StartForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StartForbiddenBody) Validate

func (o *StartForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this start forbidden body

type StartHandler

type StartHandler interface {
	Handle(StartParams) middleware.Responder
}

StartHandler interface for that can handle valid start params

type StartHandlerFunc

type StartHandlerFunc func(StartParams) middleware.Responder

StartHandlerFunc turns a function with the right signature into a start handler

func (StartHandlerFunc) Handle

Handle executing the request and returning a response

type StartInternalServerError

type StartInternalServerError struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

StartInternalServerError start internal server error

swagger:response startInternalServerError

func NewStartInternalServerError

func NewStartInternalServerError() *StartInternalServerError

NewStartInternalServerError creates StartInternalServerError with default headers values

func (*StartInternalServerError) SetPayload

func (o *StartInternalServerError) SetPayload(payload interface{})

SetPayload sets the payload to the start internal server error response

func (*StartInternalServerError) WithPayload

func (o *StartInternalServerError) WithPayload(payload interface{}) *StartInternalServerError

WithPayload adds the payload to the start internal server error response

func (*StartInternalServerError) WriteResponse

func (o *StartInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StartNotFound

type StartNotFound struct {

	/*
	  In: Body
	*/
	Payload *StartNotFoundBody `json:"body,omitempty"`
}

StartNotFound start not found

swagger:response startNotFound

func NewStartNotFound

func NewStartNotFound() *StartNotFound

NewStartNotFound creates StartNotFound with default headers values

func (*StartNotFound) SetPayload

func (o *StartNotFound) SetPayload(payload *StartNotFoundBody)

SetPayload sets the payload to the start not found response

func (*StartNotFound) WithPayload

func (o *StartNotFound) WithPayload(payload *StartNotFoundBody) *StartNotFound

WithPayload adds the payload to the start not found response

func (*StartNotFound) WriteResponse

func (o *StartNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StartNotFoundBody

type StartNotFoundBody struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// status
	// Required: true
	Status *string `json:"status"`
}

StartNotFoundBody start not found body

swagger:model StartNotFoundBody

func (*StartNotFoundBody) ContextValidate

func (o *StartNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this start not found body based on context it is used

func (*StartNotFoundBody) MarshalBinary

func (o *StartNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StartNotFoundBody) UnmarshalBinary

func (o *StartNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StartNotFoundBody) Validate

func (o *StartNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this start not found body

type StartOK

type StartOK struct {

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

StartOK Start instance succeeded

swagger:response startOK

func NewStartOK

func NewStartOK() *StartOK

NewStartOK creates StartOK with default headers values

func (*StartOK) SetPayload

func (o *StartOK) SetPayload(payload *models.Instance)

SetPayload sets the payload to the start o k response

func (*StartOK) WithPayload

func (o *StartOK) WithPayload(payload *models.Instance) *StartOK

WithPayload adds the payload to the start o k response

func (*StartOK) WriteResponse

func (o *StartOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StartParams

type StartParams struct {

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

	/*Instance name
	  Required: true
	  Pattern: ^[A-Za-z0-9\-_.]{1,32}$
	  In: path
	*/
	Name string
}

StartParams contains all the bound params for the start operation typically these are obtained from a http.Request

swagger:parameters start

func NewStartParams

func NewStartParams() StartParams

NewStartParams creates a new StartParams object

There are no default values defined in the spec.

func (*StartParams) BindRequest

func (o *StartParams) 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 NewStartParams() beforehand.

type StartURL

type StartURL struct {
	Name string
	// contains filtered or unexported fields
}

StartURL generates an URL for the start operation

func (*StartURL) Build

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

Build a url path and query string

func (*StartURL) BuildFull

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

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

func (*StartURL) Must

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

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

func (*StartURL) SetBasePath

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

func (o *StartURL) String() string

String returns the string representation of the path with query string

func (*StartURL) StringFull

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

StringFull returns the string representation of a complete url

func (*StartURL) WithBasePath

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

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 StartUnauthorized

type StartUnauthorized struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

StartUnauthorized start unauthorized

swagger:response startUnauthorized

func NewStartUnauthorized

func NewStartUnauthorized() *StartUnauthorized

NewStartUnauthorized creates StartUnauthorized with default headers values

func (*StartUnauthorized) SetPayload

func (o *StartUnauthorized) SetPayload(payload interface{})

SetPayload sets the payload to the start unauthorized response

func (*StartUnauthorized) WithPayload

func (o *StartUnauthorized) WithPayload(payload interface{}) *StartUnauthorized

WithPayload adds the payload to the start unauthorized response

func (*StartUnauthorized) WriteResponse

func (o *StartUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type Stop

type Stop struct {
	Context *middleware.Context
	Handler StopHandler
}
Stop swagger:route POST /instances/{name}/stop Instance stop

Stop Instance

func NewStop

func NewStop(ctx *middleware.Context, handler StopHandler) *Stop

NewStop creates a new http.Handler for the stop operation

func (*Stop) ServeHTTP

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

type StopBadRequest

type StopBadRequest struct {

	/*
	  In: Body
	*/
	Payload *StopBadRequestBody `json:"body,omitempty"`
}

StopBadRequest stop bad request

swagger:response stopBadRequest

func NewStopBadRequest

func NewStopBadRequest() *StopBadRequest

NewStopBadRequest creates StopBadRequest with default headers values

func (*StopBadRequest) SetPayload

func (o *StopBadRequest) SetPayload(payload *StopBadRequestBody)

SetPayload sets the payload to the stop bad request response

func (*StopBadRequest) WithPayload

func (o *StopBadRequest) WithPayload(payload *StopBadRequestBody) *StopBadRequest

WithPayload adds the payload to the stop bad request response

func (*StopBadRequest) WriteResponse

func (o *StopBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopBadRequestBody

type StopBadRequestBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

StopBadRequestBody stop bad request body

swagger:model StopBadRequestBody

func (*StopBadRequestBody) ContextValidate

func (o *StopBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stop bad request body based on context it is used

func (*StopBadRequestBody) MarshalBinary

func (o *StopBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StopBadRequestBody) UnmarshalBinary

func (o *StopBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StopBadRequestBody) Validate

func (o *StopBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this stop bad request body

type StopForbidden

type StopForbidden struct {

	/*
	  In: Body
	*/
	Payload *StopForbiddenBody `json:"body,omitempty"`
}

StopForbidden stop forbidden

swagger:response stopForbidden

func NewStopForbidden

func NewStopForbidden() *StopForbidden

NewStopForbidden creates StopForbidden with default headers values

func (*StopForbidden) SetPayload

func (o *StopForbidden) SetPayload(payload *StopForbiddenBody)

SetPayload sets the payload to the stop forbidden response

func (*StopForbidden) WithPayload

func (o *StopForbidden) WithPayload(payload *StopForbiddenBody) *StopForbidden

WithPayload adds the payload to the stop forbidden response

func (*StopForbidden) WriteResponse

func (o *StopForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopForbiddenBody

type StopForbiddenBody struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

StopForbiddenBody stop forbidden body

swagger:model StopForbiddenBody

func (*StopForbiddenBody) ContextValidate

func (o *StopForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stop forbidden body based on context it is used

func (*StopForbiddenBody) MarshalBinary

func (o *StopForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StopForbiddenBody) UnmarshalBinary

func (o *StopForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StopForbiddenBody) Validate

func (o *StopForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this stop forbidden body

type StopHandler

type StopHandler interface {
	Handle(StopParams) middleware.Responder
}

StopHandler interface for that can handle valid stop params

type StopHandlerFunc

type StopHandlerFunc func(StopParams) middleware.Responder

StopHandlerFunc turns a function with the right signature into a stop handler

func (StopHandlerFunc) Handle

func (fn StopHandlerFunc) Handle(params StopParams) middleware.Responder

Handle executing the request and returning a response

type StopInternalServerError

type StopInternalServerError struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

StopInternalServerError stop internal server error

swagger:response stopInternalServerError

func NewStopInternalServerError

func NewStopInternalServerError() *StopInternalServerError

NewStopInternalServerError creates StopInternalServerError with default headers values

func (*StopInternalServerError) SetPayload

func (o *StopInternalServerError) SetPayload(payload interface{})

SetPayload sets the payload to the stop internal server error response

func (*StopInternalServerError) WithPayload

func (o *StopInternalServerError) WithPayload(payload interface{}) *StopInternalServerError

WithPayload adds the payload to the stop internal server error response

func (*StopInternalServerError) WriteResponse

func (o *StopInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopNotFound

type StopNotFound struct {

	/*
	  In: Body
	*/
	Payload *StopNotFoundBody `json:"body,omitempty"`
}

StopNotFound stop not found

swagger:response stopNotFound

func NewStopNotFound

func NewStopNotFound() *StopNotFound

NewStopNotFound creates StopNotFound with default headers values

func (*StopNotFound) SetPayload

func (o *StopNotFound) SetPayload(payload *StopNotFoundBody)

SetPayload sets the payload to the stop not found response

func (*StopNotFound) WithPayload

func (o *StopNotFound) WithPayload(payload *StopNotFoundBody) *StopNotFound

WithPayload adds the payload to the stop not found response

func (*StopNotFound) WriteResponse

func (o *StopNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopNotFoundBody

type StopNotFoundBody struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// status
	// Required: true
	Status *string `json:"status"`
}

StopNotFoundBody stop not found body

swagger:model StopNotFoundBody

func (*StopNotFoundBody) ContextValidate

func (o *StopNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stop not found body based on context it is used

func (*StopNotFoundBody) MarshalBinary

func (o *StopNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StopNotFoundBody) UnmarshalBinary

func (o *StopNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StopNotFoundBody) Validate

func (o *StopNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this stop not found body

type StopOK

type StopOK struct {

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

StopOK Stop Instance succeeded

swagger:response stopOK

func NewStopOK

func NewStopOK() *StopOK

NewStopOK creates StopOK with default headers values

func (*StopOK) SetPayload

func (o *StopOK) SetPayload(payload *models.Instance)

SetPayload sets the payload to the stop o k response

func (*StopOK) WithPayload

func (o *StopOK) WithPayload(payload *models.Instance) *StopOK

WithPayload adds the payload to the stop o k response

func (*StopOK) WriteResponse

func (o *StopOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopParams

type StopParams struct {

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

	/*Instance name
	  Required: true
	  Pattern: ^[A-Za-z0-9\-_.]{1,32}$
	  In: path
	*/
	Name string
}

StopParams contains all the bound params for the stop operation typically these are obtained from a http.Request

swagger:parameters stop

func NewStopParams

func NewStopParams() StopParams

NewStopParams creates a new StopParams object

There are no default values defined in the spec.

func (*StopParams) BindRequest

func (o *StopParams) 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 NewStopParams() beforehand.

type StopURL

type StopURL struct {
	Name string
	// contains filtered or unexported fields
}

StopURL generates an URL for the stop operation

func (*StopURL) Build

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

Build a url path and query string

func (*StopURL) BuildFull

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

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

func (*StopURL) Must

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

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

func (*StopURL) SetBasePath

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

func (o *StopURL) String() string

String returns the string representation of the path with query string

func (*StopURL) StringFull

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

StringFull returns the string representation of a complete url

func (*StopURL) WithBasePath

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

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 StopUnauthorized

type StopUnauthorized struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

StopUnauthorized stop unauthorized

swagger:response stopUnauthorized

func NewStopUnauthorized

func NewStopUnauthorized() *StopUnauthorized

NewStopUnauthorized creates StopUnauthorized with default headers values

func (*StopUnauthorized) SetPayload

func (o *StopUnauthorized) SetPayload(payload interface{})

SetPayload sets the payload to the stop unauthorized response

func (*StopUnauthorized) WithPayload

func (o *StopUnauthorized) WithPayload(payload interface{}) *StopUnauthorized

WithPayload adds the payload to the stop unauthorized response

func (*StopUnauthorized) WriteResponse

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