Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2018 License: BSD-3-Clause Imports: 5 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) MarshalBinary added in v0.3.0

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary added in v0.3.0

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

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) MarshalBinary added in v0.3.0

func (m *IncrementalVersionNumber) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IncrementalVersionNumber) UnmarshalBinary added in v0.3.0

func (m *IncrementalVersionNumber) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IncrementalVersionNumber) Validate added in v0.2.0

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

Validate validates this incremental version number

type ListProjectsOKBody added in v0.3.0

type ListProjectsOKBody []*Project

ListProjectsOKBody ProjectList swagger:model listProjectsOKBody

func (ListProjectsOKBody) Validate added in v0.3.0

func (m ListProjectsOKBody) Validate(formats strfmt.Registry) error

Validate validates this list projects o k body

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) MarshalBinary added in v0.3.0

func (m *Project) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Project) UnmarshalBinary added in v0.3.0

func (m *Project) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

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) MarshalBinary added in v0.3.0

func (m *SemverGenerateParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SemverGenerateParams) UnmarshalBinary added in v0.3.0

func (m *SemverGenerateParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

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) MarshalBinary added in v0.3.0

func (m *SemverNumber) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SemverNumber) UnmarshalBinary added in v0.3.0

func (m *SemverNumber) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

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