projects

package
v0.0.0-...-b4e7bf2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteProjectCreatedCode int = 201

DeleteProjectCreatedCode is the HTTP code returned for type DeleteProjectCreated

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 DeleteProjectTooManyRequestsCode int = 429

DeleteProjectTooManyRequestsCode is the HTTP code returned for type DeleteProjectTooManyRequests

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteProject

type DeleteProject struct {
	Context *middleware.Context
	Handler DeleteProjectHandler
}
DeleteProject swagger:route DELETE /projects/{id} projects deleteProject

Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects.

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 DeleteProjectCreated

type DeleteProjectCreated struct {
	/*The maximum number of requests allowed within the window.

	 */
	XSentryRateLimitLimit int64 `json:"X-Sentry-Rate-Limit-Limit"`
	/*The number of requests this caller has left on this endpoint within the current window.

	 */
	XSentryRateLimitRemaining int64 `json:"X-Sentry-Rate-Limit-Remaining"`
	/*The time when the next rate limit window begins and the count resets, measured in UTC seconds from epoch.

	 */
	XSentryRateLimitReset int64 `json:"X-Sentry-Rate-Limit-Reset"`
}

DeleteProjectCreated Success, delete will happen async.

swagger:response deleteProjectCreated

func NewDeleteProjectCreated

func NewDeleteProjectCreated() *DeleteProjectCreated

NewDeleteProjectCreated creates DeleteProjectCreated with default headers values

func (*DeleteProjectCreated) SetXSentryRateLimitLimit

func (o *DeleteProjectCreated) SetXSentryRateLimitLimit(xSentryRateLimitLimit int64)

SetXSentryRateLimitLimit sets the xSentryRateLimitLimit to the delete project created response

func (*DeleteProjectCreated) SetXSentryRateLimitRemaining

func (o *DeleteProjectCreated) SetXSentryRateLimitRemaining(xSentryRateLimitRemaining int64)

SetXSentryRateLimitRemaining sets the xSentryRateLimitRemaining to the delete project created response

func (*DeleteProjectCreated) SetXSentryRateLimitReset

func (o *DeleteProjectCreated) SetXSentryRateLimitReset(xSentryRateLimitReset int64)

SetXSentryRateLimitReset sets the xSentryRateLimitReset to the delete project created response

func (*DeleteProjectCreated) WithXSentryRateLimitLimit

func (o *DeleteProjectCreated) WithXSentryRateLimitLimit(xSentryRateLimitLimit int64) *DeleteProjectCreated

WithXSentryRateLimitLimit adds the xSentryRateLimitLimit to the delete project created response

func (*DeleteProjectCreated) WithXSentryRateLimitRemaining

func (o *DeleteProjectCreated) WithXSentryRateLimitRemaining(xSentryRateLimitRemaining int64) *DeleteProjectCreated

WithXSentryRateLimitRemaining adds the xSentryRateLimitRemaining to the delete project created response

func (*DeleteProjectCreated) WithXSentryRateLimitReset

func (o *DeleteProjectCreated) WithXSentryRateLimitReset(xSentryRateLimitReset int64) *DeleteProjectCreated

WithXSentryRateLimitReset adds the xSentryRateLimitReset to the delete project created response

func (*DeleteProjectCreated) WriteResponse

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

WriteResponse to the client

type DeleteProjectHandler

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

DeleteProjectHandler interface for that can handle valid delete project params

type DeleteProjectHandlerFunc

type DeleteProjectHandlerFunc func(DeleteProjectParams) middleware.Responder

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

