deployment

package
v0.0.0-...-6a25cbf Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CreateDeploymentBadRequestCode int = 400

CreateDeploymentBadRequestCode is the HTTP code returned for type CreateDeploymentBadRequest

View Source
const CreateDeploymentMethodNotAllowedCode int = 405

CreateDeploymentMethodNotAllowedCode is the HTTP code returned for type CreateDeploymentMethodNotAllowed

View Source
const CreateDeploymentOKCode int = 200

CreateDeploymentOKCode is the HTTP code returned for type CreateDeploymentOK

View Source
const DeleteDeploymentNotFoundCode int = 404

DeleteDeploymentNotFoundCode is the HTTP code returned for type DeleteDeploymentNotFound

View Source
const DeleteDeploymentOKCode int = 200

DeleteDeploymentOKCode is the HTTP code returned for type DeleteDeploymentOK

View Source
const GetDeploymentNotFoundCode int = 404

GetDeploymentNotFoundCode is the HTTP code returned for type GetDeploymentNotFound

View Source
const GetDeploymentOKCode int = 200

GetDeploymentOKCode is the HTTP code returned for type GetDeploymentOK

View Source
const GetDeploymentsBadRequestCode int = 400

GetDeploymentsBadRequestCode is the HTTP code returned for type GetDeploymentsBadRequest

View Source
const GetDeploymentsOKCode int = 200

GetDeploymentsOKCode is the HTTP code returned for type GetDeploymentsOK

View Source
const SetDeploymentStatusBadRequestCode int = 400

SetDeploymentStatusBadRequestCode is the HTTP code returned for type SetDeploymentStatusBadRequest

View Source
const SetDeploymentStatusMethodNotAllowedCode int = 405

SetDeploymentStatusMethodNotAllowedCode is the HTTP code returned for type SetDeploymentStatusMethodNotAllowed

View Source
const SetDeploymentStatusNotFoundCode int = 404

SetDeploymentStatusNotFoundCode is the HTTP code returned for type SetDeploymentStatusNotFound

View Source
const SetDeploymentStatusOKCode int = 200

SetDeploymentStatusOKCode is the HTTP code returned for type SetDeploymentStatusOK

View Source
const UpdateDeploymentNotFoundCode int = 404

UpdateDeploymentNotFoundCode is the HTTP code returned for type UpdateDeploymentNotFound

View Source
const UpdateDeploymentOKCode int = 200

UpdateDeploymentOKCode is the HTTP code returned for type UpdateDeploymentOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDeployment

type CreateDeployment struct {
	Context *middleware.Context
	Handler CreateDeploymentHandler
}

CreateDeployment swagger:route POST /deployments Deployment createDeployment

create a new deployment

create a new deployment

func NewCreateDeployment

func NewCreateDeployment(ctx *middleware.Context, handler CreateDeploymentHandler) *CreateDeployment

NewCreateDeployment creates a new http.Handler for the create deployment operation

func (*CreateDeployment) ServeHTTP

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

type CreateDeploymentBadRequest

type CreateDeploymentBadRequest struct {
}

CreateDeploymentBadRequest Bad request

swagger:response createDeploymentBadRequest

func NewCreateDeploymentBadRequest

func NewCreateDeploymentBadRequest() *CreateDeploymentBadRequest

NewCreateDeploymentBadRequest creates CreateDeploymentBadRequest with default headers values

func (*CreateDeploymentBadRequest) WriteResponse

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

WriteResponse to the client

type CreateDeploymentHandler

type CreateDeploymentHandler interface {
	Handle(CreateDeploymentParams, *models.Principal) middleware.Responder
}

CreateDeploymentHandler interface for that can handle valid create deployment params

type CreateDeploymentHandlerFunc

type CreateDeploymentHandlerFunc func(CreateDeploymentParams, *models.Principal) middleware.Responder

CreateDeploymentHandlerFunc turns a function with the right signature into a create deployment handler

func (CreateDeploymentHandlerFunc) Handle

Handle executing the request and returning a response

type CreateDeploymentMethodNotAllowed

type CreateDeploymentMethodNotAllowed struct {
}

CreateDeploymentMethodNotAllowed Invalid condition

swagger:response createDeploymentMethodNotAllowed

func NewCreateDeploymentMethodNotAllowed

func NewCreateDeploymentMethodNotAllowed() *CreateDeploymentMethodNotAllowed

NewCreateDeploymentMethodNotAllowed creates CreateDeploymentMethodNotAllowed with default headers values

