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

models

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseImage

type BaseImage struct {

	// created time
	CreatedTime int64 `json:"createdTime,omitempty"`

	// docker Url
	// Required: true
	DockerURL *string `json:"dockerUrl"`

	// groups
	Groups []string `json:"groups"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// language
	// Required: true
	Language Language `json:"language"`

	// name
	// Required: true
	// Pattern: ^[\w\d\-]+$
	Name *string `json:"name"`

	// public
	Public *bool `json:"public,omitempty"`

	// reason
	Reason []string `json:"reason"`

	// spec
	Spec Spec `json:"spec,omitempty"`

	// status
	Status Status `json:"status,omitempty"`

	// tags
	Tags BaseImageTags `json:"tags"`
}

func (*BaseImage) MarshalBinary

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

MarshalBinary interface implementation

func (*BaseImage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BaseImage) Validate

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

Validate validates this base image

type BaseImageTags

type BaseImageTags []*Tag

func (BaseImageTags) Validate

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

Validate validates this base image tags

type Error

type Error struct {

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

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

func (*Error) MarshalBinary

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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 GetBaseImagesOKBody

type GetBaseImagesOKBody []*BaseImage

func (GetBaseImagesOKBody) Validate

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

Validate validates this get base images o k body

type GetImagesOKBody

type GetImagesOKBody []*Image

func (GetImagesOKBody) Validate

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

Validate validates this get images o k body

type Image

type Image struct {

	// base image name
	// Required: true
	// Pattern: ^[\w\d\-]+$
	BaseImageName *string `json:"baseImageName"`

	// created time
	CreatedTime int64 `json:"createdTime,omitempty"`

	// docker Url
	DockerURL string `json:"dockerUrl,omitempty"`

	// groups
	Groups []string `json:"groups"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// language
	Language Language `json:"language,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d\-]+$
	Name *string `json:"name"`

	// reason
	Reason []string `json:"reason"`

	// spec
	Spec Spec `json:"spec,omitempty"`

	// status
	Status Status `json:"status,omitempty"`

	// tags
	Tags ImageTags `json:"tags"`
}

func (*Image) MarshalBinary

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

MarshalBinary interface implementation

func (*Image) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Image) Validate

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

Validate validates this image

type ImageTags

type ImageTags []*Tag

func (ImageTags) Validate

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

Validate validates this image tags

type Language

type Language string
const (
	// LanguagePython2 captures enum value "python2"
	LanguagePython2 Language = "python2"
	// LanguagePython3 captures enum value "python3"
	LanguagePython3 Language = "python3"
	// LanguageNodejs6 captures enum value "nodejs6"
	LanguageNodejs6 Language = "nodejs6"
)

func (Language) Validate

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

Validate validates this language

type Spec

type Spec string
const (
	// SpecCONFIGURE captures enum value "CONFIGURE"
	SpecCONFIGURE Spec = "CONFIGURE"
	// SpecCREATE captures enum value "CREATE"
	SpecCREATE Spec = "CREATE"
	// SpecDELETE captures enum value "DELETE"
	SpecDELETE Spec = "DELETE"
)

func (Spec) Validate

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

Validate validates this spec

type Status

type Status string
const (
	// StatusINITIALIZED captures enum value "INITIALIZED"
	StatusINITIALIZED Status = "INITIALIZED"
	// StatusCREATING captures enum value "CREATING"
	StatusCREATING Status = "CREATING"
	// StatusREADY captures enum value "READY"
	StatusREADY Status = "READY"
	// StatusERROR captures enum value "ERROR"
	StatusERROR Status = "ERROR"
	// StatusDELETED captures enum value "DELETED"
	StatusDELETED Status = "DELETED"
)

func (Status) Validate

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

Validate validates this status

type Tag

type Tag struct {

	// key
	Key string `json:"key,omitempty"`

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

func (*Tag) MarshalBinary

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

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Tag) Validate

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

Validate validates this tag

Jump to

Keyboard shortcuts

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