project

package
v0.0.0-...-acbd0ad Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

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 GetProjectInternalServerErrorCode int = 500

GetProjectInternalServerErrorCode is the HTTP code returned for type GetProjectInternalServerError

View Source
const GetProjectNotFoundCode int = 404

GetProjectNotFoundCode is the HTTP code returned for type GetProjectNotFound

View Source
const GetProjectOKCode int = 200

GetProjectOKCode is the HTTP code returned for type GetProjectOK

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 /project/create Project createProject

Create 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 CreateProjectConflict

type CreateProjectConflict struct {

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

CreateProjectConflict Create Project Failed, cause project exist

swagger:response createProjectConflict

func NewCreateProjectConflict

func NewCreateProjectConflict() *CreateProjectConflict

NewCreateProjectConflict creates CreateProjectConflict with default headers values

func (*CreateProjectConflict) SetPayload

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

SetPayload sets the payload to the create project conflict response

func (*CreateProjectConflict) WithPayload

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

WithPayload adds the payload 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 {

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

CreateProjectCreated Create Project Success, return project info.

swagger:response createProjectCreated

func NewCreateProjectCreated

func NewCreateProjectCreated() *CreateProjectCreated

NewCreateProjectCreated creates CreateProjectCreated with default headers values

func (*CreateProjectCreated) SetPayload

func (o *CreateProjectCreated) SetPayload(payload *models.ProjectInfo)

SetPayload sets the payload to the create project created response

func (*CreateProjectCreated) WithPayload

func (o *CreateProjectCreated) WithPayload(payload *models.ProjectInfo) *CreateProjectCreated

WithPayload adds the payload 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, *models.AuthInfo) middleware.Responder
}

CreateProjectHandler interface for that can handle valid create project params

type CreateProjectHandlerFunc

type CreateProjectHandlerFunc func(CreateProjectParams, *models.AuthInfo) middleware.Responder

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

func (CreateProjectHandlerFunc) Handle

Handle executing the request and returning a response

type CreateProjectInternalServerError

type CreateProjectInternalServerError struct {

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

CreateProjectInternalServerError 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.Error)

SetPayload sets the payload 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) 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:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.ProjectInfo
}

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

There are no default values defined in the spec.

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 GetProject

type GetProject struct {
	Context *middleware.Context
	Handler GetProjectHandler
}
GetProject swagger:route GET /project/get Project getProject

Get Project

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 GetProjectHandler

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

GetProjectHandler interface for that can handle valid get project params

type GetProjectHandlerFunc

type GetProjectHandlerFunc func(GetProjectParams, *models.AuthInfo) middleware.Responder

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

func (GetProjectHandlerFunc) Handle

Handle executing the request and returning a response

type GetProjectInternalServerError

type GetProjectInternalServerError struct {

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

GetProjectInternalServerError 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.Error)

SetPayload sets the payload 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) WriteResponse

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

WriteResponse to the client

type GetProjectNotFound

type GetProjectNotFound struct {

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

GetProjectNotFound Get Project Failed, cause project not exist

swagger:response getProjectNotFound

func NewGetProjectNotFound

func NewGetProjectNotFound() *GetProjectNotFound

NewGetProjectNotFound creates GetProjectNotFound with default headers values

func (*GetProjectNotFound) SetPayload

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

SetPayload sets the payload to the get project not found response

func (*GetProjectNotFound) WithPayload

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

WithPayload adds the payload to the get project not found response

func (*GetProjectNotFound) WriteResponse

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

WriteResponse to the client

type GetProjectOK

type GetProjectOK struct {

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

GetProjectOK List All Projects Success, return project info. (project name, project id, project description)

swagger:response getProjectOK

func NewGetProjectOK

func NewGetProjectOK() *GetProjectOK

NewGetProjectOK creates GetProjectOK with default headers values

func (*GetProjectOK) SetPayload

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

SetPayload sets the payload to the get project o k response

func (*GetProjectOK) WithPayload

func (o *GetProjectOK) WithPayload(payload *models.ProjectInfo) *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:"-"`

	/*
	  Required: true
	  In: query
	*/
	ID int64
}

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

There are no default values defined in the spec.

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 GetProjectURL

type GetProjectURL struct {
	ID int64
	// 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

Jump to

Keyboard shortcuts

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