models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {

	// env
	Env []*EnvVar `json:"env"`

	// image
	// Required: true
	Image *string `json:"image"`
}

func (*Container) MarshalBinary

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

MarshalBinary interface implementation

func (*Container) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Container) Validate

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

Validate validates this container

type EnvVar

type EnvVar struct {

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

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

func (*EnvVar) MarshalBinary

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

MarshalBinary interface implementation

func (*EnvVar) UnmarshalBinary

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

UnmarshalBinary interface implementation

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
	// 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 ServeSpecification

type ServeSpecification struct {

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

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

func (*ServeSpecification) MarshalBinary

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

MarshalBinary interface implementation

func (*ServeSpecification) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServeSpecification) Validate

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

Validate validates this serve specification

type Service

type Service struct {

	// guid
	// Required: true
	GUID *int64 `json:"guid"`

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

	// serve
	Serve *ServeSpecification `json:"serve,omitempty"`

	// services
	Services []*ServiceSpecification `json:"services"`
}

func (*Service) MarshalBinary

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

MarshalBinary interface implementation

func (*Service) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Service) Validate

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

Validate validates this service

type ServicePort

type ServicePort struct {

	// number
	// Required: true
	Number *int32 `json:"number"`

	// protocol
	Protocol string `json:"protocol,omitempty"`
}

func (*ServicePort) MarshalBinary

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

MarshalBinary interface implementation

func (*ServicePort) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServicePort) Validate

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

Validate validates this service port

type ServiceSpecification

type ServiceSpecification struct {

	// containers
	Containers []*Container `json:"containers"`

	// depends
	Depends string `json:"depends,omitempty"`

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

	// ports
	Ports []*ServicePort `json:"ports"`

	// reference
	Reference string `json:"reference,omitempty"`

	// replicas
	Replicas int32 `json:"replicas,omitempty"`

	// shard spec
	ShardSpec *ShardSpecification `json:"shardSpec,omitempty"`
}

func (*ServiceSpecification) MarshalBinary

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

MarshalBinary interface implementation

func (*ServiceSpecification) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServiceSpecification) Validate

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

Validate validates this service specification

type ShardSpecification

type ShardSpecification struct {

	// field path
	FieldPath string `json:"fieldPath,omitempty"`

	// shards
	Shards int32 `json:"shards,omitempty"`

	// url pattern
	URLPattern string `json:"urlPattern,omitempty"`
}

func (*ShardSpecification) MarshalBinary

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

MarshalBinary interface implementation

func (*ShardSpecification) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ShardSpecification) Validate

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

Validate validates this shard specification

Jump to

Keyboard shortcuts

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