project

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

CreateProjectBadRequestCode is the HTTP code returned for type CreateProjectBadRequest

View Source
const CreateProjectConflictCode int = 409

CreateProjectConflictCode is the HTTP code returned for type CreateProjectConflict

View Source
const CreateProjectCreatedCode int = 201

CreateProjectCreatedCode is the HTTP code returned for type CreateProjectCreated

View Source
const CreateProjectInternalServerErrorCode int = 500

CreateProjectInternalServerErrorCode is the HTTP code returned for type CreateProjectInternalServerError

View Source
const CreateProjectUnauthorizedCode int = 401

CreateProjectUnauthorizedCode is the HTTP code returned for type CreateProjectUnauthorized

View Source
const DeleteProjectBadRequestCode int = 400

DeleteProjectBadRequestCode is the HTTP code returned for type DeleteProjectBadRequest

View Source
const DeleteProjectForbiddenCode int = 403

DeleteProjectForbiddenCode is the HTTP code returned for type DeleteProjectForbidden

View Source
const DeleteProjectInternalServerErrorCode int = 500

DeleteProjectInternalServerErrorCode is the HTTP code returned for type DeleteProjectInternalServerError

View Source
const DeleteProjectNotFoundCode int = 404

DeleteProjectNotFoundCode is the HTTP code returned for type DeleteProjectNotFound

View Source
const DeleteProjectOKCode int = 200

DeleteProjectOKCode is the HTTP code returned for type DeleteProjectOK

View Source
const DeleteProjectPreconditionFailedCode int = 412

DeleteProjectPreconditionFailedCode is the HTTP code returned for type DeleteProjectPreconditionFailed

View Source
const GetLogsBadRequestCode int = 400

GetLogsBadRequestCode is the HTTP code returned for type GetLogsBadRequest

View Source
const GetLogsInternalServerErrorCode int = 500

GetLogsInternalServerErrorCode is the HTTP code returned for type GetLogsInternalServerError

View Source
const GetLogsOKCode int = 200

GetLogsOKCode is the HTTP code returned for type GetLogsOK

View Source
const GetLogsUnauthorizedCode int = 401

GetLogsUnauthorizedCode is the HTTP code returned for type GetLogsUnauthorized

View Source
const GetProjectDeletableForbiddenCode int = 403

GetProjectDeletableForbiddenCode is the HTTP code returned for type GetProjectDeletableForbidden

View Source
const GetProjectDeletableInternalServerErrorCode int = 500

GetProjectDeletableInternalServerErrorCode is the HTTP code returned for type GetProjectDeletableInternalServerError

View Source
const GetProjectDeletableNotFoundCode int = 404

GetProjectDeletableNotFoundCode is the HTTP code returned for type GetProjectDeletableNotFound

View Source
const GetProjectDeletableOKCode int = 200

GetProjectDeletableOKCode is the HTTP code returned for type GetProjectDeletableOK

View Source
const GetProjectDeletableUnauthorizedCode int = 401

GetProjectDeletableUnauthorizedCode is the HTTP code returned for type GetProjectDeletableUnauthorized

View Source
const GetProjectInternalServerErrorCode int = 500

GetProjectInternalServerErrorCode is the HTTP code returned for type GetProjectInternalServerError

View Source
const GetProjectOKCode int = 200

GetProjectOKCode is the HTTP code returned for type GetProjectOK

View Source
const GetProjectSummaryBadRequestCode int = 400

GetProjectSummaryBadRequestCode is the HTTP code returned for type GetProjectSummaryBadRequest

View Source
const GetProjectSummaryForbiddenCode int = 403

GetProjectSummaryForbiddenCode is the HTTP code returned for type GetProjectSummaryForbidden

View Source
const GetProjectSummaryInternalServerErrorCode int = 500

GetProjectSummaryInternalServerErrorCode is the HTTP code returned for type GetProjectSummaryInternalServerError

View Source
const GetProjectSummaryNotFoundCode int = 404

GetProjectSummaryNotFoundCode is the HTTP code returned for type GetProjectSummaryNotFound

View Source
const GetProjectSummaryOKCode int = 200

GetProjectSummaryOKCode is the HTTP code returned for type GetProjectSummaryOK

View Source
const GetProjectSummaryUnauthorizedCode int = 401

GetProjectSummaryUnauthorizedCode is the HTTP code returned for type GetProjectSummaryUnauthorized

View Source
const GetProjectUnauthorizedCode int = 401

GetProjectUnauthorizedCode is the HTTP code returned for type GetProjectUnauthorized

View Source
const HeadProjectInternalServerErrorCode int = 500

HeadProjectInternalServerErrorCode is the HTTP code returned for type HeadProjectInternalServerError

View Source
const HeadProjectNotFoundCode int = 404

HeadProjectNotFoundCode is the HTTP code returned for type HeadProjectNotFound

View Source
const HeadProjectOKCode int = 200

HeadProjectOKCode is the HTTP code returned for type HeadProjectOK

View Source
const ListProjectsInternalServerErrorCode int = 500

ListProjectsInternalServerErrorCode is the HTTP code returned for type ListProjectsInternalServerError

View Source
const ListProjectsOKCode int = 200

ListProjectsOKCode is the HTTP code returned for type ListProjectsOK

View Source
const ListProjectsUnauthorizedCode int = 401

ListProjectsUnauthorizedCode is the HTTP code returned for type ListProjectsUnauthorized

View Source
const UpdateProjectBadRequestCode int = 400

UpdateProjectBadRequestCode is the HTTP code returned for type UpdateProjectBadRequest

View Source
const UpdateProjectForbiddenCode int = 403

UpdateProjectForbiddenCode is the HTTP code returned for type UpdateProjectForbidden

View Source
const UpdateProjectInternalServerErrorCode int = 500

UpdateProjectInternalServerErrorCode is the HTTP code returned for type UpdateProjectInternalServerError

View Source
const UpdateProjectNotFoundCode int = 404

UpdateProjectNotFoundCode is the HTTP code returned for type UpdateProjectNotFound

View Source
const UpdateProjectOKCode int = 200

UpdateProjectOKCode is the HTTP code returned for type UpdateProjectOK

View Source
const UpdateProjectUnauthorizedCode int = 401

UpdateProjectUnauthorizedCode is the HTTP code returned for type UpdateProjectUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProject

type CreateProject struct {
	Context *middleware.Context
	Handler CreateProjectHandler
}

CreateProject swagger:route POST /projects project createProject

Create a new project.

This endpoint is for user to create a new project.

func NewCreateProject

func NewCreateProject(ctx *middleware.Context, handler CreateProjectHandler) *CreateProject

NewCreateProject creates a new http.Handler for the create project operation

func (*CreateProject) ServeHTTP

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

type CreateProjectBadRequest

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

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

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

CreateProjectBadRequest Bad request

swagger:response createProjectBadRequest

func NewCreateProjectBadRequest

func NewCreateProjectBadRequest() *CreateProjectBadRequest

NewCreateProjectBadRequest creates CreateProjectBadRequest with default headers values

func (*CreateProjectBadRequest) SetPayload

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

SetPayload sets the payload to the create project bad request response

func (*CreateProjectBadRequest) SetXRequestID

