deployments

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 /apps/{app_name}/deployments deployments createDeployment

Create a new deploy

Create a deploy for an app

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 CreateDeploymentDefault

type CreateDeploymentDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateDeploymentDefault Error

swagger:response createDeploymentDefault

func NewCreateDeploymentDefault

func NewCreateDeploymentDefault(code int) *CreateDeploymentDefault

NewCreateDeploymentDefault creates CreateDeploymentDefault with default headers values

func (*CreateDeploymentDefault) SetPayload

func (o *CreateDeploymentDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create deployment default response

func (*CreateDeploymentDefault) SetStatusCode

func (o *CreateDeploymentDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create deployment default response

func (*CreateDeploymentDefault) WithPayload

func (o *CreateDeploymentDefault) WithPayload(payload *models.Error) *CreateDeploymentDefault

WithPayload adds the payload to the create deployment default response

func (*CreateDeploymentDefault) WithStatusCode

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

WithStatusCode adds the status to the create deployment default response

func (*CreateDeploymentDefault) WriteResponse

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

WriteResponse to the client

type CreateDeploymentHandler

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

CreateDeploymentHandler interface for that can handle valid create deployment params

type CreateDeploymentHandlerFunc

type CreateDeploymentHandlerFunc func(CreateDeploymentParams, interface{}) middleware.Responder

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

func (CreateDeploymentHandlerFunc) Handle

func (fn CreateDeploymentHandlerFunc) Handle(params CreateDeploymentParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateDeploymentOK

type CreateDeploymentOK struct {

	// In: body
	Payload io.ReadCloser `json:"body,omitempty"`
}

CreateDeploymentOK App

swagger:response createDeploymentOK

func NewCreateDeploymentOK

func NewCreateDeploymentOK() *CreateDeploymentOK

NewCreateDeploymentOK creates CreateDeploymentOK with default headers values

func (*CreateDeploymentOK) SetPayload

func (o *CreateDeploymentOK) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the create deployment o k response

func (*CreateDeploymentOK) WithPayload

func (o *CreateDeploymentOK) WithPayload(payload io.ReadCloser) *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

	/*
	  Required: true
	  In: formData
	*/
	AppTarball runtime.File
	/*App name
	  Required: true
	  Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	  In: path
	*/
	AppName string
	/*
	  In: formData
	*/
	Description *string
}

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 with the default values initialized.

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

type GetDeployments

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

GetDeployments swagger:route GET /teams/{team_id}/apps/{app_id}/deployments deployments getDeployments

Get app deployments

Get deployments an app may have

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 GetDeploymentsDefault

type GetDeploymentsDefault struct {

	// In: body
	Payload *models.GenericError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetDeploymentsDefault Error

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 *models.GenericError)

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 GetDeploymentsForbidden

type GetDeploymentsForbidden struct {

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

GetDeploymentsForbidden User does not have the credentials to access this resource

swagger:response getDeploymentsForbidden

func NewGetDeploymentsForbidden

func NewGetDeploymentsForbidden() *GetDeploymentsForbidden

NewGetDeploymentsForbidden creates GetDeploymentsForbidden with default headers values

func (*GetDeploymentsForbidden) SetPayload

func (o *GetDeploymentsForbidden) SetPayload(payload *models.Unauthorized)

SetPayload sets the payload to the get deployments forbidden response

func (*GetDeploymentsForbidden) WithPayload

WithPayload adds the payload to the get deployments forbidden response

func (*GetDeploymentsForbidden) WriteResponse

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

WriteResponse to the client

type GetDeploymentsHandler

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

GetDeploymentsHandler interface for that can handle valid get deployments params

type GetDeploymentsHandlerFunc

type GetDeploymentsHandlerFunc func(GetDeploymentsParams, interface{}) middleware.Responder

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

func (GetDeploymentsHandlerFunc) Handle

func (fn GetDeploymentsHandlerFunc) Handle(params GetDeploymentsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetDeploymentsOK

type GetDeploymentsOK struct {

	// In: body
	Payload GetDeploymentsOKBodyBody `json:"body,omitempty"`
}

GetDeploymentsOK Get app deployments

swagger:response getDeploymentsOK

func NewGetDeploymentsOK

func NewGetDeploymentsOK() *GetDeploymentsOK

NewGetDeploymentsOK creates GetDeploymentsOK with default headers values

func (*GetDeploymentsOK) SetPayload

func (o *GetDeploymentsOK) SetPayload(payload GetDeploymentsOKBodyBody)

SetPayload sets the payload to the get deployments o k response

func (*GetDeploymentsOK) WithPayload

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 GetDeploymentsOKBodyBody

type GetDeploymentsOKBodyBody struct {
	models.Pagination

	/* items

	Required: true
	*/
	Items []*models.Deployment `json:"items"`
}

GetDeploymentsOKBodyBody get deployments o k body body

swagger:model GetDeploymentsOKBodyBody

func (*GetDeploymentsOKBodyBody) Validate

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

Validate validates this get deployments o k body body

type GetDeploymentsParams

type GetDeploymentsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*App ID
	  Required: true
	  In: path
	*/
	AppID int64
	/*Limit
	  In: query
	  Default: 20
	*/
	Limit *int64
	/*Offset
	  In: query
	  Default: 0
	*/
	Since *int64
	/*Team ID
	  Required: true
	  In: path
	*/
	TeamID int64
}

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 with the default values initialized.

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

type GetDeploymentsUnauthorized

type GetDeploymentsUnauthorized struct {

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

GetDeploymentsUnauthorized User not authorized

swagger:response getDeploymentsUnauthorized

func NewGetDeploymentsUnauthorized

func NewGetDeploymentsUnauthorized() *GetDeploymentsUnauthorized

NewGetDeploymentsUnauthorized creates GetDeploymentsUnauthorized with default headers values

func (*GetDeploymentsUnauthorized) SetPayload

func (o *GetDeploymentsUnauthorized) SetPayload(payload *models.Unauthorized)

SetPayload sets the payload to the get deployments unauthorized response

func (*GetDeploymentsUnauthorized) WithPayload

WithPayload adds the payload to the get deployments unauthorized response

func (*GetDeploymentsUnauthorized) WriteResponse

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