repository

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteRepositoryBadRequestCode int = 400

DeleteRepositoryBadRequestCode is the HTTP code returned for type DeleteRepositoryBadRequest

View Source
const DeleteRepositoryForbiddenCode int = 403

DeleteRepositoryForbiddenCode is the HTTP code returned for type DeleteRepositoryForbidden

View Source
const DeleteRepositoryInternalServerErrorCode int = 500

DeleteRepositoryInternalServerErrorCode is the HTTP code returned for type DeleteRepositoryInternalServerError

View Source
const DeleteRepositoryNotFoundCode int = 404

DeleteRepositoryNotFoundCode is the HTTP code returned for type DeleteRepositoryNotFound

View Source
const DeleteRepositoryOKCode int = 200

DeleteRepositoryOKCode is the HTTP code returned for type DeleteRepositoryOK

View Source
const DeleteRepositoryUnauthorizedCode int = 401

DeleteRepositoryUnauthorizedCode is the HTTP code returned for type DeleteRepositoryUnauthorized

View Source
const GetRepositoryBadRequestCode int = 400

GetRepositoryBadRequestCode is the HTTP code returned for type GetRepositoryBadRequest

View Source
const GetRepositoryForbiddenCode int = 403

GetRepositoryForbiddenCode is the HTTP code returned for type GetRepositoryForbidden

View Source
const GetRepositoryInternalServerErrorCode int = 500

GetRepositoryInternalServerErrorCode is the HTTP code returned for type GetRepositoryInternalServerError

View Source
const GetRepositoryNotFoundCode int = 404

GetRepositoryNotFoundCode is the HTTP code returned for type GetRepositoryNotFound

View Source
const GetRepositoryOKCode int = 200

GetRepositoryOKCode is the HTTP code returned for type GetRepositoryOK

View Source
const GetRepositoryUnauthorizedCode int = 401

GetRepositoryUnauthorizedCode is the HTTP code returned for type GetRepositoryUnauthorized

View Source
const ListRepositoriesBadRequestCode int = 400

ListRepositoriesBadRequestCode is the HTTP code returned for type ListRepositoriesBadRequest

View Source
const ListRepositoriesForbiddenCode int = 403

ListRepositoriesForbiddenCode is the HTTP code returned for type ListRepositoriesForbidden

View Source
const ListRepositoriesInternalServerErrorCode int = 500

ListRepositoriesInternalServerErrorCode is the HTTP code returned for type ListRepositoriesInternalServerError

View Source
const ListRepositoriesNotFoundCode int = 404

ListRepositoriesNotFoundCode is the HTTP code returned for type ListRepositoriesNotFound

View Source
const ListRepositoriesOKCode int = 200

ListRepositoriesOKCode is the HTTP code returned for type ListRepositoriesOK

View Source
const ListRepositoriesUnauthorizedCode int = 401

ListRepositoriesUnauthorizedCode is the HTTP code returned for type ListRepositoriesUnauthorized

View Source
const UpdateRepositoryBadRequestCode int = 400

UpdateRepositoryBadRequestCode is the HTTP code returned for type UpdateRepositoryBadRequest

View Source
const UpdateRepositoryForbiddenCode int = 403

UpdateRepositoryForbiddenCode is the HTTP code returned for type UpdateRepositoryForbidden

View Source
const UpdateRepositoryInternalServerErrorCode int = 500

UpdateRepositoryInternalServerErrorCode is the HTTP code returned for type UpdateRepositoryInternalServerError

View Source
const UpdateRepositoryNotFoundCode int = 404

UpdateRepositoryNotFoundCode is the HTTP code returned for type UpdateRepositoryNotFound

View Source
const UpdateRepositoryOKCode int = 200

UpdateRepositoryOKCode is the HTTP code returned for type UpdateRepositoryOK

View Source
const UpdateRepositoryUnauthorizedCode int = 401

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

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

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

WithPayload adds the payload to the delete repository internal server error response

func (*DeleteRepositoryInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the delete repository internal server error response

func (*DeleteRepositoryInternalServerError) WriteResponse

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

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

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

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 {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

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

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

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

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

WithPayload adds the payload to the get repository internal server error response

func (*GetRepositoryInternalServerError) WithXRequestID

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

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

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 {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

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

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

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

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

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

WithPayload adds the payload to the list repositories internal server error response

func (*ListRepositoriesInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the list repositories internal server error response

func (*ListRepositoriesInternalServerError) WriteResponse

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

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 (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 (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

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

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 {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

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

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

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

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

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

WithPayload adds the payload to the update repository internal server error response

func (*UpdateRepositoryInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the update repository internal server error response

func (*UpdateRepositoryInternalServerError) WriteResponse

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

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

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

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 {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL