Documentation ¶
Index ¶
- Constants
- type CreatesAdminBuildpack
- type CreatesAdminBuildpackCreated
- func (o *CreatesAdminBuildpackCreated) SetPayload(payload *models.CreatesAdminBuildpackResponseResource)
- func (o *CreatesAdminBuildpackCreated) WithPayload(payload *models.CreatesAdminBuildpackResponseResource) *CreatesAdminBuildpackCreated
- func (o *CreatesAdminBuildpackCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreatesAdminBuildpackHandler
- type CreatesAdminBuildpackHandlerFunc
- type CreatesAdminBuildpackParams
- type CreatesAdminBuildpackURL
- func (o *CreatesAdminBuildpackURL) Build() (*url.URL, error)
- func (o *CreatesAdminBuildpackURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreatesAdminBuildpackURL) Must(u *url.URL, err error) *url.URL
- func (o *CreatesAdminBuildpackURL) SetBasePath(bp string)
- func (o *CreatesAdminBuildpackURL) String() string
- func (o *CreatesAdminBuildpackURL) StringFull(scheme, host string) string
- func (o *CreatesAdminBuildpackURL) WithBasePath(bp string) *CreatesAdminBuildpackURL
- type DeleteBuildpack
- type DeleteBuildpackHandler
- type DeleteBuildpackHandlerFunc
- type DeleteBuildpackNoContent
- type DeleteBuildpackParams
- type DeleteBuildpackURL
- func (o *DeleteBuildpackURL) Build() (*url.URL, error)
- func (o *DeleteBuildpackURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteBuildpackURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteBuildpackURL) SetBasePath(bp string)
- func (o *DeleteBuildpackURL) String() string
- func (o *DeleteBuildpackURL) StringFull(scheme, host string) string
- func (o *DeleteBuildpackURL) WithBasePath(bp string) *DeleteBuildpackURL
- type ListAllBuildpacks
- type ListAllBuildpacksHandler
- type ListAllBuildpacksHandlerFunc
- type ListAllBuildpacksOK
- type ListAllBuildpacksParams
- type ListAllBuildpacksURL
- func (o *ListAllBuildpacksURL) Build() (*url.URL, error)
- func (o *ListAllBuildpacksURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListAllBuildpacksURL) Must(u *url.URL, err error) *url.URL
- func (o *ListAllBuildpacksURL) SetBasePath(bp string)
- func (o *ListAllBuildpacksURL) String() string
- func (o *ListAllBuildpacksURL) StringFull(scheme, host string) string
- func (o *ListAllBuildpacksURL) WithBasePath(bp string) *ListAllBuildpacksURL
- type LockOrUnlockBuildpack
- type LockOrUnlockBuildpackCreated
- func (o *LockOrUnlockBuildpackCreated) SetPayload(payload *models.LockOrUnlockBuildpackResponseResource)
- func (o *LockOrUnlockBuildpackCreated) WithPayload(payload *models.LockOrUnlockBuildpackResponseResource) *LockOrUnlockBuildpackCreated
- func (o *LockOrUnlockBuildpackCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type LockOrUnlockBuildpackHandler
- type LockOrUnlockBuildpackHandlerFunc
- type LockOrUnlockBuildpackParams
- type LockOrUnlockBuildpackURL
- func (o *LockOrUnlockBuildpackURL) Build() (*url.URL, error)
- func (o *LockOrUnlockBuildpackURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LockOrUnlockBuildpackURL) Must(u *url.URL, err error) *url.URL
- func (o *LockOrUnlockBuildpackURL) SetBasePath(bp string)
- func (o *LockOrUnlockBuildpackURL) String() string
- func (o *LockOrUnlockBuildpackURL) StringFull(scheme, host string) string
- func (o *LockOrUnlockBuildpackURL) WithBasePath(bp string) *LockOrUnlockBuildpackURL
- type RetrieveBuildpack
- type RetrieveBuildpackHandler
- type RetrieveBuildpackHandlerFunc
- type RetrieveBuildpackOK
- func (o *RetrieveBuildpackOK) SetPayload(payload *models.RetrieveBuildpackResponseResource)
- func (o *RetrieveBuildpackOK) WithPayload(payload *models.RetrieveBuildpackResponseResource) *RetrieveBuildpackOK
- func (o *RetrieveBuildpackOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RetrieveBuildpackParams
- type RetrieveBuildpackURL
- func (o *RetrieveBuildpackURL) Build() (*url.URL, error)
- func (o *RetrieveBuildpackURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RetrieveBuildpackURL) Must(u *url.URL, err error) *url.URL
- func (o *RetrieveBuildpackURL) SetBasePath(bp string)
- func (o *RetrieveBuildpackURL) String() string
- func (o *RetrieveBuildpackURL) StringFull(scheme, host string) string
- func (o *RetrieveBuildpackURL) WithBasePath(bp string) *RetrieveBuildpackURL
Constants ¶
const CreatesAdminBuildpackCreatedCode int = 201
CreatesAdminBuildpackCreatedCode is the HTTP code returned for type CreatesAdminBuildpackCreated
const DeleteBuildpackNoContentCode int = 204
DeleteBuildpackNoContentCode is the HTTP code returned for type DeleteBuildpackNoContent
const ListAllBuildpacksOKCode int = 200
ListAllBuildpacksOKCode is the HTTP code returned for type ListAllBuildpacksOK
const LockOrUnlockBuildpackCreatedCode int = 201
LockOrUnlockBuildpackCreatedCode is the HTTP code returned for type LockOrUnlockBuildpackCreated
const RetrieveBuildpackOKCode int = 200
RetrieveBuildpackOKCode is the HTTP code returned for type RetrieveBuildpackOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatesAdminBuildpack ¶
type CreatesAdminBuildpack struct { Context *middleware.Context Handler CreatesAdminBuildpackHandler }
CreatesAdminBuildpack swagger:route POST /buildpacks buildpacks createsAdminBuildpack
Creates an admin Buildpack ¶
curl --insecure -i %s/v2/buildpacks -X POST -H 'Authorization: %s' -d '%s'
func NewCreatesAdminBuildpack ¶
func NewCreatesAdminBuildpack(ctx *middleware.Context, handler CreatesAdminBuildpackHandler) *CreatesAdminBuildpack
NewCreatesAdminBuildpack creates a new http.Handler for the creates admin buildpack operation
func (*CreatesAdminBuildpack) ServeHTTP ¶
func (o *CreatesAdminBuildpack) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreatesAdminBuildpackCreated ¶
type CreatesAdminBuildpackCreated struct { /* In: Body */ Payload *models.CreatesAdminBuildpackResponseResource `json:"body,omitempty"` }
CreatesAdminBuildpackCreated successful response
swagger:response createsAdminBuildpackCreated
func NewCreatesAdminBuildpackCreated ¶
func NewCreatesAdminBuildpackCreated() *CreatesAdminBuildpackCreated
NewCreatesAdminBuildpackCreated creates CreatesAdminBuildpackCreated with default headers values
func (*CreatesAdminBuildpackCreated) SetPayload ¶
func (o *CreatesAdminBuildpackCreated) SetPayload(payload *models.CreatesAdminBuildpackResponseResource)
SetPayload sets the payload to the creates admin buildpack created response
func (*CreatesAdminBuildpackCreated) WithPayload ¶
func (o *CreatesAdminBuildpackCreated) WithPayload(payload *models.CreatesAdminBuildpackResponseResource) *CreatesAdminBuildpackCreated
WithPayload adds the payload to the creates admin buildpack created response
func (*CreatesAdminBuildpackCreated) WriteResponse ¶
func (o *CreatesAdminBuildpackCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatesAdminBuildpackHandler ¶
type CreatesAdminBuildpackHandler interface {
Handle(CreatesAdminBuildpackParams) middleware.Responder
}
CreatesAdminBuildpackHandler interface for that can handle valid creates admin buildpack params
type CreatesAdminBuildpackHandlerFunc ¶
type CreatesAdminBuildpackHandlerFunc func(CreatesAdminBuildpackParams) middleware.Responder
CreatesAdminBuildpackHandlerFunc turns a function with the right signature into a creates admin buildpack handler
func (CreatesAdminBuildpackHandlerFunc) Handle ¶
func (fn CreatesAdminBuildpackHandlerFunc) Handle(params CreatesAdminBuildpackParams) middleware.Responder
Handle executing the request and returning a response
type CreatesAdminBuildpackParams ¶
type CreatesAdminBuildpackParams 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.CreatesAdminBuildpackRequest }
CreatesAdminBuildpackParams contains all the bound params for the creates admin buildpack operation typically these are obtained from a http.Request
swagger:parameters createsAdminBuildpack
func NewCreatesAdminBuildpackParams ¶
func NewCreatesAdminBuildpackParams() CreatesAdminBuildpackParams
NewCreatesAdminBuildpackParams creates a new CreatesAdminBuildpackParams object no default values defined in spec.
func (*CreatesAdminBuildpackParams) BindRequest ¶
func (o *CreatesAdminBuildpackParams) 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 NewCreatesAdminBuildpackParams() beforehand.
type CreatesAdminBuildpackURL ¶
type CreatesAdminBuildpackURL struct {
// contains filtered or unexported fields
}
CreatesAdminBuildpackURL generates an URL for the creates admin buildpack operation
func (*CreatesAdminBuildpackURL) Build ¶
func (o *CreatesAdminBuildpackURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreatesAdminBuildpackURL) BuildFull ¶
func (o *CreatesAdminBuildpackURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreatesAdminBuildpackURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreatesAdminBuildpackURL) SetBasePath ¶
func (o *CreatesAdminBuildpackURL) 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 (*CreatesAdminBuildpackURL) String ¶
func (o *CreatesAdminBuildpackURL) String() string
String returns the string representation of the path with query string
func (*CreatesAdminBuildpackURL) StringFull ¶
func (o *CreatesAdminBuildpackURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreatesAdminBuildpackURL) WithBasePath ¶
func (o *CreatesAdminBuildpackURL) WithBasePath(bp string) *CreatesAdminBuildpackURL
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 DeleteBuildpack ¶
type DeleteBuildpack struct { Context *middleware.Context Handler DeleteBuildpackHandler }
DeleteBuildpack swagger:route DELETE /buildpacks/{guid} buildpacks deleteBuildpack
Delete a Particular Buildpack ¶
curl --insecure -i %s/v2/buildpacks/{guid} -X DELETE -H 'Authorization: %s'
func NewDeleteBuildpack ¶
func NewDeleteBuildpack(ctx *middleware.Context, handler DeleteBuildpackHandler) *DeleteBuildpack
NewDeleteBuildpack creates a new http.Handler for the delete buildpack operation
func (*DeleteBuildpack) ServeHTTP ¶
func (o *DeleteBuildpack) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteBuildpackHandler ¶
type DeleteBuildpackHandler interface {
Handle(DeleteBuildpackParams) middleware.Responder
}
DeleteBuildpackHandler interface for that can handle valid delete buildpack params
type DeleteBuildpackHandlerFunc ¶
type DeleteBuildpackHandlerFunc func(DeleteBuildpackParams) middleware.Responder
DeleteBuildpackHandlerFunc turns a function with the right signature into a delete buildpack handler
func (DeleteBuildpackHandlerFunc) Handle ¶
func (fn DeleteBuildpackHandlerFunc) Handle(params DeleteBuildpackParams) middleware.Responder
Handle executing the request and returning a response
type DeleteBuildpackNoContent ¶
type DeleteBuildpackNoContent struct { }
DeleteBuildpackNoContent successful response
swagger:response deleteBuildpackNoContent
func NewDeleteBuildpackNoContent ¶
func NewDeleteBuildpackNoContent() *DeleteBuildpackNoContent
NewDeleteBuildpackNoContent creates DeleteBuildpackNoContent with default headers values
func (*DeleteBuildpackNoContent) WriteResponse ¶
func (o *DeleteBuildpackNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBuildpackParams ¶
type DeleteBuildpackParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The guid parameter is used as a part of the request URL: '/v2/buildpacks/:guid' Required: true In: path */ GUID string }
DeleteBuildpackParams contains all the bound params for the delete buildpack operation typically these are obtained from a http.Request
swagger:parameters deleteBuildpack
func NewDeleteBuildpackParams ¶
func NewDeleteBuildpackParams() DeleteBuildpackParams
NewDeleteBuildpackParams creates a new DeleteBuildpackParams object no default values defined in spec.
func (*DeleteBuildpackParams) BindRequest ¶
func (o *DeleteBuildpackParams) 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 NewDeleteBuildpackParams() beforehand.
type DeleteBuildpackURL ¶
type DeleteBuildpackURL struct { GUID string // contains filtered or unexported fields }
DeleteBuildpackURL generates an URL for the delete buildpack operation
func (*DeleteBuildpackURL) Build ¶
func (o *DeleteBuildpackURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteBuildpackURL) BuildFull ¶
func (o *DeleteBuildpackURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteBuildpackURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteBuildpackURL) SetBasePath ¶
func (o *DeleteBuildpackURL) 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 (*DeleteBuildpackURL) String ¶
func (o *DeleteBuildpackURL) String() string
String returns the string representation of the path with query string
func (*DeleteBuildpackURL) StringFull ¶
func (o *DeleteBuildpackURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteBuildpackURL) WithBasePath ¶
func (o *DeleteBuildpackURL) WithBasePath(bp string) *DeleteBuildpackURL
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 ListAllBuildpacks ¶
type ListAllBuildpacks struct { Context *middleware.Context Handler ListAllBuildpacksHandler }
ListAllBuildpacks swagger:route GET /buildpacks buildpacks listAllBuildpacks
List all Buildpacks ¶
curl --insecure -i %s/v2/buildpacks -X GET -H 'Authorization: %s'
func NewListAllBuildpacks ¶
func NewListAllBuildpacks(ctx *middleware.Context, handler ListAllBuildpacksHandler) *ListAllBuildpacks
NewListAllBuildpacks creates a new http.Handler for the list all buildpacks operation
func (*ListAllBuildpacks) ServeHTTP ¶
func (o *ListAllBuildpacks) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListAllBuildpacksHandler ¶
type ListAllBuildpacksHandler interface {
Handle(ListAllBuildpacksParams) middleware.Responder
}
ListAllBuildpacksHandler interface for that can handle valid list all buildpacks params
type ListAllBuildpacksHandlerFunc ¶
type ListAllBuildpacksHandlerFunc func(ListAllBuildpacksParams) middleware.Responder
ListAllBuildpacksHandlerFunc turns a function with the right signature into a list all buildpacks handler
func (ListAllBuildpacksHandlerFunc) Handle ¶
func (fn ListAllBuildpacksHandlerFunc) Handle(params ListAllBuildpacksParams) middleware.Responder
Handle executing the request and returning a response
type ListAllBuildpacksOK ¶
type ListAllBuildpacksOK struct { /* In: Body */ Payload *models.ListAllBuildpacksResponsePaged `json:"body,omitempty"` }
ListAllBuildpacksOK successful response
swagger:response listAllBuildpacksOK
func NewListAllBuildpacksOK ¶
func NewListAllBuildpacksOK() *ListAllBuildpacksOK
NewListAllBuildpacksOK creates ListAllBuildpacksOK with default headers values
func (*ListAllBuildpacksOK) SetPayload ¶
func (o *ListAllBuildpacksOK) SetPayload(payload *models.ListAllBuildpacksResponsePaged)
SetPayload sets the payload to the list all buildpacks o k response
func (*ListAllBuildpacksOK) WithPayload ¶
func (o *ListAllBuildpacksOK) WithPayload(payload *models.ListAllBuildpacksResponsePaged) *ListAllBuildpacksOK
WithPayload adds the payload to the list all buildpacks o k response
func (*ListAllBuildpacksOK) WriteResponse ¶
func (o *ListAllBuildpacksOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListAllBuildpacksParams ¶
ListAllBuildpacksParams contains all the bound params for the list all buildpacks operation typically these are obtained from a http.Request
swagger:parameters listAllBuildpacks
func NewListAllBuildpacksParams ¶
func NewListAllBuildpacksParams() ListAllBuildpacksParams
NewListAllBuildpacksParams creates a new ListAllBuildpacksParams object no default values defined in spec.
func (*ListAllBuildpacksParams) BindRequest ¶
func (o *ListAllBuildpacksParams) 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 NewListAllBuildpacksParams() beforehand.
type ListAllBuildpacksURL ¶
type ListAllBuildpacksURL struct {
// contains filtered or unexported fields
}
ListAllBuildpacksURL generates an URL for the list all buildpacks operation
func (*ListAllBuildpacksURL) Build ¶
func (o *ListAllBuildpacksURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListAllBuildpacksURL) BuildFull ¶
func (o *ListAllBuildpacksURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListAllBuildpacksURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListAllBuildpacksURL) SetBasePath ¶
func (o *ListAllBuildpacksURL) 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 (*ListAllBuildpacksURL) String ¶
func (o *ListAllBuildpacksURL) String() string
String returns the string representation of the path with query string
func (*ListAllBuildpacksURL) StringFull ¶
func (o *ListAllBuildpacksURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListAllBuildpacksURL) WithBasePath ¶
func (o *ListAllBuildpacksURL) WithBasePath(bp string) *ListAllBuildpacksURL
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 LockOrUnlockBuildpack ¶
type LockOrUnlockBuildpack struct { Context *middleware.Context Handler LockOrUnlockBuildpackHandler }
LockOrUnlockBuildpack swagger:route PUT /buildpacks/{guid} buildpacks lockOrUnlockBuildpack
Lock or unlock a Buildpack ¶
curl --insecure -i %s/v2/buildpacks/{guid} -X PUT -H 'Authorization: %s' -d '%s'
func NewLockOrUnlockBuildpack ¶
func NewLockOrUnlockBuildpack(ctx *middleware.Context, handler LockOrUnlockBuildpackHandler) *LockOrUnlockBuildpack
NewLockOrUnlockBuildpack creates a new http.Handler for the lock or unlock buildpack operation
func (*LockOrUnlockBuildpack) ServeHTTP ¶
func (o *LockOrUnlockBuildpack) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type LockOrUnlockBuildpackCreated ¶
type LockOrUnlockBuildpackCreated struct { /* In: Body */ Payload *models.LockOrUnlockBuildpackResponseResource `json:"body,omitempty"` }
LockOrUnlockBuildpackCreated successful response
swagger:response lockOrUnlockBuildpackCreated
func NewLockOrUnlockBuildpackCreated ¶
func NewLockOrUnlockBuildpackCreated() *LockOrUnlockBuildpackCreated
NewLockOrUnlockBuildpackCreated creates LockOrUnlockBuildpackCreated with default headers values
func (*LockOrUnlockBuildpackCreated) SetPayload ¶
func (o *LockOrUnlockBuildpackCreated) SetPayload(payload *models.LockOrUnlockBuildpackResponseResource)
SetPayload sets the payload to the lock or unlock buildpack created response
func (*LockOrUnlockBuildpackCreated) WithPayload ¶
func (o *LockOrUnlockBuildpackCreated) WithPayload(payload *models.LockOrUnlockBuildpackResponseResource) *LockOrUnlockBuildpackCreated
WithPayload adds the payload to the lock or unlock buildpack created response
func (*LockOrUnlockBuildpackCreated) WriteResponse ¶
func (o *LockOrUnlockBuildpackCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LockOrUnlockBuildpackHandler ¶
type LockOrUnlockBuildpackHandler interface {
Handle(LockOrUnlockBuildpackParams) middleware.Responder
}
LockOrUnlockBuildpackHandler interface for that can handle valid lock or unlock buildpack params
type LockOrUnlockBuildpackHandlerFunc ¶
type LockOrUnlockBuildpackHandlerFunc func(LockOrUnlockBuildpackParams) middleware.Responder
LockOrUnlockBuildpackHandlerFunc turns a function with the right signature into a lock or unlock buildpack handler
func (LockOrUnlockBuildpackHandlerFunc) Handle ¶
func (fn LockOrUnlockBuildpackHandlerFunc) Handle(params LockOrUnlockBuildpackParams) middleware.Responder
Handle executing the request and returning a response
type LockOrUnlockBuildpackParams ¶
type LockOrUnlockBuildpackParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The guid parameter is used as a part of the request URL: '/v2/buildpacks/: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.LockOrUnlockBuildpackRequest }
LockOrUnlockBuildpackParams contains all the bound params for the lock or unlock buildpack operation typically these are obtained from a http.Request
swagger:parameters lockOrUnlockBuildpack
func NewLockOrUnlockBuildpackParams ¶
func NewLockOrUnlockBuildpackParams() LockOrUnlockBuildpackParams
NewLockOrUnlockBuildpackParams creates a new LockOrUnlockBuildpackParams object no default values defined in spec.
func (*LockOrUnlockBuildpackParams) BindRequest ¶
func (o *LockOrUnlockBuildpackParams) 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 NewLockOrUnlockBuildpackParams() beforehand.
type LockOrUnlockBuildpackURL ¶
type LockOrUnlockBuildpackURL struct { GUID string // contains filtered or unexported fields }
LockOrUnlockBuildpackURL generates an URL for the lock or unlock buildpack operation
func (*LockOrUnlockBuildpackURL) Build ¶
func (o *LockOrUnlockBuildpackURL) Build() (*url.URL, error)
Build a url path and query string
func (*LockOrUnlockBuildpackURL) BuildFull ¶
func (o *LockOrUnlockBuildpackURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*LockOrUnlockBuildpackURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*LockOrUnlockBuildpackURL) SetBasePath ¶
func (o *LockOrUnlockBuildpackURL) 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 (*LockOrUnlockBuildpackURL) String ¶
func (o *LockOrUnlockBuildpackURL) String() string
String returns the string representation of the path with query string
func (*LockOrUnlockBuildpackURL) StringFull ¶
func (o *LockOrUnlockBuildpackURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*LockOrUnlockBuildpackURL) WithBasePath ¶
func (o *LockOrUnlockBuildpackURL) WithBasePath(bp string) *LockOrUnlockBuildpackURL
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 RetrieveBuildpack ¶
type RetrieveBuildpack struct { Context *middleware.Context Handler RetrieveBuildpackHandler }
RetrieveBuildpack swagger:route GET /buildpacks/{guid} buildpacks retrieveBuildpack
Retrieve a Particular Buildpack ¶
curl --insecure -i %s/v2/buildpacks/{guid} -X GET -H 'Authorization: %s'
func NewRetrieveBuildpack ¶
func NewRetrieveBuildpack(ctx *middleware.Context, handler RetrieveBuildpackHandler) *RetrieveBuildpack
NewRetrieveBuildpack creates a new http.Handler for the retrieve buildpack operation
func (*RetrieveBuildpack) ServeHTTP ¶
func (o *RetrieveBuildpack) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RetrieveBuildpackHandler ¶
type RetrieveBuildpackHandler interface {
Handle(RetrieveBuildpackParams) middleware.Responder
}
RetrieveBuildpackHandler interface for that can handle valid retrieve buildpack params
type RetrieveBuildpackHandlerFunc ¶
type RetrieveBuildpackHandlerFunc func(RetrieveBuildpackParams) middleware.Responder
RetrieveBuildpackHandlerFunc turns a function with the right signature into a retrieve buildpack handler
func (RetrieveBuildpackHandlerFunc) Handle ¶
func (fn RetrieveBuildpackHandlerFunc) Handle(params RetrieveBuildpackParams) middleware.Responder
Handle executing the request and returning a response
type RetrieveBuildpackOK ¶
type RetrieveBuildpackOK struct { /* In: Body */ Payload *models.RetrieveBuildpackResponseResource `json:"body,omitempty"` }
RetrieveBuildpackOK successful response
swagger:response retrieveBuildpackOK
func NewRetrieveBuildpackOK ¶
func NewRetrieveBuildpackOK() *RetrieveBuildpackOK
NewRetrieveBuildpackOK creates RetrieveBuildpackOK with default headers values
func (*RetrieveBuildpackOK) SetPayload ¶
func (o *RetrieveBuildpackOK) SetPayload(payload *models.RetrieveBuildpackResponseResource)
SetPayload sets the payload to the retrieve buildpack o k response
func (*RetrieveBuildpackOK) WithPayload ¶
func (o *RetrieveBuildpackOK) WithPayload(payload *models.RetrieveBuildpackResponseResource) *RetrieveBuildpackOK
WithPayload adds the payload to the retrieve buildpack o k response
func (*RetrieveBuildpackOK) WriteResponse ¶
func (o *RetrieveBuildpackOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RetrieveBuildpackParams ¶
type RetrieveBuildpackParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The guid parameter is used as a part of the request URL: '/v2/buildpacks/:guid' Required: true In: path */ GUID string }
RetrieveBuildpackParams contains all the bound params for the retrieve buildpack operation typically these are obtained from a http.Request
swagger:parameters retrieveBuildpack
func NewRetrieveBuildpackParams ¶
func NewRetrieveBuildpackParams() RetrieveBuildpackParams
NewRetrieveBuildpackParams creates a new RetrieveBuildpackParams object no default values defined in spec.
func (*RetrieveBuildpackParams) BindRequest ¶
func (o *RetrieveBuildpackParams) 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 NewRetrieveBuildpackParams() beforehand.
type RetrieveBuildpackURL ¶
type RetrieveBuildpackURL struct { GUID string // contains filtered or unexported fields }
RetrieveBuildpackURL generates an URL for the retrieve buildpack operation
func (*RetrieveBuildpackURL) Build ¶
func (o *RetrieveBuildpackURL) Build() (*url.URL, error)
Build a url path and query string
func (*RetrieveBuildpackURL) BuildFull ¶
func (o *RetrieveBuildpackURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RetrieveBuildpackURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RetrieveBuildpackURL) SetBasePath ¶
func (o *RetrieveBuildpackURL) 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 (*RetrieveBuildpackURL) String ¶
func (o *RetrieveBuildpackURL) String() string
String returns the string representation of the path with query string
func (*RetrieveBuildpackURL) StringFull ¶
func (o *RetrieveBuildpackURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RetrieveBuildpackURL) WithBasePath ¶
func (o *RetrieveBuildpackURL) WithBasePath(bp string) *RetrieveBuildpackURL
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
Source Files ¶
- creates_admin_buildpack.go
- creates_admin_buildpack_parameters.go
- creates_admin_buildpack_responses.go
- creates_admin_buildpack_urlbuilder.go
- delete_buildpack.go
- delete_buildpack_parameters.go
- delete_buildpack_responses.go
- delete_buildpack_urlbuilder.go
- list_all_buildpacks.go
- list_all_buildpacks_parameters.go
- list_all_buildpacks_responses.go
- list_all_buildpacks_urlbuilder.go
- lock_or_unlock_buildpack.go
- lock_or_unlock_buildpack_parameters.go
- lock_or_unlock_buildpack_responses.go
- lock_or_unlock_buildpack_urlbuilder.go
- retrieve_buildpack.go
- retrieve_buildpack_parameters.go
- retrieve_buildpack_responses.go
- retrieve_buildpack_urlbuilder.go