func (DeleteProjectHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteProjectInternalServerError

type DeleteProjectInternalServerError struct {
}

DeleteProjectInternalServerError Internal error

swagger:response deleteProjectInternalServerError

func NewDeleteProjectInternalServerError

func NewDeleteProjectInternalServerError() *DeleteProjectInternalServerError

NewDeleteProjectInternalServerError creates DeleteProjectInternalServerError with default headers values

func (*DeleteProjectInternalServerError) WriteResponse

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

WriteResponse to the client

type DeleteProjectNotFound

type DeleteProjectNotFound struct {
}

DeleteProjectNotFound Error not found

swagger:response deleteProjectNotFound

func NewDeleteProjectNotFound

func NewDeleteProjectNotFound() *DeleteProjectNotFound

NewDeleteProjectNotFound creates DeleteProjectNotFound with default headers values

func (*DeleteProjectNotFound) WriteResponse

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

WriteResponse to the client

type DeleteProjectParams

type DeleteProjectParams struct {

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

	/*ID of the project
	  Required: true
	  In: path
	*/
	ID uint64
}

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

There are no default values defined in the spec.

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 DeleteProjectTooManyRequests

type DeleteProjectTooManyRequests struct {
	/*Number of seconds after which requests will be permitted again

	 */
	RetryAfter int64 `json:"Retry-After"`
	/*The maximum number of requests allowed within the window.

	 */
	XSentryRateLimitLimit int64 `json:"X-Sentry-Rate-Limit-Limit"`
	/*The time when the next rate limit window begins and the count resets, measured in UTC seconds from epoch.

	 */
	XSentryRateLimitReset int64 `json:"X-Sentry-Rate-Limit-Reset"`
	/*Detailed list of all rate limits that apply per data category, with seconds remaining untill they reset

	 */
	XSentryRateLimits string `json:"X-Sentry-Rate-Limits"`
}

DeleteProjectTooManyRequests Resource limits exceeded

swagger:response deleteProjectTooManyRequests

func NewDeleteProjectTooManyRequests

func NewDeleteProjectTooManyRequests() *DeleteProjectTooManyRequests

NewDeleteProjectTooManyRequests creates DeleteProjectTooManyRequests with default headers values

func (*DeleteProjectTooManyRequests) SetRetryAfter

func (o *DeleteProjectTooManyRequests) SetRetryAfter(retryAfter int64)

SetRetryAfter sets the retryAfter to the delete project too many requests response

func (*DeleteProjectTooManyRequests) SetXSentryRateLimitLimit

func (o *DeleteProjectTooManyRequests) SetXSentryRateLimitLimit(xSentryRateLimitLimit int64)

SetXSentryRateLimitLimit sets the xSentryRateLimitLimit to the delete project too many requests response

func (*DeleteProjectTooManyRequests) SetXSentryRateLimitReset

func (o *DeleteProjectTooManyRequests) SetXSentryRateLimitReset(xSentryRateLimitReset int64)

SetXSentryRateLimitReset sets the xSentryRateLimitReset to the delete project too many requests response

func (*DeleteProjectTooManyRequests) SetXSentryRateLimits

func (o *DeleteProjectTooManyRequests) SetXSentryRateLimits(xSentryRateLimits string)

SetXSentryRateLimits sets the xSentryRateLimits to the delete project too many requests response

func (*DeleteProjectTooManyRequests) WithRetryAfter

func (o *DeleteProjectTooManyRequests) WithRetryAfter(retryAfter int64) *DeleteProjectTooManyRequests

WithRetryAfter adds the retryAfter to the delete project too many requests response

func (*DeleteProjectTooManyRequests) WithXSentryRateLimitLimit

func (o *DeleteProjectTooManyRequests) WithXSentryRateLimitLimit(xSentryRateLimitLimit int64) *DeleteProjectTooManyRequests

WithXSentryRateLimitLimit adds the xSentryRateLimitLimit to the delete project too many requests response

func (*DeleteProjectTooManyRequests) WithXSentryRateLimitReset

func (o *DeleteProjectTooManyRequests) WithXSentryRateLimitReset(xSentryRateLimitReset int64) *DeleteProjectTooManyRequests

WithXSentryRateLimitReset adds the xSentryRateLimitReset to the delete project too many requests response

func (*DeleteProjectTooManyRequests) WithXSentryRateLimits

func (o *DeleteProjectTooManyRequests) WithXSentryRateLimits(xSentryRateLimits string) *DeleteProjectTooManyRequests

WithXSentryRateLimits adds the xSentryRateLimits to the delete project too many requests response

func (*DeleteProjectTooManyRequests) WriteResponse

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

WriteResponse to the client

type DeleteProjectURL

type DeleteProjectURL struct {
	ID uint64
	// 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

Jump to

Keyboard shortcuts

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