version_semantic

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2016 License: BSD-3-Clause Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SemverGenerate

type SemverGenerate struct {
	Context *middleware.Context
	Handler SemverGenerateHandler
}

SemverGenerate swagger:route POST /projects/{projectId}/version/semantic versionSemantic semverGenerate

Generate new semantic version number (based on gitflow)

Semantic Versioning 2.0.0 See also http://semver.org/spec/v2.0.0.html Based on branching model [GitFlow](http://nvie.com/posts/a-successful-git-branching-model/)

func NewSemverGenerate

func NewSemverGenerate(ctx *middleware.Context, handler SemverGenerateHandler) *SemverGenerate

NewSemverGenerate creates a new http.Handler for the semver generate operation

func (*SemverGenerate) ServeHTTP

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

type SemverGenerateCreated

type SemverGenerateCreated struct {

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

SemverGenerateCreated Generate semantic version response

swagger:response semverGenerateCreated

func NewSemverGenerateCreated

func NewSemverGenerateCreated() *SemverGenerateCreated

NewSemverGenerateCreated creates SemverGenerateCreated with default headers values

func (*SemverGenerateCreated) SetPayload

func (o *SemverGenerateCreated) SetPayload(payload *models.SemverNumber)

SetPayload sets the payload to the semver generate created response

func (*SemverGenerateCreated) WithPayload

WithPayload adds the payload to the semver generate created response

func (*SemverGenerateCreated) WriteResponse

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

WriteResponse to the client

type SemverGenerateHandler

type SemverGenerateHandler interface {
	Handle(SemverGenerateParams) middleware.Responder
}

SemverGenerateHandler interface for that can handle valid semver generate params

type SemverGenerateHandlerFunc

type SemverGenerateHandlerFunc func(SemverGenerateParams) middleware.Responder

SemverGenerateHandlerFunc turns a function with the right signature into a semver generate handler

func (SemverGenerateHandlerFunc) Handle

Handle executing the request and returning a response

type SemverGenerateInternalServerError

type SemverGenerateInternalServerError struct {
	/*
	  Required: true
	*/
	XErrorCode string `json:"X-Error-Code"`

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

SemverGenerateInternalServerError Error response

swagger:response semverGenerateInternalServerError

func NewSemverGenerateInternalServerError

func NewSemverGenerateInternalServerError() *SemverGenerateInternalServerError

NewSemverGenerateInternalServerError creates SemverGenerateInternalServerError with default headers values

func (*SemverGenerateInternalServerError) SetPayload

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

SetPayload sets the payload to the semver generate internal server error response

func (*SemverGenerateInternalServerError) SetXErrorCode

func (o *SemverGenerateInternalServerError) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the semver generate internal server error response

func (*SemverGenerateInternalServerError) WithPayload

WithPayload adds the payload to the semver generate internal server error response

func (*SemverGenerateInternalServerError) WithXErrorCode

WithXErrorCode adds the xErrorCode to the semver generate internal server error response

func (*SemverGenerateInternalServerError) WriteResponse

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

WriteResponse to the client

type SemverGenerateParams

type SemverGenerateParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  In: body
	*/
	Body *models.SemverGenerateParams
	/*
	  Required: true
	  In: path
	*/
	ProjectID uint64
}

SemverGenerateParams contains all the bound params for the semver generate operation typically these are obtained from a http.Request

swagger:parameters semverGenerate

func NewSemverGenerateParams

func NewSemverGenerateParams() SemverGenerateParams

NewSemverGenerateParams creates a new SemverGenerateParams object with the default values initialized.

func (*SemverGenerateParams) BindRequest

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

Jump to

Keyboard shortcuts

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