application

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

View Source
const AddAppBadRequestCode int = 400

AddAppBadRequestCode is the HTTP code returned for type AddAppBadRequest

View Source
const AddAppConflictCode int = 409

AddAppConflictCode is the HTTP code returned for type AddAppConflict

View Source
const AddAppInternalServerErrorCode int = 500

AddAppInternalServerErrorCode is the HTTP code returned for type AddAppInternalServerError

View Source
const AddAppOKCode int = 200

AddAppOKCode is the HTTP code returned for type AddAppOK

View Source
const AddAppUnauthorizedCode int = 401

AddAppUnauthorizedCode is the HTTP code returned for type AddAppUnauthorized

View Source
const DeleteAppBadRequestCode int = 400

DeleteAppBadRequestCode is the HTTP code returned for type DeleteAppBadRequest

View Source
const DeleteAppInternalServerErrorCode int = 500

DeleteAppInternalServerErrorCode is the HTTP code returned for type DeleteAppInternalServerError

View Source
const DeleteAppNotFoundCode int = 404

DeleteAppNotFoundCode is the HTTP code returned for type DeleteAppNotFound

View Source
const DeleteAppOKCode int = 200

DeleteAppOKCode is the HTTP code returned for type DeleteAppOK

View Source
const GetAppBadRequestCode int = 400

GetAppBadRequestCode is the HTTP code returned for type GetAppBadRequest

View Source
const GetAppInternalServerErrorCode int = 500

GetAppInternalServerErrorCode is the HTTP code returned for type GetAppInternalServerError

View Source
const GetAppNotFoundCode int = 404

GetAppNotFoundCode is the HTTP code returned for type GetAppNotFound

View Source
const GetAppOKCode int = 200

GetAppOKCode is the HTTP code returned for type GetAppOK

View Source
const GetAppsInternalServerErrorCode int = 500

GetAppsInternalServerErrorCode is the HTTP code returned for type GetAppsInternalServerError

View Source
const GetAppsOKCode int = 200

GetAppsOKCode is the HTTP code returned for type GetAppsOK

View Source
const UpdateAppBadRequestCode int = 400

UpdateAppBadRequestCode is the HTTP code returned for type UpdateAppBadRequest

View Source
const UpdateAppInternalServerErrorCode int = 500

UpdateAppInternalServerErrorCode is the HTTP code returned for type UpdateAppInternalServerError

View Source
const UpdateAppNotFoundCode int = 404

UpdateAppNotFoundCode is the HTTP code returned for type UpdateAppNotFound

View Source
const UpdateAppOKCode int = 200

UpdateAppOKCode is the HTTP code returned for type UpdateAppOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AddApp

type AddApp struct {
	Context *middleware.Context
	Handler AddAppHandler
}

AddApp swagger:route POST / application addApp

Add a new Application

func NewAddApp

func NewAddApp(ctx *middleware.Context, handler AddAppHandler) *AddApp

NewAddApp creates a new http.Handler for the add app operation

func (*AddApp) ServeHTTP

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

type AddAppBadRequest

type AddAppBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddAppBadRequest Invalid Input

swagger:response addAppBadRequest

func NewAddAppBadRequest

func NewAddAppBadRequest() *AddAppBadRequest

NewAddAppBadRequest creates AddAppBadRequest with default headers values

func (*AddAppBadRequest) SetPayload

