routes

package
v0.0.0-...-7977c27 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AssociateAppWithRouteCreatedCode int = 201

AssociateAppWithRouteCreatedCode is the HTTP code returned for type AssociateAppWithRouteCreated

View Source
const CheckRouteExistsNoContentCode int = 204

CheckRouteExistsNoContentCode is the HTTP code returned for type CheckRouteExistsNoContent

View Source
const CreateRouteCreatedCode int = 201

CreateRouteCreatedCode is the HTTP code returned for type CreateRouteCreated

View Source
const DeleteRouteNoContentCode int = 204

DeleteRouteNoContentCode is the HTTP code returned for type DeleteRouteNoContent

View Source
const ListAllAppsForRouteOKCode int = 200

ListAllAppsForRouteOKCode is the HTTP code returned for type ListAllAppsForRouteOK

View Source
const ListAllRoutesOKCode int = 200

ListAllRoutesOKCode is the HTTP code returned for type ListAllRoutesOK

View Source
const RemoveAppFromRouteCreatedCode int = 201

RemoveAppFromRouteCreatedCode is the HTTP code returned for type RemoveAppFromRouteCreated

View Source
const RetrieveRouteOKCode int = 200

RetrieveRouteOKCode is the HTTP code returned for type RetrieveRouteOK

View Source
const UpdateRouteCreatedCode int = 201

UpdateRouteCreatedCode is the HTTP code returned for type UpdateRouteCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociateAppWithRoute

type AssociateAppWithRoute struct {
	Context *middleware.Context
	Handler AssociateAppWithRouteHandler
}

AssociateAppWithRoute swagger:route PUT /routes/{guid}/apps/{app_guid} routes associateAppWithRoute

Associate App with the Route

curl --insecure -i %s/v2/routes/{guid}/apps/{app_guid} -X PUT -H 'Authorization: %s'

func NewAssociateAppWithRoute

func NewAssociateAppWithRoute(ctx *middleware.Context, handler AssociateAppWithRouteHandler) *AssociateAppWithRoute

NewAssociateAppWithRoute creates a new http.Handler for the associate app with route operation

func (*AssociateAppWithRoute) ServeHTTP

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

type AssociateAppWithRouteCreated

