stacks

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteStackNoContentCode int = 204

DeleteStackNoContentCode is the HTTP code returned for type DeleteStackNoContent

View Source
const ListAllStacksOKCode int = 200

ListAllStacksOKCode is the HTTP code returned for type ListAllStacksOK

View Source
const RetrieveStackOKCode int = 200

RetrieveStackOKCode is the HTTP code returned for type RetrieveStackOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteStack

type DeleteStack struct {
	Context *middleware.Context
	Handler DeleteStackHandler
}

DeleteStack swagger:route DELETE /stacks/{guid} stacks deleteStack

Delete a Particular Stack

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

func NewDeleteStack

func NewDeleteStack(ctx *middleware.Context, handler DeleteStackHandler) *DeleteStack

NewDeleteStack creates a new http.Handler for the delete stack operation

func (*DeleteStack) ServeHTTP

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

type DeleteStackHandler

type DeleteStackHandler interface {
	Handle(DeleteStackParams) middleware.Responder
}

DeleteStackHandler interface for that can handle valid delete stack params

type DeleteStackHandlerFunc

type DeleteStackHandlerFunc func(DeleteStackParams) middleware.Responder

DeleteStackHandlerFunc turns a function with the right signature into a delete stack handler

func (DeleteStackHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteStackNoContent

type DeleteStackNoContent struct {
}

DeleteStackNoContent successful response

swagger:response deleteStackNoContent

func NewDeleteStackNoContent

func NewDeleteStackNoContent() *DeleteStackNoContent

NewDeleteStackNoContent creates DeleteStackNoContent with default headers values

func (*DeleteStackNoContent) WriteResponse

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

WriteResponse to the client

type DeleteStackParams

type DeleteStackParams struct {

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

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

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

swagger:parameters deleteStack

func NewDeleteStackParams

func NewDeleteStackParams() DeleteStackParams

NewDeleteStackParams creates a new DeleteStackParams object no default values defined in spec.

func (*DeleteStackParams) BindRequest

func (o *DeleteStackParams) 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 NewDeleteStackParams() beforehand.

type DeleteStackURL

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

DeleteStackURL generates an URL for the delete stack operation

func (*DeleteStackURL) Build

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

Build a url path and query string

func (*DeleteStackURL) BuildFull

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

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

func (*DeleteStackURL) Must

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

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

func (*DeleteStackURL) SetBasePath

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

func (o *DeleteStackURL) String() string

String returns the string representation of the path with query string

func (*DeleteStackURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteStackURL) WithBasePath

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

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 ListAllStacks

type ListAllStacks struct {
	Context *middleware.Context
	Handler ListAllStacksHandler
}

ListAllStacks swagger:route GET /stacks stacks listAllStacks

List all Stacks

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

func NewListAllStacks

func NewListAllStacks(ctx *middleware.Context, handler ListAllStacksHandler) *ListAllStacks

NewListAllStacks creates a new http.Handler for the list all stacks operation

func (*ListAllStacks) ServeHTTP

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

type ListAllStacksHandler

type ListAllStacksHandler interface {
	Handle(ListAllStacksParams) middleware.Responder
}

ListAllStacksHandler interface for that can handle valid list all stacks params

type ListAllStacksHandlerFunc

type ListAllStacksHandlerFunc func(ListAllStacksParams) middleware.Responder

ListAllStacksHandlerFunc turns a function with the right signature into a list all stacks handler

func (ListAllStacksHandlerFunc) Handle

Handle executing the request and returning a response

type ListAllStacksOK

type ListAllStacksOK struct {

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

ListAllStacksOK successful response

swagger:response listAllStacksOK

func NewListAllStacksOK

func NewListAllStacksOK() *ListAllStacksOK

NewListAllStacksOK creates ListAllStacksOK with default headers values

func (*ListAllStacksOK) SetPayload

func (o *ListAllStacksOK) SetPayload(payload *models.ListAllStacksResponsePaged)

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

func (*ListAllStacksOK) WithPayload

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

func (*ListAllStacksOK) WriteResponse

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

WriteResponse to the client

type ListAllStacksParams

type ListAllStacksParams struct {

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

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

swagger:parameters listAllStacks

func NewListAllStacksParams

func NewListAllStacksParams() ListAllStacksParams

NewListAllStacksParams creates a new ListAllStacksParams object no default values defined in spec.

func (*ListAllStacksParams) BindRequest

func (o *ListAllStacksParams) 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 NewListAllStacksParams() beforehand.

type ListAllStacksURL

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

ListAllStacksURL generates an URL for the list all stacks operation

func (*ListAllStacksURL) Build

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

Build a url path and query string

func (*ListAllStacksURL) BuildFull

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

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

func (*ListAllStacksURL) Must

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

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

func (*ListAllStacksURL) SetBasePath

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

func (o *ListAllStacksURL) String() string

String returns the string representation of the path with query string

func (*ListAllStacksURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListAllStacksURL) WithBasePath

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

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 RetrieveStack

type RetrieveStack struct {
	Context *middleware.Context
	Handler RetrieveStackHandler
}

RetrieveStack swagger:route GET /stacks/{guid} stacks retrieveStack

Retrieve a Particular Stack

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

func NewRetrieveStack

func NewRetrieveStack(ctx *middleware.Context, handler RetrieveStackHandler) *RetrieveStack

NewRetrieveStack creates a new http.Handler for the retrieve stack operation

func (*RetrieveStack) ServeHTTP

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

type RetrieveStackHandler

type RetrieveStackHandler interface {
	Handle(RetrieveStackParams) middleware.Responder
}

RetrieveStackHandler interface for that can handle valid retrieve stack params

type RetrieveStackHandlerFunc

type RetrieveStackHandlerFunc func(RetrieveStackParams) middleware.Responder

RetrieveStackHandlerFunc turns a function with the right signature into a retrieve stack handler

func (RetrieveStackHandlerFunc) Handle

Handle executing the request and returning a response

type RetrieveStackOK

type RetrieveStackOK struct {

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

RetrieveStackOK successful response

swagger:response retrieveStackOK

func NewRetrieveStackOK

func NewRetrieveStackOK() *RetrieveStackOK

NewRetrieveStackOK creates RetrieveStackOK with default headers values

func (*RetrieveStackOK) SetPayload

func (o *RetrieveStackOK) SetPayload(payload *models.RetrieveStackResponseResource)

SetPayload sets the payload to the retrieve stack o k response

func (*RetrieveStackOK) WithPayload

WithPayload adds the payload to the retrieve stack o k response

func (*RetrieveStackOK) WriteResponse

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

WriteResponse to the client

type RetrieveStackParams

type RetrieveStackParams struct {

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

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

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

swagger:parameters retrieveStack

func NewRetrieveStackParams

func NewRetrieveStackParams() RetrieveStackParams

NewRetrieveStackParams creates a new RetrieveStackParams object no default values defined in spec.

func (*RetrieveStackParams) BindRequest

func (o *RetrieveStackParams) 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 NewRetrieveStackParams() beforehand.

type RetrieveStackURL

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

RetrieveStackURL generates an URL for the retrieve stack operation

func (*RetrieveStackURL) Build

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

Build a url path and query string

func (*RetrieveStackURL) BuildFull

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

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

func (*RetrieveStackURL) Must

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

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

func (*RetrieveStackURL) SetBasePath

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

func (o *RetrieveStackURL) String() string

String returns the string representation of the path with query string

func (*RetrieveStackURL) StringFull

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

StringFull returns the string representation of a complete url

func (*RetrieveStackURL) WithBasePath

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

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