project

package
v0.0.0-...-318a3d5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteProjectProjectNameBadRequestCode int = 400

DeleteProjectProjectNameBadRequestCode is the HTTP code returned for type DeleteProjectProjectNameBadRequest

View Source
const DeleteProjectProjectNameOKCode int = 200

DeleteProjectProjectNameOKCode is the HTTP code returned for type DeleteProjectProjectNameOK

View Source
const PostProjectBadRequestCode int = 400

PostProjectBadRequestCode is the HTTP code returned for type PostProjectBadRequest

View Source
const PostProjectOKCode int = 200

PostProjectOKCode is the HTTP code returned for type PostProjectOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteProjectProjectName

type DeleteProjectProjectName struct {
	Context *middleware.Context
	Handler DeleteProjectProjectNameHandler
}

DeleteProjectProjectName swagger:route DELETE /project/{projectName} Project deleteProjectProjectName

Deletes the specified project

func NewDeleteProjectProjectName

func NewDeleteProjectProjectName(ctx *middleware.Context, handler DeleteProjectProjectNameHandler) *DeleteProjectProjectName

NewDeleteProjectProjectName creates a new http.Handler for the delete project project name operation

func (*DeleteProjectProjectName) ServeHTTP

type DeleteProjectProjectNameBadRequest