func (o *CreateProjectBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create project bad request response

func (*CreateProjectBadRequest) WithPayload

WithPayload adds the payload to the create project bad request response

func (*CreateProjectBadRequest) WithXRequestID

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

WithXRequestID adds the xRequestId to the create project bad request response

func (*CreateProjectBadRequest) WriteResponse

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

WriteResponse to the client

type CreateProjectConflict

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

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

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

CreateProjectConflict Conflict

swagger:response createProjectConflict

func NewCreateProjectConflict

func NewCreateProjectConflict() *CreateProjectConflict

NewCreateProjectConflict creates CreateProjectConflict with default headers values

func (*CreateProjectConflict) SetPayload

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

SetPayload sets the payload to the create project conflict response

func (*CreateProjectConflict) SetXRequestID

func (o *CreateProjectConflict) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create project conflict response

func (*CreateProjectConflict) WithPayload

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

WithPayload adds the payload to the create project conflict response

func (*CreateProjectConflict) WithXRequestID

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

WithXRequestID adds the xRequestId to the create project conflict response

func (*CreateProjectConflict) WriteResponse

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

WriteResponse to the client

type CreateProjectCreated

type CreateProjectCreated 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"`
}

CreateProjectCreated Created

swagger:response createProjectCreated

func NewCreateProjectCreated

func NewCreateProjectCreated() *CreateProjectCreated

NewCreateProjectCreated creates CreateProjectCreated with default headers values

func (*CreateProjectCreated) SetLocation

func (o *CreateProjectCreated) SetLocation(location string)

SetLocation sets the location to the create project created response

func (*CreateProjectCreated) SetXRequestID

func (o *CreateProjectCreated) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create project created response

func (*CreateProjectCreated) WithLocation

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

WithLocation adds the location to the create project created response

func (*CreateProjectCreated) WithXRequestID

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

WithXRequestID adds the xRequestId to the create project created response

func (*CreateProjectCreated) WriteResponse

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

WriteResponse to the client

type CreateProjectHandler

type CreateProjectHandler interface {
	Handle(CreateProjectParams, interface{}) middleware.Responder
}

CreateProjectHandler interface for that can handle valid create project params

type CreateProjectHandlerFunc

type CreateProjectHandlerFunc func(CreateProjectParams, interface{}) middleware.Responder

CreateProjectHandlerFunc turns a function with the right signature into a create project handler

func (CreateProjectHandlerFunc) Handle

