models

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	/* the error code, this is not necessarily the http status code

	Required: true
	*/
	Code *int32 `json:"code"`

	/* an optional url for getting more help about this error
	 */
	HelpURL strfmt.URI `json:"helpUrl,omitempty"`

	/* a human readable version of the error

	Required: true
	*/
	Message *string `json:"message"`
}

Error Error Structure

Contains all the properties any error response from the API will contain. Some properties are optional so might be empty most of the time

swagger:model Error

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type IncrementalVersionNumber added in v0.2.0

type IncrementalVersionNumber struct {

	/* The version number

	Required: true
	*/
	Version uint64 `json:"version"`
}

IncrementalVersionNumber Incremental Version Number

swagger:model IncrementalVersionNumber

func (*IncrementalVersionNumber) Validate added in v0.2.0

func (m *IncrementalVersionNumber) Validate(formats strfmt.Registry) error

Validate validates this incremental version number

type Project

type Project struct {

	/* The description of the project.

	Max Length: 4000
	*/
	Description string `json:"description,omitempty"`

	/* The id of the project.

	A unique identifier for the project. These are created in ascending order.

	Read Only: true
	*/
	ID uint64 `json:"id,omitempty"`

	/* The name of the project.

	Required: true
	Max Length: 150
	Min Length: 2
	*/
	Name string `json:"name"`
}

Project Project

swagger:model Project

func (*Project) Validate

func (m *Project) Validate(formats strfmt.Registry) error

Validate validates this project

type SemverGenerateParams

type SemverGenerateParams struct {

	/* Name of branch for which needed to generate a version tag.

	Required: true
	Max Length: 150
	Min Length: 2
	*/
	Branch string `json:"branch"`

	/* Major number

	MAJOR version when you make incompatible API changes

	Required: true
	Read Only: true
	*/
	Major uint32 `json:"major"`

	/* Minor number

	MAJOR version when you make incompatible API changes

	Required: true
	Read Only: true
	*/
	Minor uint32 `json:"minor"`
}

SemverGenerateParams Paremeters for generate version number for project (Semantic Versioning)

swagger:model SemverGenerateParams

func (*SemverGenerateParams) Validate

func (m *SemverGenerateParams) Validate(formats strfmt.Registry) error

Validate validates this semver generate params

type SemverNumber

type SemverNumber struct {

	/* The version number

	Required: true
	Max Length: 150
	Min Length: 3
	*/
	Version string `json:"version"`
}

SemverNumber Semver Number

swagger:model SemverNumber

func (*SemverNumber) Validate

func (m *SemverNumber) Validate(formats strfmt.Registry) error

Validate validates this semver number

Jump to

Keyboard shortcuts

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