type AssociateAppWithRouteCreated struct {

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

AssociateAppWithRouteCreated successful response

swagger:response associateAppWithRouteCreated

func NewAssociateAppWithRouteCreated

func NewAssociateAppWithRouteCreated() *AssociateAppWithRouteCreated

NewAssociateAppWithRouteCreated creates AssociateAppWithRouteCreated with default headers values

func (*AssociateAppWithRouteCreated) SetPayload

SetPayload sets the payload to the associate app with route created response

func (*AssociateAppWithRouteCreated) WithPayload

WithPayload adds the payload to the associate app with route created response

func (*AssociateAppWithRouteCreated) WriteResponse

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

WriteResponse to the client

type AssociateAppWithRouteHandler

type AssociateAppWithRouteHandler interface {
	Handle(AssociateAppWithRouteParams) middleware.Responder
}

AssociateAppWithRouteHandler interface for that can handle valid associate app with route params

type AssociateAppWithRouteHandlerFunc

type AssociateAppWithRouteHandlerFunc func(AssociateAppWithRouteParams) middleware.Responder

AssociateAppWithRouteHandlerFunc turns a function with the right signature into a associate app with route handler

func (AssociateAppWithRouteHandlerFunc) Handle

Handle executing the request and returning a response

type AssociateAppWithRouteParams

type AssociateAppWithRouteParams struct {

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

	/*The app_guid parameter is used as a part of the request URL: '/v2/routes/:guid/apps/:app_guid'
	  Required: true
	  In: path
	*/
	AppGUID string
	/*The guid parameter is used as a part of the request URL: '/v2/routes/:guid/apps/:app_guid'
	  Required: true
	  In: path
	*/
	GUID string
}

AssociateAppWithRouteParams contains all the bound params for the associate app with route operation typically these are obtained from a http.Request

swagger:parameters associateAppWithRoute

func NewAssociateAppWithRouteParams

func NewAssociateAppWithRouteParams() AssociateAppWithRouteParams

NewAssociateAppWithRouteParams creates a new AssociateAppWithRouteParams object no default values defined in spec.

func (*AssociateAppWithRouteParams) 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 NewAssociateAppWithRouteParams() beforehand.

type AssociateAppWithRouteURL

type AssociateAppWithRouteURL struct {
	AppGUID string
	GUID    string
	// contains filtered or unexported fields
}

AssociateAppWithRouteURL generates an URL for the associate app with route operation

func (*AssociateAppWithRouteURL) Build

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

Build a url path and query string

func (*AssociateAppWithRouteURL) BuildFull

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

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

func (*AssociateAppWithRouteURL) Must

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

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

func (*AssociateAppWithRouteURL) SetBasePath

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

func (o *AssociateAppWithRouteURL) String() string

String returns the string representation of the path with query string

func (*AssociateAppWithRouteURL) StringFull

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

StringFull returns the string representation of a complete url

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

type CheckRouteExists struct {
	Context *middleware.Context
	Handler CheckRouteExistsHandler
}

CheckRouteExists swagger:route GET /routes/reserved/domain/{domain_guid}/host/{host} routes checkRouteExists

Check a Route exists

curl --insecure -i %s/v2/routes/reserved/domain/{domain_guid}/host/{host} -X GET -H 'Authorization: %s'

func NewCheckRouteExists

func NewCheckRouteExists(ctx *middleware.Context, handler CheckRouteExistsHandler) *CheckRouteExists

NewCheckRouteExists creates a new http.Handler for the check route exists operation

func (*CheckRouteExists) ServeHTTP

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

type CheckRouteExistsHandler

type CheckRouteExistsHandler interface {
	Handle(CheckRouteExistsParams) middleware.Responder
}

CheckRouteExistsHandler interface for that can handle valid check route exists params

type CheckRouteExistsHandlerFunc

type CheckRouteExistsHandlerFunc func(CheckRouteExistsParams) middleware.Responder

CheckRouteExistsHandlerFunc turns a function with the right signature into a check route exists handler

func (CheckRouteExistsHandlerFunc) Handle

Handle executing the request and returning a response

type CheckRouteExistsNoContent

type CheckRouteExistsNoContent struct {
}

CheckRouteExistsNoContent successful response

swagger:response checkRouteExistsNoContent

func NewCheckRouteExistsNoContent

func NewCheckRouteExistsNoContent() *CheckRouteExistsNoContent

NewCheckRouteExistsNoContent creates CheckRouteExistsNoContent with default headers values

func (*CheckRouteExistsNoContent) WriteResponse

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

WriteResponse to the client

type CheckRouteExistsParams

type CheckRouteExistsParams struct {

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

	/*The domain_guid parameter is used as a part of the request URL: '/v2/routes/reserved/domain/:domain_guid/host/:host'
	  Required: true
	  In: path
	*/
	DomainGUID string
	/*The host parameter is used as a part of the request URL: '/v2/routes/reserved/domain/:domain_guid/host/:host'
	  Required: true
	  In: path
	*/
	Host string
}

CheckRouteExistsParams contains all the bound params for the check route exists operation typically these are obtained from a http.Request

swagger:parameters checkRouteExists

func NewCheckRouteExistsParams

func NewCheckRouteExistsParams() CheckRouteExistsParams

NewCheckRouteExistsParams creates a new CheckRouteExistsParams object no default values defined in spec.

func (*CheckRouteExistsParams) BindRequest

func (o *CheckRouteExistsParams) 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 NewCheckRouteExistsParams() beforehand.

type CheckRouteExistsURL

type CheckRouteExistsURL struct {
	DomainGUID string
	Host       string
	// contains filtered or unexported fields
}

CheckRouteExistsURL generates an URL for the check route exists operation

func (*CheckRouteExistsURL) Build

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

Build a url path and query string

func (*CheckRouteExistsURL) BuildFull

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

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

func (*CheckRouteExistsURL) Must

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

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

func (*CheckRouteExistsURL) SetBasePath

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

func (o *CheckRouteExistsURL) String() string

String returns the string representation of the path with query string

func (*CheckRouteExistsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CheckRouteExistsURL) WithBasePath

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

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 CreateRoute

type CreateRoute struct {
	Context *middleware.Context
	Handler CreateRouteHandler
}

CreateRoute swagger:route POST /routes routes createRoute

Creating a Route

curl --insecure -i %s/v2/routes -X POST -H 'Authorization: %s' -d '%s'

func NewCreateRoute

func NewCreateRoute(ctx *middleware.Context, handler CreateRouteHandler) *CreateRoute

NewCreateRoute creates a new http.Handler for the create route operation

func (*CreateRoute) ServeHTTP

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

type CreateRouteCreated

type CreateRouteCreated struct {

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

CreateRouteCreated successful response

swagger:response createRouteCreated

func NewCreateRouteCreated

func NewCreateRouteCreated() *CreateRouteCreated

NewCreateRouteCreated creates CreateRouteCreated with default headers values

func (*CreateRouteCreated) SetPayload

func (o *CreateRouteCreated) SetPayload(payload *models.CreateRouteResponseResource)

SetPayload sets the payload to the create route created response

func (*CreateRouteCreated) WithPayload

WithPayload adds the payload to the create route created response

func (*CreateRouteCreated) WriteResponse

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

WriteResponse to the client

type CreateRouteHandler

type CreateRouteHandler interface {
	Handle(CreateRouteParams) middleware.Responder
}

CreateRouteHandler interface for that can handle valid create route params

type CreateRouteHandlerFunc

type CreateRouteHandlerFunc func(CreateRouteParams) middleware.Responder

CreateRouteHandlerFunc turns a function with the right signature into a create route handler

func (CreateRouteHandlerFunc) Handle

Handle executing the request and returning a response

type CreateRouteParams

type CreateRouteParams struct {

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

	/*An object instance that is serialized and sent as the request body.
	  Required: true
	  In: body
	*/
	Value *models.CreateRouteRequest
}

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

swagger:parameters createRoute

func NewCreateRouteParams

func NewCreateRouteParams() CreateRouteParams

NewCreateRouteParams creates a new CreateRouteParams object no default values defined in spec.

func (*CreateRouteParams) BindRequest

func (o *CreateRouteParams) 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 NewCreateRouteParams() beforehand.

type CreateRouteURL

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

CreateRouteURL generates an URL for the create route operation

func (*CreateRouteURL) Build

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

Build a url path and query string

func (*CreateRouteURL) BuildFull

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

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

func (*CreateRouteURL) Must

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

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

func (*CreateRouteURL) SetBasePath

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

func (o *CreateRouteURL) String() string

String returns the string representation of the path with query string

func (*CreateRouteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateRouteURL) WithBasePath

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

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 DeleteRoute

type DeleteRoute struct {
	Context *middleware.Context
	Handler DeleteRouteHandler
}

DeleteRoute swagger:route DELETE /routes/{guid} routes deleteRoute

Delete a Particular Route

curl --insecure -i %s/v2/routes/{guid} -X DELETE -H 'Authorization: %s'

func NewDeleteRoute

func NewDeleteRoute(ctx *middleware.Context, handler DeleteRouteHandler) *DeleteRoute

NewDeleteRoute creates a new http.Handler for the delete route operation

func (*DeleteRoute) ServeHTTP

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

type DeleteRouteHandler

type DeleteRouteHandler interface {
	Handle(DeleteRouteParams) middleware.Responder
}

DeleteRouteHandler interface for that can handle valid delete route params

type DeleteRouteHandlerFunc

type DeleteRouteHandlerFunc func(DeleteRouteParams) middleware.Responder

DeleteRouteHandlerFunc turns a function with the right signature into a delete route handler

func (DeleteRouteHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteRouteNoContent

type DeleteRouteNoContent struct {
}

DeleteRouteNoContent successful response

swagger:response deleteRouteNoContent

func NewDeleteRouteNoContent

func NewDeleteRouteNoContent() *DeleteRouteNoContent

NewDeleteRouteNoContent creates DeleteRouteNoContent with default headers values

func (*DeleteRouteNoContent) WriteResponse

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

WriteResponse to the client

type DeleteRouteParams

type DeleteRouteParams struct {

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

	/*The guid parameter is used as a part of the request URL: '/v2/routes/:guid'
	  Required: true
	  In: path
	*/
	GUID string
}

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

swagger:parameters deleteRoute

func NewDeleteRouteParams

func NewDeleteRouteParams() DeleteRouteParams

NewDeleteRouteParams creates a new DeleteRouteParams object no default values defined in spec.

func (*DeleteRouteParams) BindRequest

func (o *DeleteRouteParams) 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 NewDeleteRouteParams() beforehand.

type DeleteRouteURL

type DeleteRouteURL struct {
	GUID string
	// contains filtered or unexported fields
}

DeleteRouteURL generates an URL for the delete route operation

func (*DeleteRouteURL) Build

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

Build a url path and query string

func (*DeleteRouteURL) BuildFull

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

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

func (*DeleteRouteURL) Must

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

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

func (*DeleteRouteURL) SetBasePath

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

func (o *DeleteRouteURL) String() string

String returns the string representation of the path with query string

func (*DeleteRouteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteRouteURL) WithBasePath

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

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 ListAllAppsForRoute

type ListAllAppsForRoute struct {
	Context *middleware.Context
	Handler ListAllAppsForRouteHandler
}

ListAllAppsForRoute swagger:route GET /routes/{guid}/apps routes listAllAppsForRoute

List all Apps for the Route

curl --insecure -i %s/v2/routes/{guid}/apps -X GET -H 'Authorization: %s'

func NewListAllAppsForRoute

func NewListAllAppsForRoute(ctx *middleware.Context, handler ListAllAppsForRouteHandler) *ListAllAppsForRoute

NewListAllAppsForRoute creates a new http.Handler for the list all apps for route operation

func (*ListAllAppsForRoute) ServeHTTP

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

type ListAllAppsForRouteHandler

type ListAllAppsForRouteHandler interface {
	Handle(ListAllAppsForRouteParams) middleware.Responder
}

ListAllAppsForRouteHandler interface for that can handle valid list all apps for route params

type ListAllAppsForRouteHandlerFunc

type ListAllAppsForRouteHandlerFunc func(ListAllAppsForRouteParams) middleware.Responder

ListAllAppsForRouteHandlerFunc turns a function with the right signature into a list all apps for route handler

func (ListAllAppsForRouteHandlerFunc) Handle

Handle executing the request and returning a response

type ListAllAppsForRouteOK

type ListAllAppsForRouteOK struct {

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

ListAllAppsForRouteOK successful response

swagger:response listAllAppsForRouteOK

func NewListAllAppsForRouteOK

func NewListAllAppsForRouteOK() *ListAllAppsForRouteOK

NewListAllAppsForRouteOK creates ListAllAppsForRouteOK with default headers values

func (*ListAllAppsForRouteOK) SetPayload

SetPayload sets the payload to the list all apps for route o k response

func (*ListAllAppsForRouteOK) WithPayload

WithPayload adds the payload to the list all apps for route o k response

func (*ListAllAppsForRouteOK) WriteResponse

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

WriteResponse to the client

type ListAllAppsForRouteParams

type ListAllAppsForRouteParams struct {

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

	/*The guid parameter is used as a part of the request URL: '/v2/routes/:guid/apps'
	  Required: true
	  In: path
	*/
	GUID string
}

ListAllAppsForRouteParams contains all the bound params for the list all apps for route operation typically these are obtained from a http.Request

swagger:parameters listAllAppsForRoute

func NewListAllAppsForRouteParams

func NewListAllAppsForRouteParams() ListAllAppsForRouteParams

NewListAllAppsForRouteParams creates a new ListAllAppsForRouteParams object no default values defined in spec.

func (*ListAllAppsForRouteParams) 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 NewListAllAppsForRouteParams() beforehand.

type ListAllAppsForRouteURL

type ListAllAppsForRouteURL struct {
	GUID string
	// contains filtered or unexported fields
}

ListAllAppsForRouteURL generates an URL for the list all apps for route operation

func (*ListAllAppsForRouteURL) Build

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

Build a url path and query string

func (*ListAllAppsForRouteURL) BuildFull

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

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

func (*ListAllAppsForRouteURL) Must

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

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

func (*ListAllAppsForRouteURL) SetBasePath

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

func (o *ListAllAppsForRouteURL) String() string

String returns the string representation of the path with query string

func (*ListAllAppsForRouteURL) StringFull

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

StringFull returns the string representation of a complete url

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

type ListAllRoutes struct {
	Context *middleware.Context
	Handler ListAllRoutesHandler
}

ListAllRoutes swagger:route GET /routes routes listAllRoutes

List all Routes

curl --insecure -i %s/v2/routes -X GET -H 'Authorization: %s'

func NewListAllRoutes

func NewListAllRoutes(ctx *middleware.Context, handler ListAllRoutesHandler) *ListAllRoutes

NewListAllRoutes creates a new http.Handler for the list all routes operation

func (*ListAllRoutes) ServeHTTP

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

type ListAllRoutesHandler

type ListAllRoutesHandler interface {
	Handle(ListAllRoutesParams) middleware.Responder
}

ListAllRoutesHandler interface for that can handle valid list all routes params

type ListAllRoutesHandlerFunc

type ListAllRoutesHandlerFunc func(ListAllRoutesParams) middleware.Responder

ListAllRoutesHandlerFunc turns a function with the right signature into a list all routes handler

func (ListAllRoutesHandlerFunc) Handle

Handle executing the request and returning a response

type ListAllRoutesOK

type ListAllRoutesOK struct {

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

ListAllRoutesOK successful response

swagger:response listAllRoutesOK

func NewListAllRoutesOK

func NewListAllRoutesOK() *ListAllRoutesOK

NewListAllRoutesOK creates ListAllRoutesOK with default headers values

func (*ListAllRoutesOK) SetPayload

func (o *ListAllRoutesOK) SetPayload(payload *models.ListAllRoutesResponsePaged)

SetPayload sets the payload to the list all routes o k response

func (*ListAllRoutesOK) WithPayload

WithPayload adds the payload to the list all routes o k response

func (*ListAllRoutesOK) WriteResponse

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

WriteResponse to the client

type ListAllRoutesParams

type ListAllRoutesParams struct {

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

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

swagger:parameters listAllRoutes

func NewListAllRoutesParams

func NewListAllRoutesParams() ListAllRoutesParams

NewListAllRoutesParams creates a new ListAllRoutesParams object no default values defined in spec.

func (*ListAllRoutesParams) BindRequest

func (o *ListAllRoutesParams) 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 NewListAllRoutesParams() beforehand.

type ListAllRoutesURL

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

ListAllRoutesURL generates an URL for the list all routes operation

func (*ListAllRoutesURL) Build

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

Build a url path and query string

func (*ListAllRoutesURL) BuildFull

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

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

func (*ListAllRoutesURL) Must

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

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

func (*ListAllRoutesURL) SetBasePath

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

func (o *ListAllRoutesURL) String() string

String returns the string representation of the path with query string

func (*ListAllRoutesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListAllRoutesURL) WithBasePath

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

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 RemoveAppFromRoute

type RemoveAppFromRoute struct {
	Context *middleware.Context
	Handler RemoveAppFromRouteHandler
}

RemoveAppFromRoute swagger:route DELETE /routes/{guid}/apps/{app_guid} routes removeAppFromRoute

Remove App from the Route

curl --insecure -i %s/v2/routes/{guid}/apps/{app_guid} -X DELETE -H 'Authorization: %s'

func NewRemoveAppFromRoute

func NewRemoveAppFromRoute(ctx *middleware.Context, handler RemoveAppFromRouteHandler) *RemoveAppFromRoute

NewRemoveAppFromRoute creates a new http.Handler for the remove app from route operation

func (*RemoveAppFromRoute) ServeHTTP

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

type RemoveAppFromRouteCreated

type RemoveAppFromRouteCreated struct {

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

RemoveAppFromRouteCreated successful response

swagger:response removeAppFromRouteCreated

func NewRemoveAppFromRouteCreated

func NewRemoveAppFromRouteCreated() *RemoveAppFromRouteCreated

NewRemoveAppFromRouteCreated creates RemoveAppFromRouteCreated with default headers values

func (*RemoveAppFromRouteCreated) SetPayload

SetPayload sets the payload to the remove app from route created response

func (*RemoveAppFromRouteCreated) WithPayload

WithPayload adds the payload to the remove app from route created response

func (*RemoveAppFromRouteCreated) WriteResponse

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

WriteResponse to the client

type RemoveAppFromRouteHandler

type RemoveAppFromRouteHandler interface {
	Handle(RemoveAppFromRouteParams) middleware.Responder
}

RemoveAppFromRouteHandler interface for that can handle valid remove app from route params

type RemoveAppFromRouteHandlerFunc

type RemoveAppFromRouteHandlerFunc func(RemoveAppFromRouteParams) middleware.Responder

RemoveAppFromRouteHandlerFunc turns a function with the right signature into a remove app from route handler

func (RemoveAppFromRouteHandlerFunc) Handle

Handle executing the request and returning a response

type RemoveAppFromRouteParams

type RemoveAppFromRouteParams struct {

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

	/*The app_guid parameter is used as a part of the request URL: '/v2/routes/:guid/apps/:app_guid'
	  Required: true
	  In: path
	*/
	AppGUID string
	/*The guid parameter is used as a part of the request URL: '/v2/routes/:guid/apps/:app_guid'
	  Required: true
	  In: path
	*/
	GUID string
}

RemoveAppFromRouteParams contains all the bound params for the remove app from route operation typically these are obtained from a http.Request

swagger:parameters removeAppFromRoute

func NewRemoveAppFromRouteParams

func NewRemoveAppFromRouteParams() RemoveAppFromRouteParams

NewRemoveAppFromRouteParams creates a new RemoveAppFromRouteParams object no default values defined in spec.

func (*RemoveAppFromRouteParams) 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 NewRemoveAppFromRouteParams() beforehand.

type RemoveAppFromRouteURL

type RemoveAppFromRouteURL struct {
	AppGUID string
	GUID    string
	// contains filtered or unexported fields
}

RemoveAppFromRouteURL generates an URL for the remove app from route operation

func (*RemoveAppFromRouteURL) Build

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

Build a url path and query string

func (*RemoveAppFromRouteURL) BuildFull

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

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

func (*RemoveAppFromRouteURL) Must

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

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

func (*RemoveAppFromRouteURL) SetBasePath

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

func (o *RemoveAppFromRouteURL) String() string

String returns the string representation of the path with query string

func (*RemoveAppFromRouteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*RemoveAppFromRouteURL) WithBasePath

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

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 RetrieveRoute

type RetrieveRoute struct {
	Context *middleware.Context
	Handler RetrieveRouteHandler
}

RetrieveRoute swagger:route GET /routes/{guid} routes retrieveRoute

Retrieve a Particular Route

curl --insecure -i %s/v2/routes/{guid} -X GET -H 'Authorization: %s'

func NewRetrieveRoute

func NewRetrieveRoute(ctx *middleware.Context, handler RetrieveRouteHandler) *RetrieveRoute

NewRetrieveRoute creates a new http.Handler for the retrieve route operation

func (*RetrieveRoute) ServeHTTP

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

type RetrieveRouteHandler

type RetrieveRouteHandler interface {
	Handle(RetrieveRouteParams) middleware.Responder
}

RetrieveRouteHandler interface for that can handle valid retrieve route params

type RetrieveRouteHandlerFunc

type RetrieveRouteHandlerFunc func(RetrieveRouteParams) middleware.Responder

RetrieveRouteHandlerFunc turns a function with the right signature into a retrieve route handler

func (RetrieveRouteHandlerFunc) Handle

Handle executing the request and returning a response

type RetrieveRouteOK

type RetrieveRouteOK struct {

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

RetrieveRouteOK successful response

swagger:response retrieveRouteOK

func NewRetrieveRouteOK

func NewRetrieveRouteOK() *RetrieveRouteOK

NewRetrieveRouteOK creates RetrieveRouteOK with default headers values

func (*RetrieveRouteOK) SetPayload

func (o *RetrieveRouteOK) SetPayload(payload *models.RetrieveRouteResponseResource)

SetPayload sets the payload to the retrieve route o k response

func (*RetrieveRouteOK) WithPayload

WithPayload adds the payload to the retrieve route o k response

func (*RetrieveRouteOK) WriteResponse

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

WriteResponse to the client

type RetrieveRouteParams

type RetrieveRouteParams struct {

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

	/*The guid parameter is used as a part of the request URL: '/v2/routes/:guid'
	  Required: true
	  In: path
	*/
	GUID string
}

RetrieveRouteParams contains all the bound params for the retrieve route operation typically these are obtained from a http.Request

swagger:parameters retrieveRoute

func NewRetrieveRouteParams

func NewRetrieveRouteParams() RetrieveRouteParams

NewRetrieveRouteParams creates a new RetrieveRouteParams object no default values defined in spec.

func (*RetrieveRouteParams) BindRequest

func (o *RetrieveRouteParams) 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 NewRetrieveRouteParams() beforehand.

type RetrieveRouteURL

type RetrieveRouteURL struct {
	GUID string
	// contains filtered or unexported fields
}

RetrieveRouteURL generates an URL for the retrieve route operation

func (*RetrieveRouteURL) Build

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

Build a url path and query string

func (*RetrieveRouteURL) BuildFull

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

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

func (*RetrieveRouteURL) Must

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

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

func (*RetrieveRouteURL) SetBasePath

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

func (o *RetrieveRouteURL) String() string

String returns the string representation of the path with query string

func (*RetrieveRouteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*RetrieveRouteURL) WithBasePath

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

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 UpdateRoute

type UpdateRoute struct {
	Context *middleware.Context
	Handler UpdateRouteHandler
}

UpdateRoute swagger:route PUT /routes/{guid} routes updateRoute

Update a Route

curl --insecure -i %s/v2/routes/{guid} -X PUT -H 'Authorization: %s' -d '%s'

func NewUpdateRoute

func NewUpdateRoute(ctx *middleware.Context, handler UpdateRouteHandler) *UpdateRoute

NewUpdateRoute creates a new http.Handler for the update route operation

func (*UpdateRoute) ServeHTTP

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

type UpdateRouteCreated

type UpdateRouteCreated struct {

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

UpdateRouteCreated successful response

swagger:response updateRouteCreated

func NewUpdateRouteCreated

func NewUpdateRouteCreated() *UpdateRouteCreated

NewUpdateRouteCreated creates UpdateRouteCreated with default headers values

func (*UpdateRouteCreated) SetPayload

func (o *UpdateRouteCreated) SetPayload(payload *models.UpdateRouteResponseResource)

SetPayload sets the payload to the update route created response

func (*UpdateRouteCreated) WithPayload

WithPayload adds the payload to the update route created response

func (*UpdateRouteCreated) WriteResponse

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

WriteResponse to the client

type UpdateRouteHandler

type UpdateRouteHandler interface {
	Handle(UpdateRouteParams) middleware.Responder
}

UpdateRouteHandler interface for that can handle valid update route params

type UpdateRouteHandlerFunc

type UpdateRouteHandlerFunc func(UpdateRouteParams) middleware.Responder

UpdateRouteHandlerFunc turns a function with the right signature into a update route handler

func (UpdateRouteHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateRouteParams

type UpdateRouteParams struct {

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

	/*The guid parameter is used as a part of the request URL: '/v2/routes/:guid'
	  Required: true
	  In: path
	*/
	GUID string
	/*An object instance that is serialized and sent as the request body.
	  Required: true
	  In: body
	*/
	Value *models.UpdateRouteRequest
}

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

swagger:parameters updateRoute

func NewUpdateRouteParams

func NewUpdateRouteParams() UpdateRouteParams

NewUpdateRouteParams creates a new UpdateRouteParams object no default values defined in spec.

func (*UpdateRouteParams) BindRequest

func (o *UpdateRouteParams) 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 NewUpdateRouteParams() beforehand.

type UpdateRouteURL

type UpdateRouteURL struct {
	GUID string
	// contains filtered or unexported fields
}

UpdateRouteURL generates an URL for the update route operation

func (*UpdateRouteURL) Build

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

Build a url path and query string

func (*UpdateRouteURL) BuildFull

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

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

func (*UpdateRouteURL) Must

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

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

func (*UpdateRouteURL) SetBasePath

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

func (o *UpdateRouteURL) String() string

String returns the string representation of the path with query string

func (*UpdateRouteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateRouteURL) WithBasePath

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

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