func (fn CreateProjectHandlerFunc) Handle(params CreateProjectParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateProjectInternalServerError

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

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

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

CreateProjectInternalServerError Internal server error

swagger:response createProjectInternalServerError

func NewCreateProjectInternalServerError

func NewCreateProjectInternalServerError() *CreateProjectInternalServerError

NewCreateProjectInternalServerError creates CreateProjectInternalServerError with default headers values

func (*CreateProjectInternalServerError) SetPayload

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

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

func (*CreateProjectInternalServerError) SetXRequestID

func (o *CreateProjectInternalServerError) SetXRequestID(xRequestID string)

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

func (*CreateProjectInternalServerError) WithPayload

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

func (*CreateProjectInternalServerError) WithXRequestID

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

func (*CreateProjectInternalServerError) WriteResponse

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

WriteResponse to the client

type CreateProjectParams

type CreateProjectParams struct {

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

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The flag to indicate whether to return the name of the resource in Location. When X-Resource-Name-In-Location is true, the Location will return the name of the resource.
	  In: header
	  Default: false
	*/
	XResourceNameInLocation *bool
	/*New created project.
	  Required: true
	  In: body
	*/
	Project *models.ProjectReq
}

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

swagger:parameters createProject

func NewCreateProjectParams

func NewCreateProjectParams() CreateProjectParams

NewCreateProjectParams creates a new CreateProjectParams object with the default values initialized.

func (*CreateProjectParams) BindRequest

func (o *CreateProjectParams) 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 NewCreateProjectParams() beforehand.

type CreateProjectURL

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

CreateProjectURL generates an URL for the create project operation

func (*CreateProjectURL) Build

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

Build a url path and query string

func (*CreateProjectURL) BuildFull

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

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

func (*CreateProjectURL) Must

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

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

func (*CreateProjectURL) SetBasePath

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

func (o *CreateProjectURL) String() string

String returns the string representation of the path with query string

func (*CreateProjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateProjectURL) WithBasePath

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

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 CreateProjectUnauthorized

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

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

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

CreateProjectUnauthorized Unauthorized

swagger:response createProjectUnauthorized

func NewCreateProjectUnauthorized

func NewCreateProjectUnauthorized() *CreateProjectUnauthorized

NewCreateProjectUnauthorized creates CreateProjectUnauthorized with default headers values

func (*CreateProjectUnauthorized) SetPayload

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

SetPayload sets the payload to the create project unauthorized response

func (*CreateProjectUnauthorized) SetXRequestID

func (o *CreateProjectUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create project unauthorized response

func (*CreateProjectUnauthorized) WithPayload

WithPayload adds the payload to the create project unauthorized response

func (*CreateProjectUnauthorized) WithXRequestID

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

WithXRequestID adds the xRequestId to the create project unauthorized response

func (*CreateProjectUnauthorized) WriteResponse

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

WriteResponse to the client

type DeleteProject

type DeleteProject struct {
	Context *middleware.Context
	Handler DeleteProjectHandler
}

DeleteProject swagger:route DELETE /projects/{project_name_or_id} project deleteProject

Delete project by projectID

This endpoint is aimed to delete project by project ID.

func NewDeleteProject

func NewDeleteProject(ctx *middleware.Context, handler DeleteProjectHandler) *DeleteProject

NewDeleteProject creates a new http.Handler for the delete project operation

func (*DeleteProject) ServeHTTP

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

type DeleteProjectBadRequest

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

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

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

DeleteProjectBadRequest Bad request

swagger:response deleteProjectBadRequest

func NewDeleteProjectBadRequest

func NewDeleteProjectBadRequest() *DeleteProjectBadRequest

NewDeleteProjectBadRequest creates DeleteProjectBadRequest with default headers values

func (*DeleteProjectBadRequest) SetPayload

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

SetPayload sets the payload to the delete project bad request response

func (*DeleteProjectBadRequest) SetXRequestID

func (o *DeleteProjectBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete project bad request response

func (*DeleteProjectBadRequest) WithPayload

WithPayload adds the payload to the delete project bad request response

func (*DeleteProjectBadRequest) WithXRequestID

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

WithXRequestID adds the xRequestId to the delete project bad request response

func (*DeleteProjectBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteProjectForbidden

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

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

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

DeleteProjectForbidden Forbidden

swagger:response deleteProjectForbidden

func NewDeleteProjectForbidden

func NewDeleteProjectForbidden() *DeleteProjectForbidden

NewDeleteProjectForbidden creates DeleteProjectForbidden with default headers values

func (*DeleteProjectForbidden) SetPayload

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

SetPayload sets the payload to the delete project forbidden response

func (*DeleteProjectForbidden) SetXRequestID

func (o *DeleteProjectForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete project forbidden response

func (*DeleteProjectForbidden) WithPayload

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

WithPayload adds the payload to the delete project forbidden response

func (*DeleteProjectForbidden) WithXRequestID

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

WithXRequestID adds the xRequestId to the delete project forbidden response

func (*DeleteProjectForbidden) WriteResponse

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

WriteResponse to the client

type DeleteProjectHandler

type DeleteProjectHandler interface {
	Handle(DeleteProjectParams, interface{}) middleware.Responder
}

DeleteProjectHandler interface for that can handle valid delete project params

type DeleteProjectHandlerFunc

type DeleteProjectHandlerFunc func(DeleteProjectParams, interface{}) middleware.Responder

DeleteProjectHandlerFunc turns a function with the right signature into a delete project handler

func (DeleteProjectHandlerFunc) Handle

func (fn DeleteProjectHandlerFunc) Handle(params DeleteProjectParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteProjectInternalServerError

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

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

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

DeleteProjectInternalServerError Internal server error

swagger:response deleteProjectInternalServerError

func NewDeleteProjectInternalServerError

func NewDeleteProjectInternalServerError() *DeleteProjectInternalServerError

NewDeleteProjectInternalServerError creates DeleteProjectInternalServerError with default headers values

func (*DeleteProjectInternalServerError) SetPayload

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

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

func (*DeleteProjectInternalServerError) SetXRequestID

func (o *DeleteProjectInternalServerError) SetXRequestID(xRequestID string)

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

func (*DeleteProjectInternalServerError) WithPayload

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

func (*DeleteProjectInternalServerError) WithXRequestID

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

func (*DeleteProjectInternalServerError) WriteResponse

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

WriteResponse to the client

type DeleteProjectNotFound

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

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

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

DeleteProjectNotFound Not found

swagger:response deleteProjectNotFound

func NewDeleteProjectNotFound

func NewDeleteProjectNotFound() *DeleteProjectNotFound

NewDeleteProjectNotFound creates DeleteProjectNotFound with default headers values

func (*DeleteProjectNotFound) SetPayload

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

SetPayload sets the payload to the delete project not found response

func (*DeleteProjectNotFound) SetXRequestID

func (o *DeleteProjectNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete project not found response

func (*DeleteProjectNotFound) WithPayload

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

WithPayload adds the payload to the delete project not found response

func (*DeleteProjectNotFound) WithXRequestID

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

WithXRequestID adds the xRequestId to the delete project not found response

func (*DeleteProjectNotFound) WriteResponse

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

WriteResponse to the client

type DeleteProjectOK

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

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

DeleteProjectOK Success

swagger:response deleteProjectOK

func NewDeleteProjectOK

func NewDeleteProjectOK() *DeleteProjectOK

NewDeleteProjectOK creates DeleteProjectOK with default headers values

func (*DeleteProjectOK) SetXRequestID

func (o *DeleteProjectOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete project o k response

func (*DeleteProjectOK) WithXRequestID

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

WithXRequestID adds the xRequestId to the delete project o k response

func (*DeleteProjectOK) WriteResponse

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

WriteResponse to the client

type DeleteProjectParams

type DeleteProjectParams struct {

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

	/*The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.
	  In: header
	  Default: false
	*/
	XIsResourceName *bool
	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The name or id of the project
	  Required: true
	  In: path
	*/
	ProjectNameOrID string
}

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

swagger:parameters deleteProject

func NewDeleteProjectParams

func NewDeleteProjectParams() DeleteProjectParams

NewDeleteProjectParams creates a new DeleteProjectParams object with the default values initialized.

func (*DeleteProjectParams) BindRequest

func (o *DeleteProjectParams) 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 NewDeleteProjectParams() beforehand.

type DeleteProjectPreconditionFailed

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

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

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

DeleteProjectPreconditionFailed Precondition failed

swagger:response deleteProjectPreconditionFailed

func NewDeleteProjectPreconditionFailed

func NewDeleteProjectPreconditionFailed() *DeleteProjectPreconditionFailed

NewDeleteProjectPreconditionFailed creates DeleteProjectPreconditionFailed with default headers values

func (*DeleteProjectPreconditionFailed) SetPayload

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

SetPayload sets the payload to the delete project precondition failed response

func (*DeleteProjectPreconditionFailed) SetXRequestID

func (o *DeleteProjectPreconditionFailed) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete project precondition failed response

func (*DeleteProjectPreconditionFailed) WithPayload

WithPayload adds the payload to the delete project precondition failed response

func (*DeleteProjectPreconditionFailed) WithXRequestID

WithXRequestID adds the xRequestId to the delete project precondition failed response

func (*DeleteProjectPreconditionFailed) WriteResponse

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

WriteResponse to the client

type DeleteProjectURL

type DeleteProjectURL struct {
	ProjectNameOrID string
	// contains filtered or unexported fields
}

DeleteProjectURL generates an URL for the delete project operation

func (*DeleteProjectURL) Build

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

Build a url path and query string

func (*DeleteProjectURL) BuildFull

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

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

func (*DeleteProjectURL) Must

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

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

func (*DeleteProjectURL) SetBasePath

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

func (o *DeleteProjectURL) String() string

String returns the string representation of the path with query string

func (*DeleteProjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteProjectURL) WithBasePath

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

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 GetLogs

type GetLogs struct {
	Context *middleware.Context
	Handler GetLogsHandler
}

GetLogs swagger:route GET /projects/{project_name}/logs project getLogs

Get recent logs of the projects

Get recent logs of the projects

func NewGetLogs

func NewGetLogs(ctx *middleware.Context, handler GetLogsHandler) *GetLogs

NewGetLogs creates a new http.Handler for the get logs operation

func (*GetLogs) ServeHTTP

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

type GetLogsBadRequest

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

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

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

GetLogsBadRequest Bad request

swagger:response getLogsBadRequest

func NewGetLogsBadRequest

func NewGetLogsBadRequest() *GetLogsBadRequest

NewGetLogsBadRequest creates GetLogsBadRequest with default headers values

func (*GetLogsBadRequest) SetPayload

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

SetPayload sets the payload to the get logs bad request response

func (*GetLogsBadRequest) SetXRequestID

func (o *GetLogsBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get logs bad request response

func (*GetLogsBadRequest) WithPayload

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

WithPayload adds the payload to the get logs bad request response

func (*GetLogsBadRequest) WithXRequestID

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

WithXRequestID adds the xRequestId to the get logs bad request response

func (*GetLogsBadRequest) WriteResponse

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

WriteResponse to the client

type GetLogsHandler

type GetLogsHandler interface {
	Handle(GetLogsParams, interface{}) middleware.Responder
}

GetLogsHandler interface for that can handle valid get logs params

type GetLogsHandlerFunc

type GetLogsHandlerFunc func(GetLogsParams, interface{}) middleware.Responder

GetLogsHandlerFunc turns a function with the right signature into a get logs handler

func (GetLogsHandlerFunc) Handle

func (fn GetLogsHandlerFunc) Handle(params GetLogsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetLogsInternalServerError

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

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

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

GetLogsInternalServerError Internal server error

swagger:response getLogsInternalServerError

func NewGetLogsInternalServerError

func NewGetLogsInternalServerError() *GetLogsInternalServerError

NewGetLogsInternalServerError creates GetLogsInternalServerError with default headers values

func (*GetLogsInternalServerError) SetPayload

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

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

func (*GetLogsInternalServerError) SetXRequestID

func (o *GetLogsInternalServerError) SetXRequestID(xRequestID string)

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

func (*GetLogsInternalServerError) WithPayload

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

func (*GetLogsInternalServerError) WithXRequestID

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

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

func (*GetLogsInternalServerError) WriteResponse

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

WriteResponse to the client

type GetLogsOK

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

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

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

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

GetLogsOK Success

swagger:response getLogsOK

func NewGetLogsOK

func NewGetLogsOK() *GetLogsOK

NewGetLogsOK creates GetLogsOK with default headers values

func (o *GetLogsOK) SetLink(link string)

SetLink sets the link to the get logs o k response

func (*GetLogsOK) SetPayload

func (o *GetLogsOK) SetPayload(payload []*models.AuditLog)

SetPayload sets the payload to the get logs o k response

func (*GetLogsOK) SetXTotalCount

func (o *GetLogsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the get logs o k response

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

WithLink adds the link to the get logs o k response

func (*GetLogsOK) WithPayload

func (o *GetLogsOK) WithPayload(payload []*models.AuditLog) *GetLogsOK

WithPayload adds the payload to the get logs o k response

func (*GetLogsOK) WithXTotalCount

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

WithXTotalCount adds the xTotalCount to the get logs o k response

func (*GetLogsOK) WriteResponse

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

WriteResponse to the client

type GetLogsParams

type GetLogsParams 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
}

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

swagger:parameters getLogs

func NewGetLogsParams

func NewGetLogsParams() GetLogsParams

NewGetLogsParams creates a new GetLogsParams object with the default values initialized.

func (*GetLogsParams) BindRequest

func (o *GetLogsParams) 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 NewGetLogsParams() beforehand.

type GetLogsURL

type GetLogsURL struct {
	ProjectName string

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

GetLogsURL generates an URL for the get logs operation

func (*GetLogsURL) Build

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

Build a url path and query string

func (*GetLogsURL) BuildFull

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

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

func (*GetLogsURL) Must

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

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

func (*GetLogsURL) SetBasePath

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

func (o *GetLogsURL) String() string

String returns the string representation of the path with query string

func (*GetLogsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetLogsURL) WithBasePath

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

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 GetLogsUnauthorized

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

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

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

GetLogsUnauthorized Unauthorized

swagger:response getLogsUnauthorized

func NewGetLogsUnauthorized

func NewGetLogsUnauthorized() *GetLogsUnauthorized

NewGetLogsUnauthorized creates GetLogsUnauthorized with default headers values

func (*GetLogsUnauthorized) SetPayload

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

SetPayload sets the payload to the get logs unauthorized response

func (*GetLogsUnauthorized) SetXRequestID

func (o *GetLogsUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get logs unauthorized response

func (*GetLogsUnauthorized) WithPayload

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

WithPayload adds the payload to the get logs unauthorized response

func (*GetLogsUnauthorized) WithXRequestID

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

WithXRequestID adds the xRequestId to the get logs unauthorized response

func (*GetLogsUnauthorized) WriteResponse

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

WriteResponse to the client

type GetProject

type GetProject struct {
	Context *middleware.Context
	Handler GetProjectHandler
}

GetProject swagger:route GET /projects/{project_name_or_id} project getProject

Return specific project detail information

This endpoint returns specific project information by project ID.

func NewGetProject

func NewGetProject(ctx *middleware.Context, handler GetProjectHandler) *GetProject

NewGetProject creates a new http.Handler for the get project operation

func (*GetProject) ServeHTTP

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

type GetProjectDeletable

type GetProjectDeletable struct {
	Context *middleware.Context
	Handler GetProjectDeletableHandler
}

GetProjectDeletable swagger:route GET /projects/{project_name_or_id}/_deletable project getProjectDeletable

Get the deletable status of the project

Get the deletable status of the project

func NewGetProjectDeletable

func NewGetProjectDeletable(ctx *middleware.Context, handler GetProjectDeletableHandler) *GetProjectDeletable

NewGetProjectDeletable creates a new http.Handler for the get project deletable operation

func (*GetProjectDeletable) ServeHTTP

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

type GetProjectDeletableForbidden

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

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

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

GetProjectDeletableForbidden Forbidden

swagger:response getProjectDeletableForbidden

func NewGetProjectDeletableForbidden

func NewGetProjectDeletableForbidden() *GetProjectDeletableForbidden

NewGetProjectDeletableForbidden creates GetProjectDeletableForbidden with default headers values

func (*GetProjectDeletableForbidden) SetPayload

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

SetPayload sets the payload to the get project deletable forbidden response

func (*GetProjectDeletableForbidden) SetXRequestID

func (o *GetProjectDeletableForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get project deletable forbidden response

func (*GetProjectDeletableForbidden) WithPayload

WithPayload adds the payload to the get project deletable forbidden response

func (*GetProjectDeletableForbidden) WithXRequestID

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

WithXRequestID adds the xRequestId to the get project deletable forbidden response

func (*GetProjectDeletableForbidden) WriteResponse

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

WriteResponse to the client

type GetProjectDeletableHandler

type GetProjectDeletableHandler interface {
	Handle(GetProjectDeletableParams, interface{}) middleware.Responder
}

GetProjectDeletableHandler interface for that can handle valid get project deletable params

type GetProjectDeletableHandlerFunc

type GetProjectDeletableHandlerFunc func(GetProjectDeletableParams, interface{}) middleware.Responder

GetProjectDeletableHandlerFunc turns a function with the right signature into a get project deletable handler

func (GetProjectDeletableHandlerFunc) Handle

func (fn GetProjectDeletableHandlerFunc) Handle(params GetProjectDeletableParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetProjectDeletableInternalServerError

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

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

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

GetProjectDeletableInternalServerError Internal server error

swagger:response getProjectDeletableInternalServerError

func NewGetProjectDeletableInternalServerError

func NewGetProjectDeletableInternalServerError() *GetProjectDeletableInternalServerError

NewGetProjectDeletableInternalServerError creates GetProjectDeletableInternalServerError with default headers values

func (*GetProjectDeletableInternalServerError) SetPayload

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

SetPayload sets the payload to the get project deletable internal server error response

func (*GetProjectDeletableInternalServerError) SetXRequestID

func (o *GetProjectDeletableInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get project deletable internal server error response

func (*GetProjectDeletableInternalServerError) WithPayload

WithPayload adds the payload to the get project deletable internal server error response

func (*GetProjectDeletableInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the get project deletable internal server error response

func (*GetProjectDeletableInternalServerError) WriteResponse

WriteResponse to the client

type GetProjectDeletableNotFound

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

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

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

GetProjectDeletableNotFound Not found

swagger:response getProjectDeletableNotFound

func NewGetProjectDeletableNotFound

func NewGetProjectDeletableNotFound() *GetProjectDeletableNotFound

NewGetProjectDeletableNotFound creates GetProjectDeletableNotFound with default headers values

func (*GetProjectDeletableNotFound) SetPayload

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

SetPayload sets the payload to the get project deletable not found response

func (*GetProjectDeletableNotFound) SetXRequestID

func (o *GetProjectDeletableNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get project deletable not found response

func (*GetProjectDeletableNotFound) WithPayload

WithPayload adds the payload to the get project deletable not found response

func (*GetProjectDeletableNotFound) WithXRequestID

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

WithXRequestID adds the xRequestId to the get project deletable not found response

func (*GetProjectDeletableNotFound) WriteResponse

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

WriteResponse to the client

type GetProjectDeletableOK

type GetProjectDeletableOK struct {

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

GetProjectDeletableOK Return deletable status of the project.

swagger:response getProjectDeletableOK

func NewGetProjectDeletableOK

func NewGetProjectDeletableOK() *GetProjectDeletableOK

NewGetProjectDeletableOK creates GetProjectDeletableOK with default headers values

func (*GetProjectDeletableOK) SetPayload

func (o *GetProjectDeletableOK) SetPayload(payload *models.ProjectDeletable)

SetPayload sets the payload to the get project deletable o k response

func (*GetProjectDeletableOK) WithPayload

WithPayload adds the payload to the get project deletable o k response

func (*GetProjectDeletableOK) WriteResponse

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

WriteResponse to the client

type GetProjectDeletableParams

type GetProjectDeletableParams struct {

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

	/*The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.
	  In: header
	  Default: false
	*/
	XIsResourceName *bool
	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The name or id of the project
	  Required: true
	  In: path
	*/
	ProjectNameOrID string
}

GetProjectDeletableParams contains all the bound params for the get project deletable operation typically these are obtained from a http.Request

swagger:parameters getProjectDeletable

func NewGetProjectDeletableParams

func NewGetProjectDeletableParams() GetProjectDeletableParams

NewGetProjectDeletableParams creates a new GetProjectDeletableParams object with the default values initialized.

func (*GetProjectDeletableParams) 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 NewGetProjectDeletableParams() beforehand.

type GetProjectDeletableURL

type GetProjectDeletableURL struct {
	ProjectNameOrID string
	// contains filtered or unexported fields
}

GetProjectDeletableURL generates an URL for the get project deletable operation

func (*GetProjectDeletableURL) Build

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

Build a url path and query string

func (*GetProjectDeletableURL) BuildFull

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

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

func (*GetProjectDeletableURL) Must

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

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

func (*GetProjectDeletableURL) SetBasePath

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

func (o *GetProjectDeletableURL) String() string

String returns the string representation of the path with query string

func (*GetProjectDeletableURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetProjectDeletableURL) 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 GetProjectDeletableUnauthorized

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

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

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

GetProjectDeletableUnauthorized Unauthorized

swagger:response getProjectDeletableUnauthorized

func NewGetProjectDeletableUnauthorized

func NewGetProjectDeletableUnauthorized() *GetProjectDeletableUnauthorized

NewGetProjectDeletableUnauthorized creates GetProjectDeletableUnauthorized with default headers values

func (*GetProjectDeletableUnauthorized) SetPayload

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

SetPayload sets the payload to the get project deletable unauthorized response

func (*GetProjectDeletableUnauthorized) SetXRequestID

func (o *GetProjectDeletableUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get project deletable unauthorized response

func (*GetProjectDeletableUnauthorized) WithPayload

WithPayload adds the payload to the get project deletable unauthorized response

func (*GetProjectDeletableUnauthorized) WithXRequestID

WithXRequestID adds the xRequestId to the get project deletable unauthorized response

func (*GetProjectDeletableUnauthorized) WriteResponse

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

WriteResponse to the client

type GetProjectHandler

type GetProjectHandler interface {
	Handle(GetProjectParams, interface{}) middleware.Responder
}

GetProjectHandler interface for that can handle valid get project params

type GetProjectHandlerFunc

type GetProjectHandlerFunc func(GetProjectParams, interface{}) middleware.Responder

GetProjectHandlerFunc turns a function with the right signature into a get project handler

func (GetProjectHandlerFunc) Handle

func (fn GetProjectHandlerFunc) Handle(params GetProjectParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetProjectInternalServerError

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

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

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

GetProjectInternalServerError Internal server error

swagger:response getProjectInternalServerError

func NewGetProjectInternalServerError

func NewGetProjectInternalServerError() *GetProjectInternalServerError

NewGetProjectInternalServerError creates GetProjectInternalServerError with default headers values

func (*GetProjectInternalServerError) SetPayload

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

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

func (*GetProjectInternalServerError) SetXRequestID

func (o *GetProjectInternalServerError) SetXRequestID(xRequestID string)

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

func (*GetProjectInternalServerError) WithPayload

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

func (*GetProjectInternalServerError) WithXRequestID

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

func (*GetProjectInternalServerError) WriteResponse

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

WriteResponse to the client

type GetProjectOK

type GetProjectOK struct {

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

GetProjectOK Return matched project information.

swagger:response getProjectOK

func NewGetProjectOK

func NewGetProjectOK() *GetProjectOK

NewGetProjectOK creates GetProjectOK with default headers values

func (*GetProjectOK) SetPayload

func (o *GetProjectOK) SetPayload(payload *models.Project)

SetPayload sets the payload to the get project o k response

func (*GetProjectOK) WithPayload

func (o *GetProjectOK) WithPayload(payload *models.Project) *GetProjectOK

WithPayload adds the payload to the get project o k response

func (*GetProjectOK) WriteResponse

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

WriteResponse to the client

type GetProjectParams

type GetProjectParams struct {

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

	/*The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.
	  In: header
	  Default: false
	*/
	XIsResourceName *bool
	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The name or id of the project
	  Required: true
	  In: path
	*/
	ProjectNameOrID string
}

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

swagger:parameters getProject

func NewGetProjectParams

func NewGetProjectParams() GetProjectParams

NewGetProjectParams creates a new GetProjectParams object with the default values initialized.

func (*GetProjectParams) BindRequest

func (o *GetProjectParams) 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 NewGetProjectParams() beforehand.

type GetProjectSummary

type GetProjectSummary struct {
	Context *middleware.Context
	Handler GetProjectSummaryHandler
}

GetProjectSummary swagger:route GET /projects/{project_name_or_id}/summary project getProjectSummary

Get summary of the project.

Get summary of the project.

func NewGetProjectSummary

func NewGetProjectSummary(ctx *middleware.Context, handler GetProjectSummaryHandler) *GetProjectSummary

NewGetProjectSummary creates a new http.Handler for the get project summary operation

func (*GetProjectSummary) ServeHTTP

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

type GetProjectSummaryBadRequest

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

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

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

GetProjectSummaryBadRequest Bad request

swagger:response getProjectSummaryBadRequest

func NewGetProjectSummaryBadRequest

func NewGetProjectSummaryBadRequest() *GetProjectSummaryBadRequest

NewGetProjectSummaryBadRequest creates GetProjectSummaryBadRequest with default headers values

func (*GetProjectSummaryBadRequest) SetPayload

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

SetPayload sets the payload to the get project summary bad request response

func (*GetProjectSummaryBadRequest) SetXRequestID

func (o *GetProjectSummaryBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get project summary bad request response

func (*GetProjectSummaryBadRequest) WithPayload

WithPayload adds the payload to the get project summary bad request response

func (*GetProjectSummaryBadRequest) WithXRequestID

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

WithXRequestID adds the xRequestId to the get project summary bad request response

func (*GetProjectSummaryBadRequest) WriteResponse

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

WriteResponse to the client

type GetProjectSummaryForbidden

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

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

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

GetProjectSummaryForbidden Forbidden

swagger:response getProjectSummaryForbidden

func NewGetProjectSummaryForbidden

func NewGetProjectSummaryForbidden() *GetProjectSummaryForbidden

NewGetProjectSummaryForbidden creates GetProjectSummaryForbidden with default headers values

func (*GetProjectSummaryForbidden) SetPayload

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

SetPayload sets the payload to the get project summary forbidden response

func (*GetProjectSummaryForbidden) SetXRequestID

func (o *GetProjectSummaryForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get project summary forbidden response

func (*GetProjectSummaryForbidden) WithPayload

WithPayload adds the payload to the get project summary forbidden response

func (*GetProjectSummaryForbidden) WithXRequestID

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

WithXRequestID adds the xRequestId to the get project summary forbidden response

func (*GetProjectSummaryForbidden) WriteResponse

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

WriteResponse to the client

type GetProjectSummaryHandler

type GetProjectSummaryHandler interface {
	Handle(GetProjectSummaryParams, interface{}) middleware.Responder
}

GetProjectSummaryHandler interface for that can handle valid get project summary params

type GetProjectSummaryHandlerFunc

type GetProjectSummaryHandlerFunc func(GetProjectSummaryParams, interface{}) middleware.Responder

GetProjectSummaryHandlerFunc turns a function with the right signature into a get project summary handler

func (GetProjectSummaryHandlerFunc) Handle

func (fn GetProjectSummaryHandlerFunc) Handle(params GetProjectSummaryParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetProjectSummaryInternalServerError

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

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

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

GetProjectSummaryInternalServerError Internal server error

swagger:response getProjectSummaryInternalServerError

func NewGetProjectSummaryInternalServerError

func NewGetProjectSummaryInternalServerError() *GetProjectSummaryInternalServerError

NewGetProjectSummaryInternalServerError creates GetProjectSummaryInternalServerError with default headers values

func (*GetProjectSummaryInternalServerError) SetPayload

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

SetPayload sets the payload to the get project summary internal server error response

func (*GetProjectSummaryInternalServerError) SetXRequestID

func (o *GetProjectSummaryInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get project summary internal server error response

func (*GetProjectSummaryInternalServerError) WithPayload

WithPayload adds the payload to the get project summary internal server error response

func (*GetProjectSummaryInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the get project summary internal server error response

func (*GetProjectSummaryInternalServerError) WriteResponse

WriteResponse to the client

type GetProjectSummaryNotFound

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

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

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

GetProjectSummaryNotFound Not found

swagger:response getProjectSummaryNotFound

func NewGetProjectSummaryNotFound

func NewGetProjectSummaryNotFound() *GetProjectSummaryNotFound

NewGetProjectSummaryNotFound creates GetProjectSummaryNotFound with default headers values

func (*GetProjectSummaryNotFound) SetPayload

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

SetPayload sets the payload to the get project summary not found response

func (*GetProjectSummaryNotFound) SetXRequestID

func (o *GetProjectSummaryNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get project summary not found response

func (*GetProjectSummaryNotFound) WithPayload

WithPayload adds the payload to the get project summary not found response

func (*GetProjectSummaryNotFound) WithXRequestID

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

WithXRequestID adds the xRequestId to the get project summary not found response

func (*GetProjectSummaryNotFound) WriteResponse

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

WriteResponse to the client

type GetProjectSummaryOK

type GetProjectSummaryOK struct {

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

GetProjectSummaryOK Get summary of the project successfully.

swagger:response getProjectSummaryOK

func NewGetProjectSummaryOK

func NewGetProjectSummaryOK() *GetProjectSummaryOK

NewGetProjectSummaryOK creates GetProjectSummaryOK with default headers values

func (*GetProjectSummaryOK) SetPayload

func (o *GetProjectSummaryOK) SetPayload(payload *models.ProjectSummary)

SetPayload sets the payload to the get project summary o k response

func (*GetProjectSummaryOK) WithPayload

WithPayload adds the payload to the get project summary o k response

func (*GetProjectSummaryOK) WriteResponse

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

WriteResponse to the client

type GetProjectSummaryParams

type GetProjectSummaryParams struct {

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

	/*The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.
	  In: header
	  Default: false
	*/
	XIsResourceName *bool
	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The name or id of the project
	  Required: true
	  In: path
	*/
	ProjectNameOrID string
}

GetProjectSummaryParams contains all the bound params for the get project summary operation typically these are obtained from a http.Request

swagger:parameters getProjectSummary

func NewGetProjectSummaryParams

func NewGetProjectSummaryParams() GetProjectSummaryParams

NewGetProjectSummaryParams creates a new GetProjectSummaryParams object with the default values initialized.

func (*GetProjectSummaryParams) BindRequest

func (o *GetProjectSummaryParams) 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 NewGetProjectSummaryParams() beforehand.

type GetProjectSummaryURL

type GetProjectSummaryURL struct {
	ProjectNameOrID string
	// contains filtered or unexported fields
}

GetProjectSummaryURL generates an URL for the get project summary operation

func (*GetProjectSummaryURL) Build

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

Build a url path and query string

func (*GetProjectSummaryURL) BuildFull

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

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

func (*GetProjectSummaryURL) Must

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

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

func (*GetProjectSummaryURL) SetBasePath

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

func (o *GetProjectSummaryURL) String() string

String returns the string representation of the path with query string

func (*GetProjectSummaryURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetProjectSummaryURL) WithBasePath

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

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 GetProjectSummaryUnauthorized

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

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

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

GetProjectSummaryUnauthorized Unauthorized

swagger:response getProjectSummaryUnauthorized

func NewGetProjectSummaryUnauthorized

func NewGetProjectSummaryUnauthorized() *GetProjectSummaryUnauthorized

NewGetProjectSummaryUnauthorized creates GetProjectSummaryUnauthorized with default headers values

func (*GetProjectSummaryUnauthorized) SetPayload

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

SetPayload sets the payload to the get project summary unauthorized response

func (*GetProjectSummaryUnauthorized) SetXRequestID

func (o *GetProjectSummaryUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get project summary unauthorized response

func (*GetProjectSummaryUnauthorized) WithPayload

WithPayload adds the payload to the get project summary unauthorized response

func (*GetProjectSummaryUnauthorized) WithXRequestID

WithXRequestID adds the xRequestId to the get project summary unauthorized response

func (*GetProjectSummaryUnauthorized) WriteResponse

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

WriteResponse to the client

type GetProjectURL

type GetProjectURL struct {
	ProjectNameOrID string
	// contains filtered or unexported fields
}

GetProjectURL generates an URL for the get project operation

func (*GetProjectURL) Build

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

Build a url path and query string

func (*GetProjectURL) BuildFull

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

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

func (*GetProjectURL) Must

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

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

func (*GetProjectURL) SetBasePath

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

func (o *GetProjectURL) String() string

String returns the string representation of the path with query string

func (*GetProjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetProjectURL) WithBasePath

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

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 GetProjectUnauthorized

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

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

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

GetProjectUnauthorized Unauthorized

swagger:response getProjectUnauthorized

func NewGetProjectUnauthorized

func NewGetProjectUnauthorized() *GetProjectUnauthorized

NewGetProjectUnauthorized creates GetProjectUnauthorized with default headers values

func (*GetProjectUnauthorized) SetPayload

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

SetPayload sets the payload to the get project unauthorized response

func (*GetProjectUnauthorized) SetXRequestID

func (o *GetProjectUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get project unauthorized response

func (*GetProjectUnauthorized) WithPayload

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

WithPayload adds the payload to the get project unauthorized response

func (*GetProjectUnauthorized) WithXRequestID

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

WithXRequestID adds the xRequestId to the get project unauthorized response

func (*GetProjectUnauthorized) WriteResponse

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

WriteResponse to the client

type HeadProject

type HeadProject struct {
	Context *middleware.Context
	Handler HeadProjectHandler
}

HeadProject swagger:route HEAD /projects project headProject

Check if the project name user provided already exists.

This endpoint is used to check if the project name provided already exist.

func NewHeadProject

func NewHeadProject(ctx *middleware.Context, handler HeadProjectHandler) *HeadProject

NewHeadProject creates a new http.Handler for the head project operation

func (*HeadProject) ServeHTTP

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

type HeadProjectHandler

type HeadProjectHandler interface {
	Handle(HeadProjectParams, interface{}) middleware.Responder
}

HeadProjectHandler interface for that can handle valid head project params

type HeadProjectHandlerFunc

type HeadProjectHandlerFunc func(HeadProjectParams, interface{}) middleware.Responder

HeadProjectHandlerFunc turns a function with the right signature into a head project handler

func (HeadProjectHandlerFunc) Handle

func (fn HeadProjectHandlerFunc) Handle(params HeadProjectParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type HeadProjectInternalServerError

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

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

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

HeadProjectInternalServerError Internal server error

swagger:response headProjectInternalServerError

func NewHeadProjectInternalServerError

func NewHeadProjectInternalServerError() *HeadProjectInternalServerError

NewHeadProjectInternalServerError creates HeadProjectInternalServerError with default headers values

func (*HeadProjectInternalServerError) SetPayload

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

SetPayload sets the payload to the head project internal server error response

func (*HeadProjectInternalServerError) SetXRequestID

func (o *HeadProjectInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the head project internal server error response

func (*HeadProjectInternalServerError) WithPayload

WithPayload adds the payload to the head project internal server error response

func (*HeadProjectInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the head project internal server error response

func (*HeadProjectInternalServerError) WriteResponse

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

WriteResponse to the client

type HeadProjectNotFound

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

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

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

HeadProjectNotFound Not found

swagger:response headProjectNotFound

func NewHeadProjectNotFound

func NewHeadProjectNotFound() *HeadProjectNotFound

NewHeadProjectNotFound creates HeadProjectNotFound with default headers values

func (*HeadProjectNotFound) SetPayload

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

SetPayload sets the payload to the head project not found response

func (*HeadProjectNotFound) SetXRequestID

func (o *HeadProjectNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the head project not found response

func (*HeadProjectNotFound) WithPayload

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

WithPayload adds the payload to the head project not found response

func (*HeadProjectNotFound) WithXRequestID

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

WithXRequestID adds the xRequestId to the head project not found response

func (*HeadProjectNotFound) WriteResponse

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

WriteResponse to the client

type HeadProjectOK

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

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

HeadProjectOK Success

swagger:response headProjectOK

func NewHeadProjectOK

func NewHeadProjectOK() *HeadProjectOK

NewHeadProjectOK creates HeadProjectOK with default headers values

func (*HeadProjectOK) SetXRequestID

func (o *HeadProjectOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the head project o k response

func (*HeadProjectOK) WithXRequestID

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

WithXRequestID adds the xRequestId to the head project o k response

func (*HeadProjectOK) WriteResponse

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

WriteResponse to the client

type HeadProjectParams

type HeadProjectParams struct {

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

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*Project name for checking exists.
	  Required: true
	  In: query
	*/
	ProjectName string
}

HeadProjectParams contains all the bound params for the head project operation typically these are obtained from a http.Request

swagger:parameters headProject

func NewHeadProjectParams

func NewHeadProjectParams() HeadProjectParams

NewHeadProjectParams creates a new HeadProjectParams object no default values defined in spec.

func (*HeadProjectParams) BindRequest

func (o *HeadProjectParams) 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 NewHeadProjectParams() beforehand.

type HeadProjectURL

type HeadProjectURL struct {
	ProjectName string
	// contains filtered or unexported fields
}

HeadProjectURL generates an URL for the head project operation

func (*HeadProjectURL) Build

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

Build a url path and query string

func (*HeadProjectURL) BuildFull

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

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

func (*HeadProjectURL) Must

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

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

func (*HeadProjectURL) SetBasePath

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

func (o *HeadProjectURL) String() string

String returns the string representation of the path with query string

func (*HeadProjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*HeadProjectURL) WithBasePath

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

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 ListProjects

type ListProjects struct {
	Context *middleware.Context
	Handler ListProjectsHandler
}

ListProjects swagger:route GET /projects project listProjects

List projects

This endpoint returns projects created by Harbor.

func NewListProjects

func NewListProjects(ctx *middleware.Context, handler ListProjectsHandler) *ListProjects

NewListProjects creates a new http.Handler for the list projects operation

func (*ListProjects) ServeHTTP

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

type ListProjectsHandler

type ListProjectsHandler interface {
	Handle(ListProjectsParams, interface{}) middleware.Responder
}

ListProjectsHandler interface for that can handle valid list projects params

type ListProjectsHandlerFunc

type ListProjectsHandlerFunc func(ListProjectsParams, interface{}) middleware.Responder

ListProjectsHandlerFunc turns a function with the right signature into a list projects handler

func (ListProjectsHandlerFunc) Handle

func (fn ListProjectsHandlerFunc) Handle(params ListProjectsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListProjectsInternalServerError

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

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

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

ListProjectsInternalServerError Internal server error

swagger:response listProjectsInternalServerError

func NewListProjectsInternalServerError

func NewListProjectsInternalServerError() *ListProjectsInternalServerError

NewListProjectsInternalServerError creates ListProjectsInternalServerError with default headers values

func (*ListProjectsInternalServerError) SetPayload

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

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

func (*ListProjectsInternalServerError) SetXRequestID

func (o *ListProjectsInternalServerError) SetXRequestID(xRequestID string)

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

func (*ListProjectsInternalServerError) WithPayload

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

func (*ListProjectsInternalServerError) WithXRequestID

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

func (*ListProjectsInternalServerError) WriteResponse

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

WriteResponse to the client

type ListProjectsOK

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

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

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

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

ListProjectsOK Return all matched projects.

swagger:response listProjectsOK

func NewListProjectsOK

func NewListProjectsOK() *ListProjectsOK

NewListProjectsOK creates ListProjectsOK with default headers values

func (o *ListProjectsOK) SetLink(link string)

SetLink sets the link to the list projects o k response

func (*ListProjectsOK) SetPayload

func (o *ListProjectsOK) SetPayload(payload []*models.Project)

SetPayload sets the payload to the list projects o k response

func (*ListProjectsOK) SetXTotalCount

func (o *ListProjectsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the list projects o k response

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

WithLink adds the link to the list projects o k response

func (*ListProjectsOK) WithPayload

func (o *ListProjectsOK) WithPayload(payload []*models.Project) *ListProjectsOK

WithPayload adds the payload to the list projects o k response

func (*ListProjectsOK) WithXTotalCount

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

WithXTotalCount adds the xTotalCount to the list projects o k response

func (*ListProjectsOK) WriteResponse

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

WriteResponse to the client

type ListProjectsParams

type ListProjectsParams struct {

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

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The name of project.
	  In: query
	*/
	Name *string
	/*The name of project owner.
	  In: query
	*/
	Owner *string
	/*The page number
	  In: query
	  Default: 1
	*/
	Page *int64
	/*The size of per page
	  Maximum: 100
	  In: query
	  Default: 10
	*/
	PageSize *int64
	/*The project is public or private.
	  In: query
	*/
	Public *bool
	/*Bool value indicating whether return detailed information of the project
	  In: query
	  Default: true
	*/
	WithDetail *bool
}

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

swagger:parameters listProjects

func NewListProjectsParams

func NewListProjectsParams() ListProjectsParams

NewListProjectsParams creates a new ListProjectsParams object with the default values initialized.

func (*ListProjectsParams) BindRequest

func (o *ListProjectsParams) 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 NewListProjectsParams() beforehand.

type ListProjectsURL

type ListProjectsURL struct {
	Name       *string
	Owner      *string
	Page       *int64
	PageSize   *int64
	Public     *bool
	WithDetail *bool
	// contains filtered or unexported fields
}

ListProjectsURL generates an URL for the list projects operation

func (*ListProjectsURL) Build

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

Build a url path and query string

func (*ListProjectsURL) BuildFull

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

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

func (*ListProjectsURL) Must

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

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

func (*ListProjectsURL) SetBasePath

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

func (o *ListProjectsURL) String() string

String returns the string representation of the path with query string

func (*ListProjectsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListProjectsURL) WithBasePath

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

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 ListProjectsUnauthorized

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

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

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

ListProjectsUnauthorized Unauthorized

swagger:response listProjectsUnauthorized

func NewListProjectsUnauthorized

func NewListProjectsUnauthorized() *ListProjectsUnauthorized

NewListProjectsUnauthorized creates ListProjectsUnauthorized with default headers values

func (*ListProjectsUnauthorized) SetPayload

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

SetPayload sets the payload to the list projects unauthorized response

func (*ListProjectsUnauthorized) SetXRequestID

func (o *ListProjectsUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list projects unauthorized response

func (*ListProjectsUnauthorized) WithPayload

WithPayload adds the payload to the list projects unauthorized response

func (*ListProjectsUnauthorized) WithXRequestID

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

WithXRequestID adds the xRequestId to the list projects unauthorized response

func (*ListProjectsUnauthorized) WriteResponse

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

WriteResponse to the client

type UpdateProject

type UpdateProject struct {
	Context *middleware.Context
	Handler UpdateProjectHandler
}

UpdateProject swagger:route PUT /projects/{project_name_or_id} project updateProject

Update properties for a selected project.

This endpoint is aimed to update the properties of a project.

func NewUpdateProject

func NewUpdateProject(ctx *middleware.Context, handler UpdateProjectHandler) *UpdateProject

NewUpdateProject creates a new http.Handler for the update project operation

func (*UpdateProject) ServeHTTP

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

type UpdateProjectBadRequest

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

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

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

UpdateProjectBadRequest Bad request

swagger:response updateProjectBadRequest

func NewUpdateProjectBadRequest

func NewUpdateProjectBadRequest() *UpdateProjectBadRequest

NewUpdateProjectBadRequest creates UpdateProjectBadRequest with default headers values

func (*UpdateProjectBadRequest) SetPayload

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

SetPayload sets the payload to the update project bad request response

func (*UpdateProjectBadRequest) SetXRequestID

func (o *UpdateProjectBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update project bad request response

func (*UpdateProjectBadRequest) WithPayload

WithPayload adds the payload to the update project bad request response

func (*UpdateProjectBadRequest) WithXRequestID

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

WithXRequestID adds the xRequestId to the update project bad request response

func (*UpdateProjectBadRequest) WriteResponse

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

WriteResponse to the client

type UpdateProjectForbidden

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

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

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

UpdateProjectForbidden Forbidden

swagger:response updateProjectForbidden

func NewUpdateProjectForbidden

func NewUpdateProjectForbidden() *UpdateProjectForbidden

NewUpdateProjectForbidden creates UpdateProjectForbidden with default headers values

func (*UpdateProjectForbidden) SetPayload

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

SetPayload sets the payload to the update project forbidden response

func (*UpdateProjectForbidden) SetXRequestID

func (o *UpdateProjectForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update project forbidden response

func (*UpdateProjectForbidden) WithPayload

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

WithPayload adds the payload to the update project forbidden response

func (*UpdateProjectForbidden) WithXRequestID

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

WithXRequestID adds the xRequestId to the update project forbidden response

func (*UpdateProjectForbidden) WriteResponse

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

WriteResponse to the client

type UpdateProjectHandler

type UpdateProjectHandler interface {
	Handle(UpdateProjectParams, interface{}) middleware.Responder
}

UpdateProjectHandler interface for that can handle valid update project params

type UpdateProjectHandlerFunc

type UpdateProjectHandlerFunc func(UpdateProjectParams, interface{}) middleware.Responder

UpdateProjectHandlerFunc turns a function with the right signature into a update project handler

func (UpdateProjectHandlerFunc) Handle

func (fn UpdateProjectHandlerFunc) Handle(params UpdateProjectParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateProjectInternalServerError

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

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

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

UpdateProjectInternalServerError Internal server error

swagger:response updateProjectInternalServerError

func NewUpdateProjectInternalServerError

func NewUpdateProjectInternalServerError() *UpdateProjectInternalServerError

NewUpdateProjectInternalServerError creates UpdateProjectInternalServerError with default headers values

func (*UpdateProjectInternalServerError) SetPayload

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

SetPayload sets the payload to the update project internal server error response

func (*UpdateProjectInternalServerError) SetXRequestID

func (o *UpdateProjectInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update project internal server error response

func (*UpdateProjectInternalServerError) WithPayload

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

func (*UpdateProjectInternalServerError) WithXRequestID

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

func (*UpdateProjectInternalServerError) WriteResponse

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

WriteResponse to the client

type UpdateProjectNotFound

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

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

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

UpdateProjectNotFound Not found

swagger:response updateProjectNotFound

func NewUpdateProjectNotFound

func NewUpdateProjectNotFound() *UpdateProjectNotFound

NewUpdateProjectNotFound creates UpdateProjectNotFound with default headers values

func (*UpdateProjectNotFound) SetPayload

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

SetPayload sets the payload to the update project not found response

func (*UpdateProjectNotFound) SetXRequestID

func (o *UpdateProjectNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update project not found response

func (*UpdateProjectNotFound) WithPayload

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

WithPayload adds the payload to the update project not found response

func (*UpdateProjectNotFound) WithXRequestID

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

WithXRequestID adds the xRequestId to the update project not found response

func (*UpdateProjectNotFound) WriteResponse

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

WriteResponse to the client

type UpdateProjectOK

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

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

UpdateProjectOK Success

swagger:response updateProjectOK

func NewUpdateProjectOK

func NewUpdateProjectOK() *UpdateProjectOK

NewUpdateProjectOK creates UpdateProjectOK with default headers values

func (*UpdateProjectOK) SetXRequestID

func (o *UpdateProjectOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update project o k response

func (*UpdateProjectOK) WithXRequestID

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

WithXRequestID adds the xRequestId to the update project o k response

func (*UpdateProjectOK) WriteResponse

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

WriteResponse to the client

type UpdateProjectParams

type UpdateProjectParams struct {

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

	/*The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.
	  In: header
	  Default: false
	*/
	XIsResourceName *bool
	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*Updates of project.
	  Required: true
	  In: body
	*/
	Project *models.ProjectReq
	/*The name or id of the project
	  Required: true
	  In: path
	*/
	ProjectNameOrID string
}

UpdateProjectParams contains all the bound params for the update project operation typically these are obtained from a http.Request

swagger:parameters updateProject

func NewUpdateProjectParams

func NewUpdateProjectParams() UpdateProjectParams

NewUpdateProjectParams creates a new UpdateProjectParams object with the default values initialized.

func (*UpdateProjectParams) BindRequest

func (o *UpdateProjectParams) 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 NewUpdateProjectParams() beforehand.

type UpdateProjectURL

type UpdateProjectURL struct {
	ProjectNameOrID string
	// contains filtered or unexported fields
}

UpdateProjectURL generates an URL for the update project operation

func (*UpdateProjectURL) Build

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

Build a url path and query string

func (*UpdateProjectURL) BuildFull

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

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

func (*UpdateProjectURL) Must

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

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

func (*UpdateProjectURL) SetBasePath

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

func (o *UpdateProjectURL) String() string

String returns the string representation of the path with query string

func (*UpdateProjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateProjectURL) WithBasePath

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

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 UpdateProjectUnauthorized

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

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

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

UpdateProjectUnauthorized Unauthorized

swagger:response updateProjectUnauthorized

func NewUpdateProjectUnauthorized

func NewUpdateProjectUnauthorized() *UpdateProjectUnauthorized

NewUpdateProjectUnauthorized creates UpdateProjectUnauthorized with default headers values

func (*UpdateProjectUnauthorized) SetPayload

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

SetPayload sets the payload to the update project unauthorized response

func (*UpdateProjectUnauthorized) SetXRequestID

func (o *UpdateProjectUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update project unauthorized response

func (*UpdateProjectUnauthorized) WithPayload

WithPayload adds the payload to the update project unauthorized response

func (*UpdateProjectUnauthorized) WithXRequestID

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

WithXRequestID adds the xRequestId to the update project unauthorized response

func (*UpdateProjectUnauthorized) WriteResponse

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