func (*CreateDeploymentMethodNotAllowed) WriteResponse

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

WriteResponse to the client

type CreateDeploymentOK

type CreateDeploymentOK struct {

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

CreateDeploymentOK Successfully operation

swagger:response createDeploymentOK

func NewCreateDeploymentOK

func NewCreateDeploymentOK() *CreateDeploymentOK

NewCreateDeploymentOK creates CreateDeploymentOK with default headers values

func (*CreateDeploymentOK) SetPayload

func (o *CreateDeploymentOK) SetPayload(payload *models.Deployment)

SetPayload sets the payload to the create deployment o k response

func (*CreateDeploymentOK) WithPayload

func (o *CreateDeploymentOK) WithPayload(payload *models.Deployment) *CreateDeploymentOK

WithPayload adds the payload to the create deployment o k response

func (*CreateDeploymentOK) WriteResponse

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

WriteResponse to the client

type CreateDeploymentParams

type CreateDeploymentParams struct {

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

	/*deployment information
	  Required: true
	  In: body
	*/
	Deployment *models.Deployment
}

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

swagger:parameters createDeployment

func NewCreateDeploymentParams

func NewCreateDeploymentParams() CreateDeploymentParams

NewCreateDeploymentParams creates a new CreateDeploymentParams object no default values defined in spec.

func (*CreateDeploymentParams) BindRequest

func (o *CreateDeploymentParams) 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 NewCreateDeploymentParams() beforehand.

type CreateDeploymentURL

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

CreateDeploymentURL generates an URL for the create deployment operation

func (*CreateDeploymentURL) Build

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

Build a url path and query string

func (*CreateDeploymentURL) BuildFull

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

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

func (*CreateDeploymentURL) Must

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

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

func (*CreateDeploymentURL) SetBasePath

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

func (o *CreateDeploymentURL) String() string

String returns the string representation of the path with query string

func (*CreateDeploymentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateDeploymentURL) WithBasePath

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

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 DeleteDeployment

type DeleteDeployment struct {
	Context *middleware.Context
	Handler DeleteDeploymentHandler
}

DeleteDeployment swagger:route DELETE /deployments/{deploymentId} Deployment deleteDeployment

delete specified deployment

func NewDeleteDeployment

func NewDeleteDeployment(ctx *middleware.Context, handler DeleteDeploymentHandler) *DeleteDeployment

NewDeleteDeployment creates a new http.Handler for the delete deployment operation

func (*DeleteDeployment) ServeHTTP

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

type DeleteDeploymentHandler

type DeleteDeploymentHandler interface {
	Handle(DeleteDeploymentParams, *models.Principal) middleware.Responder
}

DeleteDeploymentHandler interface for that can handle valid delete deployment params

type DeleteDeploymentHandlerFunc

type DeleteDeploymentHandlerFunc func(DeleteDeploymentParams, *models.Principal) middleware.Responder

DeleteDeploymentHandlerFunc turns a function with the right signature into a delete deployment handler

func (DeleteDeploymentHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteDeploymentNotFound

type DeleteDeploymentNotFound struct {
}

DeleteDeploymentNotFound deployment not found

swagger:response deleteDeploymentNotFound

func NewDeleteDeploymentNotFound

func NewDeleteDeploymentNotFound() *DeleteDeploymentNotFound

NewDeleteDeploymentNotFound creates DeleteDeploymentNotFound with default headers values

func (*DeleteDeploymentNotFound) WriteResponse

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

WriteResponse to the client

type DeleteDeploymentOK

type DeleteDeploymentOK struct {
}

DeleteDeploymentOK successfully operation

swagger:response deleteDeploymentOK

func NewDeleteDeploymentOK

func NewDeleteDeploymentOK() *DeleteDeploymentOK

NewDeleteDeploymentOK creates DeleteDeploymentOK with default headers values

func (*DeleteDeploymentOK) WriteResponse

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

WriteResponse to the client

type DeleteDeploymentParams

type DeleteDeploymentParams struct {

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

	/*deployment identifier
	  Required: true
	  In: path
	*/
	DeploymentID string
}

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

swagger:parameters deleteDeployment

func NewDeleteDeploymentParams

func NewDeleteDeploymentParams() DeleteDeploymentParams

NewDeleteDeploymentParams creates a new DeleteDeploymentParams object no default values defined in spec.

func (*DeleteDeploymentParams) BindRequest

func (o *DeleteDeploymentParams) 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 NewDeleteDeploymentParams() beforehand.

type DeleteDeploymentURL

type DeleteDeploymentURL struct {
	DeploymentID string
	// contains filtered or unexported fields
}

DeleteDeploymentURL generates an URL for the delete deployment operation

func (*DeleteDeploymentURL) Build

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

Build a url path and query string

func (*DeleteDeploymentURL) BuildFull

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

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

func (*DeleteDeploymentURL) Must

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

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

func (*DeleteDeploymentURL) SetBasePath

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

func (o *DeleteDeploymentURL) String() string

String returns the string representation of the path with query string

func (*DeleteDeploymentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteDeploymentURL) WithBasePath

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

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 GetDeployment

type GetDeployment struct {
	Context *middleware.Context
	Handler GetDeploymentHandler
}

GetDeployment swagger:route GET /deployments/{deploymentId} Deployment getDeployment

get specified deployment

func NewGetDeployment

func NewGetDeployment(ctx *middleware.Context, handler GetDeploymentHandler) *GetDeployment

NewGetDeployment creates a new http.Handler for the get deployment operation

func (*GetDeployment) ServeHTTP

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

type GetDeploymentHandler

type GetDeploymentHandler interface {
	Handle(GetDeploymentParams, *models.Principal) middleware.Responder
}

GetDeploymentHandler interface for that can handle valid get deployment params

type GetDeploymentHandlerFunc

type GetDeploymentHandlerFunc func(GetDeploymentParams, *models.Principal) middleware.Responder

GetDeploymentHandlerFunc turns a function with the right signature into a get deployment handler

func (GetDeploymentHandlerFunc) Handle

Handle executing the request and returning a response

type GetDeploymentNotFound

type GetDeploymentNotFound struct {
}

GetDeploymentNotFound deployment not found

swagger:response getDeploymentNotFound

func NewGetDeploymentNotFound

func NewGetDeploymentNotFound() *GetDeploymentNotFound

NewGetDeploymentNotFound creates GetDeploymentNotFound with default headers values

func (*GetDeploymentNotFound) WriteResponse

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

WriteResponse to the client

type GetDeploymentOK

type GetDeploymentOK struct {

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

GetDeploymentOK successfully operation

swagger:response getDeploymentOK

func NewGetDeploymentOK

func NewGetDeploymentOK() *GetDeploymentOK

NewGetDeploymentOK creates GetDeploymentOK with default headers values

func (*GetDeploymentOK) SetPayload

func (o *GetDeploymentOK) SetPayload(payload *models.Deployment)

SetPayload sets the payload to the get deployment o k response

func (*GetDeploymentOK) WithPayload

func (o *GetDeploymentOK) WithPayload(payload *models.Deployment) *GetDeploymentOK

WithPayload adds the payload to the get deployment o k response

func (*GetDeploymentOK) WriteResponse

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

WriteResponse to the client

type GetDeploymentParams

type GetDeploymentParams struct {

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

	/*deployment identifier
	  Required: true
	  In: path
	*/
	DeploymentID string
}

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

swagger:parameters getDeployment

func NewGetDeploymentParams

func NewGetDeploymentParams() GetDeploymentParams

NewGetDeploymentParams creates a new GetDeploymentParams object no default values defined in spec.

func (*GetDeploymentParams) BindRequest

func (o *GetDeploymentParams) 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 NewGetDeploymentParams() beforehand.

type GetDeploymentURL

type GetDeploymentURL struct {
	DeploymentID string
	// contains filtered or unexported fields
}

GetDeploymentURL generates an URL for the get deployment operation

func (*GetDeploymentURL) Build

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

Build a url path and query string

func (*GetDeploymentURL) BuildFull

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

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

func (*GetDeploymentURL) Must

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

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

func (*GetDeploymentURL) SetBasePath

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

func (o *GetDeploymentURL) String() string

String returns the string representation of the path with query string

func (*GetDeploymentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetDeploymentURL) WithBasePath

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

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 GetDeployments

type GetDeployments struct {
	Context *middleware.Context
	Handler GetDeploymentsHandler
}

GetDeployments swagger:route GET /deployments Deployment getDeployments

get all deployments

func NewGetDeployments

func NewGetDeployments(ctx *middleware.Context, handler GetDeploymentsHandler) *GetDeployments

NewGetDeployments creates a new http.Handler for the get deployments operation

func (*GetDeployments) ServeHTTP

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

type GetDeploymentsBadRequest

type GetDeploymentsBadRequest struct {
}

GetDeploymentsBadRequest Internal server rooro

swagger:response getDeploymentsBadRequest

func NewGetDeploymentsBadRequest

func NewGetDeploymentsBadRequest() *GetDeploymentsBadRequest

NewGetDeploymentsBadRequest creates GetDeploymentsBadRequest with default headers values

func (*GetDeploymentsBadRequest) WriteResponse

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

WriteResponse to the client

type GetDeploymentsDefault

type GetDeploymentsDefault struct {

	/*
	  In: Body
	*/
	Payload *GetDeploymentsDefaultBody `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetDeploymentsDefault failed operation

swagger:response getDeploymentsDefault

func NewGetDeploymentsDefault

func NewGetDeploymentsDefault(code int) *GetDeploymentsDefault

NewGetDeploymentsDefault creates GetDeploymentsDefault with default headers values

func (*GetDeploymentsDefault) SetPayload

func (o *GetDeploymentsDefault) SetPayload(payload *GetDeploymentsDefaultBody)

SetPayload sets the payload to the get deployments default response

func (*GetDeploymentsDefault) SetStatusCode

func (o *GetDeploymentsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get deployments default response

func (*GetDeploymentsDefault) WithPayload

WithPayload adds the payload to the get deployments default response

func (*GetDeploymentsDefault) WithStatusCode

func (o *GetDeploymentsDefault) WithStatusCode(code int) *GetDeploymentsDefault

WithStatusCode adds the status to the get deployments default response

func (*GetDeploymentsDefault) WriteResponse

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

WriteResponse to the client

type GetDeploymentsDefaultBody

type GetDeploymentsDefaultBody struct {

	// message
	Message string `json:"message,omitempty"`
}

GetDeploymentsDefaultBody get deployments default body swagger:model GetDeploymentsDefaultBody

func (*GetDeploymentsDefaultBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDeploymentsDefaultBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDeploymentsDefaultBody) Validate

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

Validate validates this get deployments default body

type GetDeploymentsHandler

type GetDeploymentsHandler interface {
	Handle(GetDeploymentsParams, *models.Principal) middleware.Responder
}

GetDeploymentsHandler interface for that can handle valid get deployments params

type GetDeploymentsHandlerFunc

type GetDeploymentsHandlerFunc func(GetDeploymentsParams, *models.Principal) middleware.Responder

GetDeploymentsHandlerFunc turns a function with the right signature into a get deployments handler

func (GetDeploymentsHandlerFunc) Handle

Handle executing the request and returning a response

type GetDeploymentsOK

type GetDeploymentsOK struct {

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

GetDeploymentsOK successfully operation

swagger:response getDeploymentsOK

func NewGetDeploymentsOK

func NewGetDeploymentsOK() *GetDeploymentsOK

NewGetDeploymentsOK creates GetDeploymentsOK with default headers values

func (*GetDeploymentsOK) SetPayload

func (o *GetDeploymentsOK) SetPayload(payload []*models.Deployment)

SetPayload sets the payload to the get deployments o k response

func (*GetDeploymentsOK) WithPayload

func (o *GetDeploymentsOK) WithPayload(payload []*models.Deployment) *GetDeploymentsOK

WithPayload adds the payload to the get deployments o k response

func (*GetDeploymentsOK) WriteResponse

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

WriteResponse to the client

type GetDeploymentsParams

type GetDeploymentsParams struct {

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

	/*Page number
	  In: query
	*/
	PageNumber *int64
	/*Number of persons returned
	  In: query
	*/
	PageSize *int64
	/*query object for.You can get query key from rulechain object. This is a json string. For example:
	  * 模糊检索name,description,category
	  {"name": "product"}
	  {"description": "abcd"}
	  {"category": "abcd"}
	  * 多条件模糊检索(and)
	  {"name": "product", "description": "abcd"}
	  * (deprecated) 模糊检索created_at,updated_at
	  {"created_at": "2018-10-11T09:13:26Z"}
	  {"updated_at": "2018-10-11T09:13:26Z"}
	  * 精确检索user_id,id,template_id,key,secret,status,data_format
	  {"user_id": "bevh8dkvr53g2n6u9l70"}
	  {"id": "bevh8dkvr53g2n6u9l70"}
	  {"template_id": "bevh8dkvr53g2n6u9l70"}
	  {"key": "bevh8dkvr53g2n6u9l70"}
	  {"secret": "bevh8dkvr53g2n6u9l70"}
	  {"data_format": "JSON"}
	  {"data_format": "XML"}

	  In: query
	*/
	Q *string
}

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

swagger:parameters getDeployments

func NewGetDeploymentsParams

func NewGetDeploymentsParams() GetDeploymentsParams

NewGetDeploymentsParams creates a new GetDeploymentsParams object no default values defined in spec.

func (*GetDeploymentsParams) BindRequest

func (o *GetDeploymentsParams) 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 NewGetDeploymentsParams() beforehand.

type GetDeploymentsURL

type GetDeploymentsURL struct {
	PageNumber *int64
	PageSize   *int64
	Q          *string
	// contains filtered or unexported fields
}

GetDeploymentsURL generates an URL for the get deployments operation

func (*GetDeploymentsURL) Build

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

Build a url path and query string

func (*GetDeploymentsURL) BuildFull

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

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

func (*GetDeploymentsURL) Must

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

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

func (*GetDeploymentsURL) SetBasePath

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

func (o *GetDeploymentsURL) String() string

String returns the string representation of the path with query string

func (*GetDeploymentsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetDeploymentsURL) WithBasePath

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

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 SetDeploymentStatus

type SetDeploymentStatus struct {
	Context *middleware.Context
	Handler SetDeploymentStatusHandler
}

SetDeploymentStatus swagger:route PATCH /deployments/{deploymentId} Deployment setDeploymentStatus

update specified deployment

func NewSetDeploymentStatus

func NewSetDeploymentStatus(ctx *middleware.Context, handler SetDeploymentStatusHandler) *SetDeploymentStatus

NewSetDeploymentStatus creates a new http.Handler for the set deployment status operation

func (*SetDeploymentStatus) ServeHTTP

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

type SetDeploymentStatusBadRequest

type SetDeploymentStatusBadRequest struct {
}

SetDeploymentStatusBadRequest Invalid deployment Id

swagger:response setDeploymentStatusBadRequest

func NewSetDeploymentStatusBadRequest

func NewSetDeploymentStatusBadRequest() *SetDeploymentStatusBadRequest

NewSetDeploymentStatusBadRequest creates SetDeploymentStatusBadRequest with default headers values

func (*SetDeploymentStatusBadRequest) WriteResponse

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

WriteResponse to the client

type SetDeploymentStatusHandler

type SetDeploymentStatusHandler interface {
	Handle(SetDeploymentStatusParams, *models.Principal) middleware.Responder
}

SetDeploymentStatusHandler interface for that can handle valid set deployment status params

type SetDeploymentStatusHandlerFunc

type SetDeploymentStatusHandlerFunc func(SetDeploymentStatusParams, *models.Principal) middleware.Responder

SetDeploymentStatusHandlerFunc turns a function with the right signature into a set deployment status handler

func (SetDeploymentStatusHandlerFunc) Handle

Handle executing the request and returning a response

type SetDeploymentStatusMethodNotAllowed

type SetDeploymentStatusMethodNotAllowed struct {
}

SetDeploymentStatusMethodNotAllowed Deployment exception

swagger:response setDeploymentStatusMethodNotAllowed

func NewSetDeploymentStatusMethodNotAllowed

func NewSetDeploymentStatusMethodNotAllowed() *SetDeploymentStatusMethodNotAllowed

NewSetDeploymentStatusMethodNotAllowed creates SetDeploymentStatusMethodNotAllowed with default headers values

func (*SetDeploymentStatusMethodNotAllowed) WriteResponse

WriteResponse to the client

type SetDeploymentStatusNotFound

type SetDeploymentStatusNotFound struct {
}

SetDeploymentStatusNotFound Deployment not found

swagger:response setDeploymentStatusNotFound

func NewSetDeploymentStatusNotFound

func NewSetDeploymentStatusNotFound() *SetDeploymentStatusNotFound

NewSetDeploymentStatusNotFound creates SetDeploymentStatusNotFound with default headers values

func (*SetDeploymentStatusNotFound) WriteResponse

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

WriteResponse to the client

type SetDeploymentStatusOK

type SetDeploymentStatusOK struct {
}

SetDeploymentStatusOK Successfully operation

swagger:response setDeploymentStatusOK

func NewSetDeploymentStatusOK

func NewSetDeploymentStatusOK() *SetDeploymentStatusOK

NewSetDeploymentStatusOK creates SetDeploymentStatusOK with default headers values

func (*SetDeploymentStatusOK) WriteResponse

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

WriteResponse to the client

type SetDeploymentStatusParams

type SetDeploymentStatusParams struct {

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

	/*start or stop deployment
	  Required: true
	  In: body
	*/
	DeploymentControl *models.DeploymentControl
	/*deployment identifier
	  Required: true
	  In: path
	*/
	DeploymentID string
}

SetDeploymentStatusParams contains all the bound params for the set deployment status operation typically these are obtained from a http.Request

swagger:parameters setDeploymentStatus

func NewSetDeploymentStatusParams

func NewSetDeploymentStatusParams() SetDeploymentStatusParams

NewSetDeploymentStatusParams creates a new SetDeploymentStatusParams object no default values defined in spec.

func (*SetDeploymentStatusParams) 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 NewSetDeploymentStatusParams() beforehand.

type SetDeploymentStatusURL

type SetDeploymentStatusURL struct {
	DeploymentID string
	// contains filtered or unexported fields
}

SetDeploymentStatusURL generates an URL for the set deployment status operation

func (*SetDeploymentStatusURL) Build

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

Build a url path and query string

func (*SetDeploymentStatusURL) BuildFull

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

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

func (*SetDeploymentStatusURL) Must

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

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

func (*SetDeploymentStatusURL) SetBasePath

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

func (o *SetDeploymentStatusURL) String() string

String returns the string representation of the path with query string

func (*SetDeploymentStatusURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SetDeploymentStatusURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateDeployment

type UpdateDeployment struct {
	Context *middleware.Context
	Handler UpdateDeploymentHandler
}

UpdateDeployment swagger:route PUT /deployments/{deploymentId} Deployment updateDeployment

update specified deployment

func NewUpdateDeployment

func NewUpdateDeployment(ctx *middleware.Context, handler UpdateDeploymentHandler) *UpdateDeployment

NewUpdateDeployment creates a new http.Handler for the update deployment operation

func (*UpdateDeployment) ServeHTTP

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

type UpdateDeploymentHandler

type UpdateDeploymentHandler interface {
	Handle(UpdateDeploymentParams, *models.Principal) middleware.Responder
}

UpdateDeploymentHandler interface for that can handle valid update deployment params

type UpdateDeploymentHandlerFunc

type UpdateDeploymentHandlerFunc func(UpdateDeploymentParams, *models.Principal) middleware.Responder

UpdateDeploymentHandlerFunc turns a function with the right signature into a update deployment handler

func (UpdateDeploymentHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateDeploymentNotFound

type UpdateDeploymentNotFound struct {
}

UpdateDeploymentNotFound deployment not found

swagger:response updateDeploymentNotFound

func NewUpdateDeploymentNotFound

func NewUpdateDeploymentNotFound() *UpdateDeploymentNotFound

NewUpdateDeploymentNotFound creates UpdateDeploymentNotFound with default headers values

func (*UpdateDeploymentNotFound) WriteResponse

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

WriteResponse to the client

type UpdateDeploymentOK

type UpdateDeploymentOK struct {
}

UpdateDeploymentOK successfully operation

swagger:response updateDeploymentOK

func NewUpdateDeploymentOK

func NewUpdateDeploymentOK() *UpdateDeploymentOK

NewUpdateDeploymentOK creates UpdateDeploymentOK with default headers values

func (*UpdateDeploymentOK) WriteResponse

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

WriteResponse to the client

type UpdateDeploymentParams

type UpdateDeploymentParams struct {

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

	/*updated deployment
	  Required: true
	  In: body
	*/
	Deployment *models.Deployment
	/*deployment identifier
	  Required: true
	  In: path
	*/
	DeploymentID string
}

UpdateDeploymentParams contains all the bound params for the update deployment operation typically these are obtained from a http.Request

swagger:parameters updateDeployment

func NewUpdateDeploymentParams

func NewUpdateDeploymentParams() UpdateDeploymentParams

NewUpdateDeploymentParams creates a new UpdateDeploymentParams object no default values defined in spec.

func (*UpdateDeploymentParams) BindRequest

func (o *UpdateDeploymentParams) 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 NewUpdateDeploymentParams() beforehand.

type UpdateDeploymentURL

type UpdateDeploymentURL struct {
	DeploymentID string
	// contains filtered or unexported fields
}

UpdateDeploymentURL generates an URL for the update deployment operation

func (*UpdateDeploymentURL) Build

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

Build a url path and query string

func (*UpdateDeploymentURL) BuildFull

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

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

func (*UpdateDeploymentURL) Must

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

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

func (*UpdateDeploymentURL) SetBasePath

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

func (o *UpdateDeploymentURL) String() string

String returns the string representation of the path with query string

func (*UpdateDeploymentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateDeploymentURL) WithBasePath

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

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