Documentation ¶
Index ¶
- Constants
- type DeleteRepository
- type DeleteRepositoryBadRequest
- func (o *DeleteRepositoryBadRequest) SetPayload(payload *models.Errors)
- func (o *DeleteRepositoryBadRequest) SetXRequestID(xRequestID string)
- func (o *DeleteRepositoryBadRequest) WithPayload(payload *models.Errors) *DeleteRepositoryBadRequest
- func (o *DeleteRepositoryBadRequest) WithXRequestID(xRequestID string) *DeleteRepositoryBadRequest
- func (o *DeleteRepositoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRepositoryForbidden
- func (o *DeleteRepositoryForbidden) SetPayload(payload *models.Errors)
- func (o *DeleteRepositoryForbidden) SetXRequestID(xRequestID string)
- func (o *DeleteRepositoryForbidden) WithPayload(payload *models.Errors) *DeleteRepositoryForbidden
- func (o *DeleteRepositoryForbidden) WithXRequestID(xRequestID string) *DeleteRepositoryForbidden
- func (o *DeleteRepositoryForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRepositoryHandler
- type DeleteRepositoryHandlerFunc
- type DeleteRepositoryInternalServerError
- func (o *DeleteRepositoryInternalServerError) SetPayload(payload *models.Errors)
- func (o *DeleteRepositoryInternalServerError) SetXRequestID(xRequestID string)
- func (o *DeleteRepositoryInternalServerError) WithPayload(payload *models.Errors) *DeleteRepositoryInternalServerError
- func (o *DeleteRepositoryInternalServerError) WithXRequestID(xRequestID string) *DeleteRepositoryInternalServerError
- func (o *DeleteRepositoryInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRepositoryNotFound
- func (o *DeleteRepositoryNotFound) SetPayload(payload *models.Errors)
- func (o *DeleteRepositoryNotFound) SetXRequestID(xRequestID string)
- func (o *DeleteRepositoryNotFound) WithPayload(payload *models.Errors) *DeleteRepositoryNotFound
- func (o *DeleteRepositoryNotFound) WithXRequestID(xRequestID string) *DeleteRepositoryNotFound
- func (o *DeleteRepositoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRepositoryOK
- type DeleteRepositoryParams
- type DeleteRepositoryURL
- func (o *DeleteRepositoryURL) Build() (*url.URL, error)
- func (o *DeleteRepositoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteRepositoryURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteRepositoryURL) SetBasePath(bp string)
- func (o *DeleteRepositoryURL) String() string
- func (o *DeleteRepositoryURL) StringFull(scheme, host string) string
- func (o *DeleteRepositoryURL) WithBasePath(bp string) *DeleteRepositoryURL
- type DeleteRepositoryUnauthorized
- func (o *DeleteRepositoryUnauthorized) SetPayload(payload *models.Errors)
- func (o *DeleteRepositoryUnauthorized) SetXRequestID(xRequestID string)
- func (o *DeleteRepositoryUnauthorized) WithPayload(payload *models.Errors) *DeleteRepositoryUnauthorized
- func (o *DeleteRepositoryUnauthorized) WithXRequestID(xRequestID string) *DeleteRepositoryUnauthorized
- func (o *DeleteRepositoryUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRepository
- type GetRepositoryBadRequest
- func (o *GetRepositoryBadRequest) SetPayload(payload *models.Errors)
- func (o *GetRepositoryBadRequest) SetXRequestID(xRequestID string)
- func (o *GetRepositoryBadRequest) WithPayload(payload *models.Errors) *GetRepositoryBadRequest
- func (o *GetRepositoryBadRequest) WithXRequestID(xRequestID string) *GetRepositoryBadRequest
- func (o *GetRepositoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRepositoryForbidden
- func (o *GetRepositoryForbidden) SetPayload(payload *models.Errors)
- func (o *GetRepositoryForbidden) SetXRequestID(xRequestID string)
- func (o *GetRepositoryForbidden) WithPayload(payload *models.Errors) *GetRepositoryForbidden
- func (o *GetRepositoryForbidden) WithXRequestID(xRequestID string) *GetRepositoryForbidden
- func (o *GetRepositoryForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRepositoryHandler
- type GetRepositoryHandlerFunc
- type GetRepositoryInternalServerError
- func (o *GetRepositoryInternalServerError) SetPayload(payload *models.Errors)
- func (o *GetRepositoryInternalServerError) SetXRequestID(xRequestID string)
- func (o *GetRepositoryInternalServerError) WithPayload(payload *models.Errors) *GetRepositoryInternalServerError
- func (o *GetRepositoryInternalServerError) WithXRequestID(xRequestID string) *GetRepositoryInternalServerError
- func (o *GetRepositoryInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRepositoryNotFound
- func (o *GetRepositoryNotFound) SetPayload(payload *models.Errors)
- func (o *GetRepositoryNotFound) SetXRequestID(xRequestID string)
- func (o *GetRepositoryNotFound) WithPayload(payload *models.Errors) *GetRepositoryNotFound
- func (o *GetRepositoryNotFound) WithXRequestID(xRequestID string) *GetRepositoryNotFound
- func (o *GetRepositoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRepositoryOK
- type GetRepositoryParams
- type GetRepositoryURL
- func (o *GetRepositoryURL) Build() (*url.URL, error)
- func (o *GetRepositoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRepositoryURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRepositoryURL) SetBasePath(bp string)
- func (o *GetRepositoryURL) String() string
- func (o *GetRepositoryURL) StringFull(scheme, host string) string
- func (o *GetRepositoryURL) WithBasePath(bp string) *GetRepositoryURL
- type GetRepositoryUnauthorized
- func (o *GetRepositoryUnauthorized) SetPayload(payload *models.Errors)
- func (o *GetRepositoryUnauthorized) SetXRequestID(xRequestID string)
- func (o *GetRepositoryUnauthorized) WithPayload(payload *models.Errors) *GetRepositoryUnauthorized
- func (o *GetRepositoryUnauthorized) WithXRequestID(xRequestID string) *GetRepositoryUnauthorized
- func (o *GetRepositoryUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRepositories
- type ListRepositoriesBadRequest
- func (o *ListRepositoriesBadRequest) SetPayload(payload *models.Errors)
- func (o *ListRepositoriesBadRequest) SetXRequestID(xRequestID string)
- func (o *ListRepositoriesBadRequest) WithPayload(payload *models.Errors) *ListRepositoriesBadRequest
- func (o *ListRepositoriesBadRequest) WithXRequestID(xRequestID string) *ListRepositoriesBadRequest
- func (o *ListRepositoriesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRepositoriesForbidden
- func (o *ListRepositoriesForbidden) SetPayload(payload *models.Errors)
- func (o *ListRepositoriesForbidden) SetXRequestID(xRequestID string)
- func (o *ListRepositoriesForbidden) WithPayload(payload *models.Errors) *ListRepositoriesForbidden
- func (o *ListRepositoriesForbidden) WithXRequestID(xRequestID string) *ListRepositoriesForbidden
- func (o *ListRepositoriesForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRepositoriesHandler
- type ListRepositoriesHandlerFunc
- type ListRepositoriesInternalServerError
- func (o *ListRepositoriesInternalServerError) SetPayload(payload *models.Errors)
- func (o *ListRepositoriesInternalServerError) SetXRequestID(xRequestID string)
- func (o *ListRepositoriesInternalServerError) WithPayload(payload *models.Errors) *ListRepositoriesInternalServerError
- func (o *ListRepositoriesInternalServerError) WithXRequestID(xRequestID string) *ListRepositoriesInternalServerError
- func (o *ListRepositoriesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRepositoriesNotFound
- func (o *ListRepositoriesNotFound) SetPayload(payload *models.Errors)
- func (o *ListRepositoriesNotFound) SetXRequestID(xRequestID string)
- func (o *ListRepositoriesNotFound) WithPayload(payload *models.Errors) *ListRepositoriesNotFound
- func (o *ListRepositoriesNotFound) WithXRequestID(xRequestID string) *ListRepositoriesNotFound
- func (o *ListRepositoriesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRepositoriesOK
- func (o *ListRepositoriesOK) SetLink(link string)
- func (o *ListRepositoriesOK) SetPayload(payload []*models.Repository)
- func (o *ListRepositoriesOK) SetXTotalCount(xTotalCount int64)
- func (o *ListRepositoriesOK) WithLink(link string) *ListRepositoriesOK
- func (o *ListRepositoriesOK) WithPayload(payload []*models.Repository) *ListRepositoriesOK
- func (o *ListRepositoriesOK) WithXTotalCount(xTotalCount int64) *ListRepositoriesOK
- func (o *ListRepositoriesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRepositoriesParams
- type ListRepositoriesURL
- func (o *ListRepositoriesURL) Build() (*url.URL, error)
- func (o *ListRepositoriesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListRepositoriesURL) Must(u *url.URL, err error) *url.URL
- func (o *ListRepositoriesURL) SetBasePath(bp string)
- func (o *ListRepositoriesURL) String() string
- func (o *ListRepositoriesURL) StringFull(scheme, host string) string
- func (o *ListRepositoriesURL) WithBasePath(bp string) *ListRepositoriesURL
- type ListRepositoriesUnauthorized
- func (o *ListRepositoriesUnauthorized) SetPayload(payload *models.Errors)
- func (o *ListRepositoriesUnauthorized) SetXRequestID(xRequestID string)
- func (o *ListRepositoriesUnauthorized) WithPayload(payload *models.Errors) *ListRepositoriesUnauthorized
- func (o *ListRepositoriesUnauthorized) WithXRequestID(xRequestID string) *ListRepositoriesUnauthorized
- func (o *ListRepositoriesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRepository
- type UpdateRepositoryBadRequest
- func (o *UpdateRepositoryBadRequest) SetPayload(payload *models.Errors)
- func (o *UpdateRepositoryBadRequest) SetXRequestID(xRequestID string)
- func (o *UpdateRepositoryBadRequest) WithPayload(payload *models.Errors) *UpdateRepositoryBadRequest
- func (o *UpdateRepositoryBadRequest) WithXRequestID(xRequestID string) *UpdateRepositoryBadRequest
- func (o *UpdateRepositoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRepositoryForbidden
- func (o *UpdateRepositoryForbidden) SetPayload(payload *models.Errors)
- func (o *UpdateRepositoryForbidden) SetXRequestID(xRequestID string)
- func (o *UpdateRepositoryForbidden) WithPayload(payload *models.Errors) *UpdateRepositoryForbidden
- func (o *UpdateRepositoryForbidden) WithXRequestID(xRequestID string) *UpdateRepositoryForbidden
- func (o *UpdateRepositoryForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRepositoryHandler
- type UpdateRepositoryHandlerFunc
- type UpdateRepositoryInternalServerError
- func (o *UpdateRepositoryInternalServerError) SetPayload(payload *models.Errors)
- func (o *UpdateRepositoryInternalServerError) SetXRequestID(xRequestID string)
- func (o *UpdateRepositoryInternalServerError) WithPayload(payload *models.Errors) *UpdateRepositoryInternalServerError
- func (o *UpdateRepositoryInternalServerError) WithXRequestID(xRequestID string) *UpdateRepositoryInternalServerError
- func (o *UpdateRepositoryInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRepositoryNotFound
- func (o *UpdateRepositoryNotFound) SetPayload(payload *models.Errors)
- func (o *UpdateRepositoryNotFound) SetXRequestID(xRequestID string)
- func (o *UpdateRepositoryNotFound) WithPayload(payload *models.Errors) *UpdateRepositoryNotFound
- func (o *UpdateRepositoryNotFound) WithXRequestID(xRequestID string) *UpdateRepositoryNotFound
- func (o *UpdateRepositoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRepositoryOK
- type UpdateRepositoryParams
- type UpdateRepositoryURL
- func (o *UpdateRepositoryURL) Build() (*url.URL, error)
- func (o *UpdateRepositoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateRepositoryURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateRepositoryURL) SetBasePath(bp string)
- func (o *UpdateRepositoryURL) String() string
- func (o *UpdateRepositoryURL) StringFull(scheme, host string) string
- func (o *UpdateRepositoryURL) WithBasePath(bp string) *UpdateRepositoryURL
- type UpdateRepositoryUnauthorized
- func (o *UpdateRepositoryUnauthorized) SetPayload(payload *models.Errors)
- func (o *UpdateRepositoryUnauthorized) SetXRequestID(xRequestID string)
- func (o *UpdateRepositoryUnauthorized) WithPayload(payload *models.Errors) *UpdateRepositoryUnauthorized
- func (o *UpdateRepositoryUnauthorized) WithXRequestID(xRequestID string) *UpdateRepositoryUnauthorized
- func (o *UpdateRepositoryUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const DeleteRepositoryBadRequestCode int = 400
DeleteRepositoryBadRequestCode is the HTTP code returned for type DeleteRepositoryBadRequest
const DeleteRepositoryForbiddenCode int = 403
DeleteRepositoryForbiddenCode is the HTTP code returned for type DeleteRepositoryForbidden
const DeleteRepositoryInternalServerErrorCode int = 500
DeleteRepositoryInternalServerErrorCode is the HTTP code returned for type DeleteRepositoryInternalServerError
const DeleteRepositoryNotFoundCode int = 404
DeleteRepositoryNotFoundCode is the HTTP code returned for type DeleteRepositoryNotFound
const DeleteRepositoryOKCode int = 200
DeleteRepositoryOKCode is the HTTP code returned for type DeleteRepositoryOK
DeleteRepositoryUnauthorizedCode is the HTTP code returned for type DeleteRepositoryUnauthorized
const GetRepositoryBadRequestCode int = 400
GetRepositoryBadRequestCode is the HTTP code returned for type GetRepositoryBadRequest
const GetRepositoryForbiddenCode int = 403
GetRepositoryForbiddenCode is the HTTP code returned for type GetRepositoryForbidden
const GetRepositoryInternalServerErrorCode int = 500
GetRepositoryInternalServerErrorCode is the HTTP code returned for type GetRepositoryInternalServerError
const GetRepositoryNotFoundCode int = 404
GetRepositoryNotFoundCode is the HTTP code returned for type GetRepositoryNotFound
const GetRepositoryOKCode int = 200
GetRepositoryOKCode is the HTTP code returned for type GetRepositoryOK
GetRepositoryUnauthorizedCode is the HTTP code returned for type GetRepositoryUnauthorized
const ListRepositoriesBadRequestCode int = 400
ListRepositoriesBadRequestCode is the HTTP code returned for type ListRepositoriesBadRequest
const ListRepositoriesForbiddenCode int = 403
ListRepositoriesForbiddenCode is the HTTP code returned for type ListRepositoriesForbidden
const ListRepositoriesInternalServerErrorCode int = 500
ListRepositoriesInternalServerErrorCode is the HTTP code returned for type ListRepositoriesInternalServerError
const ListRepositoriesNotFoundCode int = 404
ListRepositoriesNotFoundCode is the HTTP code returned for type ListRepositoriesNotFound
const ListRepositoriesOKCode int = 200
ListRepositoriesOKCode is the HTTP code returned for type ListRepositoriesOK
ListRepositoriesUnauthorizedCode is the HTTP code returned for type ListRepositoriesUnauthorized
const UpdateRepositoryBadRequestCode int = 400
UpdateRepositoryBadRequestCode is the HTTP code returned for type UpdateRepositoryBadRequest
const UpdateRepositoryForbiddenCode int = 403
UpdateRepositoryForbiddenCode is the HTTP code returned for type UpdateRepositoryForbidden
const UpdateRepositoryInternalServerErrorCode int = 500
UpdateRepositoryInternalServerErrorCode is the HTTP code returned for type UpdateRepositoryInternalServerError
const UpdateRepositoryNotFoundCode int = 404
UpdateRepositoryNotFoundCode is the HTTP code returned for type UpdateRepositoryNotFound
const UpdateRepositoryOKCode int = 200
UpdateRepositoryOKCode is the HTTP code returned for type UpdateRepositoryOK
UpdateRepositoryUnauthorizedCode is the HTTP code returned for type UpdateRepositoryUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteRepository ¶
type DeleteRepository struct { Context *middleware.Context Handler DeleteRepositoryHandler }
DeleteRepository swagger:route DELETE /projects/{project_name}/repositories/{repository_name} repository deleteRepository
Delete repository ¶
Delete the repository specified by name
func NewDeleteRepository ¶
func NewDeleteRepository(ctx *middleware.Context, handler DeleteRepositoryHandler) *DeleteRepository
NewDeleteRepository creates a new http.Handler for the delete repository operation
func (*DeleteRepository) ServeHTTP ¶
func (o *DeleteRepository) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteRepositoryBadRequest ¶
type DeleteRepositoryBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRepositoryBadRequest Bad request
swagger:response deleteRepositoryBadRequest
func NewDeleteRepositoryBadRequest ¶
func NewDeleteRepositoryBadRequest() *DeleteRepositoryBadRequest
NewDeleteRepositoryBadRequest creates DeleteRepositoryBadRequest with default headers values
func (*DeleteRepositoryBadRequest) SetPayload ¶
func (o *DeleteRepositoryBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete repository bad request response
func (*DeleteRepositoryBadRequest) SetXRequestID ¶
func (o *DeleteRepositoryBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete repository bad request response
func (*DeleteRepositoryBadRequest) WithPayload ¶
func (o *DeleteRepositoryBadRequest) WithPayload(payload *models.Errors) *DeleteRepositoryBadRequest
WithPayload adds the payload to the delete repository bad request response
func (*DeleteRepositoryBadRequest) WithXRequestID ¶
func (o *DeleteRepositoryBadRequest) WithXRequestID(xRequestID string) *DeleteRepositoryBadRequest
WithXRequestID adds the xRequestId to the delete repository bad request response
func (*DeleteRepositoryBadRequest) WriteResponse ¶
func (o *DeleteRepositoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRepositoryForbidden ¶
type DeleteRepositoryForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRepositoryForbidden Forbidden
swagger:response deleteRepositoryForbidden
func NewDeleteRepositoryForbidden ¶
func NewDeleteRepositoryForbidden() *DeleteRepositoryForbidden
NewDeleteRepositoryForbidden creates DeleteRepositoryForbidden with default headers values
func (*DeleteRepositoryForbidden) SetPayload ¶
func (o *DeleteRepositoryForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete repository forbidden response
func (*DeleteRepositoryForbidden) SetXRequestID ¶
func (o *DeleteRepositoryForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete repository forbidden response
func (*DeleteRepositoryForbidden) WithPayload ¶
func (o *DeleteRepositoryForbidden) WithPayload(payload *models.Errors) *DeleteRepositoryForbidden
WithPayload adds the payload to the delete repository forbidden response
func (*DeleteRepositoryForbidden) WithXRequestID ¶
func (o *DeleteRepositoryForbidden) WithXRequestID(xRequestID string) *DeleteRepositoryForbidden
WithXRequestID adds the xRequestId to the delete repository forbidden response
func (*DeleteRepositoryForbidden) WriteResponse ¶
func (o *DeleteRepositoryForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRepositoryHandler ¶
type DeleteRepositoryHandler interface {
Handle(DeleteRepositoryParams, interface{}) middleware.Responder
}
DeleteRepositoryHandler interface for that can handle valid delete repository params
type DeleteRepositoryHandlerFunc ¶
type DeleteRepositoryHandlerFunc func(DeleteRepositoryParams, interface{}) middleware.Responder
DeleteRepositoryHandlerFunc turns a function with the right signature into a delete repository handler
func (DeleteRepositoryHandlerFunc) Handle ¶
func (fn DeleteRepositoryHandlerFunc) Handle(params DeleteRepositoryParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteRepositoryInternalServerError ¶
type DeleteRepositoryInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRepositoryInternalServerError Internal server error
swagger:response deleteRepositoryInternalServerError
func NewDeleteRepositoryInternalServerError ¶
func NewDeleteRepositoryInternalServerError() *DeleteRepositoryInternalServerError
NewDeleteRepositoryInternalServerError creates DeleteRepositoryInternalServerError with default headers values
func (*DeleteRepositoryInternalServerError) SetPayload ¶
func (o *DeleteRepositoryInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete repository internal server error response
func (*DeleteRepositoryInternalServerError) SetXRequestID ¶
func (o *DeleteRepositoryInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete repository internal server error response
func (*DeleteRepositoryInternalServerError) WithPayload ¶
func (o *DeleteRepositoryInternalServerError) WithPayload(payload *models.Errors) *DeleteRepositoryInternalServerError
WithPayload adds the payload to the delete repository internal server error response
func (*DeleteRepositoryInternalServerError) WithXRequestID ¶
func (o *DeleteRepositoryInternalServerError) WithXRequestID(xRequestID string) *DeleteRepositoryInternalServerError
WithXRequestID adds the xRequestId to the delete repository internal server error response
func (*DeleteRepositoryInternalServerError) WriteResponse ¶
func (o *DeleteRepositoryInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRepositoryNotFound ¶
type DeleteRepositoryNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRepositoryNotFound Not found
swagger:response deleteRepositoryNotFound
func NewDeleteRepositoryNotFound ¶
func NewDeleteRepositoryNotFound() *DeleteRepositoryNotFound
NewDeleteRepositoryNotFound creates DeleteRepositoryNotFound with default headers values
func (*DeleteRepositoryNotFound) SetPayload ¶
func (o *DeleteRepositoryNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete repository not found response
func (*DeleteRepositoryNotFound) SetXRequestID ¶
func (o *DeleteRepositoryNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete repository not found response
func (*DeleteRepositoryNotFound) WithPayload ¶
func (o *DeleteRepositoryNotFound) WithPayload(payload *models.Errors) *DeleteRepositoryNotFound
WithPayload adds the payload to the delete repository not found response
func (*DeleteRepositoryNotFound) WithXRequestID ¶
func (o *DeleteRepositoryNotFound) WithXRequestID(xRequestID string) *DeleteRepositoryNotFound
WithXRequestID adds the xRequestId to the delete repository not found response
func (*DeleteRepositoryNotFound) WriteResponse ¶
func (o *DeleteRepositoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRepositoryOK ¶
type DeleteRepositoryOK struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` }
DeleteRepositoryOK Success
swagger:response deleteRepositoryOK
func NewDeleteRepositoryOK ¶
func NewDeleteRepositoryOK() *DeleteRepositoryOK
NewDeleteRepositoryOK creates DeleteRepositoryOK with default headers values
func (*DeleteRepositoryOK) SetXRequestID ¶
func (o *DeleteRepositoryOK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete repository o k response
func (*DeleteRepositoryOK) WithXRequestID ¶
func (o *DeleteRepositoryOK) WithXRequestID(xRequestID string) *DeleteRepositoryOK
WithXRequestID adds the xRequestId to the delete repository o k response
func (*DeleteRepositoryOK) WriteResponse ¶
func (o *DeleteRepositoryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRepositoryParams ¶
type DeleteRepositoryParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The name of the project Required: true In: path */ ProjectName string /*The name of the repository. If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb Required: true In: path */ RepositoryName string }
DeleteRepositoryParams contains all the bound params for the delete repository operation typically these are obtained from a http.Request
swagger:parameters deleteRepository
func NewDeleteRepositoryParams ¶
func NewDeleteRepositoryParams() DeleteRepositoryParams
NewDeleteRepositoryParams creates a new DeleteRepositoryParams object no default values defined in spec.
func (*DeleteRepositoryParams) BindRequest ¶
func (o *DeleteRepositoryParams) 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 NewDeleteRepositoryParams() beforehand.
type DeleteRepositoryURL ¶
type DeleteRepositoryURL struct { ProjectName string RepositoryName string // contains filtered or unexported fields }
DeleteRepositoryURL generates an URL for the delete repository operation
func (*DeleteRepositoryURL) Build ¶
func (o *DeleteRepositoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteRepositoryURL) BuildFull ¶
func (o *DeleteRepositoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteRepositoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteRepositoryURL) SetBasePath ¶
func (o *DeleteRepositoryURL) 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 (*DeleteRepositoryURL) String ¶
func (o *DeleteRepositoryURL) String() string
String returns the string representation of the path with query string
func (*DeleteRepositoryURL) StringFull ¶
func (o *DeleteRepositoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteRepositoryURL) WithBasePath ¶
func (o *DeleteRepositoryURL) WithBasePath(bp string) *DeleteRepositoryURL
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 DeleteRepositoryUnauthorized ¶
type DeleteRepositoryUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
DeleteRepositoryUnauthorized Unauthorized
swagger:response deleteRepositoryUnauthorized
func NewDeleteRepositoryUnauthorized ¶
func NewDeleteRepositoryUnauthorized() *DeleteRepositoryUnauthorized
NewDeleteRepositoryUnauthorized creates DeleteRepositoryUnauthorized with default headers values
func (*DeleteRepositoryUnauthorized) SetPayload ¶
func (o *DeleteRepositoryUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete repository unauthorized response
func (*DeleteRepositoryUnauthorized) SetXRequestID ¶
func (o *DeleteRepositoryUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete repository unauthorized response
func (*DeleteRepositoryUnauthorized) WithPayload ¶
func (o *DeleteRepositoryUnauthorized) WithPayload(payload *models.Errors) *DeleteRepositoryUnauthorized
WithPayload adds the payload to the delete repository unauthorized response
func (*DeleteRepositoryUnauthorized) WithXRequestID ¶
func (o *DeleteRepositoryUnauthorized) WithXRequestID(xRequestID string) *DeleteRepositoryUnauthorized
WithXRequestID adds the xRequestId to the delete repository unauthorized response
func (*DeleteRepositoryUnauthorized) WriteResponse ¶
func (o *DeleteRepositoryUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRepository ¶
type GetRepository struct { Context *middleware.Context Handler GetRepositoryHandler }
GetRepository swagger:route GET /projects/{project_name}/repositories/{repository_name} repository getRepository
Get repository ¶
Get the repository specified by name
func NewGetRepository ¶
func NewGetRepository(ctx *middleware.Context, handler GetRepositoryHandler) *GetRepository
NewGetRepository creates a new http.Handler for the get repository operation
func (*GetRepository) ServeHTTP ¶
func (o *GetRepository) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRepositoryBadRequest ¶
type GetRepositoryBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetRepositoryBadRequest Bad request
swagger:response getRepositoryBadRequest
func NewGetRepositoryBadRequest ¶
func NewGetRepositoryBadRequest() *GetRepositoryBadRequest
NewGetRepositoryBadRequest creates GetRepositoryBadRequest with default headers values
func (*GetRepositoryBadRequest) SetPayload ¶
func (o *GetRepositoryBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get repository bad request response
func (*GetRepositoryBadRequest) SetXRequestID ¶
func (o *GetRepositoryBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get repository bad request response
func (*GetRepositoryBadRequest) WithPayload ¶
func (o *GetRepositoryBadRequest) WithPayload(payload *models.Errors) *GetRepositoryBadRequest
WithPayload adds the payload to the get repository bad request response
func (*GetRepositoryBadRequest) WithXRequestID ¶
func (o *GetRepositoryBadRequest) WithXRequestID(xRequestID string) *GetRepositoryBadRequest
WithXRequestID adds the xRequestId to the get repository bad request response
func (*GetRepositoryBadRequest) WriteResponse ¶
func (o *GetRepositoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRepositoryForbidden ¶
type GetRepositoryForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetRepositoryForbidden Forbidden
swagger:response getRepositoryForbidden
func NewGetRepositoryForbidden ¶
func NewGetRepositoryForbidden() *GetRepositoryForbidden
NewGetRepositoryForbidden creates GetRepositoryForbidden with default headers values
func (*GetRepositoryForbidden) SetPayload ¶
func (o *GetRepositoryForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get repository forbidden response
func (*GetRepositoryForbidden) SetXRequestID ¶
func (o *GetRepositoryForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get repository forbidden response
func (*GetRepositoryForbidden) WithPayload ¶
func (o *GetRepositoryForbidden) WithPayload(payload *models.Errors) *GetRepositoryForbidden
WithPayload adds the payload to the get repository forbidden response
func (*GetRepositoryForbidden) WithXRequestID ¶
func (o *GetRepositoryForbidden) WithXRequestID(xRequestID string) *GetRepositoryForbidden
WithXRequestID adds the xRequestId to the get repository forbidden response
func (*GetRepositoryForbidden) WriteResponse ¶
func (o *GetRepositoryForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRepositoryHandler ¶
type GetRepositoryHandler interface {
Handle(GetRepositoryParams, interface{}) middleware.Responder
}
GetRepositoryHandler interface for that can handle valid get repository params
type GetRepositoryHandlerFunc ¶
type GetRepositoryHandlerFunc func(GetRepositoryParams, interface{}) middleware.Responder
GetRepositoryHandlerFunc turns a function with the right signature into a get repository handler
func (GetRepositoryHandlerFunc) Handle ¶
func (fn GetRepositoryHandlerFunc) Handle(params GetRepositoryParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetRepositoryInternalServerError ¶
type GetRepositoryInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetRepositoryInternalServerError Internal server error
swagger:response getRepositoryInternalServerError
func NewGetRepositoryInternalServerError ¶
func NewGetRepositoryInternalServerError() *GetRepositoryInternalServerError
NewGetRepositoryInternalServerError creates GetRepositoryInternalServerError with default headers values
func (*GetRepositoryInternalServerError) SetPayload ¶
func (o *GetRepositoryInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get repository internal server error response
func (*GetRepositoryInternalServerError) SetXRequestID ¶
func (o *GetRepositoryInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get repository internal server error response
func (*GetRepositoryInternalServerError) WithPayload ¶
func (o *GetRepositoryInternalServerError) WithPayload(payload *models.Errors) *GetRepositoryInternalServerError
WithPayload adds the payload to the get repository internal server error response
func (*GetRepositoryInternalServerError) WithXRequestID ¶
func (o *GetRepositoryInternalServerError) WithXRequestID(xRequestID string) *GetRepositoryInternalServerError
WithXRequestID adds the xRequestId to the get repository internal server error response
func (*GetRepositoryInternalServerError) WriteResponse ¶
func (o *GetRepositoryInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRepositoryNotFound ¶
type GetRepositoryNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetRepositoryNotFound Not found
swagger:response getRepositoryNotFound
func NewGetRepositoryNotFound ¶
func NewGetRepositoryNotFound() *GetRepositoryNotFound
NewGetRepositoryNotFound creates GetRepositoryNotFound with default headers values
func (*GetRepositoryNotFound) SetPayload ¶
func (o *GetRepositoryNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get repository not found response
func (*GetRepositoryNotFound) SetXRequestID ¶
func (o *GetRepositoryNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get repository not found response
func (*GetRepositoryNotFound) WithPayload ¶
func (o *GetRepositoryNotFound) WithPayload(payload *models.Errors) *GetRepositoryNotFound
WithPayload adds the payload to the get repository not found response
func (*GetRepositoryNotFound) WithXRequestID ¶
func (o *GetRepositoryNotFound) WithXRequestID(xRequestID string) *GetRepositoryNotFound
WithXRequestID adds the xRequestId to the get repository not found response
func (*GetRepositoryNotFound) WriteResponse ¶
func (o *GetRepositoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRepositoryOK ¶
type GetRepositoryOK struct { /* In: Body */ Payload *models.Repository `json:"body,omitempty"` }
GetRepositoryOK Success
swagger:response getRepositoryOK
func NewGetRepositoryOK ¶
func NewGetRepositoryOK() *GetRepositoryOK
NewGetRepositoryOK creates GetRepositoryOK with default headers values
func (*GetRepositoryOK) SetPayload ¶
func (o *GetRepositoryOK) SetPayload(payload *models.Repository)
SetPayload sets the payload to the get repository o k response
func (*GetRepositoryOK) WithPayload ¶
func (o *GetRepositoryOK) WithPayload(payload *models.Repository) *GetRepositoryOK
WithPayload adds the payload to the get repository o k response
func (*GetRepositoryOK) WriteResponse ¶
func (o *GetRepositoryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRepositoryParams ¶
type GetRepositoryParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The name of the project Required: true In: path */ ProjectName string /*The name of the repository. If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb Required: true In: path */ RepositoryName string }
GetRepositoryParams contains all the bound params for the get repository operation typically these are obtained from a http.Request
swagger:parameters getRepository
func NewGetRepositoryParams ¶
func NewGetRepositoryParams() GetRepositoryParams
NewGetRepositoryParams creates a new GetRepositoryParams object no default values defined in spec.
func (*GetRepositoryParams) BindRequest ¶
func (o *GetRepositoryParams) 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 NewGetRepositoryParams() beforehand.
type GetRepositoryURL ¶
type GetRepositoryURL struct { ProjectName string RepositoryName string // contains filtered or unexported fields }
GetRepositoryURL generates an URL for the get repository operation
func (*GetRepositoryURL) Build ¶
func (o *GetRepositoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRepositoryURL) BuildFull ¶
func (o *GetRepositoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRepositoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRepositoryURL) SetBasePath ¶
func (o *GetRepositoryURL) 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 (*GetRepositoryURL) String ¶
func (o *GetRepositoryURL) String() string
String returns the string representation of the path with query string
func (*GetRepositoryURL) StringFull ¶
func (o *GetRepositoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRepositoryURL) WithBasePath ¶
func (o *GetRepositoryURL) WithBasePath(bp string) *GetRepositoryURL
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 GetRepositoryUnauthorized ¶
type GetRepositoryUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
GetRepositoryUnauthorized Unauthorized
swagger:response getRepositoryUnauthorized
func NewGetRepositoryUnauthorized ¶
func NewGetRepositoryUnauthorized() *GetRepositoryUnauthorized
NewGetRepositoryUnauthorized creates GetRepositoryUnauthorized with default headers values
func (*GetRepositoryUnauthorized) SetPayload ¶
func (o *GetRepositoryUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get repository unauthorized response
func (*GetRepositoryUnauthorized) SetXRequestID ¶
func (o *GetRepositoryUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get repository unauthorized response
func (*GetRepositoryUnauthorized) WithPayload ¶
func (o *GetRepositoryUnauthorized) WithPayload(payload *models.Errors) *GetRepositoryUnauthorized
WithPayload adds the payload to the get repository unauthorized response
func (*GetRepositoryUnauthorized) WithXRequestID ¶
func (o *GetRepositoryUnauthorized) WithXRequestID(xRequestID string) *GetRepositoryUnauthorized
WithXRequestID adds the xRequestId to the get repository unauthorized response
func (*GetRepositoryUnauthorized) WriteResponse ¶
func (o *GetRepositoryUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRepositories ¶
type ListRepositories struct { Context *middleware.Context Handler ListRepositoriesHandler }
ListRepositories swagger:route GET /projects/{project_name}/repositories repository listRepositories
List repositories ¶
List repositories of the specified project
func NewListRepositories ¶
func NewListRepositories(ctx *middleware.Context, handler ListRepositoriesHandler) *ListRepositories
NewListRepositories creates a new http.Handler for the list repositories operation
func (*ListRepositories) ServeHTTP ¶
func (o *ListRepositories) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListRepositoriesBadRequest ¶
type ListRepositoriesBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ListRepositoriesBadRequest Bad request
swagger:response listRepositoriesBadRequest
func NewListRepositoriesBadRequest ¶
func NewListRepositoriesBadRequest() *ListRepositoriesBadRequest
NewListRepositoriesBadRequest creates ListRepositoriesBadRequest with default headers values
func (*ListRepositoriesBadRequest) SetPayload ¶
func (o *ListRepositoriesBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list repositories bad request response
func (*ListRepositoriesBadRequest) SetXRequestID ¶
func (o *ListRepositoriesBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list repositories bad request response
func (*ListRepositoriesBadRequest) WithPayload ¶
func (o *ListRepositoriesBadRequest) WithPayload(payload *models.Errors) *ListRepositoriesBadRequest
WithPayload adds the payload to the list repositories bad request response
func (*ListRepositoriesBadRequest) WithXRequestID ¶
func (o *ListRepositoriesBadRequest) WithXRequestID(xRequestID string) *ListRepositoriesBadRequest
WithXRequestID adds the xRequestId to the list repositories bad request response
func (*ListRepositoriesBadRequest) WriteResponse ¶
func (o *ListRepositoriesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRepositoriesForbidden ¶
type ListRepositoriesForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ListRepositoriesForbidden Forbidden
swagger:response listRepositoriesForbidden
func NewListRepositoriesForbidden ¶
func NewListRepositoriesForbidden() *ListRepositoriesForbidden
NewListRepositoriesForbidden creates ListRepositoriesForbidden with default headers values
func (*ListRepositoriesForbidden) SetPayload ¶
func (o *ListRepositoriesForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list repositories forbidden response
func (*ListRepositoriesForbidden) SetXRequestID ¶
func (o *ListRepositoriesForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list repositories forbidden response
func (*ListRepositoriesForbidden) WithPayload ¶
func (o *ListRepositoriesForbidden) WithPayload(payload *models.Errors) *ListRepositoriesForbidden
WithPayload adds the payload to the list repositories forbidden response
func (*ListRepositoriesForbidden) WithXRequestID ¶
func (o *ListRepositoriesForbidden) WithXRequestID(xRequestID string) *ListRepositoriesForbidden
WithXRequestID adds the xRequestId to the list repositories forbidden response
func (*ListRepositoriesForbidden) WriteResponse ¶
func (o *ListRepositoriesForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRepositoriesHandler ¶
type ListRepositoriesHandler interface {
Handle(ListRepositoriesParams, interface{}) middleware.Responder
}
ListRepositoriesHandler interface for that can handle valid list repositories params
type ListRepositoriesHandlerFunc ¶
type ListRepositoriesHandlerFunc func(ListRepositoriesParams, interface{}) middleware.Responder
ListRepositoriesHandlerFunc turns a function with the right signature into a list repositories handler
func (ListRepositoriesHandlerFunc) Handle ¶
func (fn ListRepositoriesHandlerFunc) Handle(params ListRepositoriesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListRepositoriesInternalServerError ¶
type ListRepositoriesInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ListRepositoriesInternalServerError Internal server error
swagger:response listRepositoriesInternalServerError
func NewListRepositoriesInternalServerError ¶
func NewListRepositoriesInternalServerError() *ListRepositoriesInternalServerError
NewListRepositoriesInternalServerError creates ListRepositoriesInternalServerError with default headers values
func (*ListRepositoriesInternalServerError) SetPayload ¶
func (o *ListRepositoriesInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list repositories internal server error response
func (*ListRepositoriesInternalServerError) SetXRequestID ¶
func (o *ListRepositoriesInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list repositories internal server error response
func (*ListRepositoriesInternalServerError) WithPayload ¶
func (o *ListRepositoriesInternalServerError) WithPayload(payload *models.Errors) *ListRepositoriesInternalServerError
WithPayload adds the payload to the list repositories internal server error response
func (*ListRepositoriesInternalServerError) WithXRequestID ¶
func (o *ListRepositoriesInternalServerError) WithXRequestID(xRequestID string) *ListRepositoriesInternalServerError
WithXRequestID adds the xRequestId to the list repositories internal server error response
func (*ListRepositoriesInternalServerError) WriteResponse ¶
func (o *ListRepositoriesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRepositoriesNotFound ¶
type ListRepositoriesNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ListRepositoriesNotFound Not found
swagger:response listRepositoriesNotFound
func NewListRepositoriesNotFound ¶
func NewListRepositoriesNotFound() *ListRepositoriesNotFound
NewListRepositoriesNotFound creates ListRepositoriesNotFound with default headers values
func (*ListRepositoriesNotFound) SetPayload ¶
func (o *ListRepositoriesNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list repositories not found response
func (*ListRepositoriesNotFound) SetXRequestID ¶
func (o *ListRepositoriesNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list repositories not found response
func (*ListRepositoriesNotFound) WithPayload ¶
func (o *ListRepositoriesNotFound) WithPayload(payload *models.Errors) *ListRepositoriesNotFound
WithPayload adds the payload to the list repositories not found response
func (*ListRepositoriesNotFound) WithXRequestID ¶
func (o *ListRepositoriesNotFound) WithXRequestID(xRequestID string) *ListRepositoriesNotFound
WithXRequestID adds the xRequestId to the list repositories not found response
func (*ListRepositoriesNotFound) WriteResponse ¶
func (o *ListRepositoriesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRepositoriesOK ¶
type ListRepositoriesOK struct { /*Link refers to the previous page and next page */ Link string `json:"Link"` /*The total count of repositories */ XTotalCount int64 `json:"X-Total-Count"` /* In: Body */ Payload []*models.Repository `json:"body,omitempty"` }
ListRepositoriesOK Success
swagger:response listRepositoriesOK
func NewListRepositoriesOK ¶
func NewListRepositoriesOK() *ListRepositoriesOK
NewListRepositoriesOK creates ListRepositoriesOK with default headers values
func (*ListRepositoriesOK) SetLink ¶
func (o *ListRepositoriesOK) SetLink(link string)
SetLink sets the link to the list repositories o k response
func (*ListRepositoriesOK) SetPayload ¶
func (o *ListRepositoriesOK) SetPayload(payload []*models.Repository)
SetPayload sets the payload to the list repositories o k response
func (*ListRepositoriesOK) SetXTotalCount ¶
func (o *ListRepositoriesOK) SetXTotalCount(xTotalCount int64)
SetXTotalCount sets the xTotalCount to the list repositories o k response
func (*ListRepositoriesOK) WithLink ¶
func (o *ListRepositoriesOK) WithLink(link string) *ListRepositoriesOK
WithLink adds the link to the list repositories o k response
func (*ListRepositoriesOK) WithPayload ¶
func (o *ListRepositoriesOK) WithPayload(payload []*models.Repository) *ListRepositoriesOK
WithPayload adds the payload to the list repositories o k response
func (*ListRepositoriesOK) WithXTotalCount ¶
func (o *ListRepositoriesOK) WithXTotalCount(xTotalCount int64) *ListRepositoriesOK
WithXTotalCount adds the xTotalCount to the list repositories o k response
func (*ListRepositoriesOK) WriteResponse ¶
func (o *ListRepositoriesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRepositoriesParams ¶
type ListRepositoriesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The page number In: query Default: 1 */ Page *int64 /*The size of per page Maximum: 100 In: query Default: 10 */ PageSize *int64 /*The name of the project Required: true In: path */ ProjectName string /*Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max] In: query */ Q *string }
ListRepositoriesParams contains all the bound params for the list repositories operation typically these are obtained from a http.Request
swagger:parameters listRepositories
func NewListRepositoriesParams ¶
func NewListRepositoriesParams() ListRepositoriesParams
NewListRepositoriesParams creates a new ListRepositoriesParams object with the default values initialized.
func (*ListRepositoriesParams) BindRequest ¶
func (o *ListRepositoriesParams) 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 NewListRepositoriesParams() beforehand.
type ListRepositoriesURL ¶
type ListRepositoriesURL struct { ProjectName string Page *int64 PageSize *int64 Q *string // contains filtered or unexported fields }
ListRepositoriesURL generates an URL for the list repositories operation
func (*ListRepositoriesURL) Build ¶
func (o *ListRepositoriesURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListRepositoriesURL) BuildFull ¶
func (o *ListRepositoriesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListRepositoriesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListRepositoriesURL) SetBasePath ¶
func (o *ListRepositoriesURL) 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 (*ListRepositoriesURL) String ¶
func (o *ListRepositoriesURL) String() string
String returns the string representation of the path with query string
func (*ListRepositoriesURL) StringFull ¶
func (o *ListRepositoriesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListRepositoriesURL) WithBasePath ¶
func (o *ListRepositoriesURL) WithBasePath(bp string) *ListRepositoriesURL
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 ListRepositoriesUnauthorized ¶
type ListRepositoriesUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
ListRepositoriesUnauthorized Unauthorized
swagger:response listRepositoriesUnauthorized
func NewListRepositoriesUnauthorized ¶
func NewListRepositoriesUnauthorized() *ListRepositoriesUnauthorized
NewListRepositoriesUnauthorized creates ListRepositoriesUnauthorized with default headers values
func (*ListRepositoriesUnauthorized) SetPayload ¶
func (o *ListRepositoriesUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list repositories unauthorized response
func (*ListRepositoriesUnauthorized) SetXRequestID ¶
func (o *ListRepositoriesUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list repositories unauthorized response
func (*ListRepositoriesUnauthorized) WithPayload ¶
func (o *ListRepositoriesUnauthorized) WithPayload(payload *models.Errors) *ListRepositoriesUnauthorized
WithPayload adds the payload to the list repositories unauthorized response
func (*ListRepositoriesUnauthorized) WithXRequestID ¶
func (o *ListRepositoriesUnauthorized) WithXRequestID(xRequestID string) *ListRepositoriesUnauthorized
WithXRequestID adds the xRequestId to the list repositories unauthorized response
func (*ListRepositoriesUnauthorized) WriteResponse ¶
func (o *ListRepositoriesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRepository ¶
type UpdateRepository struct { Context *middleware.Context Handler UpdateRepositoryHandler }
UpdateRepository swagger:route PUT /projects/{project_name}/repositories/{repository_name} repository updateRepository
Update repository ¶
Update the repository specified by name
func NewUpdateRepository ¶
func NewUpdateRepository(ctx *middleware.Context, handler UpdateRepositoryHandler) *UpdateRepository
NewUpdateRepository creates a new http.Handler for the update repository operation
func (*UpdateRepository) ServeHTTP ¶
func (o *UpdateRepository) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateRepositoryBadRequest ¶
type UpdateRepositoryBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRepositoryBadRequest Bad request
swagger:response updateRepositoryBadRequest
func NewUpdateRepositoryBadRequest ¶
func NewUpdateRepositoryBadRequest() *UpdateRepositoryBadRequest
NewUpdateRepositoryBadRequest creates UpdateRepositoryBadRequest with default headers values
func (*UpdateRepositoryBadRequest) SetPayload ¶
func (o *UpdateRepositoryBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update repository bad request response
func (*UpdateRepositoryBadRequest) SetXRequestID ¶
func (o *UpdateRepositoryBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update repository bad request response
func (*UpdateRepositoryBadRequest) WithPayload ¶
func (o *UpdateRepositoryBadRequest) WithPayload(payload *models.Errors) *UpdateRepositoryBadRequest
WithPayload adds the payload to the update repository bad request response
func (*UpdateRepositoryBadRequest) WithXRequestID ¶
func (o *UpdateRepositoryBadRequest) WithXRequestID(xRequestID string) *UpdateRepositoryBadRequest
WithXRequestID adds the xRequestId to the update repository bad request response
func (*UpdateRepositoryBadRequest) WriteResponse ¶
func (o *UpdateRepositoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRepositoryForbidden ¶
type UpdateRepositoryForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRepositoryForbidden Forbidden
swagger:response updateRepositoryForbidden
func NewUpdateRepositoryForbidden ¶
func NewUpdateRepositoryForbidden() *UpdateRepositoryForbidden
NewUpdateRepositoryForbidden creates UpdateRepositoryForbidden with default headers values
func (*UpdateRepositoryForbidden) SetPayload ¶
func (o *UpdateRepositoryForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update repository forbidden response
func (*UpdateRepositoryForbidden) SetXRequestID ¶
func (o *UpdateRepositoryForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update repository forbidden response
func (*UpdateRepositoryForbidden) WithPayload ¶
func (o *UpdateRepositoryForbidden) WithPayload(payload *models.Errors) *UpdateRepositoryForbidden
WithPayload adds the payload to the update repository forbidden response
func (*UpdateRepositoryForbidden) WithXRequestID ¶
func (o *UpdateRepositoryForbidden) WithXRequestID(xRequestID string) *UpdateRepositoryForbidden
WithXRequestID adds the xRequestId to the update repository forbidden response
func (*UpdateRepositoryForbidden) WriteResponse ¶
func (o *UpdateRepositoryForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRepositoryHandler ¶
type UpdateRepositoryHandler interface {
Handle(UpdateRepositoryParams, interface{}) middleware.Responder
}
UpdateRepositoryHandler interface for that can handle valid update repository params
type UpdateRepositoryHandlerFunc ¶
type UpdateRepositoryHandlerFunc func(UpdateRepositoryParams, interface{}) middleware.Responder
UpdateRepositoryHandlerFunc turns a function with the right signature into a update repository handler
func (UpdateRepositoryHandlerFunc) Handle ¶
func (fn UpdateRepositoryHandlerFunc) Handle(params UpdateRepositoryParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateRepositoryInternalServerError ¶
type UpdateRepositoryInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRepositoryInternalServerError Internal server error
swagger:response updateRepositoryInternalServerError
func NewUpdateRepositoryInternalServerError ¶
func NewUpdateRepositoryInternalServerError() *UpdateRepositoryInternalServerError
NewUpdateRepositoryInternalServerError creates UpdateRepositoryInternalServerError with default headers values
func (*UpdateRepositoryInternalServerError) SetPayload ¶
func (o *UpdateRepositoryInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update repository internal server error response
func (*UpdateRepositoryInternalServerError) SetXRequestID ¶
func (o *UpdateRepositoryInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update repository internal server error response
func (*UpdateRepositoryInternalServerError) WithPayload ¶
func (o *UpdateRepositoryInternalServerError) WithPayload(payload *models.Errors) *UpdateRepositoryInternalServerError
WithPayload adds the payload to the update repository internal server error response
func (*UpdateRepositoryInternalServerError) WithXRequestID ¶
func (o *UpdateRepositoryInternalServerError) WithXRequestID(xRequestID string) *UpdateRepositoryInternalServerError
WithXRequestID adds the xRequestId to the update repository internal server error response
func (*UpdateRepositoryInternalServerError) WriteResponse ¶
func (o *UpdateRepositoryInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRepositoryNotFound ¶
type UpdateRepositoryNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRepositoryNotFound Not found
swagger:response updateRepositoryNotFound
func NewUpdateRepositoryNotFound ¶
func NewUpdateRepositoryNotFound() *UpdateRepositoryNotFound
NewUpdateRepositoryNotFound creates UpdateRepositoryNotFound with default headers values
func (*UpdateRepositoryNotFound) SetPayload ¶
func (o *UpdateRepositoryNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update repository not found response
func (*UpdateRepositoryNotFound) SetXRequestID ¶
func (o *UpdateRepositoryNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update repository not found response
func (*UpdateRepositoryNotFound) WithPayload ¶
func (o *UpdateRepositoryNotFound) WithPayload(payload *models.Errors) *UpdateRepositoryNotFound
WithPayload adds the payload to the update repository not found response
func (*UpdateRepositoryNotFound) WithXRequestID ¶
func (o *UpdateRepositoryNotFound) WithXRequestID(xRequestID string) *UpdateRepositoryNotFound
WithXRequestID adds the xRequestId to the update repository not found response
func (*UpdateRepositoryNotFound) WriteResponse ¶
func (o *UpdateRepositoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRepositoryOK ¶
type UpdateRepositoryOK struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` }
UpdateRepositoryOK Success
swagger:response updateRepositoryOK
func NewUpdateRepositoryOK ¶
func NewUpdateRepositoryOK() *UpdateRepositoryOK
NewUpdateRepositoryOK creates UpdateRepositoryOK with default headers values
func (*UpdateRepositoryOK) SetXRequestID ¶
func (o *UpdateRepositoryOK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update repository o k response
func (*UpdateRepositoryOK) WithXRequestID ¶
func (o *UpdateRepositoryOK) WithXRequestID(xRequestID string) *UpdateRepositoryOK
WithXRequestID adds the xRequestId to the update repository o k response
func (*UpdateRepositoryOK) WriteResponse ¶
func (o *UpdateRepositoryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRepositoryParams ¶
type UpdateRepositoryParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The name of the project Required: true In: path */ ProjectName string /*The JSON object of repository. Required: true In: body */ Repository *models.Repository /*The name of the repository. If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb Required: true In: path */ RepositoryName string }
UpdateRepositoryParams contains all the bound params for the update repository operation typically these are obtained from a http.Request
swagger:parameters updateRepository
func NewUpdateRepositoryParams ¶
func NewUpdateRepositoryParams() UpdateRepositoryParams
NewUpdateRepositoryParams creates a new UpdateRepositoryParams object no default values defined in spec.
func (*UpdateRepositoryParams) BindRequest ¶
func (o *UpdateRepositoryParams) 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 NewUpdateRepositoryParams() beforehand.
type UpdateRepositoryURL ¶
type UpdateRepositoryURL struct { ProjectName string RepositoryName string // contains filtered or unexported fields }
UpdateRepositoryURL generates an URL for the update repository operation
func (*UpdateRepositoryURL) Build ¶
func (o *UpdateRepositoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateRepositoryURL) BuildFull ¶
func (o *UpdateRepositoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateRepositoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateRepositoryURL) SetBasePath ¶
func (o *UpdateRepositoryURL) 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 (*UpdateRepositoryURL) String ¶
func (o *UpdateRepositoryURL) String() string
String returns the string representation of the path with query string
func (*UpdateRepositoryURL) StringFull ¶
func (o *UpdateRepositoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateRepositoryURL) WithBasePath ¶
func (o *UpdateRepositoryURL) WithBasePath(bp string) *UpdateRepositoryURL
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 UpdateRepositoryUnauthorized ¶
type UpdateRepositoryUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
UpdateRepositoryUnauthorized Unauthorized
swagger:response updateRepositoryUnauthorized
func NewUpdateRepositoryUnauthorized ¶
func NewUpdateRepositoryUnauthorized() *UpdateRepositoryUnauthorized
NewUpdateRepositoryUnauthorized creates UpdateRepositoryUnauthorized with default headers values
func (*UpdateRepositoryUnauthorized) SetPayload ¶
func (o *UpdateRepositoryUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update repository unauthorized response
func (*UpdateRepositoryUnauthorized) SetXRequestID ¶
func (o *UpdateRepositoryUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update repository unauthorized response
func (*UpdateRepositoryUnauthorized) WithPayload ¶
func (o *UpdateRepositoryUnauthorized) WithPayload(payload *models.Errors) *UpdateRepositoryUnauthorized
WithPayload adds the payload to the update repository unauthorized response
func (*UpdateRepositoryUnauthorized) WithXRequestID ¶
func (o *UpdateRepositoryUnauthorized) WithXRequestID(xRequestID string) *UpdateRepositoryUnauthorized
WithXRequestID adds the xRequestId to the update repository unauthorized response
func (*UpdateRepositoryUnauthorized) WriteResponse ¶
func (o *UpdateRepositoryUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- delete_repository.go
- delete_repository_parameters.go
- delete_repository_responses.go
- delete_repository_urlbuilder.go
- get_repository.go
- get_repository_parameters.go
- get_repository_responses.go
- get_repository_urlbuilder.go
- list_repositories.go
- list_repositories_parameters.go
- list_repositories_responses.go
- list_repositories_urlbuilder.go
- update_repository.go
- update_repository_parameters.go
- update_repository_responses.go
- update_repository_urlbuilder.go