models

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {

	/* list of the external addresses of the app
	 */
	AddressList []string `json:"addressList,omitempty"`

	/* deployment list
	 */
	DeploymentList []*Deployment `json:"deploymentList,omitempty"`

	/* env vars
	 */
	EnvVars []*EnvVar `json:"envVars,omitempty"`

	/* id
	 */
	ID int64 `json:"id,omitempty"`

	/* name

	Required: true
	*/
	Name *string `json:"name"`

	/* number of PODs running the app
	 */
	Scale *int64 `json:"scale,omitempty"`
}

App app

swagger:model App

func (*App) Validate

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

Validate validates this app

type BadRequest

type BadRequest struct {

	/* code
	 */
	Code *int64 `json:"code,omitempty"`

	/* message
	 */
	Message *string `json:"message,omitempty"`
}

BadRequest bad request

swagger:model BadRequest

func (*BadRequest) Validate

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

Validate validates this bad request

type Deployment

type Deployment struct {

	/* description

	Required: true
	*/
	Description *string `json:"description"`

	/* description of the error, if any
	 */
	Error string `json:"error,omitempty"`

	/* where the deploy process was started
	 */
	Origin *string `json:"origin,omitempty"`

	/* uuid

	Required: true
	*/
	UUID *string `json:"uuid"`

	/* when
	 */
	When strfmt.DateTime `json:"when,omitempty"`
}

Deployment deployment

swagger:model Deployment

func (*Deployment) Validate

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

Validate validates this deployment

type EnvVar

type EnvVar struct {

	/* key

	Required: true
	*/
	Key *string `json:"key"`

	/* value

	Required: true
	*/
	Value *string `json:"value"`
}

EnvVar app environment var

swagger:model EnvVar

func (*EnvVar) Validate

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

Validate validates this env var

type Error

type Error struct {

	/* code
	 */
	Code int64 `json:"code,omitempty"`

	/* message
	 */
	Message string `json:"message,omitempty"`
}

Error error

swagger:model Error

func (*Error) Validate

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

Validate validates this error

type Forbidden

type Forbidden struct {

	/* code
	 */
	Code *int64 `json:"code,omitempty"`

	/* message
	 */
	Message *string `json:"message,omitempty"`
}

Forbidden forbidden

swagger:model Forbidden

func (*Forbidden) Validate

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

Validate validates this forbidden

type Login

type Login struct {

	/* email

	Required: true
	Min Length: 1
	*/
	Email *strfmt.Email `json:"email"`

	/* password

	Required: true
	Min Length: 1
	*/
	Password *strfmt.Password `json:"password"`
}

Login login

swagger:model Login

func (*Login) Validate

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

Validate validates this login

type LoginToken

type LoginToken struct {

	/* token
	 */
	Token string `json:"token,omitempty"`
}

LoginToken login token

swagger:model LoginToken

func (*LoginToken) Validate

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

Validate validates this login token

type NotFound

type NotFound struct {

	/* code
	 */
	Code *int64 `json:"code,omitempty"`

	/* message
	 */
	Message *string `json:"message,omitempty"`
}

NotFound not found

swagger:model NotFound

func (*NotFound) Validate

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

Validate validates this not found

type Pagination

type Pagination struct {

	/* pagination
	 */
	Pagination *PaginationPagination `json:"pagination,omitempty"`
}

Pagination pagination

swagger:model Pagination

func (*Pagination) Validate

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

Validate validates this pagination

type PaginationPagination

type PaginationPagination struct {

	/* length
	 */
	Length int64 `json:"length,omitempty"`

	/* next Url
	 */
	NextURL string `json:"nextUrl,omitempty"`

	/* previous Url
	 */
	PreviousURL string `json:"previousUrl,omitempty"`

	/* self
	 */
	Self string `json:"self,omitempty"`

	/* size
	 */
	Size int64 `json:"size,omitempty"`
}

PaginationPagination pagination pagination

swagger:model PaginationPagination

func (*PaginationPagination) Validate

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

Validate validates this pagination pagination

type PatchAppEnvVar

type PatchAppEnvVar struct {

	/* key

	Required: true
	*/
	Key *string `json:"key"`

	/* value
	 */
	Value string `json:"value,omitempty"`
}

PatchAppEnvVar app environment var

swagger:model PatchAppEnvVar

func (*PatchAppEnvVar) Validate

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

Validate validates this patch app env var

type PatchAppRequest

type PatchAppRequest struct {

	/* op

	Required: true
	*/
	Op *string `json:"op"`

	/* path

	Required: true
	*/
	Path *string `json:"path"`

	/* value

	Required: true
	*/
	Value []*PatchAppEnvVar `json:"value"`
}

PatchAppRequest used to create a patch update to an app

swagger:model PatchAppRequest

func (*PatchAppRequest) Validate

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

Validate validates this patch app request

type Team

type Team struct {

	/* apps
	 */
	Apps []*App `json:"apps,omitempty"`

	/* email
	 */
	Email strfmt.Email `json:"email,omitempty"`

	/* i am member
	 */
	IAmMember bool `json:"iAmMember,omitempty"`

	/* id
	 */
	ID int64 `json:"id,omitempty"`

	/* members
	 */
	Members []*User `json:"members,omitempty"`

	/* name

	Required: true
	Min Length: 3
	Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	*/
	Name *string `json:"name"`

	/* url
	 */
	URL string `json:"url,omitempty"`
}

Team team

swagger:model Team

func (*Team) Validate

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

Validate validates this team

type Unauthorized

type Unauthorized struct {

	/* code
	 */
	Code *int64 `json:"code,omitempty"`

	/* message
	 */
	Message *string `json:"message,omitempty"`
}

Unauthorized unauthorized

swagger:model Unauthorized

func (*Unauthorized) Validate

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

Validate validates this unauthorized

type User

type User struct {

	/* email

	Required: true
	Min Length: 8
	*/
	Email *string `json:"email"`

	/* id
	 */
	ID int64 `json:"id,omitempty"`

	/* is admin

	Required: true
	*/
	IsAdmin *bool `json:"isAdmin"`

	/* name

	Required: true
	Min Length: 5
	*/
	Name *string `json:"name"`

	/* password

	Required: true
	Min Length: 8
	*/
	Password *string `json:"password"`

	/* teams
	 */
	Teams []*Team `json:"teams,omitempty"`
}

User user

swagger:model User

func (*User) Validate

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

Validate validates this user

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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