apps

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 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 CreateApp

type CreateApp struct {
	Context *middleware.Context
	Handler CreateAppHandler
}

CreateApp swagger:route POST /apps apps createApp

Create an app

Create an app

func NewCreateApp

func NewCreateApp(ctx *middleware.Context, handler CreateAppHandler) *CreateApp

NewCreateApp creates a new http.Handler for the create app operation

func (*CreateApp) ServeHTTP

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

type CreateAppCreated

type CreateAppCreated struct {

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

CreateAppCreated Newly created app

swagger:response createAppCreated

func NewCreateAppCreated

func NewCreateAppCreated() *CreateAppCreated

NewCreateAppCreated creates CreateAppCreated with default headers values

func (*CreateAppCreated) SetPayload

func (o *CreateAppCreated) SetPayload(payload *models.App)

SetPayload sets the payload to the create app created response

func (*CreateAppCreated) WithPayload

func (o *CreateAppCreated) WithPayload(payload *models.App) *CreateAppCreated

WithPayload adds the payload to the create app created response

func (*CreateAppCreated) WriteResponse

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

WriteResponse to the client

type CreateAppDefault

type CreateAppDefault struct {

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

CreateAppDefault Unexpected error

swagger:response createAppDefault

func NewCreateAppDefault

func NewCreateAppDefault(code int) *CreateAppDefault

NewCreateAppDefault creates CreateAppDefault with default headers values

func (*CreateAppDefault) SetPayload

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

SetPayload sets the payload to the create app default response

func (*CreateAppDefault) SetStatusCode

func (o *CreateAppDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create app default response

func (*CreateAppDefault) WithPayload

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

WithPayload adds the payload to the create app default response

func (*CreateAppDefault) WithStatusCode

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

WithStatusCode adds the status to the create app default response

func (*CreateAppDefault) WriteResponse

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

WriteResponse to the client

type CreateAppHandler

type CreateAppHandler interface {
	Handle(CreateAppParams, interface{}) middleware.Responder
}

CreateAppHandler interface for that can handle valid create app params

type CreateAppHandlerFunc

type CreateAppHandlerFunc func(CreateAppParams, interface{}) middleware.Responder

CreateAppHandlerFunc turns a function with the right signature into a create app handler

func (CreateAppHandlerFunc) Handle

func (fn CreateAppHandlerFunc) Handle(params CreateAppParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateAppParams

type CreateAppParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: body
	*/
	Body *models.AppIn
}

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

swagger:parameters createApp

func NewCreateAppParams

func NewCreateAppParams() CreateAppParams

NewCreateAppParams creates a new CreateAppParams object with the default values initialized.

func (*CreateAppParams) BindRequest

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

type GetAppDetails struct {
	Context *middleware.Context
	Handler GetAppDetailsHandler
}

GetAppDetails swagger:route GET /apps/{app_name} apps getAppDetails

Get app details

Get app details

func NewGetAppDetails

func NewGetAppDetails(ctx *middleware.Context, handler GetAppDetailsHandler) *GetAppDetails

NewGetAppDetails creates a new http.Handler for the get app details operation

func (*GetAppDetails) ServeHTTP

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

type GetAppDetailsDefault

type GetAppDetailsDefault struct {

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

GetAppDetailsDefault Error

swagger:response getAppDetailsDefault

func NewGetAppDetailsDefault

func NewGetAppDetailsDefault(code int) *GetAppDetailsDefault

NewGetAppDetailsDefault creates GetAppDetailsDefault with default headers values

func (*GetAppDetailsDefault) SetPayload

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

SetPayload sets the payload to the get app details default response

func (*GetAppDetailsDefault) SetStatusCode

func (o *GetAppDetailsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get app details default response

func (*GetAppDetailsDefault) WithPayload

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

WithPayload adds the payload to the get app details default response

func (*GetAppDetailsDefault) WithStatusCode

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

WithStatusCode adds the status to the get app details default response

func (*GetAppDetailsDefault) WriteResponse

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

WriteResponse to the client

type GetAppDetailsHandler

type GetAppDetailsHandler interface {
	Handle(GetAppDetailsParams, interface{}) middleware.Responder
}

GetAppDetailsHandler interface for that can handle valid get app details params

type GetAppDetailsHandlerFunc

type GetAppDetailsHandlerFunc func(GetAppDetailsParams, interface{}) middleware.Responder

GetAppDetailsHandlerFunc turns a function with the right signature into a get app details handler

func (GetAppDetailsHandlerFunc) Handle

func (fn GetAppDetailsHandlerFunc) Handle(params GetAppDetailsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetAppDetailsOK

type GetAppDetailsOK struct {

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

GetAppDetailsOK App details

swagger:response getAppDetailsOK

func NewGetAppDetailsOK

func NewGetAppDetailsOK() *GetAppDetailsOK

NewGetAppDetailsOK creates GetAppDetailsOK with default headers values

func (*GetAppDetailsOK) SetPayload

func (o *GetAppDetailsOK) SetPayload(payload *models.App)

SetPayload sets the payload to the get app details o k response

func (*GetAppDetailsOK) WithPayload

func (o *GetAppDetailsOK) WithPayload(payload *models.App) *GetAppDetailsOK

WithPayload adds the payload to the get app details o k response

func (*GetAppDetailsOK) WriteResponse

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

WriteResponse to the client

type GetAppDetailsParams

type GetAppDetailsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

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

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

swagger:parameters getAppDetails

func NewGetAppDetailsParams

func NewGetAppDetailsParams() GetAppDetailsParams

NewGetAppDetailsParams creates a new GetAppDetailsParams object with the default values initialized.

func (*GetAppDetailsParams) BindRequest

func (o *GetAppDetailsParams) 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 GetAppLogs added in v0.2.0

type GetAppLogs struct {
	Context *middleware.Context
	Handler GetAppLogsHandler
}

GetAppLogs swagger:route GET /apps/{app_name}/logs apps getAppLogs

Get app logs

Get app logs

func NewGetAppLogs added in v0.2.0

func NewGetAppLogs(ctx *middleware.Context, handler GetAppLogsHandler) *GetAppLogs

NewGetAppLogs creates a new http.Handler for the get app logs operation

func (*GetAppLogs) ServeHTTP added in v0.2.0

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

type GetAppLogsDefault added in v0.2.0

type GetAppLogsDefault struct {

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

GetAppLogsDefault Unexpected error

swagger:response getAppLogsDefault

func NewGetAppLogsDefault added in v0.2.0

func NewGetAppLogsDefault(code int) *GetAppLogsDefault

NewGetAppLogsDefault creates GetAppLogsDefault with default headers values

func (*GetAppLogsDefault) SetPayload added in v0.2.0

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

SetPayload sets the payload to the get app logs default response

func (*GetAppLogsDefault) SetStatusCode added in v0.2.0

func (o *GetAppLogsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get app logs default response

func (*GetAppLogsDefault) WithPayload added in v0.2.0

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

WithPayload adds the payload to the get app logs default response

func (*GetAppLogsDefault) WithStatusCode added in v0.2.0

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

WithStatusCode adds the status to the get app logs default response

func (*GetAppLogsDefault) WriteResponse added in v0.2.0

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

WriteResponse to the client

type GetAppLogsHandler added in v0.2.0

type GetAppLogsHandler interface {
	Handle(GetAppLogsParams, interface{}) middleware.Responder
}

GetAppLogsHandler interface for that can handle valid get app logs params

type GetAppLogsHandlerFunc added in v0.2.0

type GetAppLogsHandlerFunc func(GetAppLogsParams, interface{}) middleware.Responder

GetAppLogsHandlerFunc turns a function with the right signature into a get app logs handler

func (GetAppLogsHandlerFunc) Handle added in v0.2.0

func (fn GetAppLogsHandlerFunc) Handle(params GetAppLogsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetAppLogsOK added in v0.2.0

type GetAppLogsOK struct {

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

GetAppLogsOK App logs

swagger:response getAppLogsOK

func NewGetAppLogsOK added in v0.2.0

func NewGetAppLogsOK() *GetAppLogsOK

NewGetAppLogsOK creates GetAppLogsOK with default headers values

func (*GetAppLogsOK) SetPayload added in v0.2.0

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

SetPayload sets the payload to the get app logs o k response

func (*GetAppLogsOK) WithPayload added in v0.2.0

func (o *GetAppLogsOK) WithPayload(payload io.ReadCloser) *GetAppLogsOK

WithPayload adds the payload to the get app logs o k response

func (*GetAppLogsOK) WriteResponse added in v0.2.0

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

WriteResponse to the client

type GetAppLogsParams added in v0.2.0

type GetAppLogsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*App name
	  Required: true
	  Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	  In: path
	*/
	AppName string
	/*Follow logs
	  In: query
	  Default: false
	*/
	Follow *bool
	/*Logs lines
	  In: query
	  Default: 10
	*/
	Lines *int64
}

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

swagger:parameters getAppLogs

func NewGetAppLogsParams added in v0.2.0

func NewGetAppLogsParams() GetAppLogsParams

NewGetAppLogsParams creates a new GetAppLogsParams object with the default values initialized.

func (*GetAppLogsParams) BindRequest added in v0.2.0

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

type GetApps struct {
	Context *middleware.Context
	Handler GetAppsHandler
}

GetApps swagger:route GET /apps apps getApps

Get a list of apps

Get a list of apps

func NewGetApps

func NewGetApps(ctx *middleware.Context, handler GetAppsHandler) *GetApps

NewGetApps creates a new http.Handler for the get apps operation

func (*GetApps) ServeHTTP

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

type GetAppsDefault

type GetAppsDefault struct {

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

GetAppsDefault Unexpected error

swagger:response getAppsDefault

func NewGetAppsDefault

func NewGetAppsDefault(code int) *GetAppsDefault

NewGetAppsDefault creates GetAppsDefault with default headers values

func (*GetAppsDefault) SetPayload

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

SetPayload sets the payload to the get apps default response

func (*GetAppsDefault) SetStatusCode

func (o *GetAppsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get apps default response

func (*GetAppsDefault) WithPayload

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

WithPayload adds the payload to the get apps default response

func (*GetAppsDefault) WithStatusCode

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

WithStatusCode adds the status to the get apps default response

func (*GetAppsDefault) WriteResponse

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

WriteResponse to the client

type GetAppsHandler

type GetAppsHandler interface {
	Handle(GetAppsParams, interface{}) middleware.Responder
}

GetAppsHandler interface for that can handle valid get apps params

type GetAppsHandlerFunc

type GetAppsHandlerFunc func(GetAppsParams, interface{}) middleware.Responder

GetAppsHandlerFunc turns a function with the right signature into a get apps handler

func (GetAppsHandlerFunc) Handle

func (fn GetAppsHandlerFunc) Handle(params GetAppsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetAppsOK

type GetAppsOK struct {

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

GetAppsOK list of apps

swagger:response getAppsOK

func NewGetAppsOK

func NewGetAppsOK() *GetAppsOK

NewGetAppsOK creates GetAppsOK with default headers values

func (*GetAppsOK) SetPayload

func (o *GetAppsOK) SetPayload(payload []*models.App)

SetPayload sets the payload to the get apps o k response

func (*GetAppsOK) WithPayload

func (o *GetAppsOK) WithPayload(payload []*models.App) *GetAppsOK

WithPayload adds the payload to the get apps o k response

func (*GetAppsOK) WriteResponse

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

WriteResponse to the client

type GetAppsParams

type GetAppsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

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

swagger:parameters getApps

func NewGetAppsParams

func NewGetAppsParams() GetAppsParams

NewGetAppsParams creates a new GetAppsParams object with the default values initialized.

func (*GetAppsParams) BindRequest

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

type PartialUpdateApp struct {
	Context *middleware.Context
	Handler PartialUpdateAppHandler
}

PartialUpdateApp swagger:route PATCH /apps/{app_name} apps partialUpdateApp

Partial update app

Update some app properties, for now, only accept envvars

func NewPartialUpdateApp

func NewPartialUpdateApp(ctx *middleware.Context, handler PartialUpdateAppHandler) *PartialUpdateApp

NewPartialUpdateApp creates a new http.Handler for the partial update app operation

func (*PartialUpdateApp) ServeHTTP

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

type PartialUpdateAppDefault

type PartialUpdateAppDefault struct {

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

PartialUpdateAppDefault Unexpected error

swagger:response partialUpdateAppDefault

func NewPartialUpdateAppDefault

func NewPartialUpdateAppDefault(code int) *PartialUpdateAppDefault

NewPartialUpdateAppDefault creates PartialUpdateAppDefault with default headers values

func (*PartialUpdateAppDefault) SetPayload

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

SetPayload sets the payload to the partial update app default response

func (*PartialUpdateAppDefault) SetStatusCode

func (o *PartialUpdateAppDefault) SetStatusCode(code int)

SetStatusCode sets the status to the partial update app default response

func (*PartialUpdateAppDefault) WithPayload

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

WithPayload adds the payload to the partial update app default response

func (*PartialUpdateAppDefault) WithStatusCode

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

WithStatusCode adds the status to the partial update app default response

func (*PartialUpdateAppDefault) WriteResponse

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

WriteResponse to the client

type PartialUpdateAppHandler

type PartialUpdateAppHandler interface {
	Handle(PartialUpdateAppParams, interface{}) middleware.Responder
}

PartialUpdateAppHandler interface for that can handle valid partial update app params

type PartialUpdateAppHandlerFunc

type PartialUpdateAppHandlerFunc func(PartialUpdateAppParams, interface{}) middleware.Responder

PartialUpdateAppHandlerFunc turns a function with the right signature into a partial update app handler

func (PartialUpdateAppHandlerFunc) Handle

func (fn PartialUpdateAppHandlerFunc) Handle(params PartialUpdateAppParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type PartialUpdateAppOK

type PartialUpdateAppOK struct {

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

PartialUpdateAppOK App

swagger:response partialUpdateAppOK

func NewPartialUpdateAppOK

func NewPartialUpdateAppOK() *PartialUpdateAppOK

NewPartialUpdateAppOK creates PartialUpdateAppOK with default headers values

func (*PartialUpdateAppOK) SetPayload

func (o *PartialUpdateAppOK) SetPayload(payload *models.App)

SetPayload sets the payload to the partial update app o k response

func (*PartialUpdateAppOK) WithPayload

func (o *PartialUpdateAppOK) WithPayload(payload *models.App) *PartialUpdateAppOK

WithPayload adds the payload to the partial update app o k response

func (*PartialUpdateAppOK) WriteResponse

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

WriteResponse to the client

type PartialUpdateAppParams

type PartialUpdateAppParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*App name
	  Required: true
	  Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	  In: path
	*/
	AppName string
	/*
	  Required: true
	  In: body
	*/
	Body []*models.PatchAppRequest
}

PartialUpdateAppParams contains all the bound params for the partial update app operation typically these are obtained from a http.Request

swagger:parameters partialUpdateApp

func NewPartialUpdateAppParams

func NewPartialUpdateAppParams() PartialUpdateAppParams

NewPartialUpdateAppParams creates a new PartialUpdateAppParams object with the default values initialized.

func (*PartialUpdateAppParams) BindRequest

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

type UpdateApp struct {
	Context *middleware.Context
	Handler UpdateAppHandler
}

UpdateApp swagger:route PUT /apps/{app_name} apps updateApp

Update an app

Update app properties, such as number of replicas and other things.

func NewUpdateApp

func NewUpdateApp(ctx *middleware.Context, handler UpdateAppHandler) *UpdateApp

NewUpdateApp creates a new http.Handler for the update app operation

func (*UpdateApp) ServeHTTP

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

type UpdateAppAutoScale added in v0.2.0

type UpdateAppAutoScale struct {
	Context *middleware.Context
	Handler UpdateAppAutoScaleHandler
}

UpdateAppAutoScale swagger:route PUT /apps/{app_name}/autoScale apps updateAppAutoScale

Update app auto scale

Update app auto scale

func NewUpdateAppAutoScale added in v0.2.0

func NewUpdateAppAutoScale(ctx *middleware.Context, handler UpdateAppAutoScaleHandler) *UpdateAppAutoScale

NewUpdateAppAutoScale creates a new http.Handler for the update app auto scale operation

func (*UpdateAppAutoScale) ServeHTTP added in v0.2.0

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

type UpdateAppAutoScaleDefault added in v0.2.0

type UpdateAppAutoScaleDefault struct {

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

UpdateAppAutoScaleDefault Unexpected error

swagger:response updateAppAutoScaleDefault

func NewUpdateAppAutoScaleDefault added in v0.2.0

func NewUpdateAppAutoScaleDefault(code int) *UpdateAppAutoScaleDefault

NewUpdateAppAutoScaleDefault creates UpdateAppAutoScaleDefault with default headers values

func (*UpdateAppAutoScaleDefault) SetPayload added in v0.2.0

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

SetPayload sets the payload to the update app auto scale default response

func (*UpdateAppAutoScaleDefault) SetStatusCode added in v0.2.0

func (o *UpdateAppAutoScaleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update app auto scale default response

func (*UpdateAppAutoScaleDefault) WithPayload added in v0.2.0

WithPayload adds the payload to the update app auto scale default response

func (*UpdateAppAutoScaleDefault) WithStatusCode added in v0.2.0

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

WithStatusCode adds the status to the update app auto scale default response

func (*UpdateAppAutoScaleDefault) WriteResponse added in v0.2.0

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

WriteResponse to the client

type UpdateAppAutoScaleHandler added in v0.2.0

type UpdateAppAutoScaleHandler interface {
	Handle(UpdateAppAutoScaleParams, interface{}) middleware.Responder
}

UpdateAppAutoScaleHandler interface for that can handle valid update app auto scale params

type UpdateAppAutoScaleHandlerFunc added in v0.2.0

type UpdateAppAutoScaleHandlerFunc func(UpdateAppAutoScaleParams, interface{}) middleware.Responder

UpdateAppAutoScaleHandlerFunc turns a function with the right signature into a update app auto scale handler

func (UpdateAppAutoScaleHandlerFunc) Handle added in v0.2.0

func (fn UpdateAppAutoScaleHandlerFunc) Handle(params UpdateAppAutoScaleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateAppAutoScaleOK added in v0.2.0

type UpdateAppAutoScaleOK struct {

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

UpdateAppAutoScaleOK Updated version of the app

swagger:response updateAppAutoScaleOK

func NewUpdateAppAutoScaleOK added in v0.2.0

func NewUpdateAppAutoScaleOK() *UpdateAppAutoScaleOK

NewUpdateAppAutoScaleOK creates UpdateAppAutoScaleOK with default headers values

func (*UpdateAppAutoScaleOK) SetPayload added in v0.2.0

func (o *UpdateAppAutoScaleOK) SetPayload(payload *models.App)

SetPayload sets the payload to the update app auto scale o k response

func (*UpdateAppAutoScaleOK) WithPayload added in v0.2.0

func (o *UpdateAppAutoScaleOK) WithPayload(payload *models.App) *UpdateAppAutoScaleOK

WithPayload adds the payload to the update app auto scale o k response

func (*UpdateAppAutoScaleOK) WriteResponse added in v0.2.0

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

WriteResponse to the client

type UpdateAppAutoScaleParams added in v0.2.0

type UpdateAppAutoScaleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*App name
	  Required: true
	  Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	  In: path
	*/
	AppName string
	/*
	  Required: true
	  In: body
	*/
	Body *models.AutoScale
}

UpdateAppAutoScaleParams contains all the bound params for the update app auto scale operation typically these are obtained from a http.Request

swagger:parameters updateAppAutoScale

func NewUpdateAppAutoScaleParams added in v0.2.0

func NewUpdateAppAutoScaleParams() UpdateAppAutoScaleParams

NewUpdateAppAutoScaleParams creates a new UpdateAppAutoScaleParams object with the default values initialized.

func (*UpdateAppAutoScaleParams) BindRequest added in v0.2.0

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 UpdateAppDefault

type UpdateAppDefault struct {

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

UpdateAppDefault Unexpected error

swagger:response updateAppDefault

func NewUpdateAppDefault

func NewUpdateAppDefault(code int) *UpdateAppDefault

NewUpdateAppDefault creates UpdateAppDefault with default headers values

func (*UpdateAppDefault) SetPayload

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

SetPayload sets the payload to the update app default response

func (*UpdateAppDefault) SetStatusCode

func (o *UpdateAppDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update app default response

func (*UpdateAppDefault) WithPayload

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

WithPayload adds the payload to the update app default response

func (*UpdateAppDefault) WithStatusCode

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

WithStatusCode adds the status to the update app default response

func (*UpdateAppDefault) WriteResponse

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

WriteResponse to the client

type UpdateAppHandler

type UpdateAppHandler interface {
	Handle(UpdateAppParams, interface{}) middleware.Responder
}

UpdateAppHandler interface for that can handle valid update app params

type UpdateAppHandlerFunc

type UpdateAppHandlerFunc func(UpdateAppParams, interface{}) middleware.Responder

UpdateAppHandlerFunc turns a function with the right signature into a update app handler

func (UpdateAppHandlerFunc) Handle

func (fn UpdateAppHandlerFunc) Handle(params UpdateAppParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateAppOK

type UpdateAppOK struct {

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

UpdateAppOK Updated version of the app

swagger:response updateAppOK

func NewUpdateAppOK

func NewUpdateAppOK() *UpdateAppOK

NewUpdateAppOK creates UpdateAppOK with default headers values

func (*UpdateAppOK) SetPayload

func (o *UpdateAppOK) SetPayload(payload *models.App)

SetPayload sets the payload to the update app o k response

func (*UpdateAppOK) WithPayload

func (o *UpdateAppOK) WithPayload(payload *models.App) *UpdateAppOK

WithPayload adds the payload to the update app o k response

func (*UpdateAppOK) WriteResponse

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

WriteResponse to the client

type UpdateAppParams

type UpdateAppParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*App name
	  Required: true
	  Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	  In: path
	*/
	AppName string
	/*
	  Required: true
	  In: body
	*/
	Body *models.AppIn
}

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

swagger:parameters updateApp

func NewUpdateAppParams

func NewUpdateAppParams() UpdateAppParams

NewUpdateAppParams creates a new UpdateAppParams object with the default values initialized.

func (*UpdateAppParams) BindRequest

func (o *UpdateAppParams) 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 UpdateAppScale added in v0.2.0

type UpdateAppScale struct {
	Context *middleware.Context
	Handler UpdateAppScaleHandler
}

UpdateAppScale swagger:route PUT /apps/{app_name}/scale apps updateAppScale

Update app scale

Update app scale size (replicas)

func NewUpdateAppScale added in v0.2.0

func NewUpdateAppScale(ctx *middleware.Context, handler UpdateAppScaleHandler) *UpdateAppScale

NewUpdateAppScale creates a new http.Handler for the update app scale operation

func (*UpdateAppScale) ServeHTTP added in v0.2.0

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

type UpdateAppScaleBody added in v0.2.0

type UpdateAppScaleBody struct {

	/* number of PODs running the app

	Required: true
	Minimum: 1
	*/
	Scale *int64 `json:"scale"`
}

UpdateAppScaleBody update app scale body

swagger:model UpdateAppScaleBody

func (*UpdateAppScaleBody) Validate added in v0.2.0

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

Validate validates this update app scale body

type UpdateAppScaleDefault added in v0.2.0

type UpdateAppScaleDefault struct {

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

UpdateAppScaleDefault Unexpected error

swagger:response updateAppScaleDefault

func NewUpdateAppScaleDefault added in v0.2.0

func NewUpdateAppScaleDefault(code int) *UpdateAppScaleDefault

NewUpdateAppScaleDefault creates UpdateAppScaleDefault with default headers values

func (*UpdateAppScaleDefault) SetPayload added in v0.2.0

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

SetPayload sets the payload to the update app scale default response

func (*UpdateAppScaleDefault) SetStatusCode added in v0.2.0

func (o *UpdateAppScaleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update app scale default response

func (*UpdateAppScaleDefault) WithPayload added in v0.2.0

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

WithPayload adds the payload to the update app scale default response

func (*UpdateAppScaleDefault) WithStatusCode added in v0.2.0

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

WithStatusCode adds the status to the update app scale default response

func (*UpdateAppScaleDefault) WriteResponse added in v0.2.0

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

WriteResponse to the client

type UpdateAppScaleHandler added in v0.2.0

type UpdateAppScaleHandler interface {
	Handle(UpdateAppScaleParams, interface{}) middleware.Responder
}

UpdateAppScaleHandler interface for that can handle valid update app scale params

type UpdateAppScaleHandlerFunc added in v0.2.0

type UpdateAppScaleHandlerFunc func(UpdateAppScaleParams, interface{}) middleware.Responder

UpdateAppScaleHandlerFunc turns a function with the right signature into a update app scale handler

func (UpdateAppScaleHandlerFunc) Handle added in v0.2.0

func (fn UpdateAppScaleHandlerFunc) Handle(params UpdateAppScaleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateAppScaleOK added in v0.2.0

type UpdateAppScaleOK struct {

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

UpdateAppScaleOK Updated version of the app

swagger:response updateAppScaleOK

func NewUpdateAppScaleOK added in v0.2.0

func NewUpdateAppScaleOK() *UpdateAppScaleOK

NewUpdateAppScaleOK creates UpdateAppScaleOK with default headers values

func (*UpdateAppScaleOK) SetPayload added in v0.2.0

func (o *UpdateAppScaleOK) SetPayload(payload *models.App)

SetPayload sets the payload to the update app scale o k response

func (*UpdateAppScaleOK) WithPayload added in v0.2.0

func (o *UpdateAppScaleOK) WithPayload(payload *models.App) *UpdateAppScaleOK

WithPayload adds the payload to the update app scale o k response

func (*UpdateAppScaleOK) WriteResponse added in v0.2.0

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

WriteResponse to the client

type UpdateAppScaleParams added in v0.2.0

type UpdateAppScaleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*App name
	  Required: true
	  Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	  In: path
	*/
	AppName string
	/*
	  In: body
	*/
	Body UpdateAppScaleBody
}

UpdateAppScaleParams contains all the bound params for the update app scale operation typically these are obtained from a http.Request

swagger:parameters updateAppScale

func NewUpdateAppScaleParams added in v0.2.0

func NewUpdateAppScaleParams() UpdateAppScaleParams

NewUpdateAppScaleParams creates a new UpdateAppScaleParams object with the default values initialized.

func (*UpdateAppScaleParams) BindRequest added in v0.2.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL