service

package
v0.0.0-...-acbd0ad Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreateServiceConflictCode int = 409

CreateServiceConflictCode is the HTTP code returned for type CreateServiceConflict

View Source
const CreateServiceCreatedCode int = 201

CreateServiceCreatedCode is the HTTP code returned for type CreateServiceCreated

View Source
const CreateServiceForbiddenCode int = 403

CreateServiceForbiddenCode is the HTTP code returned for type CreateServiceForbidden

View Source
const CreateServiceInternalServerErrorCode int = 500

CreateServiceInternalServerErrorCode is the HTTP code returned for type CreateServiceInternalServerError

View Source
const CreateServiceVersionConflictCode int = 409

CreateServiceVersionConflictCode is the HTTP code returned for type CreateServiceVersionConflict

View Source
const CreateServiceVersionCreatedCode int = 201

CreateServiceVersionCreatedCode is the HTTP code returned for type CreateServiceVersionCreated

View Source
const CreateServiceVersionForbiddenCode int = 403

CreateServiceVersionForbiddenCode is the HTTP code returned for type CreateServiceVersionForbidden

View Source
const CreateServiceVersionInternalServerErrorCode int = 500

CreateServiceVersionInternalServerErrorCode is the HTTP code returned for type CreateServiceVersionInternalServerError

View Source
const DeleteServiceForbiddenCode int = 403

DeleteServiceForbiddenCode is the HTTP code returned for type DeleteServiceForbidden

View Source
const DeleteServiceInternalServerErrorCode int = 500

DeleteServiceInternalServerErrorCode is the HTTP code returned for type DeleteServiceInternalServerError

View Source
const DeleteServiceOKCode int = 200

DeleteServiceOKCode is the HTTP code returned for type DeleteServiceOK

View Source
const GetServiceVersionForbiddenCode int = 403

GetServiceVersionForbiddenCode is the HTTP code returned for type GetServiceVersionForbidden

View Source
const GetServiceVersionInternalServerErrorCode int = 500

GetServiceVersionInternalServerErrorCode is the HTTP code returned for type GetServiceVersionInternalServerError

View Source
const GetServiceVersionOKCode int = 200

GetServiceVersionOKCode is the HTTP code returned for type GetServiceVersionOK

View Source
const ListServiceForbiddenCode int = 403

ListServiceForbiddenCode is the HTTP code returned for type ListServiceForbidden

View Source
const ListServiceInternalServerErrorCode int = 500

ListServiceInternalServerErrorCode is the HTTP code returned for type ListServiceInternalServerError

View Source
const ListServiceOKCode int = 200

ListServiceOKCode is the HTTP code returned for type ListServiceOK

View Source
const ListServicePodForbiddenCode int = 403

ListServicePodForbiddenCode is the HTTP code returned for type ListServicePodForbidden

View Source
const ListServicePodInternalServerErrorCode int = 500

ListServicePodInternalServerErrorCode is the HTTP code returned for type ListServicePodInternalServerError

View Source
const ListServicePodOKCode int = 200

ListServicePodOKCode is the HTTP code returned for type ListServicePodOK

View Source
const ListServiceVersionForbiddenCode int = 403

ListServiceVersionForbiddenCode is the HTTP code returned for type ListServiceVersionForbidden

View Source
const ListServiceVersionInternalServerErrorCode int = 500

ListServiceVersionInternalServerErrorCode is the HTTP code returned for type ListServiceVersionInternalServerError

View Source
const ListServiceVersionOKCode int = 200

ListServiceVersionOKCode is the HTTP code returned for type ListServiceVersionOK

View Source
const UpdateServiceDescriptionForbiddenCode int = 403

UpdateServiceDescriptionForbiddenCode is the HTTP code returned for type UpdateServiceDescriptionForbidden

View Source
const UpdateServiceDescriptionInternalServerErrorCode int = 500

UpdateServiceDescriptionInternalServerErrorCode is the HTTP code returned for type UpdateServiceDescriptionInternalServerError

View Source
const UpdateServiceDescriptionOKCode int = 200

UpdateServiceDescriptionOKCode is the HTTP code returned for type UpdateServiceDescriptionOK

View Source
const UpdateServiceVersionForbiddenCode int = 403

UpdateServiceVersionForbiddenCode is the HTTP code returned for type UpdateServiceVersionForbidden

View Source
const UpdateServiceVersionInternalServerErrorCode int = 500

UpdateServiceVersionInternalServerErrorCode is the HTTP code returned for type UpdateServiceVersionInternalServerError

View Source
const UpdateServiceVersionOKCode int = 200

UpdateServiceVersionOKCode is the HTTP code returned for type UpdateServiceVersionOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateService

type CreateService struct {
	Context *middleware.Context
	Handler CreateServiceHandler
}
CreateService swagger:route POST /service/create Service createService

Create Service

func NewCreateService

func NewCreateService(ctx *middleware.Context, handler CreateServiceHandler) *CreateService

NewCreateService creates a new http.Handler for the create service operation

func (*CreateService) ServeHTTP

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

type CreateServiceConflict

type CreateServiceConflict struct {

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

CreateServiceConflict Create Service Failed, cause service exist

swagger:response createServiceConflict

func NewCreateServiceConflict

func NewCreateServiceConflict() *CreateServiceConflict

NewCreateServiceConflict creates CreateServiceConflict with default headers values

func (*CreateServiceConflict) SetPayload

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

SetPayload sets the payload to the create service conflict response

func (*CreateServiceConflict) WithPayload

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

WithPayload adds the payload to the create service conflict response

func (*CreateServiceConflict) WriteResponse

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

WriteResponse to the client

type CreateServiceCreated

type CreateServiceCreated struct {

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

CreateServiceCreated Create Service Success, return service info.

swagger:response createServiceCreated

func NewCreateServiceCreated

func NewCreateServiceCreated() *CreateServiceCreated

NewCreateServiceCreated creates CreateServiceCreated with default headers values

func (*CreateServiceCreated) SetPayload

func (o *CreateServiceCreated) SetPayload(payload *models.ServiceInfo)

SetPayload sets the payload to the create service created response

func (*CreateServiceCreated) WithPayload

func (o *CreateServiceCreated) WithPayload(payload *models.ServiceInfo) *CreateServiceCreated

WithPayload adds the payload to the create service created response

func (*CreateServiceCreated) WriteResponse

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

WriteResponse to the client

type CreateServiceForbidden

type CreateServiceForbidden struct {

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

CreateServiceForbidden Create Service Failed, cause do not have permisssion

swagger:response createServiceForbidden

func NewCreateServiceForbidden

func NewCreateServiceForbidden() *CreateServiceForbidden

NewCreateServiceForbidden creates CreateServiceForbidden with default headers values

func (*CreateServiceForbidden) SetPayload

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

SetPayload sets the payload to the create service forbidden response

func (*CreateServiceForbidden) WithPayload

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

WithPayload adds the payload to the create service forbidden response

func (*CreateServiceForbidden) WriteResponse

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

WriteResponse to the client

type CreateServiceHandler

type CreateServiceHandler interface {
	Handle(CreateServiceParams, *models.AuthInfo) middleware.Responder
}

CreateServiceHandler interface for that can handle valid create service params

type CreateServiceHandlerFunc

type CreateServiceHandlerFunc func(CreateServiceParams, *models.AuthInfo) middleware.Responder

CreateServiceHandlerFunc turns a function with the right signature into a create service handler

func (CreateServiceHandlerFunc) Handle

Handle executing the request and returning a response

type CreateServiceInternalServerError

type CreateServiceInternalServerError struct {

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

CreateServiceInternalServerError Server Error

swagger:response createServiceInternalServerError

func NewCreateServiceInternalServerError

func NewCreateServiceInternalServerError() *CreateServiceInternalServerError

NewCreateServiceInternalServerError creates CreateServiceInternalServerError with default headers values

func (*CreateServiceInternalServerError) SetPayload

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

SetPayload sets the payload to the create service internal server error response

func (*CreateServiceInternalServerError) WithPayload

WithPayload adds the payload to the create service internal server error response

func (*CreateServiceInternalServerError) WriteResponse

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

WriteResponse to the client

type CreateServiceParams

type CreateServiceParams struct {

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

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

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

swagger:parameters CreateService

func NewCreateServiceParams

func NewCreateServiceParams() CreateServiceParams

NewCreateServiceParams creates a new CreateServiceParams object

There are no default values defined in the spec.

func (*CreateServiceParams) BindRequest

func (o *CreateServiceParams) 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 NewCreateServiceParams() beforehand.

type CreateServiceURL

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

CreateServiceURL generates an URL for the create service operation

func (*CreateServiceURL) Build

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

Build a url path and query string

func (*CreateServiceURL) BuildFull

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

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

func (*CreateServiceURL) Must

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

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

func (*CreateServiceURL) SetBasePath

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

func (o *CreateServiceURL) String() string

String returns the string representation of the path with query string

func (*CreateServiceURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateServiceURL) WithBasePath

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

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 CreateServiceVersion

type CreateServiceVersion struct {
	Context *middleware.Context
	Handler CreateServiceVersionHandler
}
CreateServiceVersion swagger:route POST /service/version/create Service createServiceVersion

Create Service Version

func NewCreateServiceVersion

func NewCreateServiceVersion(ctx *middleware.Context, handler CreateServiceVersionHandler) *CreateServiceVersion

NewCreateServiceVersion creates a new http.Handler for the create service version operation

func (*CreateServiceVersion) ServeHTTP

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

type CreateServiceVersionConflict

type CreateServiceVersionConflict struct {

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

CreateServiceVersionConflict Create Service Version Failed, cause service version exist

swagger:response createServiceVersionConflict

func NewCreateServiceVersionConflict

func NewCreateServiceVersionConflict() *CreateServiceVersionConflict

NewCreateServiceVersionConflict creates CreateServiceVersionConflict with default headers values

func (*CreateServiceVersionConflict) SetPayload

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

SetPayload sets the payload to the create service version conflict response

func (*CreateServiceVersionConflict) WithPayload

WithPayload adds the payload to the create service version conflict response

func (*CreateServiceVersionConflict) WriteResponse

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

WriteResponse to the client

type CreateServiceVersionCreated

type CreateServiceVersionCreated struct {

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

CreateServiceVersionCreated Create Service Version Success, return service version info.

swagger:response createServiceVersionCreated

func NewCreateServiceVersionCreated

func NewCreateServiceVersionCreated() *CreateServiceVersionCreated

NewCreateServiceVersionCreated creates CreateServiceVersionCreated with default headers values

func (*CreateServiceVersionCreated) SetPayload

func (o *CreateServiceVersionCreated) SetPayload(payload *models.ServiceVersion)

SetPayload sets the payload to the create service version created response

func (*CreateServiceVersionCreated) WithPayload

WithPayload adds the payload to the create service version created response

func (*CreateServiceVersionCreated) WriteResponse

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

WriteResponse to the client

type CreateServiceVersionForbidden

type CreateServiceVersionForbidden struct {

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

CreateServiceVersionForbidden Create Service Version Failed, cause do not have permisssion

swagger:response createServiceVersionForbidden

func NewCreateServiceVersionForbidden

func NewCreateServiceVersionForbidden() *CreateServiceVersionForbidden

NewCreateServiceVersionForbidden creates CreateServiceVersionForbidden with default headers values

func (*CreateServiceVersionForbidden) SetPayload

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

SetPayload sets the payload to the create service version forbidden response

func (*CreateServiceVersionForbidden) WithPayload

WithPayload adds the payload to the create service version forbidden response

func (*CreateServiceVersionForbidden) WriteResponse

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

WriteResponse to the client

type CreateServiceVersionHandler

type CreateServiceVersionHandler interface {
	Handle(CreateServiceVersionParams, *models.AuthInfo) middleware.Responder
}

CreateServiceVersionHandler interface for that can handle valid create service version params

type CreateServiceVersionHandlerFunc

type CreateServiceVersionHandlerFunc func(CreateServiceVersionParams, *models.AuthInfo) middleware.Responder

CreateServiceVersionHandlerFunc turns a function with the right signature into a create service version handler

func (CreateServiceVersionHandlerFunc) Handle

Handle executing the request and returning a response

type CreateServiceVersionInternalServerError

type CreateServiceVersionInternalServerError struct {

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

CreateServiceVersionInternalServerError Server Error

swagger:response createServiceVersionInternalServerError

func NewCreateServiceVersionInternalServerError

func NewCreateServiceVersionInternalServerError() *CreateServiceVersionInternalServerError

NewCreateServiceVersionInternalServerError creates CreateServiceVersionInternalServerError with default headers values

func (*CreateServiceVersionInternalServerError) SetPayload

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

SetPayload sets the payload to the create service version internal server error response

func (*CreateServiceVersionInternalServerError) WithPayload

WithPayload adds the payload to the create service version internal server error response

func (*CreateServiceVersionInternalServerError) WriteResponse

WriteResponse to the client

type CreateServiceVersionParams

type CreateServiceVersionParams struct {

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

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

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

swagger:parameters CreateServiceVersion

func NewCreateServiceVersionParams

func NewCreateServiceVersionParams() CreateServiceVersionParams

NewCreateServiceVersionParams creates a new CreateServiceVersionParams object

There are no default values defined in the spec.

func (*CreateServiceVersionParams) 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 NewCreateServiceVersionParams() beforehand.

type CreateServiceVersionURL

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

CreateServiceVersionURL generates an URL for the create service version operation

func (*CreateServiceVersionURL) Build

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

Build a url path and query string

func (*CreateServiceVersionURL) BuildFull

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

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

func (*CreateServiceVersionURL) Must

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

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

func (*CreateServiceVersionURL) SetBasePath

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

func (o *CreateServiceVersionURL) String() string

String returns the string representation of the path with query string

func (*CreateServiceVersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateServiceVersionURL) 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 DeleteService

type DeleteService struct {
	Context *middleware.Context
	Handler DeleteServiceHandler
}
DeleteService swagger:route DELETE /service/delete Service deleteService

Delete Service

func NewDeleteService

func NewDeleteService(ctx *middleware.Context, handler DeleteServiceHandler) *DeleteService

NewDeleteService creates a new http.Handler for the delete service operation

func (*DeleteService) ServeHTTP

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

type DeleteServiceForbidden

type DeleteServiceForbidden struct {

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

DeleteServiceForbidden Delete Service Failed, cause do not have permisssion

swagger:response deleteServiceForbidden

func NewDeleteServiceForbidden

func NewDeleteServiceForbidden() *DeleteServiceForbidden

NewDeleteServiceForbidden creates DeleteServiceForbidden with default headers values

func (*DeleteServiceForbidden) SetPayload

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

SetPayload sets the payload to the delete service forbidden response

func (*DeleteServiceForbidden) WithPayload

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

WithPayload adds the payload to the delete service forbidden response

func (*DeleteServiceForbidden) WriteResponse

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

WriteResponse to the client

type DeleteServiceHandler

type DeleteServiceHandler interface {
	Handle(DeleteServiceParams, *models.AuthInfo) middleware.Responder
}

DeleteServiceHandler interface for that can handle valid delete service params

type DeleteServiceHandlerFunc

type DeleteServiceHandlerFunc func(DeleteServiceParams, *models.AuthInfo) middleware.Responder

DeleteServiceHandlerFunc turns a function with the right signature into a delete service handler

func (DeleteServiceHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteServiceInternalServerError

type DeleteServiceInternalServerError struct {

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

DeleteServiceInternalServerError Server Error

swagger:response deleteServiceInternalServerError

func NewDeleteServiceInternalServerError

func NewDeleteServiceInternalServerError() *DeleteServiceInternalServerError

NewDeleteServiceInternalServerError creates DeleteServiceInternalServerError with default headers values

func (*DeleteServiceInternalServerError) SetPayload

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

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

func (*DeleteServiceInternalServerError) WithPayload

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

func (*DeleteServiceInternalServerError) WriteResponse

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

WriteResponse to the client

type DeleteServiceOK

type DeleteServiceOK struct {

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

DeleteServiceOK Delete Service Success, return service info.

swagger:response deleteServiceOK

func NewDeleteServiceOK

func NewDeleteServiceOK() *DeleteServiceOK

NewDeleteServiceOK creates DeleteServiceOK with default headers values

func (*DeleteServiceOK) SetPayload

func (o *DeleteServiceOK) SetPayload(payload *models.ServiceInfo)

SetPayload sets the payload to the delete service o k response

func (*DeleteServiceOK) WithPayload

func (o *DeleteServiceOK) WithPayload(payload *models.ServiceInfo) *DeleteServiceOK

WithPayload adds the payload to the delete service o k response

func (*DeleteServiceOK) WriteResponse

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

WriteResponse to the client

type DeleteServiceParams

type DeleteServiceParams struct {

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

	/*
	  Required: true
	  In: query
	*/
	ID int64
}

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

swagger:parameters DeleteService

func NewDeleteServiceParams

func NewDeleteServiceParams() DeleteServiceParams

NewDeleteServiceParams creates a new DeleteServiceParams object

There are no default values defined in the spec.

func (*DeleteServiceParams) BindRequest

func (o *DeleteServiceParams) 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 NewDeleteServiceParams() beforehand.

type DeleteServiceURL

type DeleteServiceURL struct {
	ID int64
	// contains filtered or unexported fields
}

DeleteServiceURL generates an URL for the delete service operation

func (*DeleteServiceURL) Build

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

Build a url path and query string

func (*DeleteServiceURL) BuildFull

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

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

func (*DeleteServiceURL) Must

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

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

func (*DeleteServiceURL) SetBasePath

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

func (o *DeleteServiceURL) String() string

String returns the string representation of the path with query string

func (*DeleteServiceURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteServiceURL) WithBasePath

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

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 GetServiceVersion

type GetServiceVersion struct {
	Context *middleware.Context
	Handler GetServiceVersionHandler
}
GetServiceVersion swagger:route GET /service/version/get Service getServiceVersion

get Service Version by version ID.

func NewGetServiceVersion

func NewGetServiceVersion(ctx *middleware.Context, handler GetServiceVersionHandler) *GetServiceVersion

NewGetServiceVersion creates a new http.Handler for the get service version operation

func (*GetServiceVersion) ServeHTTP

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

type GetServiceVersionForbidden

type GetServiceVersionForbidden struct {

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

GetServiceVersionForbidden List Service Version Failed, cause do not have permisssion

swagger:response getServiceVersionForbidden

func NewGetServiceVersionForbidden

func NewGetServiceVersionForbidden() *GetServiceVersionForbidden

NewGetServiceVersionForbidden creates GetServiceVersionForbidden with default headers values

func (*GetServiceVersionForbidden) SetPayload

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

SetPayload sets the payload to the get service version forbidden response

func (*GetServiceVersionForbidden) WithPayload

WithPayload adds the payload to the get service version forbidden response

func (*GetServiceVersionForbidden) WriteResponse

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

WriteResponse to the client

type GetServiceVersionHandler

type GetServiceVersionHandler interface {
	Handle(GetServiceVersionParams, *models.AuthInfo) middleware.Responder
}

GetServiceVersionHandler interface for that can handle valid get service version params

type GetServiceVersionHandlerFunc

type GetServiceVersionHandlerFunc func(GetServiceVersionParams, *models.AuthInfo) middleware.Responder

GetServiceVersionHandlerFunc turns a function with the right signature into a get service version handler

func (GetServiceVersionHandlerFunc) Handle

Handle executing the request and returning a response

type GetServiceVersionInternalServerError

type GetServiceVersionInternalServerError struct {

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

GetServiceVersionInternalServerError Server Error

swagger:response getServiceVersionInternalServerError

func NewGetServiceVersionInternalServerError

func NewGetServiceVersionInternalServerError() *GetServiceVersionInternalServerError

NewGetServiceVersionInternalServerError creates GetServiceVersionInternalServerError with default headers values

func (*GetServiceVersionInternalServerError) SetPayload

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

SetPayload sets the payload to the get service version internal server error response

func (*GetServiceVersionInternalServerError) WithPayload

WithPayload adds the payload to the get service version internal server error response

func (*GetServiceVersionInternalServerError) WriteResponse

WriteResponse to the client

type GetServiceVersionOK

type GetServiceVersionOK struct {

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

GetServiceVersionOK List Service Version Success, return service version info.

swagger:response getServiceVersionOK

func NewGetServiceVersionOK

func NewGetServiceVersionOK() *GetServiceVersionOK

NewGetServiceVersionOK creates GetServiceVersionOK with default headers values

func (*GetServiceVersionOK) SetPayload

func (o *GetServiceVersionOK) SetPayload(payload *models.ServiceVersion)

SetPayload sets the payload to the get service version o k response

func (*GetServiceVersionOK) WithPayload

WithPayload adds the payload to the get service version o k response

func (*GetServiceVersionOK) WriteResponse

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

WriteResponse to the client

type GetServiceVersionParams

type GetServiceVersionParams struct {

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

	/*
	  Required: true
	  In: query
	*/
	ServiceID int64
	/*
	  Required: true
	  In: query
	*/
	VersionID int64
}

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

swagger:parameters GetServiceVersion

func NewGetServiceVersionParams

func NewGetServiceVersionParams() GetServiceVersionParams

NewGetServiceVersionParams creates a new GetServiceVersionParams object

There are no default values defined in the spec.

func (*GetServiceVersionParams) BindRequest

func (o *GetServiceVersionParams) 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 NewGetServiceVersionParams() beforehand.

type GetServiceVersionURL

type GetServiceVersionURL struct {
	ServiceID int64
	VersionID int64
	// contains filtered or unexported fields
}

GetServiceVersionURL generates an URL for the get service version operation

func (*GetServiceVersionURL) Build

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

Build a url path and query string

func (*GetServiceVersionURL) BuildFull

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

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

func (*GetServiceVersionURL) Must

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

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

func (*GetServiceVersionURL) SetBasePath

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

func (o *GetServiceVersionURL) String() string

String returns the string representation of the path with query string

func (*GetServiceVersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetServiceVersionURL) WithBasePath

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

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 ListService

type ListService struct {
	Context *middleware.Context
	Handler ListServiceHandler
}
ListService swagger:route GET /service/list Service listService

List Service by project ID, service ID, service name.

func NewListService

func NewListService(ctx *middleware.Context, handler ListServiceHandler) *ListService

NewListService creates a new http.Handler for the list service operation

func (*ListService) ServeHTTP

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

type ListServiceForbidden

type ListServiceForbidden struct {

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

ListServiceForbidden List Service Failed, cause do not have permisssion

swagger:response listServiceForbidden

func NewListServiceForbidden

func NewListServiceForbidden() *ListServiceForbidden

NewListServiceForbidden creates ListServiceForbidden with default headers values

func (*ListServiceForbidden) SetPayload

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

SetPayload sets the payload to the list service forbidden response

func (*ListServiceForbidden) WithPayload

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

WithPayload adds the payload to the list service forbidden response

func (*ListServiceForbidden) WriteResponse

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

WriteResponse to the client

type ListServiceHandler

type ListServiceHandler interface {
	Handle(ListServiceParams, *models.AuthInfo) middleware.Responder
}

ListServiceHandler interface for that can handle valid list service params

type ListServiceHandlerFunc

type ListServiceHandlerFunc func(ListServiceParams, *models.AuthInfo) middleware.Responder

ListServiceHandlerFunc turns a function with the right signature into a list service handler

func (ListServiceHandlerFunc) Handle

Handle executing the request and returning a response

type ListServiceInternalServerError

type ListServiceInternalServerError struct {

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

ListServiceInternalServerError Server Error

swagger:response listServiceInternalServerError

func NewListServiceInternalServerError

func NewListServiceInternalServerError() *ListServiceInternalServerError

NewListServiceInternalServerError creates ListServiceInternalServerError with default headers values

func (*ListServiceInternalServerError) SetPayload

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

SetPayload sets the payload to the list service internal server error response

func (*ListServiceInternalServerError) WithPayload

WithPayload adds the payload to the list service internal server error response

func (*ListServiceInternalServerError) WriteResponse

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

WriteResponse to the client

type ListServiceOK

type ListServiceOK struct {

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

ListServiceOK List All Services Success, return service info. (service name, service id, service description)

swagger:response listServiceOK

func NewListServiceOK

func NewListServiceOK() *ListServiceOK

NewListServiceOK creates ListServiceOK with default headers values

func (*ListServiceOK) SetPayload

func (o *ListServiceOK) SetPayload(payload *ListServiceOKBody)

SetPayload sets the payload to the list service o k response

func (*ListServiceOK) WithPayload

func (o *ListServiceOK) WithPayload(payload *ListServiceOKBody) *ListServiceOK

WithPayload adds the payload to the list service o k response

func (*ListServiceOK) WriteResponse

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

WriteResponse to the client

type ListServiceOKBody

type ListServiceOKBody struct {

	// services
	Services []*models.ServiceInfo `json:"services"`
}

ListServiceOKBody list service o k body

swagger:model ListServiceOKBody

func (*ListServiceOKBody) ContextValidate

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

ContextValidate validate this list service o k body based on the context it is used

func (*ListServiceOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListServiceOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListServiceOKBody) Validate

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

Validate validates this list service o k body

type ListServiceParams

type ListServiceParams struct {

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

	/*
	  In: query
	*/
	ProjectID *int64
	/*
	  In: query
	*/
	ServiceID *int64
	/*
	  In: query
	*/
	ServiceName *string
}

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

swagger:parameters ListService

func NewListServiceParams

func NewListServiceParams() ListServiceParams

NewListServiceParams creates a new ListServiceParams object

There are no default values defined in the spec.

func (*ListServiceParams) BindRequest

func (o *ListServiceParams) 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 NewListServiceParams() beforehand.

type ListServicePod

type ListServicePod struct {
	Context *middleware.Context
	Handler ListServicePodHandler
}
ListServicePod swagger:route GET /service/pod/list Service listServicePod

List Service Pod by service ID.

func NewListServicePod

func NewListServicePod(ctx *middleware.Context, handler ListServicePodHandler) *ListServicePod

NewListServicePod creates a new http.Handler for the list service pod operation

func (*ListServicePod) ServeHTTP

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

type ListServicePodForbidden

type ListServicePodForbidden struct {

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

ListServicePodForbidden List Service Pod Failed, cause do not have permisssion

swagger:response listServicePodForbidden

func NewListServicePodForbidden

func NewListServicePodForbidden() *ListServicePodForbidden

NewListServicePodForbidden creates ListServicePodForbidden with default headers values

func (*ListServicePodForbidden) SetPayload

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

SetPayload sets the payload to the list service pod forbidden response

func (*ListServicePodForbidden) WithPayload

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

WithPayload adds the payload to the list service pod forbidden response

func (*ListServicePodForbidden) WriteResponse

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

WriteResponse to the client

type ListServicePodHandler

type ListServicePodHandler interface {
	Handle(ListServicePodParams, *models.AuthInfo) middleware.Responder
}

ListServicePodHandler interface for that can handle valid list service pod params

type ListServicePodHandlerFunc

type ListServicePodHandlerFunc func(ListServicePodParams, *models.AuthInfo) middleware.Responder

ListServicePodHandlerFunc turns a function with the right signature into a list service pod handler

func (ListServicePodHandlerFunc) Handle

Handle executing the request and returning a response

type ListServicePodInternalServerError

type ListServicePodInternalServerError struct {

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

ListServicePodInternalServerError Server Error

swagger:response listServicePodInternalServerError

func NewListServicePodInternalServerError

func NewListServicePodInternalServerError() *ListServicePodInternalServerError

NewListServicePodInternalServerError creates ListServicePodInternalServerError with default headers values

func (*ListServicePodInternalServerError) SetPayload

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

SetPayload sets the payload to the list service pod internal server error response

func (*ListServicePodInternalServerError) WithPayload

WithPayload adds the payload to the list service pod internal server error response

func (*ListServicePodInternalServerError) WriteResponse

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

WriteResponse to the client

type ListServicePodOK

type ListServicePodOK struct {

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

ListServicePodOK List Service Pod Success, return service pod info.

swagger:response listServicePodOK

func NewListServicePodOK

func NewListServicePodOK() *ListServicePodOK

NewListServicePodOK creates ListServicePodOK with default headers values

func (*ListServicePodOK) SetPayload

func (o *ListServicePodOK) SetPayload(payload *ListServicePodOKBody)

SetPayload sets the payload to the list service pod o k response

func (*ListServicePodOK) WithPayload

func (o *ListServicePodOK) WithPayload(payload *ListServicePodOKBody) *ListServicePodOK

WithPayload adds the payload to the list service pod o k response

func (*ListServicePodOK) WriteResponse

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

WriteResponse to the client

type ListServicePodOKBody

type ListServicePodOKBody struct {

	// pods
	Pods []*models.PodInfo `json:"pods"`
}

ListServicePodOKBody list service pod o k body

swagger:model ListServicePodOKBody

func (*ListServicePodOKBody) ContextValidate

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

ContextValidate validate this list service pod o k body based on the context it is used

func (*ListServicePodOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListServicePodOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListServicePodOKBody) Validate

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

Validate validates this list service pod o k body

type ListServicePodParams

type ListServicePodParams struct {

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

	/*
	  Required: true
	  In: query
	*/
	ServiceID int64
}

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

swagger:parameters ListServicePod

func NewListServicePodParams

func NewListServicePodParams() ListServicePodParams

NewListServicePodParams creates a new ListServicePodParams object

There are no default values defined in the spec.

func (*ListServicePodParams) BindRequest

func (o *ListServicePodParams) 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 NewListServicePodParams() beforehand.

type ListServicePodURL

type ListServicePodURL struct {
	ServiceID int64
	// contains filtered or unexported fields
}

ListServicePodURL generates an URL for the list service pod operation

func (*ListServicePodURL) Build

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

Build a url path and query string

func (*ListServicePodURL) BuildFull

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

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

func (*ListServicePodURL) Must

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

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

func (*ListServicePodURL) SetBasePath

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

func (o *ListServicePodURL) String() string

String returns the string representation of the path with query string

func (*ListServicePodURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListServicePodURL) WithBasePath

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

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 ListServiceURL

type ListServiceURL struct {
	ProjectID   *int64
	ServiceID   *int64
	ServiceName *string
	// contains filtered or unexported fields
}

ListServiceURL generates an URL for the list service operation

func (*ListServiceURL) Build

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

Build a url path and query string

func (*ListServiceURL) BuildFull

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

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

func (*ListServiceURL) Must

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

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

func (*ListServiceURL) SetBasePath

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

func (o *ListServiceURL) String() string

String returns the string representation of the path with query string

func (*ListServiceURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListServiceURL) WithBasePath

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

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 ListServiceVersion

type ListServiceVersion struct {
	Context *middleware.Context
	Handler ListServiceVersionHandler
}
ListServiceVersion swagger:route GET /service/version/list Service listServiceVersion

List Service Version by service ID.

func NewListServiceVersion

func NewListServiceVersion(ctx *middleware.Context, handler ListServiceVersionHandler) *ListServiceVersion

NewListServiceVersion creates a new http.Handler for the list service version operation

func (*ListServiceVersion) ServeHTTP

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

type ListServiceVersionForbidden

type ListServiceVersionForbidden struct {

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

ListServiceVersionForbidden List Service Version Failed, cause do not have permisssion

swagger:response listServiceVersionForbidden

func NewListServiceVersionForbidden

func NewListServiceVersionForbidden() *ListServiceVersionForbidden

NewListServiceVersionForbidden creates ListServiceVersionForbidden with default headers values

func (*ListServiceVersionForbidden) SetPayload

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

SetPayload sets the payload to the list service version forbidden response

func (*ListServiceVersionForbidden) WithPayload

WithPayload adds the payload to the list service version forbidden response

func (*ListServiceVersionForbidden) WriteResponse

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

WriteResponse to the client

type ListServiceVersionHandler

type ListServiceVersionHandler interface {
	Handle(ListServiceVersionParams, *models.AuthInfo) middleware.Responder
}

ListServiceVersionHandler interface for that can handle valid list service version params

type ListServiceVersionHandlerFunc

type ListServiceVersionHandlerFunc func(ListServiceVersionParams, *models.AuthInfo) middleware.Responder

ListServiceVersionHandlerFunc turns a function with the right signature into a list service version handler

func (ListServiceVersionHandlerFunc) Handle

Handle executing the request and returning a response

type ListServiceVersionInternalServerError

type ListServiceVersionInternalServerError struct {

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

ListServiceVersionInternalServerError Server Error

swagger:response listServiceVersionInternalServerError

func NewListServiceVersionInternalServerError

func NewListServiceVersionInternalServerError() *ListServiceVersionInternalServerError

NewListServiceVersionInternalServerError creates ListServiceVersionInternalServerError with default headers values

func (*ListServiceVersionInternalServerError) SetPayload

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

SetPayload sets the payload to the list service version internal server error response

func (*ListServiceVersionInternalServerError) WithPayload

WithPayload adds the payload to the list service version internal server error response

func (*ListServiceVersionInternalServerError) WriteResponse

WriteResponse to the client

type ListServiceVersionOK

type ListServiceVersionOK struct {

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

ListServiceVersionOK List Service Version Success, return service version info.

swagger:response listServiceVersionOK

func NewListServiceVersionOK

func NewListServiceVersionOK() *ListServiceVersionOK

NewListServiceVersionOK creates ListServiceVersionOK with default headers values

func (*ListServiceVersionOK) SetPayload

func (o *ListServiceVersionOK) SetPayload(payload *ListServiceVersionOKBody)

SetPayload sets the payload to the list service version o k response

func (*ListServiceVersionOK) WithPayload

WithPayload adds the payload to the list service version o k response

func (*ListServiceVersionOK) WriteResponse

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

WriteResponse to the client

type ListServiceVersionOKBody

type ListServiceVersionOKBody struct {

	// versions
	Versions []*models.ServiceVersion `json:"versions"`
}

ListServiceVersionOKBody list service version o k body

swagger:model ListServiceVersionOKBody

func (*ListServiceVersionOKBody) ContextValidate

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

ContextValidate validate this list service version o k body based on the context it is used

func (*ListServiceVersionOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListServiceVersionOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListServiceVersionOKBody) Validate

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

Validate validates this list service version o k body

type ListServiceVersionParams

type ListServiceVersionParams struct {

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

	/*
	  Required: true
	  In: query
	*/
	ServiceID int64
}

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

swagger:parameters ListServiceVersion

func NewListServiceVersionParams

func NewListServiceVersionParams() ListServiceVersionParams

NewListServiceVersionParams creates a new ListServiceVersionParams object

There are no default values defined in the spec.

func (*ListServiceVersionParams) 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 NewListServiceVersionParams() beforehand.

type ListServiceVersionURL

type ListServiceVersionURL struct {
	ServiceID int64
	// contains filtered or unexported fields
}

ListServiceVersionURL generates an URL for the list service version operation

func (*ListServiceVersionURL) Build

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

Build a url path and query string

func (*ListServiceVersionURL) BuildFull

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

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

func (*ListServiceVersionURL) Must

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

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

func (*ListServiceVersionURL) SetBasePath

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

func (o *ListServiceVersionURL) String() string

String returns the string representation of the path with query string

func (*ListServiceVersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListServiceVersionURL) WithBasePath

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

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 UpdateServiceDescription

type UpdateServiceDescription struct {
	Context *middleware.Context
	Handler UpdateServiceDescriptionHandler
}
UpdateServiceDescription swagger:route PUT /service/update/desc Service updateServiceDescription

Update Service Description

func NewUpdateServiceDescription

func NewUpdateServiceDescription(ctx *middleware.Context, handler UpdateServiceDescriptionHandler) *UpdateServiceDescription

NewUpdateServiceDescription creates a new http.Handler for the update service description operation

func (*UpdateServiceDescription) ServeHTTP

type UpdateServiceDescriptionForbidden

type UpdateServiceDescriptionForbidden struct {

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

UpdateServiceDescriptionForbidden Update Service Description Failed, cause do not have permisssion

swagger:response updateServiceDescriptionForbidden

func NewUpdateServiceDescriptionForbidden

func NewUpdateServiceDescriptionForbidden() *UpdateServiceDescriptionForbidden

NewUpdateServiceDescriptionForbidden creates UpdateServiceDescriptionForbidden with default headers values

func (*UpdateServiceDescriptionForbidden) SetPayload

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

SetPayload sets the payload to the update service description forbidden response

func (*UpdateServiceDescriptionForbidden) WithPayload

WithPayload adds the payload to the update service description forbidden response

func (*UpdateServiceDescriptionForbidden) WriteResponse

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

WriteResponse to the client

type UpdateServiceDescriptionHandler

type UpdateServiceDescriptionHandler interface {
	Handle(UpdateServiceDescriptionParams, *models.AuthInfo) middleware.Responder
}

UpdateServiceDescriptionHandler interface for that can handle valid update service description params

type UpdateServiceDescriptionHandlerFunc

type UpdateServiceDescriptionHandlerFunc func(UpdateServiceDescriptionParams, *models.AuthInfo) middleware.Responder

UpdateServiceDescriptionHandlerFunc turns a function with the right signature into a update service description handler

func (UpdateServiceDescriptionHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateServiceDescriptionInternalServerError

type UpdateServiceDescriptionInternalServerError struct {

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

UpdateServiceDescriptionInternalServerError Server Error

swagger:response updateServiceDescriptionInternalServerError

func NewUpdateServiceDescriptionInternalServerError

func NewUpdateServiceDescriptionInternalServerError() *UpdateServiceDescriptionInternalServerError

NewUpdateServiceDescriptionInternalServerError creates UpdateServiceDescriptionInternalServerError with default headers values

func (*UpdateServiceDescriptionInternalServerError) SetPayload

SetPayload sets the payload to the update service description internal server error response

func (*UpdateServiceDescriptionInternalServerError) WithPayload

WithPayload adds the payload to the update service description internal server error response

func (*UpdateServiceDescriptionInternalServerError) WriteResponse

WriteResponse to the client

type UpdateServiceDescriptionOK

type UpdateServiceDescriptionOK struct {

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

UpdateServiceDescriptionOK Update Service Description Success, return service info.

swagger:response updateServiceDescriptionOK

func NewUpdateServiceDescriptionOK

func NewUpdateServiceDescriptionOK() *UpdateServiceDescriptionOK

NewUpdateServiceDescriptionOK creates UpdateServiceDescriptionOK with default headers values

func (*UpdateServiceDescriptionOK) SetPayload

func (o *UpdateServiceDescriptionOK) SetPayload(payload *models.ServiceInfo)

SetPayload sets the payload to the update service description o k response

func (*UpdateServiceDescriptionOK) WithPayload

WithPayload adds the payload to the update service description o k response

func (*UpdateServiceDescriptionOK) WriteResponse

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

WriteResponse to the client

type UpdateServiceDescriptionParams

type UpdateServiceDescriptionParams struct {

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

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

UpdateServiceDescriptionParams contains all the bound params for the update service description operation typically these are obtained from a http.Request

swagger:parameters UpdateServiceDescription

func NewUpdateServiceDescriptionParams

func NewUpdateServiceDescriptionParams() UpdateServiceDescriptionParams

NewUpdateServiceDescriptionParams creates a new UpdateServiceDescriptionParams object

There are no default values defined in the spec.

func (*UpdateServiceDescriptionParams) 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 NewUpdateServiceDescriptionParams() beforehand.

type UpdateServiceDescriptionURL

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

UpdateServiceDescriptionURL generates an URL for the update service description operation

func (*UpdateServiceDescriptionURL) Build

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

Build a url path and query string

func (*UpdateServiceDescriptionURL) BuildFull

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

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

func (*UpdateServiceDescriptionURL) Must

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

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

func (*UpdateServiceDescriptionURL) SetBasePath

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

func (o *UpdateServiceDescriptionURL) String() string

String returns the string representation of the path with query string

func (*UpdateServiceDescriptionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateServiceDescriptionURL) 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 UpdateServiceVersion

type UpdateServiceVersion struct {
	Context *middleware.Context
	Handler UpdateServiceVersionHandler
}
UpdateServiceVersion swagger:route PUT /service/update/deploy Service updateServiceVersion

Update Service Version

func NewUpdateServiceVersion

func NewUpdateServiceVersion(ctx *middleware.Context, handler UpdateServiceVersionHandler) *UpdateServiceVersion

NewUpdateServiceVersion creates a new http.Handler for the update service version operation

func (*UpdateServiceVersion) ServeHTTP

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

type UpdateServiceVersionForbidden

type UpdateServiceVersionForbidden struct {

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

UpdateServiceVersionForbidden Update Service Version Failed, cause do not have permisssion

swagger:response updateServiceVersionForbidden

func NewUpdateServiceVersionForbidden

func NewUpdateServiceVersionForbidden() *UpdateServiceVersionForbidden

NewUpdateServiceVersionForbidden creates UpdateServiceVersionForbidden with default headers values

func (*UpdateServiceVersionForbidden) SetPayload

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

SetPayload sets the payload to the update service version forbidden response

func (*UpdateServiceVersionForbidden) WithPayload

WithPayload adds the payload to the update service version forbidden response

func (*UpdateServiceVersionForbidden) WriteResponse

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

WriteResponse to the client

type UpdateServiceVersionHandler

type UpdateServiceVersionHandler interface {
	Handle(UpdateServiceVersionParams, *models.AuthInfo) middleware.Responder
}

UpdateServiceVersionHandler interface for that can handle valid update service version params

type UpdateServiceVersionHandlerFunc

type UpdateServiceVersionHandlerFunc func(UpdateServiceVersionParams, *models.AuthInfo) middleware.Responder

UpdateServiceVersionHandlerFunc turns a function with the right signature into a update service version handler

func (UpdateServiceVersionHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateServiceVersionInternalServerError

type UpdateServiceVersionInternalServerError struct {

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

UpdateServiceVersionInternalServerError Server Error

swagger:response updateServiceVersionInternalServerError

func NewUpdateServiceVersionInternalServerError

func NewUpdateServiceVersionInternalServerError() *UpdateServiceVersionInternalServerError

NewUpdateServiceVersionInternalServerError creates UpdateServiceVersionInternalServerError with default headers values

func (*UpdateServiceVersionInternalServerError) SetPayload

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

SetPayload sets the payload to the update service version internal server error response

func (*UpdateServiceVersionInternalServerError) WithPayload

WithPayload adds the payload to the update service version internal server error response

func (*UpdateServiceVersionInternalServerError) WriteResponse

WriteResponse to the client

type UpdateServiceVersionOK

type UpdateServiceVersionOK struct {

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

UpdateServiceVersionOK Update Service Version Success, return service info.

swagger:response updateServiceVersionOK

func NewUpdateServiceVersionOK

func NewUpdateServiceVersionOK() *UpdateServiceVersionOK

NewUpdateServiceVersionOK creates UpdateServiceVersionOK with default headers values

func (*UpdateServiceVersionOK) SetPayload

func (o *UpdateServiceVersionOK) SetPayload(payload *models.ServiceInfo)

SetPayload sets the payload to the update service version o k response

func (*UpdateServiceVersionOK) WithPayload

WithPayload adds the payload to the update service version o k response

func (*UpdateServiceVersionOK) WriteResponse

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

WriteResponse to the client

type UpdateServiceVersionParams

type UpdateServiceVersionParams struct {

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

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

UpdateServiceVersionParams contains all the bound params for the update service version operation typically these are obtained from a http.Request

swagger:parameters UpdateServiceVersion

func NewUpdateServiceVersionParams

func NewUpdateServiceVersionParams() UpdateServiceVersionParams

NewUpdateServiceVersionParams creates a new UpdateServiceVersionParams object

There are no default values defined in the spec.

func (*UpdateServiceVersionParams) 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 NewUpdateServiceVersionParams() beforehand.

type UpdateServiceVersionURL

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

UpdateServiceVersionURL generates an URL for the update service version operation

func (*UpdateServiceVersionURL) Build

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

Build a url path and query string

func (*UpdateServiceVersionURL) BuildFull

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

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

func (*UpdateServiceVersionURL) Must

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

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

func (*UpdateServiceVersionURL) SetBasePath

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

func (o *UpdateServiceVersionURL) String() string

String returns the string representation of the path with query string

func (*UpdateServiceVersionURL) StringFull

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

StringFull returns the string representation of a complete url

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

Jump to

Keyboard shortcuts

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