func (o *AddAppBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add app bad request response

func (*AddAppBadRequest) WithPayload

func (o *AddAppBadRequest) WithPayload(payload *v1.Error) *AddAppBadRequest

WithPayload adds the payload to the add app bad request response

func (*AddAppBadRequest) WriteResponse

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

WriteResponse to the client

type AddAppConflict

type AddAppConflict struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddAppConflict Already Exists

swagger:response addAppConflict

func NewAddAppConflict

func NewAddAppConflict() *AddAppConflict

NewAddAppConflict creates AddAppConflict with default headers values

func (*AddAppConflict) SetPayload

func (o *AddAppConflict) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add app conflict response

func (*AddAppConflict) WithPayload

func (o *AddAppConflict) WithPayload(payload *v1.Error) *AddAppConflict

WithPayload adds the payload to the add app conflict response

func (*AddAppConflict) WriteResponse

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

WriteResponse to the client

type AddAppHandler

type AddAppHandler interface {
	Handle(AddAppParams, interface{}) middleware.Responder
}

AddAppHandler interface for that can handle valid add app params

type AddAppHandlerFunc

type AddAppHandlerFunc func(AddAppParams, interface{}) middleware.Responder

AddAppHandlerFunc turns a function with the right signature into a add app handler

func (AddAppHandlerFunc) Handle

func (fn AddAppHandlerFunc) Handle(params AddAppParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddAppInternalServerError

type AddAppInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddAppInternalServerError Internal Error

swagger:response addAppInternalServerError

func NewAddAppInternalServerError

func NewAddAppInternalServerError() *AddAppInternalServerError

NewAddAppInternalServerError creates AddAppInternalServerError with default headers values

func (*AddAppInternalServerError) SetPayload

func (o *AddAppInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add app internal server error response

func (*AddAppInternalServerError) WithPayload

func (o *AddAppInternalServerError) WithPayload(payload *v1.Error) *AddAppInternalServerError

WithPayload adds the payload to the add app internal server error response

func (*AddAppInternalServerError) WriteResponse

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

WriteResponse to the client

type AddAppOK

type AddAppOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Application `json:"body,omitempty"`
}

AddAppOK Application created

swagger:response addAppOK

func NewAddAppOK

func NewAddAppOK() *AddAppOK

NewAddAppOK creates AddAppOK with default headers values

func (*AddAppOK) SetPayload

func (o *AddAppOK) SetPayload(payload *v1.Application)

SetPayload sets the payload to the add app o k response

func (*AddAppOK) WithPayload

func (o *AddAppOK) WithPayload(payload *v1.Application) *AddAppOK

WithPayload adds the payload to the add app o k response

func (*AddAppOK) WriteResponse

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

WriteResponse to the client

type AddAppParams

type AddAppParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Application object
	  Required: true
	  In: body
	*/
	Body *v1.Application
}

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

swagger:parameters addApp

func NewAddAppParams

func NewAddAppParams() AddAppParams

NewAddAppParams creates a new AddAppParams object no default values defined in spec.

func (*AddAppParams) BindRequest

func (o *AddAppParams) 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 NewAddAppParams() beforehand.

type AddAppURL

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

AddAppURL generates an URL for the add app operation

func (*AddAppURL) Build

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

Build a url path and query string

func (*AddAppURL) BuildFull

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

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

func (*AddAppURL) Must

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

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

func (*AddAppURL) SetBasePath

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

func (o *AddAppURL) String() string

String returns the string representation of the path with query string

func (*AddAppURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddAppURL) WithBasePath

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

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 AddAppUnauthorized

type AddAppUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddAppUnauthorized Unauthorized Request

swagger:response addAppUnauthorized

func NewAddAppUnauthorized

func NewAddAppUnauthorized() *AddAppUnauthorized

NewAddAppUnauthorized creates AddAppUnauthorized with default headers values

func (*AddAppUnauthorized) SetPayload

func (o *AddAppUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add app unauthorized response

func (*AddAppUnauthorized) WithPayload

func (o *AddAppUnauthorized) WithPayload(payload *v1.Error) *AddAppUnauthorized

WithPayload adds the payload to the add app unauthorized response

func (*AddAppUnauthorized) WriteResponse

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

WriteResponse to the client

type DeleteApp

type DeleteApp struct {
	Context *middleware.Context
	Handler DeleteAppHandler
}

DeleteApp swagger:route DELETE /{application} application deleteApp

Deletes an Application

func NewDeleteApp

func NewDeleteApp(ctx *middleware.Context, handler DeleteAppHandler) *DeleteApp

NewDeleteApp creates a new http.Handler for the delete app operation

func (*DeleteApp) ServeHTTP

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

type DeleteAppBadRequest

type DeleteAppBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeleteAppBadRequest Invalid Name supplied

swagger:response deleteAppBadRequest

func NewDeleteAppBadRequest

func NewDeleteAppBadRequest() *DeleteAppBadRequest

NewDeleteAppBadRequest creates DeleteAppBadRequest with default headers values

func (*DeleteAppBadRequest) SetPayload

func (o *DeleteAppBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete app bad request response

func (*DeleteAppBadRequest) WithPayload

func (o *DeleteAppBadRequest) WithPayload(payload *v1.Error) *DeleteAppBadRequest

WithPayload adds the payload to the delete app bad request response

func (*DeleteAppBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteAppHandler

type DeleteAppHandler interface {
	Handle(DeleteAppParams, interface{}) middleware.Responder
}

DeleteAppHandler interface for that can handle valid delete app params

type DeleteAppHandlerFunc

type DeleteAppHandlerFunc func(DeleteAppParams, interface{}) middleware.Responder

DeleteAppHandlerFunc turns a function with the right signature into a delete app handler

func (DeleteAppHandlerFunc) Handle

func (fn DeleteAppHandlerFunc) Handle(params DeleteAppParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteAppInternalServerError

type DeleteAppInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeleteAppInternalServerError Internal error

swagger:response deleteAppInternalServerError

func NewDeleteAppInternalServerError

func NewDeleteAppInternalServerError() *DeleteAppInternalServerError

NewDeleteAppInternalServerError creates DeleteAppInternalServerError with default headers values

func (*DeleteAppInternalServerError) SetPayload

func (o *DeleteAppInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete app internal server error response

func (*DeleteAppInternalServerError) WithPayload

WithPayload adds the payload to the delete app internal server error response

func (*DeleteAppInternalServerError) WriteResponse

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

WriteResponse to the client

type DeleteAppNotFound

type DeleteAppNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeleteAppNotFound Application not found

swagger:response deleteAppNotFound

func NewDeleteAppNotFound

func NewDeleteAppNotFound() *DeleteAppNotFound

NewDeleteAppNotFound creates DeleteAppNotFound with default headers values

func (*DeleteAppNotFound) SetPayload

func (o *DeleteAppNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete app not found response

func (*DeleteAppNotFound) WithPayload

func (o *DeleteAppNotFound) WithPayload(payload *v1.Error) *DeleteAppNotFound

WithPayload adds the payload to the delete app not found response

func (*DeleteAppNotFound) WriteResponse

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

WriteResponse to the client

type DeleteAppOK

type DeleteAppOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Application `json:"body,omitempty"`
}

DeleteAppOK Successful operation

swagger:response deleteAppOK

func NewDeleteAppOK

func NewDeleteAppOK() *DeleteAppOK

NewDeleteAppOK creates DeleteAppOK with default headers values

func (*DeleteAppOK) SetPayload

func (o *DeleteAppOK) SetPayload(payload *v1.Application)

SetPayload sets the payload to the delete app o k response

func (*DeleteAppOK) WithPayload

func (o *DeleteAppOK) WithPayload(payload *v1.Application) *DeleteAppOK

WithPayload adds the payload to the delete app o k response

func (*DeleteAppOK) WriteResponse

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

WriteResponse to the client

type DeleteAppParams

type DeleteAppParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of Application to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	Application string
}

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

swagger:parameters deleteApp

func NewDeleteAppParams

func NewDeleteAppParams() DeleteAppParams

NewDeleteAppParams creates a new DeleteAppParams object no default values defined in spec.

func (*DeleteAppParams) BindRequest

func (o *DeleteAppParams) 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 NewDeleteAppParams() beforehand.

type DeleteAppURL

type DeleteAppURL struct {
	Application string
	// contains filtered or unexported fields
}

DeleteAppURL generates an URL for the delete app operation

func (*DeleteAppURL) Build

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

Build a url path and query string

func (*DeleteAppURL) BuildFull

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

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

func (*DeleteAppURL) Must

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

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

func (*DeleteAppURL) SetBasePath

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

func (o *DeleteAppURL) String() string

String returns the string representation of the path with query string

func (*DeleteAppURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteAppURL) WithBasePath

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

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 GetApp

type GetApp struct {
	Context *middleware.Context
	Handler GetAppHandler
}

GetApp swagger:route GET /{application} application getApp

Find Application by name

get an Application by name

func NewGetApp

func NewGetApp(ctx *middleware.Context, handler GetAppHandler) *GetApp

NewGetApp creates a new http.Handler for the get app operation

func (*GetApp) ServeHTTP

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

type GetAppBadRequest

type GetAppBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetAppBadRequest Invalid Name supplied

swagger:response getAppBadRequest

func NewGetAppBadRequest

func NewGetAppBadRequest() *GetAppBadRequest

NewGetAppBadRequest creates GetAppBadRequest with default headers values

func (*GetAppBadRequest) SetPayload

func (o *GetAppBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get app bad request response

func (*GetAppBadRequest) WithPayload

func (o *GetAppBadRequest) WithPayload(payload *v1.Error) *GetAppBadRequest

WithPayload adds the payload to the get app bad request response

func (*GetAppBadRequest) WriteResponse

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

WriteResponse to the client

type GetAppHandler

type GetAppHandler interface {
	Handle(GetAppParams, interface{}) middleware.Responder
}

GetAppHandler interface for that can handle valid get app params

type GetAppHandlerFunc

type GetAppHandlerFunc func(GetAppParams, interface{}) middleware.Responder

GetAppHandlerFunc turns a function with the right signature into a get app handler

func (GetAppHandlerFunc) Handle

func (fn GetAppHandlerFunc) Handle(params GetAppParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetAppInternalServerError

type GetAppInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetAppInternalServerError Internal error

swagger:response getAppInternalServerError

func NewGetAppInternalServerError

func NewGetAppInternalServerError() *GetAppInternalServerError

NewGetAppInternalServerError creates GetAppInternalServerError with default headers values

func (*GetAppInternalServerError) SetPayload

func (o *GetAppInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get app internal server error response

func (*GetAppInternalServerError) WithPayload

func (o *GetAppInternalServerError) WithPayload(payload *v1.Error) *GetAppInternalServerError

WithPayload adds the payload to the get app internal server error response

func (*GetAppInternalServerError) WriteResponse

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

WriteResponse to the client

type GetAppNotFound

type GetAppNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetAppNotFound Application not found

swagger:response getAppNotFound

func NewGetAppNotFound

func NewGetAppNotFound() *GetAppNotFound

NewGetAppNotFound creates GetAppNotFound with default headers values

func (*GetAppNotFound) SetPayload

func (o *GetAppNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get app not found response

func (*GetAppNotFound) WithPayload

func (o *GetAppNotFound) WithPayload(payload *v1.Error) *GetAppNotFound

WithPayload adds the payload to the get app not found response

func (*GetAppNotFound) WriteResponse

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

WriteResponse to the client

type GetAppOK

type GetAppOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Application `json:"body,omitempty"`
}

GetAppOK Successful operation

swagger:response getAppOK

func NewGetAppOK

func NewGetAppOK() *GetAppOK

NewGetAppOK creates GetAppOK with default headers values

func (*GetAppOK) SetPayload

func (o *GetAppOK) SetPayload(payload *v1.Application)

SetPayload sets the payload to the get app o k response

func (*GetAppOK) WithPayload

func (o *GetAppOK) WithPayload(payload *v1.Application) *GetAppOK

WithPayload adds the payload to the get app o k response

func (*GetAppOK) WriteResponse

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

WriteResponse to the client

type GetAppParams

type GetAppParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of Application to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	Application string
}

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

swagger:parameters getApp

func NewGetAppParams

func NewGetAppParams() GetAppParams

NewGetAppParams creates a new GetAppParams object no default values defined in spec.

func (*GetAppParams) BindRequest

func (o *GetAppParams) 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 NewGetAppParams() beforehand.

type GetAppURL

type GetAppURL struct {
	Application string
	// contains filtered or unexported fields
}

GetAppURL generates an URL for the get app operation

func (*GetAppURL) Build

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

Build a url path and query string

func (*GetAppURL) BuildFull

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

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

func (*GetAppURL) Must

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

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

func (*GetAppURL) SetBasePath

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

func (o *GetAppURL) String() string

String returns the string representation of the path with query string

func (*GetAppURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetAppURL) WithBasePath

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

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 GetApps

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

GetApps swagger:route GET / application getApps

List all existing Applications

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 *v1.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 *v1.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 *v1.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 GetAppsInternalServerError

type GetAppsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetAppsInternalServerError Internal Error

swagger:response getAppsInternalServerError

func NewGetAppsInternalServerError

func NewGetAppsInternalServerError() *GetAppsInternalServerError

NewGetAppsInternalServerError creates GetAppsInternalServerError with default headers values

func (*GetAppsInternalServerError) SetPayload

func (o *GetAppsInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get apps internal server error response

func (*GetAppsInternalServerError) WithPayload

WithPayload adds the payload to the get apps internal server error response

func (*GetAppsInternalServerError) WriteResponse

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

WriteResponse to the client

type GetAppsOK

type GetAppsOK struct {

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

GetAppsOK Successful operation

swagger:response getAppsOK

func NewGetAppsOK

func NewGetAppsOK() *GetAppsOK

NewGetAppsOK creates GetAppsOK with default headers values

func (*GetAppsOK) SetPayload

func (o *GetAppsOK) SetPayload(payload []*v1.Application)

SetPayload sets the payload to the get apps o k response

func (*GetAppsOK) WithPayload

func (o *GetAppsOK) WithPayload(payload []*v1.Application) *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 `json:"-"`

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Filter on Application tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

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 no default values defined in spec.

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.

To ensure default values, the struct must have been initialized with NewGetAppsParams() beforehand.

type GetAppsURL

type GetAppsURL struct {
	Tags []string
	// contains filtered or unexported fields
}

GetAppsURL generates an URL for the get apps operation

func (*GetAppsURL) Build

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

Build a url path and query string

func (*GetAppsURL) BuildFull

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

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

func (*GetAppsURL) Must

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

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

func (*GetAppsURL) SetBasePath

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

func (o *GetAppsURL) String() string

String returns the string representation of the path with query string

func (*GetAppsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetAppsURL) WithBasePath

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

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 UpdateApp

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

UpdateApp swagger:route PUT /{application} application updateApp

Update an Application

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 UpdateAppBadRequest

type UpdateAppBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdateAppBadRequest Invalid input

swagger:response updateAppBadRequest

func NewUpdateAppBadRequest

func NewUpdateAppBadRequest() *UpdateAppBadRequest

NewUpdateAppBadRequest creates UpdateAppBadRequest with default headers values

func (*UpdateAppBadRequest) SetPayload

func (o *UpdateAppBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update app bad request response

func (*UpdateAppBadRequest) WithPayload

func (o *UpdateAppBadRequest) WithPayload(payload *v1.Error) *UpdateAppBadRequest

WithPayload adds the payload to the update app bad request response

func (*UpdateAppBadRequest) WriteResponse

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

type UpdateAppInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdateAppInternalServerError Internal error

swagger:response updateAppInternalServerError

func NewUpdateAppInternalServerError

func NewUpdateAppInternalServerError() *UpdateAppInternalServerError

NewUpdateAppInternalServerError creates UpdateAppInternalServerError with default headers values

func (*UpdateAppInternalServerError) SetPayload

func (o *UpdateAppInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update app internal server error response

func (*UpdateAppInternalServerError) WithPayload

WithPayload adds the payload to the update app internal server error response

func (*UpdateAppInternalServerError) WriteResponse

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

WriteResponse to the client

type UpdateAppNotFound

type UpdateAppNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdateAppNotFound Application not found

swagger:response updateAppNotFound

func NewUpdateAppNotFound

func NewUpdateAppNotFound() *UpdateAppNotFound

NewUpdateAppNotFound creates UpdateAppNotFound with default headers values

func (*UpdateAppNotFound) SetPayload

func (o *UpdateAppNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update app not found response

func (*UpdateAppNotFound) WithPayload

func (o *UpdateAppNotFound) WithPayload(payload *v1.Error) *UpdateAppNotFound

WithPayload adds the payload to the update app not found response

func (*UpdateAppNotFound) WriteResponse

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

WriteResponse to the client

type UpdateAppOK

type UpdateAppOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Application `json:"body,omitempty"`
}

UpdateAppOK Successful update

swagger:response updateAppOK

func NewUpdateAppOK

func NewUpdateAppOK() *UpdateAppOK

NewUpdateAppOK creates UpdateAppOK with default headers values

func (*UpdateAppOK) SetPayload

func (o *UpdateAppOK) SetPayload(payload *v1.Application)

SetPayload sets the payload to the update app o k response

func (*UpdateAppOK) WithPayload

func (o *UpdateAppOK) WithPayload(payload *v1.Application) *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 `json:"-"`

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of Application to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	Application string
	/*Application object
	  Required: true
	  In: body
	*/
	Body *v1.Application
}

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 no default values defined in spec.

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.

To ensure default values, the struct must have been initialized with NewUpdateAppParams() beforehand.

type UpdateAppURL

type UpdateAppURL struct {
	Application string
	// contains filtered or unexported fields
}

UpdateAppURL generates an URL for the update app operation

func (*UpdateAppURL) Build

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

Build a url path and query string

func (*UpdateAppURL) BuildFull

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

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

func (*UpdateAppURL) Must

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

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

func (*UpdateAppURL) SetBasePath

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

func (o *UpdateAppURL) String() string

String returns the string representation of the path with query string

func (*UpdateAppURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateAppURL) WithBasePath

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

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