artifact

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 AddLabelBadRequestCode int = 400

AddLabelBadRequestCode is the HTTP code returned for type AddLabelBadRequest

View Source
const AddLabelConflictCode int = 409

AddLabelConflictCode is the HTTP code returned for type AddLabelConflict

View Source
const AddLabelForbiddenCode int = 403

AddLabelForbiddenCode is the HTTP code returned for type AddLabelForbidden

View Source
const AddLabelInternalServerErrorCode int = 500

AddLabelInternalServerErrorCode is the HTTP code returned for type AddLabelInternalServerError

View Source
const AddLabelNotFoundCode int = 404

AddLabelNotFoundCode is the HTTP code returned for type AddLabelNotFound

View Source
const AddLabelOKCode int = 200

AddLabelOKCode is the HTTP code returned for type AddLabelOK

View Source
const AddLabelUnauthorizedCode int = 401

AddLabelUnauthorizedCode is the HTTP code returned for type AddLabelUnauthorized

View Source
const CopyArtifactBadRequestCode int = 400

CopyArtifactBadRequestCode is the HTTP code returned for type CopyArtifactBadRequest

View Source
const CopyArtifactCreatedCode int = 201

CopyArtifactCreatedCode is the HTTP code returned for type CopyArtifactCreated

View Source
const CopyArtifactForbiddenCode int = 403

CopyArtifactForbiddenCode is the HTTP code returned for type CopyArtifactForbidden

View Source
const CopyArtifactInternalServerErrorCode int = 500

CopyArtifactInternalServerErrorCode is the HTTP code returned for type CopyArtifactInternalServerError

View Source
const CopyArtifactMethodNotAllowedCode int = 405

CopyArtifactMethodNotAllowedCode is the HTTP code returned for type CopyArtifactMethodNotAllowed

View Source
const CopyArtifactNotFoundCode int = 404

CopyArtifactNotFoundCode is the HTTP code returned for type CopyArtifactNotFound

View Source
const CopyArtifactUnauthorizedCode int = 401

CopyArtifactUnauthorizedCode is the HTTP code returned for type CopyArtifactUnauthorized

View Source
const CreateTagBadRequestCode int = 400

CreateTagBadRequestCode is the HTTP code returned for type CreateTagBadRequest

View Source
const CreateTagConflictCode int = 409

CreateTagConflictCode is the HTTP code returned for type CreateTagConflict

View Source
const CreateTagCreatedCode int = 201

CreateTagCreatedCode is the HTTP code returned for type CreateTagCreated

View Source
const CreateTagForbiddenCode int = 403

CreateTagForbiddenCode is the HTTP code returned for type CreateTagForbidden

View Source
const CreateTagInternalServerErrorCode int = 500

CreateTagInternalServerErrorCode is the HTTP code returned for type CreateTagInternalServerError

View Source
const CreateTagMethodNotAllowedCode int = 405

CreateTagMethodNotAllowedCode is the HTTP code returned for type CreateTagMethodNotAllowed

View Source
const CreateTagNotFoundCode int = 404

CreateTagNotFoundCode is the HTTP code returned for type CreateTagNotFound

View Source
const CreateTagUnauthorizedCode int = 401

CreateTagUnauthorizedCode is the HTTP code returned for type CreateTagUnauthorized

View Source
const DeleteArtifactForbiddenCode int = 403

DeleteArtifactForbiddenCode is the HTTP code returned for type DeleteArtifactForbidden

View Source
const DeleteArtifactInternalServerErrorCode int = 500

DeleteArtifactInternalServerErrorCode is the HTTP code returned for type DeleteArtifactInternalServerError

View Source
const DeleteArtifactNotFoundCode int = 404

DeleteArtifactNotFoundCode is the HTTP code returned for type DeleteArtifactNotFound

View Source
const DeleteArtifactOKCode int = 200

DeleteArtifactOKCode is the HTTP code returned for type DeleteArtifactOK

View Source
const DeleteArtifactUnauthorizedCode int = 401

DeleteArtifactUnauthorizedCode is the HTTP code returned for type DeleteArtifactUnauthorized

View Source
const DeleteTagForbiddenCode int = 403

DeleteTagForbiddenCode is the HTTP code returned for type DeleteTagForbidden

View Source
const DeleteTagInternalServerErrorCode int = 500

DeleteTagInternalServerErrorCode is the HTTP code returned for type DeleteTagInternalServerError

View Source
const DeleteTagNotFoundCode int = 404

DeleteTagNotFoundCode is the HTTP code returned for type DeleteTagNotFound

View Source
const DeleteTagOKCode int = 200

DeleteTagOKCode is the HTTP code returned for type DeleteTagOK

View Source
const DeleteTagUnauthorizedCode int = 401

DeleteTagUnauthorizedCode is the HTTP code returned for type DeleteTagUnauthorized

View Source
const GetAdditionBadRequestCode int = 400

GetAdditionBadRequestCode is the HTTP code returned for type GetAdditionBadRequest

View Source
const GetAdditionForbiddenCode int = 403

GetAdditionForbiddenCode is the HTTP code returned for type GetAdditionForbidden

View Source
const GetAdditionInternalServerErrorCode int = 500

GetAdditionInternalServerErrorCode is the HTTP code returned for type GetAdditionInternalServerError

View Source
const GetAdditionNotFoundCode int = 404

GetAdditionNotFoundCode is the HTTP code returned for type GetAdditionNotFound

View Source
const GetAdditionOKCode int = 200

GetAdditionOKCode is the HTTP code returned for type GetAdditionOK

View Source
const GetAdditionUnauthorizedCode int = 401

GetAdditionUnauthorizedCode is the HTTP code returned for type GetAdditionUnauthorized

View Source
const GetArtifactBadRequestCode int = 400

GetArtifactBadRequestCode is the HTTP code returned for type GetArtifactBadRequest

View Source
const GetArtifactForbiddenCode int = 403

GetArtifactForbiddenCode is the HTTP code returned for type GetArtifactForbidden

View Source
const GetArtifactInternalServerErrorCode int = 500

GetArtifactInternalServerErrorCode is the HTTP code returned for type GetArtifactInternalServerError

View Source
const GetArtifactNotFoundCode int = 404

GetArtifactNotFoundCode is the HTTP code returned for type GetArtifactNotFound

View Source
const GetArtifactOKCode int = 200

GetArtifactOKCode is the HTTP code returned for type GetArtifactOK

View Source
const GetArtifactUnauthorizedCode int = 401

GetArtifactUnauthorizedCode is the HTTP code returned for type GetArtifactUnauthorized

View Source
const GetVulnerabilitiesAdditionBadRequestCode int = 400

GetVulnerabilitiesAdditionBadRequestCode is the HTTP code returned for type GetVulnerabilitiesAdditionBadRequest

View Source
const GetVulnerabilitiesAdditionForbiddenCode int = 403

GetVulnerabilitiesAdditionForbiddenCode is the HTTP code returned for type GetVulnerabilitiesAdditionForbidden

View Source
const GetVulnerabilitiesAdditionInternalServerErrorCode int = 500

GetVulnerabilitiesAdditionInternalServerErrorCode is the HTTP code returned for type GetVulnerabilitiesAdditionInternalServerError

View Source
const GetVulnerabilitiesAdditionNotFoundCode int = 404

GetVulnerabilitiesAdditionNotFoundCode is the HTTP code returned for type GetVulnerabilitiesAdditionNotFound

View Source
const GetVulnerabilitiesAdditionOKCode int = 200

GetVulnerabilitiesAdditionOKCode is the HTTP code returned for type GetVulnerabilitiesAdditionOK

View Source
const GetVulnerabilitiesAdditionUnauthorizedCode int = 401

GetVulnerabilitiesAdditionUnauthorizedCode is the HTTP code returned for type GetVulnerabilitiesAdditionUnauthorized

View Source
const ListArtifactsBadRequestCode int = 400

ListArtifactsBadRequestCode is the HTTP code returned for type ListArtifactsBadRequest

View Source
const ListArtifactsForbiddenCode int = 403

ListArtifactsForbiddenCode is the HTTP code returned for type ListArtifactsForbidden

View Source
const ListArtifactsInternalServerErrorCode int = 500

ListArtifactsInternalServerErrorCode is the HTTP code returned for type ListArtifactsInternalServerError

View Source
const ListArtifactsNotFoundCode int = 404

ListArtifactsNotFoundCode is the HTTP code returned for type ListArtifactsNotFound

View Source
const ListArtifactsOKCode int = 200

ListArtifactsOKCode is the HTTP code returned for type ListArtifactsOK

View Source
const ListArtifactsUnauthorizedCode int = 401

ListArtifactsUnauthorizedCode is the HTTP code returned for type ListArtifactsUnauthorized

View Source
const ListTagsBadRequestCode int = 400

ListTagsBadRequestCode is the HTTP code returned for type ListTagsBadRequest

View Source
const ListTagsForbiddenCode int = 403

ListTagsForbiddenCode is the HTTP code returned for type ListTagsForbidden

View Source
const ListTagsInternalServerErrorCode int = 500

ListTagsInternalServerErrorCode is the HTTP code returned for type ListTagsInternalServerError

View Source
const ListTagsNotFoundCode int = 404

ListTagsNotFoundCode is the HTTP code returned for type ListTagsNotFound

View Source
const ListTagsOKCode int = 200

ListTagsOKCode is the HTTP code returned for type ListTagsOK

View Source
const ListTagsUnauthorizedCode int = 401

ListTagsUnauthorizedCode is the HTTP code returned for type ListTagsUnauthorized

View Source
const RemoveLabelConflictCode int = 409

RemoveLabelConflictCode is the HTTP code returned for type RemoveLabelConflict

View Source
const RemoveLabelForbiddenCode int = 403

RemoveLabelForbiddenCode is the HTTP code returned for type RemoveLabelForbidden

View Source
const RemoveLabelInternalServerErrorCode int = 500

RemoveLabelInternalServerErrorCode is the HTTP code returned for type RemoveLabelInternalServerError

View Source
const RemoveLabelNotFoundCode int = 404

RemoveLabelNotFoundCode is the HTTP code returned for type RemoveLabelNotFound

View Source
const RemoveLabelOKCode int = 200

RemoveLabelOKCode is the HTTP code returned for type RemoveLabelOK

View Source
const RemoveLabelUnauthorizedCode int = 401

RemoveLabelUnauthorizedCode is the HTTP code returned for type RemoveLabelUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type AddLabel

type AddLabel struct {
	Context *middleware.Context
	Handler AddLabelHandler
}

AddLabel swagger:route POST /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/labels artifact addLabel

Add label to artifact

Add label to the specified artiact.

func NewAddLabel

func NewAddLabel(ctx *middleware.Context, handler AddLabelHandler) *AddLabel

NewAddLabel creates a new http.Handler for the add label operation

func (*AddLabel) ServeHTTP

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

type AddLabelBadRequest