type DeleteProjectProjectNameBadRequest struct {

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

DeleteProjectProjectNameBadRequest Failed. Project could not be deleted

swagger:response deleteProjectProjectNameBadRequest

func NewDeleteProjectProjectNameBadRequest

func NewDeleteProjectProjectNameBadRequest() *DeleteProjectProjectNameBadRequest

NewDeleteProjectProjectNameBadRequest creates DeleteProjectProjectNameBadRequest with default headers values

func (*DeleteProjectProjectNameBadRequest) SetPayload

func (o *DeleteProjectProjectNameBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete project project name bad request response

func (*DeleteProjectProjectNameBadRequest) WithPayload

WithPayload adds the payload to the delete project project name bad request response

func (*DeleteProjectProjectNameBadRequest) WriteResponse

WriteResponse to the client

type DeleteProjectProjectNameDefault

type DeleteProjectProjectNameDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteProjectProjectNameDefault Error

swagger:response deleteProjectProjectNameDefault

func NewDeleteProjectProjectNameDefault

func NewDeleteProjectProjectNameDefault(code int) *DeleteProjectProjectNameDefault

NewDeleteProjectProjectNameDefault creates DeleteProjectProjectNameDefault with default headers values

func (*DeleteProjectProjectNameDefault) SetPayload

func (o *DeleteProjectProjectNameDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete project project name default response

func (*DeleteProjectProjectNameDefault) SetStatusCode

func (o *DeleteProjectProjectNameDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete project project name default response

func (*DeleteProjectProjectNameDefault) WithPayload

WithPayload adds the payload to the delete project project name default response

func (*DeleteProjectProjectNameDefault) WithStatusCode

WithStatusCode adds the status to the delete project project name default response

func (*DeleteProjectProjectNameDefault) WriteResponse

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

WriteResponse to the client

type DeleteProjectProjectNameHandler

type DeleteProjectProjectNameHandler interface {
	Handle(DeleteProjectProjectNameParams, *models.Principal) middleware.Responder
}

DeleteProjectProjectNameHandler interface for that can handle valid delete project project name params

type DeleteProjectProjectNameHandlerFunc

type DeleteProjectProjectNameHandlerFunc func(DeleteProjectProjectNameParams, *models.Principal) middleware.Responder

DeleteProjectProjectNameHandlerFunc turns a function with the right signature into a delete project project name handler

func (DeleteProjectProjectNameHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteProjectProjectNameOK

type DeleteProjectProjectNameOK struct {

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

DeleteProjectProjectNameOK Deleting of project triggered

swagger:response deleteProjectProjectNameOK

func NewDeleteProjectProjectNameOK

func NewDeleteProjectProjectNameOK() *DeleteProjectProjectNameOK

NewDeleteProjectProjectNameOK creates DeleteProjectProjectNameOK with default headers values

func (*DeleteProjectProjectNameOK) SetPayload

func (o *DeleteProjectProjectNameOK) SetPayload(payload *models.EventContext)

SetPayload sets the payload to the delete project project name o k response

func (*DeleteProjectProjectNameOK) WithPayload

WithPayload adds the payload to the delete project project name o k response

func (*DeleteProjectProjectNameOK) WriteResponse

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

WriteResponse to the client

type DeleteProjectProjectNameParams

type DeleteProjectProjectNameParams struct {

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

	/*Name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
}

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

swagger:parameters DeleteProjectProjectName

func NewDeleteProjectProjectNameParams

func NewDeleteProjectProjectNameParams() DeleteProjectProjectNameParams

NewDeleteProjectProjectNameParams creates a new DeleteProjectProjectNameParams object no default values defined in spec.

func (*DeleteProjectProjectNameParams) 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 NewDeleteProjectProjectNameParams() beforehand.

type DeleteProjectProjectNameURL

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

DeleteProjectProjectNameURL generates an URL for the delete project project name operation

func (*DeleteProjectProjectNameURL) Build

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

Build a url path and query string

func (*DeleteProjectProjectNameURL) BuildFull

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

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

func (*DeleteProjectProjectNameURL) Must

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

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

func (*DeleteProjectProjectNameURL) SetBasePath

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

func (o *DeleteProjectProjectNameURL) String() string

String returns the string representation of the path with query string

func (*DeleteProjectProjectNameURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteProjectProjectNameURL) 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 PostProject

type PostProject struct {
	Context *middleware.Context
	Handler PostProjectHandler
}

PostProject swagger:route POST /project Project postProject

Creates a new project

func NewPostProject

func NewPostProject(ctx *middleware.Context, handler PostProjectHandler) *PostProject

NewPostProject creates a new http.Handler for the post project operation

func (*PostProject) ServeHTTP

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

type PostProjectBadRequest

type PostProjectBadRequest struct {

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

PostProjectBadRequest Failed. Project could not be created

swagger:response postProjectBadRequest

func NewPostProjectBadRequest

func NewPostProjectBadRequest() *PostProjectBadRequest

NewPostProjectBadRequest creates PostProjectBadRequest with default headers values

func (*PostProjectBadRequest) SetPayload

func (o *PostProjectBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the post project bad request response

func (*PostProjectBadRequest) WithPayload

func (o *PostProjectBadRequest) WithPayload(payload *models.Error) *PostProjectBadRequest

WithPayload adds the payload to the post project bad request response

func (*PostProjectBadRequest) WriteResponse

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

WriteResponse to the client

type PostProjectDefault

type PostProjectDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PostProjectDefault Error

swagger:response postProjectDefault

func NewPostProjectDefault

func NewPostProjectDefault(code int) *PostProjectDefault

NewPostProjectDefault creates PostProjectDefault with default headers values

func (*PostProjectDefault) SetPayload

func (o *PostProjectDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the post project default response

func (*PostProjectDefault) SetStatusCode

func (o *PostProjectDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post project default response

func (*PostProjectDefault) WithPayload

func (o *PostProjectDefault) WithPayload(payload *models.Error) *PostProjectDefault

WithPayload adds the payload to the post project default response

func (*PostProjectDefault) WithStatusCode

func (o *PostProjectDefault) WithStatusCode(code int) *PostProjectDefault

WithStatusCode adds the status to the post project default response

func (*PostProjectDefault) WriteResponse

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

WriteResponse to the client

type PostProjectHandler

type PostProjectHandler interface {
	Handle(PostProjectParams, *models.Principal) middleware.Responder
}

PostProjectHandler interface for that can handle valid post project params

type PostProjectHandlerFunc

type PostProjectHandlerFunc func(PostProjectParams, *models.Principal) middleware.Responder

PostProjectHandlerFunc turns a function with the right signature into a post project handler

func (PostProjectHandlerFunc) Handle

Handle executing the request and returning a response

type PostProjectOK

type PostProjectOK struct {

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

PostProjectOK Creating of project triggered

swagger:response postProjectOK

func NewPostProjectOK

func NewPostProjectOK() *PostProjectOK

NewPostProjectOK creates PostProjectOK with default headers values

func (*PostProjectOK) SetPayload

func (o *PostProjectOK) SetPayload(payload *models.EventContext)

SetPayload sets the payload to the post project o k response

func (*PostProjectOK) WithPayload

func (o *PostProjectOK) WithPayload(payload *models.EventContext) *PostProjectOK

WithPayload adds the payload to the post project o k response

func (*PostProjectOK) WriteResponse

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

WriteResponse to the client

type PostProjectParams

type PostProjectParams struct {

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

	/*Project entity
	  In: body
	*/
	Project *models.Project
}

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

swagger:parameters PostProject

func NewPostProjectParams

func NewPostProjectParams() PostProjectParams

NewPostProjectParams creates a new PostProjectParams object no default values defined in spec.

func (*PostProjectParams) BindRequest

func (o *PostProjectParams) 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 NewPostProjectParams() beforehand.

type PostProjectURL

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

PostProjectURL generates an URL for the post project operation

func (*PostProjectURL) Build

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

Build a url path and query string

func (*PostProjectURL) BuildFull

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

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

func (*PostProjectURL) Must

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

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

func (*PostProjectURL) SetBasePath

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

func (o *PostProjectURL) String() string

String returns the string representation of the path with query string

func (*PostProjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostProjectURL) WithBasePath

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

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