services

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CreateOrUpdateServiceOKCode int = 200

CreateOrUpdateServiceOKCode is the HTTP code returned for type CreateOrUpdateServiceOK

View Source
const DeleteServiceNoContentCode int = 204

DeleteServiceNoContentCode is the HTTP code returned for type DeleteServiceNoContent

View Source
const GetServiceOKCode int = 200

GetServiceOKCode is the HTTP code returned for type GetServiceOK

View Source
const GetServicesOKCode int = 200

GetServicesOKCode is the HTTP code returned for type GetServicesOK

View Source
const ListServicesOKCode int = 200

ListServicesOKCode is the HTTP code returned for type ListServicesOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrUpdateService

type CreateOrUpdateService struct {
	Context *middleware.Context
	Handler CreateOrUpdateServiceHandler
}

CreateOrUpdateService swagger:route PUT /services/{name} services createOrUpdateService

CreateOrUpdateService create or update service API

func NewCreateOrUpdateService

func NewCreateOrUpdateService(ctx *middleware.Context, handler CreateOrUpdateServiceHandler) *CreateOrUpdateService

NewCreateOrUpdateService creates a new http.Handler for the create or update service operation

func (*CreateOrUpdateService) ServeHTTP

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

type CreateOrUpdateServiceDefault

type CreateOrUpdateServiceDefault struct {

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

CreateOrUpdateServiceDefault error

swagger:response createOrUpdateServiceDefault

func NewCreateOrUpdateServiceDefault

func NewCreateOrUpdateServiceDefault(code int) *CreateOrUpdateServiceDefault

NewCreateOrUpdateServiceDefault creates CreateOrUpdateServiceDefault with default headers values

func (*CreateOrUpdateServiceDefault) SetPayload

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

SetPayload sets the payload to the create or update service default response

func (*CreateOrUpdateServiceDefault) SetStatusCode

func (o *CreateOrUpdateServiceDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create or update service default response

func (*CreateOrUpdateServiceDefault) WithPayload

WithPayload adds the payload to the create or update service default response

func (*CreateOrUpdateServiceDefault) WithStatusCode

WithStatusCode adds the status to the create or update service default response

func (*CreateOrUpdateServiceDefault) WriteResponse

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

WriteResponse to the client

type CreateOrUpdateServiceHandler

type CreateOrUpdateServiceHandler interface {
	Handle(CreateOrUpdateServiceParams) middleware.Responder
}

CreateOrUpdateServiceHandler interface for that can handle valid create or update service params

type CreateOrUpdateServiceHandlerFunc

type CreateOrUpdateServiceHandlerFunc func(CreateOrUpdateServiceParams) middleware.Responder

CreateOrUpdateServiceHandlerFunc turns a function with the right signature into a create or update service handler

func (CreateOrUpdateServiceHandlerFunc) Handle

Handle executing the request and returning a response

type CreateOrUpdateServiceOK

type CreateOrUpdateServiceOK struct {

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

CreateOrUpdateServiceOK OK

swagger:response createOrUpdateServiceOK

func NewCreateOrUpdateServiceOK

func NewCreateOrUpdateServiceOK() *CreateOrUpdateServiceOK

NewCreateOrUpdateServiceOK creates CreateOrUpdateServiceOK with default headers values

func (*CreateOrUpdateServiceOK) SetPayload

func (o *CreateOrUpdateServiceOK) SetPayload(payload *models.Service)

SetPayload sets the payload to the create or update service o k response

func (*CreateOrUpdateServiceOK) WithPayload

WithPayload adds the payload to the create or update service o k response

func (*CreateOrUpdateServiceOK) WriteResponse

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

WriteResponse to the client

type CreateOrUpdateServiceParams

type CreateOrUpdateServiceParams struct {

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

	/*
	  In: body
	*/
	Body *models.Service
	/*
	  Required: true
	  In: path
	*/
	Name string
}

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

swagger:parameters createOrUpdateService

func NewCreateOrUpdateServiceParams

func NewCreateOrUpdateServiceParams() CreateOrUpdateServiceParams

NewCreateOrUpdateServiceParams creates a new CreateOrUpdateServiceParams object with the default values initialized.

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

type CreateOrUpdateServiceURL

type CreateOrUpdateServiceURL struct {
	Name string
	// contains filtered or unexported fields
}

CreateOrUpdateServiceURL generates an URL for the create or update service operation

func (*CreateOrUpdateServiceURL) Build

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

Build a url path and query string

func (*CreateOrUpdateServiceURL) BuildFull

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

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

func (*CreateOrUpdateServiceURL) Must

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

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

func (*CreateOrUpdateServiceURL) SetBasePath

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

func (o *CreateOrUpdateServiceURL) String() string

String returns the string representation of the path with query string

func (*CreateOrUpdateServiceURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateOrUpdateServiceURL) 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 /services/{name} services deleteService

DeleteService delete service API

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 DeleteServiceDefault

type DeleteServiceDefault struct {

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

DeleteServiceDefault error

swagger:response deleteServiceDefault

func NewDeleteServiceDefault

func NewDeleteServiceDefault(code int) *DeleteServiceDefault

NewDeleteServiceDefault creates DeleteServiceDefault with default headers values

func (*DeleteServiceDefault) SetPayload

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

SetPayload sets the payload to the delete service default response

func (*DeleteServiceDefault) SetStatusCode

func (o *DeleteServiceDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete service default response

func (*DeleteServiceDefault) WithPayload

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

WithPayload adds the payload to the delete service default response

func (*DeleteServiceDefault) WithStatusCode

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

WithStatusCode adds the status to the delete service default response

func (*DeleteServiceDefault) WriteResponse

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

WriteResponse to the client

type DeleteServiceHandler

type DeleteServiceHandler interface {
	Handle(DeleteServiceParams) middleware.Responder
}

DeleteServiceHandler interface for that can handle valid delete service params

type DeleteServiceHandlerFunc

type DeleteServiceHandlerFunc func(DeleteServiceParams) 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 DeleteServiceNoContent

type DeleteServiceNoContent struct {
}

DeleteServiceNoContent Deleted

swagger:response deleteServiceNoContent

func NewDeleteServiceNoContent

func NewDeleteServiceNoContent() *DeleteServiceNoContent

NewDeleteServiceNoContent creates DeleteServiceNoContent with default headers values

func (*DeleteServiceNoContent) WriteResponse

func (o *DeleteServiceNoContent) 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: path
	*/
	Name string
}

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

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

type DeleteServiceURL

type DeleteServiceURL struct {
	Name string
	// 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 GetService

type GetService struct {
	Context *middleware.Context
	Handler GetServiceHandler
}

GetService swagger:route GET /services/{name} services getService

GetService get service API

func NewGetService

func NewGetService(ctx *middleware.Context, handler GetServiceHandler) *GetService

NewGetService creates a new http.Handler for the get service operation

func (*GetService) ServeHTTP

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

type GetServiceDefault

type GetServiceDefault struct {

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

GetServiceDefault error

swagger:response getServiceDefault

func NewGetServiceDefault

func NewGetServiceDefault(code int) *GetServiceDefault

NewGetServiceDefault creates GetServiceDefault with default headers values

func (*GetServiceDefault) SetPayload

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

SetPayload sets the payload to the get service default response

func (*GetServiceDefault) SetStatusCode

func (o *GetServiceDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get service default response

func (*GetServiceDefault) WithPayload

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

WithPayload adds the payload to the get service default response

func (*GetServiceDefault) WithStatusCode

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

WithStatusCode adds the status to the get service default response

func (*GetServiceDefault) WriteResponse

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

WriteResponse to the client

type GetServiceHandler

type GetServiceHandler interface {
	Handle(GetServiceParams) middleware.Responder
}

GetServiceHandler interface for that can handle valid get service params

type GetServiceHandlerFunc

type GetServiceHandlerFunc func(GetServiceParams) middleware.Responder

GetServiceHandlerFunc turns a function with the right signature into a get service handler

func (GetServiceHandlerFunc) Handle

Handle executing the request and returning a response

type GetServiceOK

type GetServiceOK struct {

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

GetServiceOK OK

swagger:response getServiceOK

func NewGetServiceOK

func NewGetServiceOK() *GetServiceOK

NewGetServiceOK creates GetServiceOK with default headers values

func (*GetServiceOK) SetPayload

func (o *GetServiceOK) SetPayload(payload *models.Service)

SetPayload sets the payload to the get service o k response

func (*GetServiceOK) WithPayload

func (o *GetServiceOK) WithPayload(payload *models.Service) *GetServiceOK

WithPayload adds the payload to the get service o k response

func (*GetServiceOK) WriteResponse

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

WriteResponse to the client

type GetServiceParams

type GetServiceParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	Name string
}

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

swagger:parameters getService

func NewGetServiceParams

func NewGetServiceParams() GetServiceParams

NewGetServiceParams creates a new GetServiceParams object with the default values initialized.

func (*GetServiceParams) BindRequest

func (o *GetServiceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetServiceURL

type GetServiceURL struct {
	Name string
	// contains filtered or unexported fields
}

GetServiceURL generates an URL for the get service operation

func (*GetServiceURL) Build

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

Build a url path and query string

func (*GetServiceURL) BuildFull

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

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

func (*GetServiceURL) Must

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

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

func (*GetServiceURL) SetBasePath

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

func (o *GetServiceURL) String() string

String returns the string representation of the path with query string

func (*GetServiceURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetServiceURL) WithBasePath

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

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 GetServices

type GetServices struct {
	Context *middleware.Context
	Handler GetServicesHandler
}

GetServices swagger:route GET /services services getServices

GetServices get services API

func NewGetServices

func NewGetServices(ctx *middleware.Context, handler GetServicesHandler) *GetServices

NewGetServices creates a new http.Handler for the get services operation

func (*GetServices) ServeHTTP

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

type GetServicesHandler

type GetServicesHandler interface {
	Handle(GetServicesParams) middleware.Responder
}

GetServicesHandler interface for that can handle valid get services params

type GetServicesHandlerFunc

type GetServicesHandlerFunc func(GetServicesParams) middleware.Responder

GetServicesHandlerFunc turns a function with the right signature into a get services handler

func (GetServicesHandlerFunc) Handle

Handle executing the request and returning a response

type GetServicesOK

type GetServicesOK struct {

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

GetServicesOK list the services

swagger:response getServicesOK

func NewGetServicesOK

func NewGetServicesOK() *GetServicesOK

NewGetServicesOK creates GetServicesOK with default headers values

func (*GetServicesOK) SetPayload

func (o *GetServicesOK) SetPayload(payload []*models.Service)

SetPayload sets the payload to the get services o k response

func (*GetServicesOK) WithPayload

func (o *GetServicesOK) WithPayload(payload []*models.Service) *GetServicesOK

WithPayload adds the payload to the get services o k response

func (*GetServicesOK) WriteResponse

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

WriteResponse to the client

type GetServicesParams

type GetServicesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

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

swagger:parameters GetServices

func NewGetServicesParams

func NewGetServicesParams() GetServicesParams

NewGetServicesParams creates a new GetServicesParams object with the default values initialized.

func (*GetServicesParams) BindRequest

func (o *GetServicesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetServicesURL

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

GetServicesURL generates an URL for the get services operation

func (*GetServicesURL) Build

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

Build a url path and query string

func (*GetServicesURL) BuildFull

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

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

func (*GetServicesURL) Must

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

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

func (*GetServicesURL) SetBasePath

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

func (o *GetServicesURL) String() string

String returns the string representation of the path with query string

func (*GetServicesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetServicesURL) WithBasePath

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

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 ListServices

type ListServices struct {
	Context *middleware.Context
	Handler ListServicesHandler
}

ListServices swagger:route GET /services services listServices

ListServices list services API

func NewListServices

func NewListServices(ctx *middleware.Context, handler ListServicesHandler) *ListServices

NewListServices creates a new http.Handler for the list services operation

func (*ListServices) ServeHTTP

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

type ListServicesHandler

type ListServicesHandler interface {
	Handle(ListServicesParams) middleware.Responder
}

ListServicesHandler interface for that can handle valid list services params

type ListServicesHandlerFunc

type ListServicesHandlerFunc func(ListServicesParams) middleware.Responder

ListServicesHandlerFunc turns a function with the right signature into a list services handler

func (ListServicesHandlerFunc) Handle

Handle executing the request and returning a response

type ListServicesOK

type ListServicesOK struct {

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

ListServicesOK list the services

swagger:response listServicesOK

func NewListServicesOK

func NewListServicesOK() *ListServicesOK

NewListServicesOK creates ListServicesOK with default headers values

func (*ListServicesOK) SetPayload

func (o *ListServicesOK) SetPayload(payload models.ListServicesOKBody)

SetPayload sets the payload to the list services o k response

func (*ListServicesOK) WithPayload

func (o *ListServicesOK) WithPayload(payload models.ListServicesOKBody) *ListServicesOK

WithPayload adds the payload to the list services o k response

func (*ListServicesOK) WriteResponse

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

WriteResponse to the client

type ListServicesParams

type ListServicesParams struct {

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

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

swagger:parameters listServices

func NewListServicesParams

func NewListServicesParams() ListServicesParams

NewListServicesParams creates a new ListServicesParams object with the default values initialized.

func (*ListServicesParams) BindRequest

func (o *ListServicesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type ListServicesURL

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

ListServicesURL generates an URL for the list services operation

func (*ListServicesURL) Build

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

Build a url path and query string

func (*ListServicesURL) BuildFull

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

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

func (*ListServicesURL) Must

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

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

func (*ListServicesURL) SetBasePath

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

func (o *ListServicesURL) String() string

String returns the string representation of the path with query string

func (*ListServicesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListServicesURL) WithBasePath

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

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