type AddLabelBadRequest struct {
	/*The ID of the corresponding request for the response

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

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

AddLabelBadRequest Bad request

swagger:response addLabelBadRequest

func NewAddLabelBadRequest

func NewAddLabelBadRequest() *AddLabelBadRequest

NewAddLabelBadRequest creates AddLabelBadRequest with default headers values

func (*AddLabelBadRequest) SetPayload

func (o *AddLabelBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the add label bad request response

func (*AddLabelBadRequest) SetXRequestID

func (o *AddLabelBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the add label bad request response

func (*AddLabelBadRequest) WithPayload

func (o *AddLabelBadRequest) WithPayload(payload *models.Errors) *AddLabelBadRequest

WithPayload adds the payload to the add label bad request response

func (*AddLabelBadRequest) WithXRequestID

func (o *AddLabelBadRequest) WithXRequestID(xRequestID string) *AddLabelBadRequest

WithXRequestID adds the xRequestId to the add label bad request response

func (*AddLabelBadRequest) WriteResponse

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

WriteResponse to the client

type AddLabelConflict

type AddLabelConflict struct {
	/*The ID of the corresponding request for the response

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

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

AddLabelConflict Conflict

swagger:response addLabelConflict

func NewAddLabelConflict

func NewAddLabelConflict() *AddLabelConflict

NewAddLabelConflict creates AddLabelConflict with default headers values

func (*AddLabelConflict) SetPayload

func (o *AddLabelConflict) SetPayload(payload *models.Errors)

SetPayload sets the payload to the add label conflict response

func (*AddLabelConflict) SetXRequestID

func (o *AddLabelConflict) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the add label conflict response

func (*AddLabelConflict) WithPayload

func (o *AddLabelConflict) WithPayload(payload *models.Errors) *AddLabelConflict

WithPayload adds the payload to the add label conflict response

func (*AddLabelConflict) WithXRequestID

func (o *AddLabelConflict) WithXRequestID(xRequestID string) *AddLabelConflict

WithXRequestID adds the xRequestId to the add label conflict response

func (*AddLabelConflict) WriteResponse

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

WriteResponse to the client

type AddLabelForbidden

type AddLabelForbidden struct {
	/*The ID of the corresponding request for the response

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

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

AddLabelForbidden Forbidden

swagger:response addLabelForbidden

func NewAddLabelForbidden

func NewAddLabelForbidden() *AddLabelForbidden

NewAddLabelForbidden creates AddLabelForbidden with default headers values

func (*AddLabelForbidden) SetPayload

func (o *AddLabelForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the add label forbidden response

func (*AddLabelForbidden) SetXRequestID

func (o *AddLabelForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the add label forbidden response

func (*AddLabelForbidden) WithPayload

func (o *AddLabelForbidden) WithPayload(payload *models.Errors) *AddLabelForbidden

WithPayload adds the payload to the add label forbidden response

func (*AddLabelForbidden) WithXRequestID

func (o *AddLabelForbidden) WithXRequestID(xRequestID string) *AddLabelForbidden

WithXRequestID adds the xRequestId to the add label forbidden response

func (*AddLabelForbidden) WriteResponse

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

WriteResponse to the client

type AddLabelHandler

type AddLabelHandler interface {
	Handle(AddLabelParams, interface{}) middleware.Responder
}

AddLabelHandler interface for that can handle valid add label params

type AddLabelHandlerFunc

type AddLabelHandlerFunc func(AddLabelParams, interface{}) middleware.Responder

AddLabelHandlerFunc turns a function with the right signature into a add label handler

func (AddLabelHandlerFunc) Handle

func (fn AddLabelHandlerFunc) Handle(params AddLabelParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddLabelInternalServerError

type AddLabelInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

AddLabelInternalServerError Internal server error

swagger:response addLabelInternalServerError

func NewAddLabelInternalServerError

func NewAddLabelInternalServerError() *AddLabelInternalServerError

NewAddLabelInternalServerError creates AddLabelInternalServerError with default headers values

func (*AddLabelInternalServerError) SetPayload

func (o *AddLabelInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the add label internal server error response

func (*AddLabelInternalServerError) SetXRequestID

func (o *AddLabelInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the add label internal server error response

func (*AddLabelInternalServerError) WithPayload

WithPayload adds the payload to the add label internal server error response

func (*AddLabelInternalServerError) WithXRequestID

func (o *AddLabelInternalServerError) WithXRequestID(xRequestID string) *AddLabelInternalServerError

WithXRequestID adds the xRequestId to the add label internal server error response

func (*AddLabelInternalServerError) WriteResponse

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

WriteResponse to the client

type AddLabelNotFound

type AddLabelNotFound struct {
	/*The ID of the corresponding request for the response

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

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

AddLabelNotFound Not found

swagger:response addLabelNotFound

func NewAddLabelNotFound

func NewAddLabelNotFound() *AddLabelNotFound

NewAddLabelNotFound creates AddLabelNotFound with default headers values

func (*AddLabelNotFound) SetPayload

func (o *AddLabelNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the add label not found response

func (*AddLabelNotFound) SetXRequestID

func (o *AddLabelNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the add label not found response

func (*AddLabelNotFound) WithPayload

func (o *AddLabelNotFound) WithPayload(payload *models.Errors) *AddLabelNotFound

WithPayload adds the payload to the add label not found response

func (*AddLabelNotFound) WithXRequestID

func (o *AddLabelNotFound) WithXRequestID(xRequestID string) *AddLabelNotFound

WithXRequestID adds the xRequestId to the add label not found response

func (*AddLabelNotFound) WriteResponse

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

WriteResponse to the client

type AddLabelOK

type AddLabelOK struct {
	/*The ID of the corresponding request for the response

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

AddLabelOK Success

swagger:response addLabelOK

func NewAddLabelOK

func NewAddLabelOK() *AddLabelOK

NewAddLabelOK creates AddLabelOK with default headers values

func (*AddLabelOK) SetXRequestID

func (o *AddLabelOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the add label o k response

func (*AddLabelOK) WithXRequestID

func (o *AddLabelOK) WithXRequestID(xRequestID string) *AddLabelOK

WithXRequestID adds the xRequestId to the add label o k response

func (*AddLabelOK) WriteResponse

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

WriteResponse to the client

type AddLabelParams

type AddLabelParams struct {

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

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The label that added to the artifact. Only the ID property is needed.
	  Required: true
	  In: body
	*/
	Label *models.Label
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
	/*The reference of the artifact, can be digest or tag
	  Required: true
	  In: path
	*/
	Reference 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
}

AddLabelParams contains all the bound params for the add label operation typically these are obtained from a http.Request

swagger:parameters addLabel

func NewAddLabelParams

func NewAddLabelParams() AddLabelParams

NewAddLabelParams creates a new AddLabelParams object no default values defined in spec.

func (*AddLabelParams) BindRequest

func (o *AddLabelParams) 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 NewAddLabelParams() beforehand.

type AddLabelURL

type AddLabelURL struct {
	ProjectName    string
	Reference      string
	RepositoryName string
	// contains filtered or unexported fields
}

AddLabelURL generates an URL for the add label operation

func (*AddLabelURL) Build

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

Build a url path and query string

func (*AddLabelURL) BuildFull

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

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

func (*AddLabelURL) Must

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

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

func (*AddLabelURL) SetBasePath

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

func (o *AddLabelURL) String() string

String returns the string representation of the path with query string

func (*AddLabelURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddLabelURL) WithBasePath

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

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 AddLabelUnauthorized

type AddLabelUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

AddLabelUnauthorized Unauthorized

swagger:response addLabelUnauthorized

func NewAddLabelUnauthorized

func NewAddLabelUnauthorized() *AddLabelUnauthorized

NewAddLabelUnauthorized creates AddLabelUnauthorized with default headers values

func (*AddLabelUnauthorized) SetPayload

func (o *AddLabelUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the add label unauthorized response

func (*AddLabelUnauthorized) SetXRequestID

func (o *AddLabelUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the add label unauthorized response

func (*AddLabelUnauthorized) WithPayload

func (o *AddLabelUnauthorized) WithPayload(payload *models.Errors) *AddLabelUnauthorized

WithPayload adds the payload to the add label unauthorized response

func (*AddLabelUnauthorized) WithXRequestID

func (o *AddLabelUnauthorized) WithXRequestID(xRequestID string) *AddLabelUnauthorized

WithXRequestID adds the xRequestId to the add label unauthorized response

func (*AddLabelUnauthorized) WriteResponse

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

WriteResponse to the client

type CopyArtifact

type CopyArtifact struct {
	Context *middleware.Context
	Handler CopyArtifactHandler
}

CopyArtifact swagger:route POST /projects/{project_name}/repositories/{repository_name}/artifacts artifact copyArtifact

Copy artifact

Copy the artifact specified in the "from" parameter to the repository.

func NewCopyArtifact

func NewCopyArtifact(ctx *middleware.Context, handler CopyArtifactHandler) *CopyArtifact

NewCopyArtifact creates a new http.Handler for the copy artifact operation

func (*CopyArtifact) ServeHTTP

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

type CopyArtifactBadRequest

type CopyArtifactBadRequest struct {
	/*The ID of the corresponding request for the response

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

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

CopyArtifactBadRequest Bad request

swagger:response copyArtifactBadRequest

func NewCopyArtifactBadRequest

func NewCopyArtifactBadRequest() *CopyArtifactBadRequest

NewCopyArtifactBadRequest creates CopyArtifactBadRequest with default headers values

func (*CopyArtifactBadRequest) SetPayload

func (o *CopyArtifactBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the copy artifact bad request response

func (*CopyArtifactBadRequest) SetXRequestID

func (o *CopyArtifactBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the copy artifact bad request response

func (*CopyArtifactBadRequest) WithPayload

func (o *CopyArtifactBadRequest) WithPayload(payload *models.Errors) *CopyArtifactBadRequest

WithPayload adds the payload to the copy artifact bad request response

func (*CopyArtifactBadRequest) WithXRequestID

func (o *CopyArtifactBadRequest) WithXRequestID(xRequestID string) *CopyArtifactBadRequest

WithXRequestID adds the xRequestId to the copy artifact bad request response

func (*CopyArtifactBadRequest) WriteResponse

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

WriteResponse to the client

type CopyArtifactCreated

type CopyArtifactCreated struct {
	/*The location of the resource

	 */
	Location string `json:"Location"`
	/*The ID of the corresponding request for the response

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

CopyArtifactCreated Created

swagger:response copyArtifactCreated

func NewCopyArtifactCreated

func NewCopyArtifactCreated() *CopyArtifactCreated

NewCopyArtifactCreated creates CopyArtifactCreated with default headers values

func (*CopyArtifactCreated) SetLocation

func (o *CopyArtifactCreated) SetLocation(location string)

SetLocation sets the location to the copy artifact created response

func (*CopyArtifactCreated) SetXRequestID

func (o *CopyArtifactCreated) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the copy artifact created response

func (*CopyArtifactCreated) WithLocation

func (o *CopyArtifactCreated) WithLocation(location string) *CopyArtifactCreated

WithLocation adds the location to the copy artifact created response

func (*CopyArtifactCreated) WithXRequestID

func (o *CopyArtifactCreated) WithXRequestID(xRequestID string) *CopyArtifactCreated

WithXRequestID adds the xRequestId to the copy artifact created response

func (*CopyArtifactCreated) WriteResponse

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

WriteResponse to the client

type CopyArtifactForbidden

type CopyArtifactForbidden struct {
	/*The ID of the corresponding request for the response

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

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

CopyArtifactForbidden Forbidden

swagger:response copyArtifactForbidden

func NewCopyArtifactForbidden

func NewCopyArtifactForbidden() *CopyArtifactForbidden

NewCopyArtifactForbidden creates CopyArtifactForbidden with default headers values

func (*CopyArtifactForbidden) SetPayload

func (o *CopyArtifactForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the copy artifact forbidden response

func (*CopyArtifactForbidden) SetXRequestID

func (o *CopyArtifactForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the copy artifact forbidden response

func (*CopyArtifactForbidden) WithPayload

func (o *CopyArtifactForbidden) WithPayload(payload *models.Errors) *CopyArtifactForbidden

WithPayload adds the payload to the copy artifact forbidden response

func (*CopyArtifactForbidden) WithXRequestID

func (o *CopyArtifactForbidden) WithXRequestID(xRequestID string) *CopyArtifactForbidden

WithXRequestID adds the xRequestId to the copy artifact forbidden response

func (*CopyArtifactForbidden) WriteResponse

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

WriteResponse to the client

type CopyArtifactHandler

type CopyArtifactHandler interface {
	Handle(CopyArtifactParams, interface{}) middleware.Responder
}

CopyArtifactHandler interface for that can handle valid copy artifact params

type CopyArtifactHandlerFunc

type CopyArtifactHandlerFunc func(CopyArtifactParams, interface{}) middleware.Responder

CopyArtifactHandlerFunc turns a function with the right signature into a copy artifact handler

func (CopyArtifactHandlerFunc) Handle

func (fn CopyArtifactHandlerFunc) Handle(params CopyArtifactParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CopyArtifactInternalServerError

type CopyArtifactInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

CopyArtifactInternalServerError Internal server error

swagger:response copyArtifactInternalServerError

func NewCopyArtifactInternalServerError

func NewCopyArtifactInternalServerError() *CopyArtifactInternalServerError

NewCopyArtifactInternalServerError creates CopyArtifactInternalServerError with default headers values

func (*CopyArtifactInternalServerError) SetPayload

func (o *CopyArtifactInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the copy artifact internal server error response

func (*CopyArtifactInternalServerError) SetXRequestID

func (o *CopyArtifactInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the copy artifact internal server error response

func (*CopyArtifactInternalServerError) WithPayload

WithPayload adds the payload to the copy artifact internal server error response

func (*CopyArtifactInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the copy artifact internal server error response

func (*CopyArtifactInternalServerError) WriteResponse

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

WriteResponse to the client

type CopyArtifactMethodNotAllowed

type CopyArtifactMethodNotAllowed struct {
	/*The ID of the corresponding request for the response

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

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

CopyArtifactMethodNotAllowed Method not allowed

swagger:response copyArtifactMethodNotAllowed

func NewCopyArtifactMethodNotAllowed

func NewCopyArtifactMethodNotAllowed() *CopyArtifactMethodNotAllowed

NewCopyArtifactMethodNotAllowed creates CopyArtifactMethodNotAllowed with default headers values

func (*CopyArtifactMethodNotAllowed) SetPayload

func (o *CopyArtifactMethodNotAllowed) SetPayload(payload *models.Errors)

SetPayload sets the payload to the copy artifact method not allowed response

func (*CopyArtifactMethodNotAllowed) SetXRequestID

func (o *CopyArtifactMethodNotAllowed) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the copy artifact method not allowed response

func (*CopyArtifactMethodNotAllowed) WithPayload

WithPayload adds the payload to the copy artifact method not allowed response

func (*CopyArtifactMethodNotAllowed) WithXRequestID

func (o *CopyArtifactMethodNotAllowed) WithXRequestID(xRequestID string) *CopyArtifactMethodNotAllowed

WithXRequestID adds the xRequestId to the copy artifact method not allowed response

func (*CopyArtifactMethodNotAllowed) WriteResponse

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

WriteResponse to the client

type CopyArtifactNotFound

type CopyArtifactNotFound struct {
	/*The ID of the corresponding request for the response

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

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

CopyArtifactNotFound Not found

swagger:response copyArtifactNotFound

func NewCopyArtifactNotFound

func NewCopyArtifactNotFound() *CopyArtifactNotFound

NewCopyArtifactNotFound creates CopyArtifactNotFound with default headers values

func (*CopyArtifactNotFound) SetPayload

func (o *CopyArtifactNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the copy artifact not found response

func (*CopyArtifactNotFound) SetXRequestID

func (o *CopyArtifactNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the copy artifact not found response

func (*CopyArtifactNotFound) WithPayload

func (o *CopyArtifactNotFound) WithPayload(payload *models.Errors) *CopyArtifactNotFound

WithPayload adds the payload to the copy artifact not found response

func (*CopyArtifactNotFound) WithXRequestID

func (o *CopyArtifactNotFound) WithXRequestID(xRequestID string) *CopyArtifactNotFound

WithXRequestID adds the xRequestId to the copy artifact not found response

func (*CopyArtifactNotFound) WriteResponse

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

WriteResponse to the client

type CopyArtifactParams

type CopyArtifactParams struct {

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

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The artifact from which the new artifact is copied from, the format should be "project/repository:tag" or "project/repository@digest".
	  Required: true
	  In: query
	*/
	From 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
}

CopyArtifactParams contains all the bound params for the copy artifact operation typically these are obtained from a http.Request

swagger:parameters CopyArtifact

func NewCopyArtifactParams

func NewCopyArtifactParams() CopyArtifactParams

NewCopyArtifactParams creates a new CopyArtifactParams object no default values defined in spec.

func (*CopyArtifactParams) BindRequest

func (o *CopyArtifactParams) 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 NewCopyArtifactParams() beforehand.

type CopyArtifactURL

type CopyArtifactURL struct {
	ProjectName    string
	RepositoryName string

	From string
	// contains filtered or unexported fields
}

CopyArtifactURL generates an URL for the copy artifact operation

func (*CopyArtifactURL) Build

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

Build a url path and query string

func (*CopyArtifactURL) BuildFull

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

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

func (*CopyArtifactURL) Must

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

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

func (*CopyArtifactURL) SetBasePath

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

func (o *CopyArtifactURL) String() string

String returns the string representation of the path with query string

func (*CopyArtifactURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CopyArtifactURL) WithBasePath

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

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 CopyArtifactUnauthorized

type CopyArtifactUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

CopyArtifactUnauthorized Unauthorized

swagger:response copyArtifactUnauthorized

func NewCopyArtifactUnauthorized

func NewCopyArtifactUnauthorized() *CopyArtifactUnauthorized

NewCopyArtifactUnauthorized creates CopyArtifactUnauthorized with default headers values

func (*CopyArtifactUnauthorized) SetPayload

func (o *CopyArtifactUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the copy artifact unauthorized response

func (*CopyArtifactUnauthorized) SetXRequestID

func (o *CopyArtifactUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the copy artifact unauthorized response

func (*CopyArtifactUnauthorized) WithPayload

WithPayload adds the payload to the copy artifact unauthorized response

func (*CopyArtifactUnauthorized) WithXRequestID

func (o *CopyArtifactUnauthorized) WithXRequestID(xRequestID string) *CopyArtifactUnauthorized

WithXRequestID adds the xRequestId to the copy artifact unauthorized response

func (*CopyArtifactUnauthorized) WriteResponse

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

WriteResponse to the client

type CreateTag

type CreateTag struct {
	Context *middleware.Context
	Handler CreateTagHandler
}

CreateTag swagger:route POST /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/tags artifact createTag

Create tag

Create a tag for the specified artifact

func NewCreateTag

func NewCreateTag(ctx *middleware.Context, handler CreateTagHandler) *CreateTag

NewCreateTag creates a new http.Handler for the create tag operation

func (*CreateTag) ServeHTTP

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

type CreateTagBadRequest

type CreateTagBadRequest struct {
	/*The ID of the corresponding request for the response

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

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

CreateTagBadRequest Bad request

swagger:response createTagBadRequest

func NewCreateTagBadRequest

func NewCreateTagBadRequest() *CreateTagBadRequest

NewCreateTagBadRequest creates CreateTagBadRequest with default headers values

func (*CreateTagBadRequest) SetPayload

func (o *CreateTagBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create tag bad request response

func (*CreateTagBadRequest) SetXRequestID

func (o *CreateTagBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create tag bad request response

func (*CreateTagBadRequest) WithPayload

func (o *CreateTagBadRequest) WithPayload(payload *models.Errors) *CreateTagBadRequest

WithPayload adds the payload to the create tag bad request response

func (*CreateTagBadRequest) WithXRequestID

func (o *CreateTagBadRequest) WithXRequestID(xRequestID string) *CreateTagBadRequest

WithXRequestID adds the xRequestId to the create tag bad request response

func (*CreateTagBadRequest) WriteResponse

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

WriteResponse to the client

type CreateTagConflict

type CreateTagConflict struct {
	/*The ID of the corresponding request for the response

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

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

CreateTagConflict Conflict

swagger:response createTagConflict

func NewCreateTagConflict

func NewCreateTagConflict() *CreateTagConflict

NewCreateTagConflict creates CreateTagConflict with default headers values

func (*CreateTagConflict) SetPayload

func (o *CreateTagConflict) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create tag conflict response

func (*CreateTagConflict) SetXRequestID

func (o *CreateTagConflict) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create tag conflict response

func (*CreateTagConflict) WithPayload

func (o *CreateTagConflict) WithPayload(payload *models.Errors) *CreateTagConflict

WithPayload adds the payload to the create tag conflict response

func (*CreateTagConflict) WithXRequestID

func (o *CreateTagConflict) WithXRequestID(xRequestID string) *CreateTagConflict

WithXRequestID adds the xRequestId to the create tag conflict response

func (*CreateTagConflict) WriteResponse

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

WriteResponse to the client

type CreateTagCreated

type CreateTagCreated struct {
	/*The location of the resource

	 */
	Location string `json:"Location"`
	/*The ID of the corresponding request for the response

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

CreateTagCreated Created

swagger:response createTagCreated

func NewCreateTagCreated

func NewCreateTagCreated() *CreateTagCreated

NewCreateTagCreated creates CreateTagCreated with default headers values

func (*CreateTagCreated) SetLocation

func (o *CreateTagCreated) SetLocation(location string)

SetLocation sets the location to the create tag created response

func (*CreateTagCreated) SetXRequestID

func (o *CreateTagCreated) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create tag created response

func (*CreateTagCreated) WithLocation

func (o *CreateTagCreated) WithLocation(location string) *CreateTagCreated

WithLocation adds the location to the create tag created response

func (*CreateTagCreated) WithXRequestID

func (o *CreateTagCreated) WithXRequestID(xRequestID string) *CreateTagCreated

WithXRequestID adds the xRequestId to the create tag created response

func (*CreateTagCreated) WriteResponse

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

WriteResponse to the client

type CreateTagForbidden

type CreateTagForbidden struct {
	/*The ID of the corresponding request for the response

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

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

CreateTagForbidden Forbidden

swagger:response createTagForbidden

func NewCreateTagForbidden

func NewCreateTagForbidden() *CreateTagForbidden

NewCreateTagForbidden creates CreateTagForbidden with default headers values

func (*CreateTagForbidden) SetPayload

func (o *CreateTagForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create tag forbidden response

func (*CreateTagForbidden) SetXRequestID

func (o *CreateTagForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create tag forbidden response

func (*CreateTagForbidden) WithPayload

func (o *CreateTagForbidden) WithPayload(payload *models.Errors) *CreateTagForbidden

WithPayload adds the payload to the create tag forbidden response

func (*CreateTagForbidden) WithXRequestID

func (o *CreateTagForbidden) WithXRequestID(xRequestID string) *CreateTagForbidden

WithXRequestID adds the xRequestId to the create tag forbidden response

func (*CreateTagForbidden) WriteResponse

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

WriteResponse to the client

type CreateTagHandler

type CreateTagHandler interface {
	Handle(CreateTagParams, interface{}) middleware.Responder
}

CreateTagHandler interface for that can handle valid create tag params

type CreateTagHandlerFunc

type CreateTagHandlerFunc func(CreateTagParams, interface{}) middleware.Responder

CreateTagHandlerFunc turns a function with the right signature into a create tag handler

func (CreateTagHandlerFunc) Handle

func (fn CreateTagHandlerFunc) Handle(params CreateTagParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateTagInternalServerError

type CreateTagInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

CreateTagInternalServerError Internal server error

swagger:response createTagInternalServerError

func NewCreateTagInternalServerError

func NewCreateTagInternalServerError() *CreateTagInternalServerError

NewCreateTagInternalServerError creates CreateTagInternalServerError with default headers values

func (*CreateTagInternalServerError) SetPayload

func (o *CreateTagInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create tag internal server error response

func (*CreateTagInternalServerError) SetXRequestID

func (o *CreateTagInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create tag internal server error response

func (*CreateTagInternalServerError) WithPayload

WithPayload adds the payload to the create tag internal server error response

func (*CreateTagInternalServerError) WithXRequestID

func (o *CreateTagInternalServerError) WithXRequestID(xRequestID string) *CreateTagInternalServerError

WithXRequestID adds the xRequestId to the create tag internal server error response

func (*CreateTagInternalServerError) WriteResponse

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

WriteResponse to the client

type CreateTagMethodNotAllowed

type CreateTagMethodNotAllowed struct {
	/*The ID of the corresponding request for the response

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

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

CreateTagMethodNotAllowed Method not allowed

swagger:response createTagMethodNotAllowed

func NewCreateTagMethodNotAllowed

func NewCreateTagMethodNotAllowed() *CreateTagMethodNotAllowed

NewCreateTagMethodNotAllowed creates CreateTagMethodNotAllowed with default headers values

func (*CreateTagMethodNotAllowed) SetPayload

func (o *CreateTagMethodNotAllowed) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create tag method not allowed response

func (*CreateTagMethodNotAllowed) SetXRequestID

func (o *CreateTagMethodNotAllowed) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create tag method not allowed response

func (*CreateTagMethodNotAllowed) WithPayload

WithPayload adds the payload to the create tag method not allowed response

func (*CreateTagMethodNotAllowed) WithXRequestID

func (o *CreateTagMethodNotAllowed) WithXRequestID(xRequestID string) *CreateTagMethodNotAllowed

WithXRequestID adds the xRequestId to the create tag method not allowed response

func (*CreateTagMethodNotAllowed) WriteResponse

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

WriteResponse to the client

type CreateTagNotFound

type CreateTagNotFound struct {
	/*The ID of the corresponding request for the response

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

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

CreateTagNotFound Not found

swagger:response createTagNotFound

func NewCreateTagNotFound

func NewCreateTagNotFound() *CreateTagNotFound

NewCreateTagNotFound creates CreateTagNotFound with default headers values

func (*CreateTagNotFound) SetPayload

func (o *CreateTagNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create tag not found response

func (*CreateTagNotFound) SetXRequestID

func (o *CreateTagNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create tag not found response

func (*CreateTagNotFound) WithPayload

func (o *CreateTagNotFound) WithPayload(payload *models.Errors) *CreateTagNotFound

WithPayload adds the payload to the create tag not found response

func (*CreateTagNotFound) WithXRequestID

func (o *CreateTagNotFound) WithXRequestID(xRequestID string) *CreateTagNotFound

WithXRequestID adds the xRequestId to the create tag not found response

func (*CreateTagNotFound) WriteResponse

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

WriteResponse to the client

type CreateTagParams

type CreateTagParams 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 reference of the artifact, can be digest or tag
	  Required: true
	  In: path
	*/
	Reference 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
	/*The JSON object of tag.
	  Required: true
	  In: body
	*/
	Tag *models.Tag
}

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

swagger:parameters createTag

func NewCreateTagParams

func NewCreateTagParams() CreateTagParams

NewCreateTagParams creates a new CreateTagParams object no default values defined in spec.

func (*CreateTagParams) BindRequest

func (o *CreateTagParams) 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 NewCreateTagParams() beforehand.

type CreateTagURL

type CreateTagURL struct {
	ProjectName    string
	Reference      string
	RepositoryName string
	// contains filtered or unexported fields
}

CreateTagURL generates an URL for the create tag operation

func (*CreateTagURL) Build

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

Build a url path and query string

func (*CreateTagURL) BuildFull

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

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

func (*CreateTagURL) Must

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

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

func (*CreateTagURL) SetBasePath

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

func (o *CreateTagURL) String() string

String returns the string representation of the path with query string

func (*CreateTagURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateTagURL) WithBasePath

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

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 CreateTagUnauthorized

type CreateTagUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

CreateTagUnauthorized Unauthorized

swagger:response createTagUnauthorized

func NewCreateTagUnauthorized

func NewCreateTagUnauthorized() *CreateTagUnauthorized

NewCreateTagUnauthorized creates CreateTagUnauthorized with default headers values

func (*CreateTagUnauthorized) SetPayload

func (o *CreateTagUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create tag unauthorized response

func (*CreateTagUnauthorized) SetXRequestID

func (o *CreateTagUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create tag unauthorized response

func (*CreateTagUnauthorized) WithPayload

func (o *CreateTagUnauthorized) WithPayload(payload *models.Errors) *CreateTagUnauthorized

WithPayload adds the payload to the create tag unauthorized response

func (*CreateTagUnauthorized) WithXRequestID

func (o *CreateTagUnauthorized) WithXRequestID(xRequestID string) *CreateTagUnauthorized

WithXRequestID adds the xRequestId to the create tag unauthorized response

func (*CreateTagUnauthorized) WriteResponse

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

WriteResponse to the client

type DeleteArtifact

type DeleteArtifact struct {
	Context *middleware.Context
	Handler DeleteArtifactHandler
}

DeleteArtifact swagger:route DELETE /projects/{project_name}/repositories/{repository_name}/artifacts/{reference} artifact deleteArtifact

Delete the specific artifact

Delete the artifact specified by the reference under the project and repository. The reference can be digest or tag

func NewDeleteArtifact

func NewDeleteArtifact(ctx *middleware.Context, handler DeleteArtifactHandler) *DeleteArtifact

NewDeleteArtifact creates a new http.Handler for the delete artifact operation

func (*DeleteArtifact) ServeHTTP

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

type DeleteArtifactForbidden

type DeleteArtifactForbidden struct {
	/*The ID of the corresponding request for the response

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

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

DeleteArtifactForbidden Forbidden

swagger:response deleteArtifactForbidden

func NewDeleteArtifactForbidden

func NewDeleteArtifactForbidden() *DeleteArtifactForbidden

NewDeleteArtifactForbidden creates DeleteArtifactForbidden with default headers values

func (*DeleteArtifactForbidden) SetPayload

func (o *DeleteArtifactForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete artifact forbidden response

func (*DeleteArtifactForbidden) SetXRequestID

func (o *DeleteArtifactForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete artifact forbidden response

func (*DeleteArtifactForbidden) WithPayload

WithPayload adds the payload to the delete artifact forbidden response

func (*DeleteArtifactForbidden) WithXRequestID

func (o *DeleteArtifactForbidden) WithXRequestID(xRequestID string) *DeleteArtifactForbidden

WithXRequestID adds the xRequestId to the delete artifact forbidden response

func (*DeleteArtifactForbidden) WriteResponse

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

WriteResponse to the client

type DeleteArtifactHandler

type DeleteArtifactHandler interface {
	Handle(DeleteArtifactParams, interface{}) middleware.Responder
}

DeleteArtifactHandler interface for that can handle valid delete artifact params

type DeleteArtifactHandlerFunc

type DeleteArtifactHandlerFunc func(DeleteArtifactParams, interface{}) middleware.Responder

DeleteArtifactHandlerFunc turns a function with the right signature into a delete artifact handler

func (DeleteArtifactHandlerFunc) Handle

func (fn DeleteArtifactHandlerFunc) Handle(params DeleteArtifactParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteArtifactInternalServerError

type DeleteArtifactInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

DeleteArtifactInternalServerError Internal server error

swagger:response deleteArtifactInternalServerError

func NewDeleteArtifactInternalServerError

func NewDeleteArtifactInternalServerError() *DeleteArtifactInternalServerError

NewDeleteArtifactInternalServerError creates DeleteArtifactInternalServerError with default headers values

func (*DeleteArtifactInternalServerError) SetPayload

func (o *DeleteArtifactInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete artifact internal server error response

func (*DeleteArtifactInternalServerError) SetXRequestID

func (o *DeleteArtifactInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete artifact internal server error response

func (*DeleteArtifactInternalServerError) WithPayload

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

func (*DeleteArtifactInternalServerError) WithXRequestID

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

func (*DeleteArtifactInternalServerError) WriteResponse

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

WriteResponse to the client

type DeleteArtifactNotFound

type DeleteArtifactNotFound struct {
	/*The ID of the corresponding request for the response

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

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

DeleteArtifactNotFound Not found

swagger:response deleteArtifactNotFound

func NewDeleteArtifactNotFound

func NewDeleteArtifactNotFound() *DeleteArtifactNotFound

NewDeleteArtifactNotFound creates DeleteArtifactNotFound with default headers values

func (*DeleteArtifactNotFound) SetPayload

func (o *DeleteArtifactNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete artifact not found response

func (*DeleteArtifactNotFound) SetXRequestID

func (o *DeleteArtifactNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete artifact not found response

func (*DeleteArtifactNotFound) WithPayload

func (o *DeleteArtifactNotFound) WithPayload(payload *models.Errors) *DeleteArtifactNotFound

WithPayload adds the payload to the delete artifact not found response

func (*DeleteArtifactNotFound) WithXRequestID

func (o *DeleteArtifactNotFound) WithXRequestID(xRequestID string) *DeleteArtifactNotFound

WithXRequestID adds the xRequestId to the delete artifact not found response

func (*DeleteArtifactNotFound) WriteResponse

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

WriteResponse to the client

type DeleteArtifactOK

type DeleteArtifactOK struct {
	/*The ID of the corresponding request for the response

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

DeleteArtifactOK Success

swagger:response deleteArtifactOK

func NewDeleteArtifactOK

func NewDeleteArtifactOK() *DeleteArtifactOK

NewDeleteArtifactOK creates DeleteArtifactOK with default headers values

func (*DeleteArtifactOK) SetXRequestID

func (o *DeleteArtifactOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete artifact o k response

func (*DeleteArtifactOK) WithXRequestID

func (o *DeleteArtifactOK) WithXRequestID(xRequestID string) *DeleteArtifactOK

WithXRequestID adds the xRequestId to the delete artifact o k response

func (*DeleteArtifactOK) WriteResponse

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

WriteResponse to the client

type DeleteArtifactParams

type DeleteArtifactParams 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 reference of the artifact, can be digest or tag
	  Required: true
	  In: path
	*/
	Reference 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
}

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

swagger:parameters deleteArtifact

func NewDeleteArtifactParams

func NewDeleteArtifactParams() DeleteArtifactParams

NewDeleteArtifactParams creates a new DeleteArtifactParams object no default values defined in spec.

func (*DeleteArtifactParams) BindRequest

func (o *DeleteArtifactParams) 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 NewDeleteArtifactParams() beforehand.

type DeleteArtifactURL

type DeleteArtifactURL struct {
	ProjectName    string
	Reference      string
	RepositoryName string
	// contains filtered or unexported fields
}

DeleteArtifactURL generates an URL for the delete artifact operation

func (*DeleteArtifactURL) Build

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

Build a url path and query string

func (*DeleteArtifactURL) BuildFull

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

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

func (*DeleteArtifactURL) Must

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

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

func (*DeleteArtifactURL) SetBasePath

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

func (o *DeleteArtifactURL) String() string

String returns the string representation of the path with query string

func (*DeleteArtifactURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteArtifactURL) WithBasePath

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

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 DeleteArtifactUnauthorized

type DeleteArtifactUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

DeleteArtifactUnauthorized Unauthorized

swagger:response deleteArtifactUnauthorized

func NewDeleteArtifactUnauthorized

func NewDeleteArtifactUnauthorized() *DeleteArtifactUnauthorized

NewDeleteArtifactUnauthorized creates DeleteArtifactUnauthorized with default headers values

func (*DeleteArtifactUnauthorized) SetPayload

func (o *DeleteArtifactUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete artifact unauthorized response

func (*DeleteArtifactUnauthorized) SetXRequestID

func (o *DeleteArtifactUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete artifact unauthorized response

func (*DeleteArtifactUnauthorized) WithPayload

WithPayload adds the payload to the delete artifact unauthorized response

func (*DeleteArtifactUnauthorized) WithXRequestID

func (o *DeleteArtifactUnauthorized) WithXRequestID(xRequestID string) *DeleteArtifactUnauthorized

WithXRequestID adds the xRequestId to the delete artifact unauthorized response

func (*DeleteArtifactUnauthorized) WriteResponse

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

WriteResponse to the client

type DeleteTag

type DeleteTag struct {
	Context *middleware.Context
	Handler DeleteTagHandler
}

DeleteTag swagger:route DELETE /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/tags/{tag_name} artifact deleteTag

Delete tag

Delete the tag of the specified artifact

func NewDeleteTag

func NewDeleteTag(ctx *middleware.Context, handler DeleteTagHandler) *DeleteTag

NewDeleteTag creates a new http.Handler for the delete tag operation

func (*DeleteTag) ServeHTTP

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

type DeleteTagForbidden

type DeleteTagForbidden struct {
	/*The ID of the corresponding request for the response

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

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

DeleteTagForbidden Forbidden

swagger:response deleteTagForbidden

func NewDeleteTagForbidden

func NewDeleteTagForbidden() *DeleteTagForbidden

NewDeleteTagForbidden creates DeleteTagForbidden with default headers values

func (*DeleteTagForbidden) SetPayload

func (o *DeleteTagForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete tag forbidden response

func (*DeleteTagForbidden) SetXRequestID

func (o *DeleteTagForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete tag forbidden response

func (*DeleteTagForbidden) WithPayload

func (o *DeleteTagForbidden) WithPayload(payload *models.Errors) *DeleteTagForbidden

WithPayload adds the payload to the delete tag forbidden response

func (*DeleteTagForbidden) WithXRequestID

func (o *DeleteTagForbidden) WithXRequestID(xRequestID string) *DeleteTagForbidden

WithXRequestID adds the xRequestId to the delete tag forbidden response

func (*DeleteTagForbidden) WriteResponse

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

WriteResponse to the client

type DeleteTagHandler

type DeleteTagHandler interface {
	Handle(DeleteTagParams, interface{}) middleware.Responder
}

DeleteTagHandler interface for that can handle valid delete tag params

type DeleteTagHandlerFunc

type DeleteTagHandlerFunc func(DeleteTagParams, interface{}) middleware.Responder

DeleteTagHandlerFunc turns a function with the right signature into a delete tag handler

func (DeleteTagHandlerFunc) Handle

func (fn DeleteTagHandlerFunc) Handle(params DeleteTagParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteTagInternalServerError

type DeleteTagInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

DeleteTagInternalServerError Internal server error

swagger:response deleteTagInternalServerError

func NewDeleteTagInternalServerError

func NewDeleteTagInternalServerError() *DeleteTagInternalServerError

NewDeleteTagInternalServerError creates DeleteTagInternalServerError with default headers values

func (*DeleteTagInternalServerError) SetPayload

func (o *DeleteTagInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete tag internal server error response

func (*DeleteTagInternalServerError) SetXRequestID

func (o *DeleteTagInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete tag internal server error response

func (*DeleteTagInternalServerError) WithPayload

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

func (*DeleteTagInternalServerError) WithXRequestID

func (o *DeleteTagInternalServerError) WithXRequestID(xRequestID string) *DeleteTagInternalServerError

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

func (*DeleteTagInternalServerError) WriteResponse

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

WriteResponse to the client

type DeleteTagNotFound

type DeleteTagNotFound struct {
	/*The ID of the corresponding request for the response

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

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

DeleteTagNotFound Not found

swagger:response deleteTagNotFound

func NewDeleteTagNotFound

func NewDeleteTagNotFound() *DeleteTagNotFound

NewDeleteTagNotFound creates DeleteTagNotFound with default headers values

func (*DeleteTagNotFound) SetPayload

func (o *DeleteTagNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete tag not found response

func (*DeleteTagNotFound) SetXRequestID

func (o *DeleteTagNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete tag not found response

func (*DeleteTagNotFound) WithPayload

func (o *DeleteTagNotFound) WithPayload(payload *models.Errors) *DeleteTagNotFound

WithPayload adds the payload to the delete tag not found response

func (*DeleteTagNotFound) WithXRequestID

func (o *DeleteTagNotFound) WithXRequestID(xRequestID string) *DeleteTagNotFound

WithXRequestID adds the xRequestId to the delete tag not found response

func (*DeleteTagNotFound) WriteResponse

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

WriteResponse to the client

type DeleteTagOK

type DeleteTagOK struct {
	/*The ID of the corresponding request for the response

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

DeleteTagOK Success

swagger:response deleteTagOK

func NewDeleteTagOK

func NewDeleteTagOK() *DeleteTagOK

NewDeleteTagOK creates DeleteTagOK with default headers values

func (*DeleteTagOK) SetXRequestID

func (o *DeleteTagOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete tag o k response

func (*DeleteTagOK) WithXRequestID

func (o *DeleteTagOK) WithXRequestID(xRequestID string) *DeleteTagOK

WithXRequestID adds the xRequestId to the delete tag o k response

func (*DeleteTagOK) WriteResponse

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

WriteResponse to the client

type DeleteTagParams

type DeleteTagParams 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 reference of the artifact, can be digest or tag
	  Required: true
	  In: path
	*/
	Reference 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
	/*The name of the tag
	  Required: true
	  In: path
	*/
	TagName string
}

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

swagger:parameters deleteTag

func NewDeleteTagParams

func NewDeleteTagParams() DeleteTagParams

NewDeleteTagParams creates a new DeleteTagParams object no default values defined in spec.

func (*DeleteTagParams) BindRequest

func (o *DeleteTagParams) 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 NewDeleteTagParams() beforehand.

type DeleteTagURL

type DeleteTagURL struct {
	ProjectName    string
	Reference      string
	RepositoryName string
	TagName        string
	// contains filtered or unexported fields
}

DeleteTagURL generates an URL for the delete tag operation

func (*DeleteTagURL) Build

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

Build a url path and query string

func (*DeleteTagURL) BuildFull

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

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

func (*DeleteTagURL) Must

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

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

func (*DeleteTagURL) SetBasePath

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

func (o *DeleteTagURL) String() string

String returns the string representation of the path with query string

func (*DeleteTagURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteTagURL) WithBasePath

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

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 DeleteTagUnauthorized

type DeleteTagUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

DeleteTagUnauthorized Unauthorized

swagger:response deleteTagUnauthorized

func NewDeleteTagUnauthorized

func NewDeleteTagUnauthorized() *DeleteTagUnauthorized

NewDeleteTagUnauthorized creates DeleteTagUnauthorized with default headers values

func (*DeleteTagUnauthorized) SetPayload

func (o *DeleteTagUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete tag unauthorized response

func (*DeleteTagUnauthorized) SetXRequestID

func (o *DeleteTagUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete tag unauthorized response

func (*DeleteTagUnauthorized) WithPayload

func (o *DeleteTagUnauthorized) WithPayload(payload *models.Errors) *DeleteTagUnauthorized

WithPayload adds the payload to the delete tag unauthorized response

func (*DeleteTagUnauthorized) WithXRequestID

func (o *DeleteTagUnauthorized) WithXRequestID(xRequestID string) *DeleteTagUnauthorized

WithXRequestID adds the xRequestId to the delete tag unauthorized response

func (*DeleteTagUnauthorized) WriteResponse

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

WriteResponse to the client

type GetAddition

type GetAddition struct {
	Context *middleware.Context
	Handler GetAdditionHandler
}

GetAddition swagger:route GET /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/additions/{addition} artifact getAddition

Get the addition of the specific artifact

Get the addition of the artifact specified by the reference under the project and repository.

func NewGetAddition

func NewGetAddition(ctx *middleware.Context, handler GetAdditionHandler) *GetAddition

NewGetAddition creates a new http.Handler for the get addition operation

func (*GetAddition) ServeHTTP

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

type GetAdditionBadRequest

type GetAdditionBadRequest struct {
	/*The ID of the corresponding request for the response

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

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

GetAdditionBadRequest Bad request

swagger:response getAdditionBadRequest

func NewGetAdditionBadRequest

func NewGetAdditionBadRequest() *GetAdditionBadRequest

NewGetAdditionBadRequest creates GetAdditionBadRequest with default headers values

func (*GetAdditionBadRequest) SetPayload

func (o *GetAdditionBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get addition bad request response

func (*GetAdditionBadRequest) SetXRequestID

func (o *GetAdditionBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get addition bad request response

func (*GetAdditionBadRequest) WithPayload

func (o *GetAdditionBadRequest) WithPayload(payload *models.Errors) *GetAdditionBadRequest

WithPayload adds the payload to the get addition bad request response

func (*GetAdditionBadRequest) WithXRequestID

func (o *GetAdditionBadRequest) WithXRequestID(xRequestID string) *GetAdditionBadRequest

WithXRequestID adds the xRequestId to the get addition bad request response

func (*GetAdditionBadRequest) WriteResponse

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

WriteResponse to the client

type GetAdditionForbidden

type GetAdditionForbidden struct {
	/*The ID of the corresponding request for the response

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

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

GetAdditionForbidden Forbidden

swagger:response getAdditionForbidden

func NewGetAdditionForbidden

func NewGetAdditionForbidden() *GetAdditionForbidden

NewGetAdditionForbidden creates GetAdditionForbidden with default headers values

func (*GetAdditionForbidden) SetPayload

func (o *GetAdditionForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get addition forbidden response

func (*GetAdditionForbidden) SetXRequestID

func (o *GetAdditionForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get addition forbidden response

func (*GetAdditionForbidden) WithPayload

func (o *GetAdditionForbidden) WithPayload(payload *models.Errors) *GetAdditionForbidden

WithPayload adds the payload to the get addition forbidden response

func (*GetAdditionForbidden) WithXRequestID

func (o *GetAdditionForbidden) WithXRequestID(xRequestID string) *GetAdditionForbidden

WithXRequestID adds the xRequestId to the get addition forbidden response

func (*GetAdditionForbidden) WriteResponse

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

WriteResponse to the client

type GetAdditionHandler

type GetAdditionHandler interface {
	Handle(GetAdditionParams, interface{}) middleware.Responder
}

GetAdditionHandler interface for that can handle valid get addition params

type GetAdditionHandlerFunc

type GetAdditionHandlerFunc func(GetAdditionParams, interface{}) middleware.Responder

GetAdditionHandlerFunc turns a function with the right signature into a get addition handler

func (GetAdditionHandlerFunc) Handle

func (fn GetAdditionHandlerFunc) Handle(params GetAdditionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetAdditionInternalServerError

type GetAdditionInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

GetAdditionInternalServerError Internal server error

swagger:response getAdditionInternalServerError

func NewGetAdditionInternalServerError

func NewGetAdditionInternalServerError() *GetAdditionInternalServerError

NewGetAdditionInternalServerError creates GetAdditionInternalServerError with default headers values

func (*GetAdditionInternalServerError) SetPayload

func (o *GetAdditionInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get addition internal server error response

func (*GetAdditionInternalServerError) SetXRequestID

func (o *GetAdditionInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get addition internal server error response

func (*GetAdditionInternalServerError) WithPayload

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

func (*GetAdditionInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the get addition internal server error response

func (*GetAdditionInternalServerError) WriteResponse

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

WriteResponse to the client

type GetAdditionNotFound

type GetAdditionNotFound struct {
	/*The ID of the corresponding request for the response

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

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

GetAdditionNotFound Not found

swagger:response getAdditionNotFound

func NewGetAdditionNotFound

func NewGetAdditionNotFound() *GetAdditionNotFound

NewGetAdditionNotFound creates GetAdditionNotFound with default headers values

func (*GetAdditionNotFound) SetPayload

func (o *GetAdditionNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get addition not found response

func (*GetAdditionNotFound) SetXRequestID

func (o *GetAdditionNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get addition not found response

func (*GetAdditionNotFound) WithPayload

func (o *GetAdditionNotFound) WithPayload(payload *models.Errors) *GetAdditionNotFound

WithPayload adds the payload to the get addition not found response

func (*GetAdditionNotFound) WithXRequestID

func (o *GetAdditionNotFound) WithXRequestID(xRequestID string) *GetAdditionNotFound

WithXRequestID adds the xRequestId to the get addition not found response

func (*GetAdditionNotFound) WriteResponse

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

WriteResponse to the client

type GetAdditionOK

type GetAdditionOK struct {
	/*The content type of the addition

	 */
	ContentType string `json:"Content-Type"`

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

GetAdditionOK Success

swagger:response getAdditionOK

func NewGetAdditionOK

func NewGetAdditionOK() *GetAdditionOK

NewGetAdditionOK creates GetAdditionOK with default headers values

func (*GetAdditionOK) SetContentType

func (o *GetAdditionOK) SetContentType(contentType string)

SetContentType sets the contentType to the get addition o k response

func (*GetAdditionOK) SetPayload

func (o *GetAdditionOK) SetPayload(payload string)

SetPayload sets the payload to the get addition o k response

func (*GetAdditionOK) WithContentType

func (o *GetAdditionOK) WithContentType(contentType string) *GetAdditionOK

WithContentType adds the contentType to the get addition o k response

func (*GetAdditionOK) WithPayload

func (o *GetAdditionOK) WithPayload(payload string) *GetAdditionOK

WithPayload adds the payload to the get addition o k response

func (*GetAdditionOK) WriteResponse

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

WriteResponse to the client

type GetAdditionParams

type GetAdditionParams struct {

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

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The type of addition.
	  Required: true
	  In: path
	*/
	Addition string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
	/*The reference of the artifact, can be digest or tag
	  Required: true
	  In: path
	*/
	Reference 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
}

GetAdditionParams contains all the bound params for the get addition operation typically these are obtained from a http.Request

swagger:parameters getAddition

func NewGetAdditionParams

func NewGetAdditionParams() GetAdditionParams

NewGetAdditionParams creates a new GetAdditionParams object no default values defined in spec.

func (*GetAdditionParams) BindRequest

func (o *GetAdditionParams) 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 NewGetAdditionParams() beforehand.

type GetAdditionURL

type GetAdditionURL struct {
	Addition       string
	ProjectName    string
	Reference      string
	RepositoryName string
	// contains filtered or unexported fields
}

GetAdditionURL generates an URL for the get addition operation

func (*GetAdditionURL) Build

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

Build a url path and query string

func (*GetAdditionURL) BuildFull

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

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

func (*GetAdditionURL) Must

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

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

func (*GetAdditionURL) SetBasePath

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

func (o *GetAdditionURL) String() string

String returns the string representation of the path with query string

func (*GetAdditionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetAdditionURL) WithBasePath

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

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 GetAdditionUnauthorized

type GetAdditionUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

GetAdditionUnauthorized Unauthorized

swagger:response getAdditionUnauthorized

func NewGetAdditionUnauthorized

func NewGetAdditionUnauthorized() *GetAdditionUnauthorized

NewGetAdditionUnauthorized creates GetAdditionUnauthorized with default headers values

func (*GetAdditionUnauthorized) SetPayload

func (o *GetAdditionUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get addition unauthorized response

func (*GetAdditionUnauthorized) SetXRequestID

func (o *GetAdditionUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get addition unauthorized response

func (*GetAdditionUnauthorized) WithPayload

WithPayload adds the payload to the get addition unauthorized response

func (*GetAdditionUnauthorized) WithXRequestID

func (o *GetAdditionUnauthorized) WithXRequestID(xRequestID string) *GetAdditionUnauthorized

WithXRequestID adds the xRequestId to the get addition unauthorized response

func (*GetAdditionUnauthorized) WriteResponse

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

WriteResponse to the client

type GetArtifact

type GetArtifact struct {
	Context *middleware.Context
	Handler GetArtifactHandler
}

GetArtifact swagger:route GET /projects/{project_name}/repositories/{repository_name}/artifacts/{reference} artifact getArtifact

Get the specific artifact

Get the artifact specified by the reference under the project and repository. The reference can be digest or tag.

func NewGetArtifact

func NewGetArtifact(ctx *middleware.Context, handler GetArtifactHandler) *GetArtifact

NewGetArtifact creates a new http.Handler for the get artifact operation

func (*GetArtifact) ServeHTTP

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

type GetArtifactBadRequest

type GetArtifactBadRequest struct {
	/*The ID of the corresponding request for the response

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

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

GetArtifactBadRequest Bad request

swagger:response getArtifactBadRequest

func NewGetArtifactBadRequest

func NewGetArtifactBadRequest() *GetArtifactBadRequest

NewGetArtifactBadRequest creates GetArtifactBadRequest with default headers values

func (*GetArtifactBadRequest) SetPayload

func (o *GetArtifactBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get artifact bad request response

func (*GetArtifactBadRequest) SetXRequestID

func (o *GetArtifactBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get artifact bad request response

func (*GetArtifactBadRequest) WithPayload

func (o *GetArtifactBadRequest) WithPayload(payload *models.Errors) *GetArtifactBadRequest

WithPayload adds the payload to the get artifact bad request response

func (*GetArtifactBadRequest) WithXRequestID

func (o *GetArtifactBadRequest) WithXRequestID(xRequestID string) *GetArtifactBadRequest

WithXRequestID adds the xRequestId to the get artifact bad request response

func (*GetArtifactBadRequest) WriteResponse

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

WriteResponse to the client

type GetArtifactForbidden

type GetArtifactForbidden struct {
	/*The ID of the corresponding request for the response

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

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

GetArtifactForbidden Forbidden

swagger:response getArtifactForbidden

func NewGetArtifactForbidden

func NewGetArtifactForbidden() *GetArtifactForbidden

NewGetArtifactForbidden creates GetArtifactForbidden with default headers values

func (*GetArtifactForbidden) SetPayload

func (o *GetArtifactForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get artifact forbidden response

func (*GetArtifactForbidden) SetXRequestID

func (o *GetArtifactForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get artifact forbidden response

func (*GetArtifactForbidden) WithPayload

func (o *GetArtifactForbidden) WithPayload(payload *models.Errors) *GetArtifactForbidden

WithPayload adds the payload to the get artifact forbidden response

func (*GetArtifactForbidden) WithXRequestID

func (o *GetArtifactForbidden) WithXRequestID(xRequestID string) *GetArtifactForbidden

WithXRequestID adds the xRequestId to the get artifact forbidden response

func (*GetArtifactForbidden) WriteResponse

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

WriteResponse to the client

type GetArtifactHandler

type GetArtifactHandler interface {
	Handle(GetArtifactParams, interface{}) middleware.Responder
}

GetArtifactHandler interface for that can handle valid get artifact params

type GetArtifactHandlerFunc

type GetArtifactHandlerFunc func(GetArtifactParams, interface{}) middleware.Responder

GetArtifactHandlerFunc turns a function with the right signature into a get artifact handler

func (GetArtifactHandlerFunc) Handle

func (fn GetArtifactHandlerFunc) Handle(params GetArtifactParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetArtifactInternalServerError

type GetArtifactInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

GetArtifactInternalServerError Internal server error

swagger:response getArtifactInternalServerError

func NewGetArtifactInternalServerError

func NewGetArtifactInternalServerError() *GetArtifactInternalServerError

NewGetArtifactInternalServerError creates GetArtifactInternalServerError with default headers values

func (*GetArtifactInternalServerError) SetPayload

func (o *GetArtifactInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get artifact internal server error response

func (*GetArtifactInternalServerError) SetXRequestID

func (o *GetArtifactInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get artifact internal server error response

func (*GetArtifactInternalServerError) WithPayload

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

func (*GetArtifactInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the get artifact internal server error response

func (*GetArtifactInternalServerError) WriteResponse

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

WriteResponse to the client

type GetArtifactNotFound

type GetArtifactNotFound struct {
	/*The ID of the corresponding request for the response

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

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

GetArtifactNotFound Not found

swagger:response getArtifactNotFound

func NewGetArtifactNotFound

func NewGetArtifactNotFound() *GetArtifactNotFound

NewGetArtifactNotFound creates GetArtifactNotFound with default headers values

func (*GetArtifactNotFound) SetPayload

func (o *GetArtifactNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get artifact not found response

func (*GetArtifactNotFound) SetXRequestID

func (o *GetArtifactNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get artifact not found response

func (*GetArtifactNotFound) WithPayload

func (o *GetArtifactNotFound) WithPayload(payload *models.Errors) *GetArtifactNotFound

WithPayload adds the payload to the get artifact not found response

func (*GetArtifactNotFound) WithXRequestID

func (o *GetArtifactNotFound) WithXRequestID(xRequestID string) *GetArtifactNotFound

WithXRequestID adds the xRequestId to the get artifact not found response

func (*GetArtifactNotFound) WriteResponse

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

WriteResponse to the client

type GetArtifactOK

type GetArtifactOK struct {

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

GetArtifactOK Success

swagger:response getArtifactOK

func NewGetArtifactOK

func NewGetArtifactOK() *GetArtifactOK

NewGetArtifactOK creates GetArtifactOK with default headers values

func (*GetArtifactOK) SetPayload

func (o *GetArtifactOK) SetPayload(payload *models.Artifact)

SetPayload sets the payload to the get artifact o k response

func (*GetArtifactOK) WithPayload

func (o *GetArtifactOK) WithPayload(payload *models.Artifact) *GetArtifactOK

WithPayload adds the payload to the get artifact o k response

func (*GetArtifactOK) WriteResponse

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

WriteResponse to the client

type GetArtifactParams

type GetArtifactParams struct {

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

	/*A comma-separated lists of MIME types for the scan report or scan summary. The first mime type will be used when the report found for it.
	Currently the mime type supports 'application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0' and 'application/vnd.security.vulnerability.report; version=1.1'
	  In: header
	  Default: "application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0"
	*/
	XAcceptVulnerabilities *string
	/*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
	/*The reference of the artifact, can be digest or tag
	  Required: true
	  In: path
	*/
	Reference 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
	/*Specify whether the immutable status is inclued inside the tags of the returning artifacts. Only works when setting "with_tag=true"
	  In: query
	  Default: false
	*/
	WithImmutableStatus *bool
	/*Specify whether the labels are inclued inside the returning artifacts
	  In: query
	  Default: false
	*/
	WithLabel *bool
	/*Specify whether the scan overview is inclued inside the returning artifacts
	  In: query
	  Default: false
	*/
	WithScanOverview *bool
	/*Specify whether the signature is inclued inside the returning artifacts
	  In: query
	  Default: false
	*/
	WithSignature *bool
	/*Specify whether the tags are inclued inside the returning artifacts
	  In: query
	  Default: true
	*/
	WithTag *bool
}

GetArtifactParams contains all the bound params for the get artifact operation typically these are obtained from a http.Request

swagger:parameters getArtifact

func NewGetArtifactParams

func NewGetArtifactParams() GetArtifactParams

NewGetArtifactParams creates a new GetArtifactParams object with the default values initialized.

func (*GetArtifactParams) BindRequest

func (o *GetArtifactParams) 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 NewGetArtifactParams() beforehand.

type GetArtifactURL

type GetArtifactURL struct {
	ProjectName    string
	Reference      string
	RepositoryName string

	Page                *int64
	PageSize            *int64
	WithImmutableStatus *bool
	WithLabel           *bool
	WithScanOverview    *bool
	WithSignature       *bool
	WithTag             *bool
	// contains filtered or unexported fields
}

GetArtifactURL generates an URL for the get artifact operation

func (*GetArtifactURL) Build

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

Build a url path and query string

func (*GetArtifactURL) BuildFull

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

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

func (*GetArtifactURL) Must

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

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

func (*GetArtifactURL) SetBasePath

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

func (o *GetArtifactURL) String() string

String returns the string representation of the path with query string

func (*GetArtifactURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetArtifactURL) WithBasePath

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

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 GetArtifactUnauthorized

type GetArtifactUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

GetArtifactUnauthorized Unauthorized

swagger:response getArtifactUnauthorized

func NewGetArtifactUnauthorized

func NewGetArtifactUnauthorized() *GetArtifactUnauthorized

NewGetArtifactUnauthorized creates GetArtifactUnauthorized with default headers values

func (*GetArtifactUnauthorized) SetPayload

func (o *GetArtifactUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get artifact unauthorized response

func (*GetArtifactUnauthorized) SetXRequestID

func (o *GetArtifactUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get artifact unauthorized response

func (*GetArtifactUnauthorized) WithPayload

WithPayload adds the payload to the get artifact unauthorized response

func (*GetArtifactUnauthorized) WithXRequestID

func (o *GetArtifactUnauthorized) WithXRequestID(xRequestID string) *GetArtifactUnauthorized

WithXRequestID adds the xRequestId to the get artifact unauthorized response

func (*GetArtifactUnauthorized) WriteResponse

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

WriteResponse to the client

type GetVulnerabilitiesAddition

type GetVulnerabilitiesAddition struct {
	Context *middleware.Context
	Handler GetVulnerabilitiesAdditionHandler
}

GetVulnerabilitiesAddition swagger:route GET /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/additions/vulnerabilities artifact getVulnerabilitiesAddition

Get the vulnerabilities addition of the specific artifact

Get the vulnerabilities addition of the artifact specified by the reference under the project and repository.

func NewGetVulnerabilitiesAddition

func NewGetVulnerabilitiesAddition(ctx *middleware.Context, handler GetVulnerabilitiesAdditionHandler) *GetVulnerabilitiesAddition

NewGetVulnerabilitiesAddition creates a new http.Handler for the get vulnerabilities addition operation

func (*GetVulnerabilitiesAddition) ServeHTTP

type GetVulnerabilitiesAdditionBadRequest

type GetVulnerabilitiesAdditionBadRequest struct {
	/*The ID of the corresponding request for the response

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

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

GetVulnerabilitiesAdditionBadRequest Bad request

swagger:response getVulnerabilitiesAdditionBadRequest

func NewGetVulnerabilitiesAdditionBadRequest

func NewGetVulnerabilitiesAdditionBadRequest() *GetVulnerabilitiesAdditionBadRequest

NewGetVulnerabilitiesAdditionBadRequest creates GetVulnerabilitiesAdditionBadRequest with default headers values

func (*GetVulnerabilitiesAdditionBadRequest) SetPayload

func (o *GetVulnerabilitiesAdditionBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get vulnerabilities addition bad request response

func (*GetVulnerabilitiesAdditionBadRequest) SetXRequestID

func (o *GetVulnerabilitiesAdditionBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get vulnerabilities addition bad request response

func (*GetVulnerabilitiesAdditionBadRequest) WithPayload

WithPayload adds the payload to the get vulnerabilities addition bad request response

func (*GetVulnerabilitiesAdditionBadRequest) WithXRequestID

WithXRequestID adds the xRequestId to the get vulnerabilities addition bad request response

func (*GetVulnerabilitiesAdditionBadRequest) WriteResponse

WriteResponse to the client

type GetVulnerabilitiesAdditionForbidden

type GetVulnerabilitiesAdditionForbidden struct {
	/*The ID of the corresponding request for the response

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

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

GetVulnerabilitiesAdditionForbidden Forbidden

swagger:response getVulnerabilitiesAdditionForbidden

func NewGetVulnerabilitiesAdditionForbidden

func NewGetVulnerabilitiesAdditionForbidden() *GetVulnerabilitiesAdditionForbidden

NewGetVulnerabilitiesAdditionForbidden creates GetVulnerabilitiesAdditionForbidden with default headers values

func (*GetVulnerabilitiesAdditionForbidden) SetPayload

func (o *GetVulnerabilitiesAdditionForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get vulnerabilities addition forbidden response

func (*GetVulnerabilitiesAdditionForbidden) SetXRequestID

func (o *GetVulnerabilitiesAdditionForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get vulnerabilities addition forbidden response

func (*GetVulnerabilitiesAdditionForbidden) WithPayload

WithPayload adds the payload to the get vulnerabilities addition forbidden response

func (*GetVulnerabilitiesAdditionForbidden) WithXRequestID

WithXRequestID adds the xRequestId to the get vulnerabilities addition forbidden response

func (*GetVulnerabilitiesAdditionForbidden) WriteResponse

WriteResponse to the client

type GetVulnerabilitiesAdditionHandler

type GetVulnerabilitiesAdditionHandler interface {
	Handle(GetVulnerabilitiesAdditionParams, interface{}) middleware.Responder
}

GetVulnerabilitiesAdditionHandler interface for that can handle valid get vulnerabilities addition params

type GetVulnerabilitiesAdditionHandlerFunc

type GetVulnerabilitiesAdditionHandlerFunc func(GetVulnerabilitiesAdditionParams, interface{}) middleware.Responder

GetVulnerabilitiesAdditionHandlerFunc turns a function with the right signature into a get vulnerabilities addition handler

func (GetVulnerabilitiesAdditionHandlerFunc) Handle

Handle executing the request and returning a response

type GetVulnerabilitiesAdditionInternalServerError

type GetVulnerabilitiesAdditionInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

GetVulnerabilitiesAdditionInternalServerError Internal server error

swagger:response getVulnerabilitiesAdditionInternalServerError

func NewGetVulnerabilitiesAdditionInternalServerError

func NewGetVulnerabilitiesAdditionInternalServerError() *GetVulnerabilitiesAdditionInternalServerError

NewGetVulnerabilitiesAdditionInternalServerError creates GetVulnerabilitiesAdditionInternalServerError with default headers values

func (*GetVulnerabilitiesAdditionInternalServerError) SetPayload

SetPayload sets the payload to the get vulnerabilities addition internal server error response

func (*GetVulnerabilitiesAdditionInternalServerError) SetXRequestID

func (o *GetVulnerabilitiesAdditionInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get vulnerabilities addition internal server error response

func (*GetVulnerabilitiesAdditionInternalServerError) WithPayload

WithPayload adds the payload to the get vulnerabilities addition internal server error response

func (*GetVulnerabilitiesAdditionInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the get vulnerabilities addition internal server error response

func (*GetVulnerabilitiesAdditionInternalServerError) WriteResponse

WriteResponse to the client

type GetVulnerabilitiesAdditionNotFound

type GetVulnerabilitiesAdditionNotFound struct {
	/*The ID of the corresponding request for the response

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

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

GetVulnerabilitiesAdditionNotFound Not found

swagger:response getVulnerabilitiesAdditionNotFound

func NewGetVulnerabilitiesAdditionNotFound

func NewGetVulnerabilitiesAdditionNotFound() *GetVulnerabilitiesAdditionNotFound

NewGetVulnerabilitiesAdditionNotFound creates GetVulnerabilitiesAdditionNotFound with default headers values

func (*GetVulnerabilitiesAdditionNotFound) SetPayload

func (o *GetVulnerabilitiesAdditionNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get vulnerabilities addition not found response

func (*GetVulnerabilitiesAdditionNotFound) SetXRequestID

func (o *GetVulnerabilitiesAdditionNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get vulnerabilities addition not found response

func (*GetVulnerabilitiesAdditionNotFound) WithPayload

WithPayload adds the payload to the get vulnerabilities addition not found response

func (*GetVulnerabilitiesAdditionNotFound) WithXRequestID

WithXRequestID adds the xRequestId to the get vulnerabilities addition not found response

func (*GetVulnerabilitiesAdditionNotFound) WriteResponse

WriteResponse to the client

type GetVulnerabilitiesAdditionOK

type GetVulnerabilitiesAdditionOK struct {
	/*The content type of the vulnerabilities addition

	 */
	ContentType string `json:"Content-Type"`

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

GetVulnerabilitiesAdditionOK Success

swagger:response getVulnerabilitiesAdditionOK

func NewGetVulnerabilitiesAdditionOK

func NewGetVulnerabilitiesAdditionOK() *GetVulnerabilitiesAdditionOK

NewGetVulnerabilitiesAdditionOK creates GetVulnerabilitiesAdditionOK with default headers values

func (*GetVulnerabilitiesAdditionOK) SetContentType

func (o *GetVulnerabilitiesAdditionOK) SetContentType(contentType string)

SetContentType sets the contentType to the get vulnerabilities addition o k response

func (*GetVulnerabilitiesAdditionOK) SetPayload

func (o *GetVulnerabilitiesAdditionOK) SetPayload(payload string)

SetPayload sets the payload to the get vulnerabilities addition o k response

func (*GetVulnerabilitiesAdditionOK) WithContentType

func (o *GetVulnerabilitiesAdditionOK) WithContentType(contentType string) *GetVulnerabilitiesAdditionOK

WithContentType adds the contentType to the get vulnerabilities addition o k response

func (*GetVulnerabilitiesAdditionOK) WithPayload

WithPayload adds the payload to the get vulnerabilities addition o k response

func (*GetVulnerabilitiesAdditionOK) WriteResponse

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

WriteResponse to the client

type GetVulnerabilitiesAdditionParams

type GetVulnerabilitiesAdditionParams struct {

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

	/*A comma-separated lists of MIME types for the scan report or scan summary. The first mime type will be used when the report found for it.
	Currently the mime type supports 'application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0' and 'application/vnd.security.vulnerability.report; version=1.1'
	  In: header
	  Default: "application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0"
	*/
	XAcceptVulnerabilities *string
	/*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 reference of the artifact, can be digest or tag
	  Required: true
	  In: path
	*/
	Reference 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
}

GetVulnerabilitiesAdditionParams contains all the bound params for the get vulnerabilities addition operation typically these are obtained from a http.Request

swagger:parameters getVulnerabilitiesAddition

func NewGetVulnerabilitiesAdditionParams

func NewGetVulnerabilitiesAdditionParams() GetVulnerabilitiesAdditionParams

NewGetVulnerabilitiesAdditionParams creates a new GetVulnerabilitiesAdditionParams object with the default values initialized.

func (*GetVulnerabilitiesAdditionParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetVulnerabilitiesAdditionParams() beforehand.

type GetVulnerabilitiesAdditionURL

type GetVulnerabilitiesAdditionURL struct {
	ProjectName    string
	Reference      string
	RepositoryName string
	// contains filtered or unexported fields
}

GetVulnerabilitiesAdditionURL generates an URL for the get vulnerabilities addition operation

func (*GetVulnerabilitiesAdditionURL) Build

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

Build a url path and query string

func (*GetVulnerabilitiesAdditionURL) BuildFull

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

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

func (*GetVulnerabilitiesAdditionURL) Must

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

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

func (*GetVulnerabilitiesAdditionURL) SetBasePath

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

String returns the string representation of the path with query string

func (*GetVulnerabilitiesAdditionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetVulnerabilitiesAdditionURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetVulnerabilitiesAdditionUnauthorized

type GetVulnerabilitiesAdditionUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

GetVulnerabilitiesAdditionUnauthorized Unauthorized

swagger:response getVulnerabilitiesAdditionUnauthorized

func NewGetVulnerabilitiesAdditionUnauthorized

func NewGetVulnerabilitiesAdditionUnauthorized() *GetVulnerabilitiesAdditionUnauthorized

NewGetVulnerabilitiesAdditionUnauthorized creates GetVulnerabilitiesAdditionUnauthorized with default headers values

func (*GetVulnerabilitiesAdditionUnauthorized) SetPayload

func (o *GetVulnerabilitiesAdditionUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get vulnerabilities addition unauthorized response

func (*GetVulnerabilitiesAdditionUnauthorized) SetXRequestID

func (o *GetVulnerabilitiesAdditionUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get vulnerabilities addition unauthorized response

func (*GetVulnerabilitiesAdditionUnauthorized) WithPayload

WithPayload adds the payload to the get vulnerabilities addition unauthorized response

func (*GetVulnerabilitiesAdditionUnauthorized) WithXRequestID

WithXRequestID adds the xRequestId to the get vulnerabilities addition unauthorized response

func (*GetVulnerabilitiesAdditionUnauthorized) WriteResponse

WriteResponse to the client

type ListArtifacts

type ListArtifacts struct {
	Context *middleware.Context
	Handler ListArtifactsHandler
}

ListArtifacts swagger:route GET /projects/{project_name}/repositories/{repository_name}/artifacts artifact listArtifacts

List artifacts

List artifacts under the specific project and repository. Except the basic properties, the other supported queries in "q" includes "tags=*" to list only tagged artifacts, "tags=nil" to list only untagged artifacts, "tags=~v" to list artifacts whose tag fuzzy matches "v", "tags=v" to list artifact whose tag exactly matches "v", "labels=(id1, id2)" to list artifacts that both labels with id1 and id2 are added to

func NewListArtifacts

func NewListArtifacts(ctx *middleware.Context, handler ListArtifactsHandler) *ListArtifacts

NewListArtifacts creates a new http.Handler for the list artifacts operation

func (*ListArtifacts) ServeHTTP

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

type ListArtifactsBadRequest

type ListArtifactsBadRequest struct {
	/*The ID of the corresponding request for the response

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

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

ListArtifactsBadRequest Bad request

swagger:response listArtifactsBadRequest

func NewListArtifactsBadRequest

func NewListArtifactsBadRequest() *ListArtifactsBadRequest

NewListArtifactsBadRequest creates ListArtifactsBadRequest with default headers values

func (*ListArtifactsBadRequest) SetPayload

func (o *ListArtifactsBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list artifacts bad request response

func (*ListArtifactsBadRequest) SetXRequestID

func (o *ListArtifactsBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list artifacts bad request response

func (*ListArtifactsBadRequest) WithPayload

WithPayload adds the payload to the list artifacts bad request response

func (*ListArtifactsBadRequest) WithXRequestID

func (o *ListArtifactsBadRequest) WithXRequestID(xRequestID string) *ListArtifactsBadRequest

WithXRequestID adds the xRequestId to the list artifacts bad request response

func (*ListArtifactsBadRequest) WriteResponse

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

WriteResponse to the client

type ListArtifactsForbidden

type ListArtifactsForbidden struct {
	/*The ID of the corresponding request for the response

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

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

ListArtifactsForbidden Forbidden

swagger:response listArtifactsForbidden

func NewListArtifactsForbidden

func NewListArtifactsForbidden() *ListArtifactsForbidden

NewListArtifactsForbidden creates ListArtifactsForbidden with default headers values

func (*ListArtifactsForbidden) SetPayload

func (o *ListArtifactsForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list artifacts forbidden response

func (*ListArtifactsForbidden) SetXRequestID

func (o *ListArtifactsForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list artifacts forbidden response

func (*ListArtifactsForbidden) WithPayload

func (o *ListArtifactsForbidden) WithPayload(payload *models.Errors) *ListArtifactsForbidden

WithPayload adds the payload to the list artifacts forbidden response

func (*ListArtifactsForbidden) WithXRequestID

func (o *ListArtifactsForbidden) WithXRequestID(xRequestID string) *ListArtifactsForbidden

WithXRequestID adds the xRequestId to the list artifacts forbidden response

func (*ListArtifactsForbidden) WriteResponse

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

WriteResponse to the client

type ListArtifactsHandler

type ListArtifactsHandler interface {
	Handle(ListArtifactsParams, interface{}) middleware.Responder
}

ListArtifactsHandler interface for that can handle valid list artifacts params

type ListArtifactsHandlerFunc

type ListArtifactsHandlerFunc func(ListArtifactsParams, interface{}) middleware.Responder

ListArtifactsHandlerFunc turns a function with the right signature into a list artifacts handler

func (ListArtifactsHandlerFunc) Handle

func (fn ListArtifactsHandlerFunc) Handle(params ListArtifactsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListArtifactsInternalServerError

type ListArtifactsInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

ListArtifactsInternalServerError Internal server error

swagger:response listArtifactsInternalServerError

func NewListArtifactsInternalServerError

func NewListArtifactsInternalServerError() *ListArtifactsInternalServerError

NewListArtifactsInternalServerError creates ListArtifactsInternalServerError with default headers values

func (*ListArtifactsInternalServerError) SetPayload

func (o *ListArtifactsInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list artifacts internal server error response

func (*ListArtifactsInternalServerError) SetXRequestID

func (o *ListArtifactsInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list artifacts internal server error response

func (*ListArtifactsInternalServerError) WithPayload

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

func (*ListArtifactsInternalServerError) WithXRequestID

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

func (*ListArtifactsInternalServerError) WriteResponse

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

WriteResponse to the client

type ListArtifactsNotFound

type ListArtifactsNotFound struct {
	/*The ID of the corresponding request for the response

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

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

ListArtifactsNotFound Not found

swagger:response listArtifactsNotFound

func NewListArtifactsNotFound

func NewListArtifactsNotFound() *ListArtifactsNotFound

NewListArtifactsNotFound creates ListArtifactsNotFound with default headers values

func (*ListArtifactsNotFound) SetPayload

func (o *ListArtifactsNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list artifacts not found response

func (*ListArtifactsNotFound) SetXRequestID

func (o *ListArtifactsNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list artifacts not found response

func (*ListArtifactsNotFound) WithPayload

func (o *ListArtifactsNotFound) WithPayload(payload *models.Errors) *ListArtifactsNotFound

WithPayload adds the payload to the list artifacts not found response

func (*ListArtifactsNotFound) WithXRequestID

func (o *ListArtifactsNotFound) WithXRequestID(xRequestID string) *ListArtifactsNotFound

WithXRequestID adds the xRequestId to the list artifacts not found response

func (*ListArtifactsNotFound) WriteResponse

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

WriteResponse to the client

type ListArtifactsOK

type ListArtifactsOK struct {
	/*Link refers to the previous page and next page

	 */
	Link string `json:"Link"`
	/*The total count of artifacts

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.Artifact `json:"body,omitempty"`
}

ListArtifactsOK Success

swagger:response listArtifactsOK

func NewListArtifactsOK

func NewListArtifactsOK() *ListArtifactsOK

NewListArtifactsOK creates ListArtifactsOK with default headers values

func (o *ListArtifactsOK) SetLink(link string)

SetLink sets the link to the list artifacts o k response

func (*ListArtifactsOK) SetPayload

func (o *ListArtifactsOK) SetPayload(payload []*models.Artifact)

SetPayload sets the payload to the list artifacts o k response

func (*ListArtifactsOK) SetXTotalCount

func (o *ListArtifactsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the list artifacts o k response

func (o *ListArtifactsOK) WithLink(link string) *ListArtifactsOK

WithLink adds the link to the list artifacts o k response

func (*ListArtifactsOK) WithPayload

func (o *ListArtifactsOK) WithPayload(payload []*models.Artifact) *ListArtifactsOK

WithPayload adds the payload to the list artifacts o k response

func (*ListArtifactsOK) WithXTotalCount

func (o *ListArtifactsOK) WithXTotalCount(xTotalCount int64) *ListArtifactsOK

WithXTotalCount adds the xTotalCount to the list artifacts o k response

func (*ListArtifactsOK) WriteResponse

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

WriteResponse to the client

type ListArtifactsParams

type ListArtifactsParams struct {

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

	/*A comma-separated lists of MIME types for the scan report or scan summary. The first mime type will be used when the report found for it.
	Currently the mime type supports 'application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0' and 'application/vnd.security.vulnerability.report; version=1.1'
	  In: header
	  Default: "application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0"
	*/
	XAcceptVulnerabilities *string
	/*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
	/*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
	/*Specify whether the immutable status is included inside the tags of the returning artifacts. Only works when setting "with_tag=true"
	  In: query
	  Default: false
	*/
	WithImmutableStatus *bool
	/*Specify whether the labels are included inside the returning artifacts
	  In: query
	  Default: false
	*/
	WithLabel *bool
	/*Specify whether the scan overview is included inside the returning artifacts
	  In: query
	  Default: false
	*/
	WithScanOverview *bool
	/*Specify whether the signature is included inside the tags of the returning artifacts. Only works when setting "with_tag=true"
	  In: query
	  Default: false
	*/
	WithSignature *bool
	/*Specify whether the tags are included inside the returning artifacts
	  In: query
	  Default: true
	*/
	WithTag *bool
}

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

swagger:parameters listArtifacts

func NewListArtifactsParams

func NewListArtifactsParams() ListArtifactsParams

NewListArtifactsParams creates a new ListArtifactsParams object with the default values initialized.

func (*ListArtifactsParams) BindRequest

func (o *ListArtifactsParams) 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 NewListArtifactsParams() beforehand.

type ListArtifactsURL

type ListArtifactsURL struct {
	ProjectName    string
	RepositoryName string

	Page                *int64
	PageSize            *int64
	Q                   *string
	WithImmutableStatus *bool
	WithLabel           *bool
	WithScanOverview    *bool
	WithSignature       *bool
	WithTag             *bool
	// contains filtered or unexported fields
}

ListArtifactsURL generates an URL for the list artifacts operation

func (*ListArtifactsURL) Build

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

Build a url path and query string

func (*ListArtifactsURL) BuildFull

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

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

func (*ListArtifactsURL) Must

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

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

func (*ListArtifactsURL) SetBasePath

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

func (o *ListArtifactsURL) String() string

String returns the string representation of the path with query string

func (*ListArtifactsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListArtifactsURL) WithBasePath

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

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 ListArtifactsUnauthorized

type ListArtifactsUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

ListArtifactsUnauthorized Unauthorized

swagger:response listArtifactsUnauthorized

func NewListArtifactsUnauthorized

func NewListArtifactsUnauthorized() *ListArtifactsUnauthorized

NewListArtifactsUnauthorized creates ListArtifactsUnauthorized with default headers values

func (*ListArtifactsUnauthorized) SetPayload

func (o *ListArtifactsUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list artifacts unauthorized response

func (*ListArtifactsUnauthorized) SetXRequestID

func (o *ListArtifactsUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list artifacts unauthorized response

func (*ListArtifactsUnauthorized) WithPayload

WithPayload adds the payload to the list artifacts unauthorized response

func (*ListArtifactsUnauthorized) WithXRequestID

func (o *ListArtifactsUnauthorized) WithXRequestID(xRequestID string) *ListArtifactsUnauthorized

WithXRequestID adds the xRequestId to the list artifacts unauthorized response

func (*ListArtifactsUnauthorized) WriteResponse

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

WriteResponse to the client

type ListTags

type ListTags struct {
	Context *middleware.Context
	Handler ListTagsHandler
}

ListTags swagger:route GET /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/tags artifact listTags

List tags

List tags of the specific artifact

func NewListTags

func NewListTags(ctx *middleware.Context, handler ListTagsHandler) *ListTags

NewListTags creates a new http.Handler for the list tags operation

func (*ListTags) ServeHTTP

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

type ListTagsBadRequest

type ListTagsBadRequest struct {
	/*The ID of the corresponding request for the response

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

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

ListTagsBadRequest Bad request

swagger:response listTagsBadRequest

func NewListTagsBadRequest

func NewListTagsBadRequest() *ListTagsBadRequest

NewListTagsBadRequest creates ListTagsBadRequest with default headers values

func (*ListTagsBadRequest) SetPayload

func (o *ListTagsBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list tags bad request response

func (*ListTagsBadRequest) SetXRequestID

func (o *ListTagsBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list tags bad request response

func (*ListTagsBadRequest) WithPayload

func (o *ListTagsBadRequest) WithPayload(payload *models.Errors) *ListTagsBadRequest

WithPayload adds the payload to the list tags bad request response

func (*ListTagsBadRequest) WithXRequestID

func (o *ListTagsBadRequest) WithXRequestID(xRequestID string) *ListTagsBadRequest

WithXRequestID adds the xRequestId to the list tags bad request response

func (*ListTagsBadRequest) WriteResponse

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

WriteResponse to the client

type ListTagsForbidden

type ListTagsForbidden struct {
	/*The ID of the corresponding request for the response

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

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

ListTagsForbidden Forbidden

swagger:response listTagsForbidden

func NewListTagsForbidden

func NewListTagsForbidden() *ListTagsForbidden

NewListTagsForbidden creates ListTagsForbidden with default headers values

func (*ListTagsForbidden) SetPayload

func (o *ListTagsForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list tags forbidden response

func (*ListTagsForbidden) SetXRequestID

func (o *ListTagsForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list tags forbidden response

func (*ListTagsForbidden) WithPayload

func (o *ListTagsForbidden) WithPayload(payload *models.Errors) *ListTagsForbidden

WithPayload adds the payload to the list tags forbidden response

func (*ListTagsForbidden) WithXRequestID

func (o *ListTagsForbidden) WithXRequestID(xRequestID string) *ListTagsForbidden

WithXRequestID adds the xRequestId to the list tags forbidden response

func (*ListTagsForbidden) WriteResponse

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

WriteResponse to the client

type ListTagsHandler

type ListTagsHandler interface {
	Handle(ListTagsParams, interface{}) middleware.Responder
}

ListTagsHandler interface for that can handle valid list tags params

type ListTagsHandlerFunc

type ListTagsHandlerFunc func(ListTagsParams, interface{}) middleware.Responder

ListTagsHandlerFunc turns a function with the right signature into a list tags handler

func (ListTagsHandlerFunc) Handle

func (fn ListTagsHandlerFunc) Handle(params ListTagsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListTagsInternalServerError

type ListTagsInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

ListTagsInternalServerError Internal server error

swagger:response listTagsInternalServerError

func NewListTagsInternalServerError

func NewListTagsInternalServerError() *ListTagsInternalServerError

NewListTagsInternalServerError creates ListTagsInternalServerError with default headers values

func (*ListTagsInternalServerError) SetPayload

func (o *ListTagsInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list tags internal server error response

func (*ListTagsInternalServerError) SetXRequestID

func (o *ListTagsInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list tags internal server error response

func (*ListTagsInternalServerError) WithPayload

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

func (*ListTagsInternalServerError) WithXRequestID

func (o *ListTagsInternalServerError) WithXRequestID(xRequestID string) *ListTagsInternalServerError

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

func (*ListTagsInternalServerError) WriteResponse

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

WriteResponse to the client

type ListTagsNotFound

type ListTagsNotFound struct {
	/*The ID of the corresponding request for the response

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

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

ListTagsNotFound Not found

swagger:response listTagsNotFound

func NewListTagsNotFound

func NewListTagsNotFound() *ListTagsNotFound

NewListTagsNotFound creates ListTagsNotFound with default headers values

func (*ListTagsNotFound) SetPayload

func (o *ListTagsNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list tags not found response

func (*ListTagsNotFound) SetXRequestID

func (o *ListTagsNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list tags not found response

func (*ListTagsNotFound) WithPayload

func (o *ListTagsNotFound) WithPayload(payload *models.Errors) *ListTagsNotFound

WithPayload adds the payload to the list tags not found response

func (*ListTagsNotFound) WithXRequestID

func (o *ListTagsNotFound) WithXRequestID(xRequestID string) *ListTagsNotFound

WithXRequestID adds the xRequestId to the list tags not found response

func (*ListTagsNotFound) WriteResponse

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

WriteResponse to the client

type ListTagsOK

type ListTagsOK struct {
	/*Link refers to the previous page and next page

	 */
	Link string `json:"Link"`
	/*The total count of tags

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.Tag `json:"body,omitempty"`
}

ListTagsOK Success

swagger:response listTagsOK

func NewListTagsOK

func NewListTagsOK() *ListTagsOK

NewListTagsOK creates ListTagsOK with default headers values

func (o *ListTagsOK) SetLink(link string)

SetLink sets the link to the list tags o k response

func (*ListTagsOK) SetPayload

func (o *ListTagsOK) SetPayload(payload []*models.Tag)

SetPayload sets the payload to the list tags o k response

func (*ListTagsOK) SetXTotalCount

func (o *ListTagsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the list tags o k response

func (o *ListTagsOK) WithLink(link string) *ListTagsOK

WithLink adds the link to the list tags o k response

func (*ListTagsOK) WithPayload

func (o *ListTagsOK) WithPayload(payload []*models.Tag) *ListTagsOK

WithPayload adds the payload to the list tags o k response

func (*ListTagsOK) WithXTotalCount

func (o *ListTagsOK) WithXTotalCount(xTotalCount int64) *ListTagsOK

WithXTotalCount adds the xTotalCount to the list tags o k response

func (*ListTagsOK) WriteResponse

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

WriteResponse to the client

type ListTagsParams

type ListTagsParams 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
	/*The reference of the artifact, can be digest or tag
	  Required: true
	  In: path
	*/
	Reference 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
	/*Specify whether the immutable status is included inside the returning tags
	  In: query
	  Default: false
	*/
	WithImmutableStatus *bool
	/*Specify whether the signature is included inside the returning tags
	  In: query
	  Default: false
	*/
	WithSignature *bool
}

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

swagger:parameters listTags

func NewListTagsParams

func NewListTagsParams() ListTagsParams

NewListTagsParams creates a new ListTagsParams object with the default values initialized.

func (*ListTagsParams) BindRequest

func (o *ListTagsParams) 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 NewListTagsParams() beforehand.

type ListTagsURL

type ListTagsURL struct {
	ProjectName    string
	Reference      string
	RepositoryName string

	Page                *int64
	PageSize            *int64
	Q                   *string
	WithImmutableStatus *bool
	WithSignature       *bool
	// contains filtered or unexported fields
}

ListTagsURL generates an URL for the list tags operation

func (*ListTagsURL) Build

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

Build a url path and query string

func (*ListTagsURL) BuildFull

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

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

func (*ListTagsURL) Must

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

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

func (*ListTagsURL) SetBasePath

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

func (o *ListTagsURL) String() string

String returns the string representation of the path with query string

func (*ListTagsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListTagsURL) WithBasePath

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

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 ListTagsUnauthorized

type ListTagsUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

ListTagsUnauthorized Unauthorized

swagger:response listTagsUnauthorized

func NewListTagsUnauthorized

func NewListTagsUnauthorized() *ListTagsUnauthorized

NewListTagsUnauthorized creates ListTagsUnauthorized with default headers values

func (*ListTagsUnauthorized) SetPayload

func (o *ListTagsUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list tags unauthorized response

func (*ListTagsUnauthorized) SetXRequestID

func (o *ListTagsUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list tags unauthorized response

func (*ListTagsUnauthorized) WithPayload

func (o *ListTagsUnauthorized) WithPayload(payload *models.Errors) *ListTagsUnauthorized

WithPayload adds the payload to the list tags unauthorized response

func (*ListTagsUnauthorized) WithXRequestID

func (o *ListTagsUnauthorized) WithXRequestID(xRequestID string) *ListTagsUnauthorized

WithXRequestID adds the xRequestId to the list tags unauthorized response

func (*ListTagsUnauthorized) WriteResponse

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

WriteResponse to the client

type RemoveLabel

type RemoveLabel struct {
	Context *middleware.Context
	Handler RemoveLabelHandler
}

RemoveLabel swagger:route DELETE /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/labels/{label_id} artifact removeLabel

Remove label from artifact

Remove the label from the specified artiact.

func NewRemoveLabel

func NewRemoveLabel(ctx *middleware.Context, handler RemoveLabelHandler) *RemoveLabel

NewRemoveLabel creates a new http.Handler for the remove label operation

func (*RemoveLabel) ServeHTTP

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

type RemoveLabelConflict

type RemoveLabelConflict struct {
	/*The ID of the corresponding request for the response

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

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

RemoveLabelConflict Conflict

swagger:response removeLabelConflict

func NewRemoveLabelConflict

func NewRemoveLabelConflict() *RemoveLabelConflict

NewRemoveLabelConflict creates RemoveLabelConflict with default headers values

func (*RemoveLabelConflict) SetPayload

func (o *RemoveLabelConflict) SetPayload(payload *models.Errors)

SetPayload sets the payload to the remove label conflict response

func (*RemoveLabelConflict) SetXRequestID

func (o *RemoveLabelConflict) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the remove label conflict response

func (*RemoveLabelConflict) WithPayload

func (o *RemoveLabelConflict) WithPayload(payload *models.Errors) *RemoveLabelConflict

WithPayload adds the payload to the remove label conflict response

func (*RemoveLabelConflict) WithXRequestID

func (o *RemoveLabelConflict) WithXRequestID(xRequestID string) *RemoveLabelConflict

WithXRequestID adds the xRequestId to the remove label conflict response

func (*RemoveLabelConflict) WriteResponse

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

WriteResponse to the client

type RemoveLabelForbidden

type RemoveLabelForbidden struct {
	/*The ID of the corresponding request for the response

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

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

RemoveLabelForbidden Forbidden

swagger:response removeLabelForbidden

func NewRemoveLabelForbidden

func NewRemoveLabelForbidden() *RemoveLabelForbidden

NewRemoveLabelForbidden creates RemoveLabelForbidden with default headers values

func (*RemoveLabelForbidden) SetPayload

func (o *RemoveLabelForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the remove label forbidden response

func (*RemoveLabelForbidden) SetXRequestID

func (o *RemoveLabelForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the remove label forbidden response

func (*RemoveLabelForbidden) WithPayload

func (o *RemoveLabelForbidden) WithPayload(payload *models.Errors) *RemoveLabelForbidden

WithPayload adds the payload to the remove label forbidden response

func (*RemoveLabelForbidden) WithXRequestID

func (o *RemoveLabelForbidden) WithXRequestID(xRequestID string) *RemoveLabelForbidden

WithXRequestID adds the xRequestId to the remove label forbidden response

func (*RemoveLabelForbidden) WriteResponse

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

WriteResponse to the client

type RemoveLabelHandler

type RemoveLabelHandler interface {
	Handle(RemoveLabelParams, interface{}) middleware.Responder
}

RemoveLabelHandler interface for that can handle valid remove label params

type RemoveLabelHandlerFunc

type RemoveLabelHandlerFunc func(RemoveLabelParams, interface{}) middleware.Responder

RemoveLabelHandlerFunc turns a function with the right signature into a remove label handler

func (RemoveLabelHandlerFunc) Handle

func (fn RemoveLabelHandlerFunc) Handle(params RemoveLabelParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type RemoveLabelInternalServerError

type RemoveLabelInternalServerError struct {
	/*The ID of the corresponding request for the response

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

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

RemoveLabelInternalServerError Internal server error

swagger:response removeLabelInternalServerError

func NewRemoveLabelInternalServerError

func NewRemoveLabelInternalServerError() *RemoveLabelInternalServerError

NewRemoveLabelInternalServerError creates RemoveLabelInternalServerError with default headers values

func (*RemoveLabelInternalServerError) SetPayload

func (o *RemoveLabelInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the remove label internal server error response

func (*RemoveLabelInternalServerError) SetXRequestID

func (o *RemoveLabelInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the remove label internal server error response

func (*RemoveLabelInternalServerError) WithPayload

WithPayload adds the payload to the remove label internal server error response

func (*RemoveLabelInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the remove label internal server error response

func (*RemoveLabelInternalServerError) WriteResponse

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

WriteResponse to the client

type RemoveLabelNotFound

type RemoveLabelNotFound struct {
	/*The ID of the corresponding request for the response

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

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

RemoveLabelNotFound Not found

swagger:response removeLabelNotFound

func NewRemoveLabelNotFound

func NewRemoveLabelNotFound() *RemoveLabelNotFound

NewRemoveLabelNotFound creates RemoveLabelNotFound with default headers values

func (*RemoveLabelNotFound) SetPayload

func (o *RemoveLabelNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the remove label not found response

func (*RemoveLabelNotFound) SetXRequestID

func (o *RemoveLabelNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the remove label not found response

func (*RemoveLabelNotFound) WithPayload

func (o *RemoveLabelNotFound) WithPayload(payload *models.Errors) *RemoveLabelNotFound

WithPayload adds the payload to the remove label not found response

func (*RemoveLabelNotFound) WithXRequestID

func (o *RemoveLabelNotFound) WithXRequestID(xRequestID string) *RemoveLabelNotFound

WithXRequestID adds the xRequestId to the remove label not found response

func (*RemoveLabelNotFound) WriteResponse

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

WriteResponse to the client

type RemoveLabelOK

type RemoveLabelOK struct {
	/*The ID of the corresponding request for the response

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

RemoveLabelOK Success

swagger:response removeLabelOK

func NewRemoveLabelOK

func NewRemoveLabelOK() *RemoveLabelOK

NewRemoveLabelOK creates RemoveLabelOK with default headers values

func (*RemoveLabelOK) SetXRequestID

func (o *RemoveLabelOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the remove label o k response

func (*RemoveLabelOK) WithXRequestID

func (o *RemoveLabelOK) WithXRequestID(xRequestID string) *RemoveLabelOK

WithXRequestID adds the xRequestId to the remove label o k response

func (*RemoveLabelOK) WriteResponse

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

WriteResponse to the client

type RemoveLabelParams

type RemoveLabelParams struct {

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

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The ID of the label that removed from the artifact.
	  Required: true
	  In: path
	*/
	LabelID int64
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
	/*The reference of the artifact, can be digest or tag
	  Required: true
	  In: path
	*/
	Reference 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
}

RemoveLabelParams contains all the bound params for the remove label operation typically these are obtained from a http.Request

swagger:parameters removeLabel

func NewRemoveLabelParams

func NewRemoveLabelParams() RemoveLabelParams

NewRemoveLabelParams creates a new RemoveLabelParams object no default values defined in spec.

func (*RemoveLabelParams) BindRequest

func (o *RemoveLabelParams) 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 NewRemoveLabelParams() beforehand.

type RemoveLabelURL

type RemoveLabelURL struct {
	LabelID        int64
	ProjectName    string
	Reference      string
	RepositoryName string
	// contains filtered or unexported fields
}

RemoveLabelURL generates an URL for the remove label operation

func (*RemoveLabelURL) Build

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

Build a url path and query string

func (*RemoveLabelURL) BuildFull

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

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

func (*RemoveLabelURL) Must

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

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

func (*RemoveLabelURL) SetBasePath

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

func (o *RemoveLabelURL) String() string

String returns the string representation of the path with query string

func (*RemoveLabelURL) StringFull

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

StringFull returns the string representation of a complete url

func (*RemoveLabelURL) WithBasePath

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

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 RemoveLabelUnauthorized

type RemoveLabelUnauthorized struct {
	/*The ID of the corresponding request for the response

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

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

RemoveLabelUnauthorized Unauthorized

swagger:response removeLabelUnauthorized

func NewRemoveLabelUnauthorized

func NewRemoveLabelUnauthorized() *RemoveLabelUnauthorized

NewRemoveLabelUnauthorized creates RemoveLabelUnauthorized with default headers values

func (*RemoveLabelUnauthorized) SetPayload

func (o *RemoveLabelUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the remove label unauthorized response

func (*RemoveLabelUnauthorized) SetXRequestID

func (o *RemoveLabelUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the remove label unauthorized response

func (*RemoveLabelUnauthorized) WithPayload

WithPayload adds the payload to the remove label unauthorized response

func (*RemoveLabelUnauthorized) WithXRequestID

func (o *RemoveLabelUnauthorized) WithXRequestID(xRequestID string) *RemoveLabelUnauthorized

WithXRequestID adds the xRequestId to the remove label unauthorized response

func (*RemoveLabelUnauthorized) WriteResponse

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